html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1f1a 50%, #1a1a1a 100%);
    .container {
        padding-top: 120px;
        padding-left: 0;
        padding-right: 0;
        min-height: 100vh;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;

        .title {
            font-size: 4em;
            font-weight: bold;
            color: #ff6b35;
            text-align: center;
            letter-spacing: 5px;
            margin-bottom: 10px;
            text-shadow: 0 0 8px rgba(255, 107, 53, 0.6), 0 0 16px rgba(255, 107, 53, 0.4);
            animation: titleGlow 3s ease-in-out infinite alternate;
        }

        .subtitle {
            font-size: 2em;
            font-weight: bold;
            color: #ff6b35;
            text-align: center;
            margin-bottom: 60px;
            letter-spacing: 5px;
            text-shadow: 0 0 6px rgba(255, 107, 53, 0.5), 0 0 12px rgba(255, 107, 53, 0.3);
            opacity: 0;
            animation: fadeInUp 1s ease-out 0.5s forwards;
        }

        .filter-tabs {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 20px;
            margin: 0 auto 50px auto;
            padding: 0 20px;
            opacity: 0;
            animation: fadeInUp 1s ease-out 1s forwards;
            max-width: 100%;
            box-sizing: border-box;

            .filter-btn {
                background: rgba(255, 107, 53, 0.1);
                border: 2px solid #ff6b35;
                color: #ff6b35;
                padding: 12px 25px;
                border-radius: 25px;
                cursor: pointer;
                transition: all 0.3s ease;
                font-weight: bold;
                letter-spacing: 1px;
                white-space: nowrap;

                &:hover,
                &.active {
                    background: #ff6b35;
                    color: white;
                    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
                    transform: translateY(-2px);
                }
            }
        }

        .films-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 40px;
            max-width: 100%;
            margin: 0 auto;
            padding: 0 20px 100px 20px;
            width: 100%;
            box-sizing: border-box;

            .film-card {
                position: relative;
                background: rgba(255, 255, 255, 0.05);
                border-radius: 20px;
                overflow: hidden;
                border: 2px solid rgba(255, 107, 53, 0.3);
                cursor: pointer;
                transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
                opacity: 0;
                transform: translateY(50px);
                animation: fadeInUp 0.8s ease-out forwards;
                backdrop-filter: blur(10px);
                width: 100%;
                box-sizing: border-box;
                height: 400px;

                &:nth-child(1) { animation-delay: 0.2s; }
                &:nth-child(2) { animation-delay: 0.4s; }
                &:nth-child(3) { animation-delay: 0.6s; }
                &:nth-child(4) { animation-delay: 0.8s; }
                &:nth-child(5) { animation-delay: 1s; }
                &:nth-child(6) { animation-delay: 1.2s; }

                &:hover {
                    transform: translateY(-10px) scale(1.02);
                    border-color: #ff6b35;
                    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.3);

                    .film-image {
                        img {
                            transform: scale(1.1);
                        }
                    }

                    .film-overlay {
                        opacity: 1;
                    }
                }

                .film-image {
                    width: 100%;
                    height: 100%;
                    background: linear-gradient(45deg, #1a1a2e, #16213e);
                    position: relative;
                    overflow: hidden;

                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        transition: transform 0.5s ease;
                    }

                    .film-overlay {
                        position: absolute;
                        top: 0;
                        left: 0;
                        right: 0;
                        bottom: 0;
                        background: linear-gradient(135deg, rgba(255, 107, 53, 0.8), rgba(255, 107, 53, 0.4));
                        opacity: 0;
                        transition: opacity 0.3s ease;
                        display: flex;
                        align-items: center;
                        justify-content: center;

                        .play-icon {
                            font-size: 3em;
                            color: white;
                            animation: pulse 2s infinite;
                        }

                        .view-icon {
                            font-size: 2em;
                            color: white;
                            animation: pulse 2s infinite;
                        }
                    }
                }

                .film-content {
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    right: 0;
                    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
                    padding: 40px 30px 30px;
                    text-align: center;

                    .film-title {
                        font-size: 2.5em;
                        font-weight: bold;
                        color: #ff6b35;
                        letter-spacing: 3px;
                        text-shadow: 0 0 10px rgba(255, 107, 53, 0.6);
                        margin: 0;
                    }
                }
            }
        }
    }

    /* Section équipement - thème filmmaking */
    .equipment-section {
        margin-top: 80px;
        padding: 0 20px 60px;
        display: flex;
        justify-content: center;

        .equipment-card {
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(255, 107, 53, 0.3);
            border-radius: 20px;
            padding: 40px;
            max-width: 600px;
            text-align: center;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;

            &:hover {
                border-color: #ff6b35;
                box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
                transform: translateY(-5px);
            }

            h3 {
                font-size: 2em;
                color: #ff6b35;
                margin-bottom: 20px;
                font-weight: bold;
                letter-spacing: 2px;
                text-shadow: 0 0 6px rgba(255, 107, 53, 0.5);
            }

            p {
                color: rgba(255, 255, 255, 0.8);
                font-size: 1.1em;
                line-height: 1.6;
                margin-bottom: 30px;
            }

            .equipment-btn {
                display: inline-block;
                background: linear-gradient(45deg, #ff6b35, #e85a2f);
                color: white;
                padding: 15px 30px;
                border-radius: 25px;
                text-decoration: none;
                font-weight: bold;
                font-size: 1.1em;
                transition: all 0.3s ease;
                text-transform: uppercase;
                letter-spacing: 1px;

                &:hover {
                    transform: translateY(-2px);
                    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
                }
            }
        }
    }

    /* Modales */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(15px);
        z-index: 1000;
        justify-content: center;
        align-items: center;
        animation: fadeIn 0.3s ease-out;

        &.active {
            display: flex;
        }

        .modal-content {
            background: #2a2a2a;
            border-radius: 20px;
            padding: 40px;
            max-width: 800px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            text-align: center;
            position: relative;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            border: 2px solid rgba(255, 107, 53, 0.3);
            animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-sizing: border-box;

            .close-btn {
                position: absolute;
                top: 20px;
                right: 30px;
                font-size: 2em;
                color: #999;
                cursor: pointer;
                transition: color 0.3s;

                &:hover {
                    color: #ff6b35;
                }
            }

            .modal-image {
                width: 100%;
                max-width: 600px;
                height: 350px;
                margin: 0 auto 30px;
                background: linear-gradient(45deg, #1a1a2e, #16213e);
                border: 4px solid #ff6b35;
                border-radius: 15px;
                overflow: hidden;
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }

            .modal-title {
                font-size: 2em;
                font-weight: bold;
                margin-bottom: 20px;
                color: #ff6b35;
                letter-spacing: 3px;
            }

            .modal-details {
                text-align: left;
                margin-bottom: 30px;

                .detail-item {
                    display: flex;
                    justify-content: space-between;
                    margin: 15px 0;
                    padding: 10px 0;
                    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
                    flex-wrap: wrap;
                    gap: 10px;

                    .detail-label {
                        color: #ff6b35;
                        font-weight: bold;
                        min-width: 120px;
                    }

                    .detail-value {
                        color: rgba(255, 255, 255, 0.8);
                        flex: 1;
                        text-align: right;
                    }
                }
            }

            .view-btn {
                background: linear-gradient(45deg, #ff6b35, #e85a2f);
                border: none;
                padding: 15px 30px;
                border-radius: 25px;
                color: white;
                font-weight: bold;
                font-size: 1.1em;
                cursor: pointer;
                transition: all 0.3s;
                text-transform: uppercase;
                letter-spacing: 1px;

                &:hover {
                    transform: translateY(-2px);
                    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
                }
            }
        }
    }
}

/* Animations */
@keyframes titleGlow {
    0% { 
        text-shadow: 0 0 8px rgba(255, 107, 53, 0.6), 0 0 16px rgba(255, 107, 53, 0.4); 
    }
    100% { 
        text-shadow: 0 0 12px rgba(255, 107, 53, 0.8), 0 0 24px rgba(255, 107, 53, 0.6); 
    }
}

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

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.1); 
    }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Classes utilitaires */
