/* HERO SECTION */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px 60px;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero h1 .highlight {
    color: #00D9FF;
}

.hero-subtitle {
    font-size: 20px;
    color: #A0AEC0;
    margin-bottom: 48px;
}

/* SHOWREEL VIDEO */
.showreel-container {
    max-width: 900px;
    margin: 0 auto 48px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(0, 217, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 217, 255, 0.2);
}

.showreel-video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 900;
    color: #00D9FF;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 16px;
    color: #A0AEC0;
}

.hero-buttons {
    margin-top: 48px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-show-clients {
    background: transparent;
    color: #00D9FF;
    border: 2px solid #00D9FF;
    padding: 14px 32px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-show-clients:hover {
    background: #00D9FF;
    color: #0A1628;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.3);
}

.btn-youtube {
    background: #00D9FF;
    color: #0A1628;
    border: 2px solid #00D9FF;
    padding: 14px 32px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-youtube:hover {
    background: #00B8D9;
    border-color: #00B8D9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.4);
}

/* MODAL CLIENTS */
.clients-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    padding: 40px 20px;
    overflow-y: auto;
}

.clients-modal.active {
    display: block;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #1A2332;
    border-radius: 24px;
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2001;
    border: 2px solid rgba(0, 217, 255, 0.2);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #A0AEC0;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.modal-close:hover {
    color: #00D9FF;
    background: rgba(0, 217, 255, 0.1);
}

.modal-content h2 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 12px;
    color: #FFFFFF;
    text-align: center;
}

.modal-subtitle {
    font-size: 18px;
    color: #A0AEC0;
    text-align: center;
    margin-bottom: 60px;
}

.client-section {
    margin-bottom: 48px;
}

.client-section:last-child {
    margin-bottom: 0;
}

.client-section h3 {
    font-size: 24px;
    color: #00D9FF;
    margin-bottom: 24px;
    font-weight: 700;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 24px;
}

.client-card {
    background: #0A1628;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    border: 2px solid rgba(0, 217, 255, 0.15);
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.client-card:hover {
    border-color: #00D9FF;
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 217, 255, 0.25);
}

.client-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid rgba(0, 217, 255, 0.3);
    transition: all 0.3s;
}

.client-card:hover img {
    border-color: #00D9FF;
    transform: scale(1.05);
}

.client-name {
    display: block;
    font-weight: 700;
    color: #FFFFFF;
    font-size: 15px;
    margin-bottom: 4px;
}

.client-info {
    display: block;
    font-size: 12px;
    color: #A0AEC0;
}

/* FILTERS SECTION */
.filters-section {
    background: #0A1628;
    padding: 24px 0;
    margin-bottom: 60px;
    transition: all 0.3s;
}

.filters-section.sticky {
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.filters-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    color: #A0AEC0;
    border: 2px solid rgba(0, 217, 255, 0.3);
    padding: 12px 28px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: #00D9FF;
    color: #00D9FF;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #00D9FF;
    color: #0A1628;
    border-color: #00D9FF;
}

/* DEFAULT MESSAGE */
.default-message {
    max-width: 800px;
    margin: 80px auto;
    padding: 80px 40px;
    text-align: center;
}

.default-content h2 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 16px;
    color: #FFFFFF;
}

.default-content p {
    font-size: 18px;
    color: #A0AEC0;
}

/* VIDEOS GRID */
.videos-section {
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 40px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.video-card {
    opacity: 1;
    transition: all 0.3s;
    display: none;
}

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 16px;
    background: #1A2332;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* VIEW MORE CONTAINER */
.view-more-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background: #1A2332;
    border-radius: 16px;
    border: 2px solid rgba(0, 217, 255, 0.2);
}

.view-more-text {
    font-size: 18px;
    color: #A0AEC0;
    margin-bottom: 24px;
}

.view-more-text span {
    color: #00D9FF;
    font-weight: 700;
}

.btn-view-more {
    background: #00D9FF;
    color: #0A1628;
    padding: 14px 32px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    transition: all 0.3s;
}

.btn-view-more:hover {
    background: #00B8D9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.3);
}

/* OLD STYLES TO REMOVE */
.cta-section {
    max-width: 900px;
    margin: 100px auto 80px;
    padding: 60px 40px;
    background: linear-gradient(135deg, #0A1628, #1A2332);
    border-radius: 16px;
    text-align: center;
}

.cta-section h2 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 16px;
    color: #FFFFFF;
}

.cta-section p {
    font-size: 18px;
    color: #A0AEC0;
    margin-bottom: 32px;
}

/* RESPONSIVE */

/* RESPONSIVE : TABLETTE */
@media (max-width: 1024px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

/* RESPONSIVE : TÉLÉPHONE */
@media (max-width: 768px) {
    /* 1. Réduction des marges latérales (40px -> 20px) pour gagner de la place */
    .hero {
        padding: 60px 20px 40px; /* On réduit aussi le haut/bas */
    }
    .videos-section,
    .filters-container {
        padding: 0 20px;
    }

    /* 2. Ajustement des textes et grilles Hero */
    .hero h1 {
        font-size: 40px;
    }
    .hero-subtitle {
        font-size: 18px;
    }
    .hero-stats {
        gap: 20px; /* Rapproche un peu plus les stats */
    }
    .stat-number {
        font-size: 36px;
    }

    /* 3. Ajustement des filtres (Mode Scroll Horizontal type "Swipe") */
    .filters-section {
        padding: 16px 0; /* On réduit la hauteur globale de la barre */
    }
    
    .filters-container {
        gap: 12px;
        flex-wrap: nowrap; /* IMPORTANT : Interdit aux boutons de passer à la ligne */
        overflow-x: auto; /* Active le défilement horizontal avec le doigt */
        justify-content: flex-start; /* Aligne les boutons à gauche */
        padding: 0 20px 10px 20px; /* Espace autour, dont 10px en bas pour le confort du scroll */
        -webkit-overflow-scrolling: touch; /* Rend le glissement fluide sur iPhone */
        scrollbar-width: none; /* Cache la barre de défilement (Firefox) */
    }

    /* Cache la barre de défilement moche (Chrome, Safari, Edge) */
    .filters-container::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        width: auto; /* On retire le 100% de largeur */
        flex-shrink: 0; /* Empêche les boutons de se ratatiner s'ils manquent de place */
        white-space: nowrap; /* Empêche le texte du bouton de se couper en deux lignes */
        padding: 8px 20px; /* Boutons légèrement plus petits et élégants */
        font-size: 14px;
    }
    
    /* 4. Ajustement du Call to Action (CTA) */
    .cta-section {
        margin: 60px 20px; /* On réduit l'espacement extérieur */
        padding: 40px 20px; /* On réduit l'espacement intérieur */
    }
    .cta-section h2 {
        font-size: 32px;
        line-height: 1.3;
    }

    /* 5. Ajustement de la Modale Client */
    .modal-content {
        padding: 40px 20px; /* On gagne de la place pour les cartes */
    }
    .modal-content h2 {
        font-size: 32px;
    }
    .client-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 16px;
    }
    .client-card {
        padding: 20px 12px;
    }
    .client-card img {
        width: 60px;
        height: 60px;
    }
}