.hidden {
    display: none !important;
}

/* Responsive - Tablettes */
@media (max-width: 1024px) {
    body {
        .container {
            padding-left: 0;
            padding-right: 0;
            padding-top: 100px;

            .title {
                font-size: 3em;
                letter-spacing: 3px;
            }

            .subtitle {
                font-size: 1.6em;
                letter-spacing: 3px;
                margin-bottom: 40px;
            }

            .films-grid {
                gap: 30px;

                .film-card {
                    height: 350px;

                    .film-content {
                        padding: 30px 25px 25px;

                        .film-title {
                            font-size: 2em;
                            letter-spacing: 2px;
                        }
                    }
                }
            }

            .filter-tabs {
                gap: 15px;
                margin-bottom: 40px;

                .filter-btn {
                    padding: 10px 20px;
                    font-size: 0.9em;
                }
            }
        }

        .equipment-section {
            margin-top: 60px;
            padding: 0 15px 40px;

            .equipment-card {
                padding: 30px 20px;

                h3 {
                    font-size: 1.6em;
                    letter-spacing: 1px;
                }

                p {
                    font-size: 1em;
                }

                .equipment-btn {
                    padding: 12px 25px;
                    font-size: 0.95em;
                }
            }
        }

        .modal {
            .modal-content {
                padding: 30px;
                max-width: 90%;

                .modal-image {
                    max-width: 500px;
                    height: 300px;
                }

                .modal-title {
                    font-size: 1.6em;
                }
            }
        }
    }
}

/* Responsive - Mobiles */
@media (max-width: 768px) {
    body {
        .container {
            padding-left: 0;
            padding-right: 0;
            padding-top: 80px;

            .title {
                font-size: 2.5em;
                letter-spacing: 2px;
            }

            .subtitle {
                font-size: 1.3em;
                letter-spacing: 2px;
                margin-bottom: 30px;
            }

            .films-grid {
                gap: 25px;
                padding: 0 15px 100px 15px;

                .film-card {
                    height: 300px;
                    margin: 0 auto;
                    max-width: 100%;

                    .film-content {
                        padding: 25px 20px 20px;

                        .film-title {
                            font-size: 1.6em;
                            letter-spacing: 1px;
                        }
                    }
                }
            }

            .filter-tabs {
                gap: 10px;
                margin: 0 auto 30px auto;
                padding: 0 15px;

                .filter-btn {
                    padding: 8px 15px;
                    font-size: 0.85em;
                    letter-spacing: 0.5px;
                }
            }
        }

        .equipment-section {
            margin-top: 50px;
            padding: 0 10px 30px;

            .equipment-card {
                padding: 25px 15px;

                h3 {
                    font-size: 1.4em;
                    letter-spacing: 0.5px;
                }

                p {
                    font-size: 0.9em;
                }

                .equipment-btn {
                    padding: 10px 20px;
                    font-size: 0.85em;
                }
            }
        }

        .modal {
            .modal-content {
                padding: 25px 20px;
                margin: 20px;
                max-width: calc(100vw - 40px);
                width: calc(100vw - 40px);

                .close-btn {
                    top: 15px;
                    right: 20px;
                    font-size: 1.5em;
                }

                .modal-image {
                    max-width: 400px;
                    height: 250px;
                }

                .modal-title {
                    font-size: 1.4em;
                    letter-spacing: 1px;
                    margin-bottom: 15px;
                }

                .modal-details {
                    .detail-item {
                        flex-direction: column;
                        gap: 5px;

                        .detail-value {
                            text-align: left;
                        }
                    }
                }

                .view-btn {
                    padding: 12px 25px;
                    font-size: 0.95em;
                }
            }
        }
    }
}

/* Responsive - Petits mobiles */
@media (max-width: 480px) {
    body {
        .container {
            padding-left: 0;
            padding-right: 0;
            padding-top: 60px;

            .title {
                font-size: 2em;
                letter-spacing: 1px;
            }

            .subtitle {
                font-size: 1.1em;
                letter-spacing: 1px;
                margin-bottom: 25px;
            }

            .films-grid {
                gap: 20px;
                padding: 0 10px 100px 10px;

                .film-card {
                    height: 250px;
                    margin: 0 auto;
                    max-width: 100%;

                    .film-content {
                        padding: 20px 15px 15px;

                        .film-title {
                            font-size: 1.3em;
                            letter-spacing: 0.5px;
                        }
                    }

                    .film-overlay {
                        .play-icon {
                            font-size: 2.5em;
                        }

                        .view-icon {
                            font-size: 2em;
                        }
                    }
                }
            }

            .filter-tabs {
                padding: 0 10px;

                .filter-btn {
                    padding: 6px 12px;
                    font-size: 0.8em;
                }
            }
        }

        .equipment-section {
            margin-top: 40px;
            padding: 0 5px 25px;

            .equipment-card {
                padding: 20px 12px;

                h3 {
                    font-size: 1.2em;
                    letter-spacing: 0.5px;
                }

                p {
                    font-size: 0.85em;
                }

                .equipment-btn {
                    padding: 8px 16px;
                    font-size: 0.8em;
                }
            }
        }

        .modal {
            .modal-content {
                padding: 20px 15px;
                margin: 15px;
                max-width: calc(100vw - 30px);
                width: calc(100vw - 30px);

                .close-btn {
                    top: 10px;
                    right: 15px;
                    font-size: 1.3em;
                }

                .modal-image {
                    max-width: 300px;
                    height: 200px;
                }

                .modal-title {
                    font-size: 1.2em;
                    margin-bottom: 10px;
                }

                .modal-details {
                    margin-bottom: 20px;

                    .detail-item {
                        margin: 10px 0;
                        padding: 8px 0;

                        .detail-label,
                        .detail-value {
                            font-size: 0.9em;
                        }
                    }
                }

                .view-btn {
                    padding: 10px 20px;
                    font-size: 0.85em;
                }
            }
        }
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    body {
        .container {
            padding-left: 0;
            padding-right: 0;

            .title {
                font-size: 1.6em;
                letter-spacing: 0.5px;
            }

            .subtitle {
                font-size: 1em;
                letter-spacing: 0.5px;
            }

            .films-grid {
                gap: 15px;
                padding: 0 8px 100px 8px;

                .film-card {
                    height: 200px;
                    margin: 0 auto;
                    max-width: 100%;

                    .film-content {
                        padding: 15px 10px 10px;

                        .film-title {
                            font-size: 1.1em;
                            letter-spacing: 0.3px;
                        }
                    }

                    .film-overlay {
                        .play-icon {
                            font-size: 2em;
                        }

                        .view-icon {
                            font-size: 1.8em;
                        }
                    }
                }
            }
        }

        .equipment-section {
            margin-top: 30px;
            padding: 0 5px 20px;

            .equipment-card {
                padding: 15px 8px;

                h3 {
                    font-size: 1.1em;
                    letter-spacing: 0.3px;
                }

                p {
                    font-size: 0.8em;
                }

                .equipment-btn {
                    padding: 6px 12px;
                    font-size: 0.75em;
                }
            }
        }

        .modal {
            .modal-content {
                padding: 15px 10px;
                margin: 10px;
                max-width: calc(100vw - 20px);
                width: calc(100vw - 20px);

                .modal-image {
                    max-width: 250px;
                    height: 150px;
                }

                .modal-title {
                    font-size: 1.1em;
                }

                .modal-details {
                    .detail-item {
                        .detail-label,
                        .detail-value {
                            font-size: 0.8em;
                        }
                    }
                }

                .view-btn {
                    padding: 8px 15px;
                    font-size: 0.8em;
                }
            }
        }
    }
}