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

body {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1a25 50%, #1a1a1a 100%);
    min-height: 100vh;
    color: white;
    font-family: 'Arial', sans-serif;

    .container {
        padding-top: 120px;
        padding-left: 50px;
        padding-right: 50px;
        min-height: 100vh;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;

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

        .subtitle {
            font-size: 2em;
            font-weight: bold;
            color: #ea25e0;
            text-align: center;
            margin-bottom: 60px;
            letter-spacing: 5px;
            text-shadow: 0 0 6px rgba(234, 37, 224, 0.5), 0 0 12px rgba(234, 37, 224, 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-bottom: 50px;
            opacity: 0;
            animation: fadeInUp 1s ease-out 1s forwards;
            max-width: 100%;

            .filter-btn {
                background: rgba(234, 37, 224, 0.1);
                border: 2px solid #ea25e0;
                color: #ea25e0;
                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: #ea25e0;
                    color: white;
                    box-shadow: 0 0 20px rgba(234, 37, 224, 0.5);
                    transform: translateY(-2px);
                }
            }
        }

        .equipment-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 40px;
            max-width: 1400px;
            margin: 0 auto;
            padding-bottom: 100px;
            width: 100%;
            box-sizing: border-box;

            .equipment-card {
                position: relative;
                background: rgba(255, 255, 255, 0.05);
                border-radius: 20px;
                overflow: hidden;
                border: 2px solid rgba(234, 37, 224, 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%;
                max-width: 100%;
                box-sizing: border-box;
                height: 400px;
                display: flex;
                flex-direction: column;

                &: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; }
                &:nth-child(7) { animation-delay: 1.4s; }
                &:nth-child(8) { animation-delay: 1.6s; }
                &:nth-child(9) { animation-delay: 1.8s; }
                &:nth-child(10) { animation-delay: 2s; }
                &:nth-child(11) { animation-delay: 2.2s; }
                &:nth-child(12) { animation-delay: 2.4s; }
                &:nth-child(13) { animation-delay: 2.6s; }
                &:nth-child(14) { animation-delay: 2.8s; }
                &:nth-child(15) { animation-delay: 3s; }

                &:hover {
                    transform: translateY(-15px) scale(1.03);
                    border-color: #ea25e0;
                    box-shadow: 0 25px 50px rgba(234, 37, 224, 0.4);

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

                    .equipment-overlay {
                        opacity: 1;
                    }
                }

                .equipment-image {
                    width: 100%;
                    height: 60%;
                    background: linear-gradient(45deg, #333, #555);
                    position: relative;
                    overflow: hidden;

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

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

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

                .equipment-info {
                    padding: 25px;
                    height: 40%;
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;

                    .equipment-title {
                        font-size: 1.4em;
                        font-weight: bold;
                        color: #ea25e0;
                        margin-bottom: 8px;
                        letter-spacing: 2px;
                    }

                    .equipment-category {
                        color: rgba(255, 255, 255, 0.7);
                        font-size: 0.9em;
                        margin-bottom: 10px;
                        text-transform: uppercase;
                        letter-spacing: 1px;
                    }

                    .equipment-price {
                        color: #ea25e0;
                        font-size: 1.2em;
                        font-weight: bold;
                        letter-spacing: 1px;
                    }

                    .equipment-specs {
                        color: rgba(255, 255, 255, 0.8);
                        font-size: 0.9em;
                        line-height: 1.4;
                    }
                }
            }
        }
    }

    /* Stats Section */
    .stats-section {
        margin-top: 80px;
        padding: 60px 20px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 30px;
        backdrop-filter: blur(10px);
        border: 2px solid rgba(234, 37, 224, 0.2);

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
            max-width: 800px;
            margin: 0 auto;

            .stat-item {
                text-align: center;
                padding: 20px;
                border-radius: 15px;
                background: rgba(234, 37, 224, 0.1);
                border: 1px solid rgba(234, 37, 224, 0.3);
                transition: all 0.3s ease;

                &:hover {
                    transform: translateY(-5px);
                    box-shadow: 0 10px 30px rgba(234, 37, 224, 0.3);
                }

                .stat-number {
                    font-size: 2.5em;
                    color: #ea25e0;
                    font-weight: bold;
                    display: block;
                }

                .stat-label {
                    color: rgba(255, 255, 255, 0.8);
                    font-size: 1.1em;
                    margin-top: 10px;
                    letter-spacing: 1px;
                }
            }
        }
    }

    /* 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: 700px;
            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(234, 37, 224, 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: #ea25e0;
                }
            }

            .modal-header {
                display: flex;
                align-items: center;
                gap: 20px;
                margin-bottom: 30px;
                padding-bottom: 20px;
                border-bottom: 2px solid rgba(234, 37, 224, 0.2);

                .modal-image {
                    width: 150px;
                    height: 150px;
                    background: linear-gradient(45deg, #333, #555);
                    border: 4px solid #ea25e0;
                    border-radius: 15px;
                    overflow: hidden;
                    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
                    flex-shrink: 0;

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

                .modal-title-section {
                    text-align: left;
                    flex: 1;

                    .modal-title {
                        font-size: 2.2em;
                        font-weight: bold;
                        margin-bottom: 10px;
                        color: #ea25e0;
                        letter-spacing: 2px;
                    }

                    .modal-category {
                        color: rgba(255, 255, 255, 0.7);
                        font-size: 1.1em;
                        text-transform: uppercase;
                        letter-spacing: 1px;
                        margin-bottom: 10px;
                    }

                    .modal-price {
                        color: #ea25e0;
                        font-size: 1.5em;
                        font-weight: bold;
                    }
                }
            }

            .modal-details {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 20px;
                margin: 30px 0;

                .detail-section {
                    text-align: left;

                    h4 {
                        color: #ea25e0;
                        font-size: 1.2em;
                        margin-bottom: 15px;
                        letter-spacing: 1px;
                        border-bottom: 1px solid rgba(234, 37, 224, 0.3);
                        padding-bottom: 5px;
                    }

                    .detail-item {
                        display: flex;
                        justify-content: space-between;
                        margin: 10px 0;
                        padding: 8px 0;
                        border-bottom: 1px solid rgba(255, 255, 255, 0.1);

                        .detail-label {
                            color: rgba(255, 255, 255, 0.8);
                            font-weight: 500;
                            min-width: 120px;
                        }

                        .detail-value {
                            color: #ea25e0;
                            font-weight: bold;
                            text-align: right;
                        }
                    }
                }
            }

            .modal-description {
                text-align: left;
                color: rgba(255, 255, 255, 0.8);
                line-height: 1.6;
                font-size: 1.1em;
                margin-top: 20px;
                padding: 20px;
                background: rgba(234, 37, 224, 0.05);
                border-radius: 10px;
                border-left: 4px solid #ea25e0;
            }
        }
    }
}

/* Animations */
@keyframes titleGlow {
    0% { 
        text-shadow: 0 0 8px rgba(234, 37, 224, 0.6), 0 0 16px rgba(234, 37, 224, 0.4); 
    }
    100% { 
        text-shadow: 0 0 12px rgba(234, 37, 224, 0.8), 0 0 24px rgba(234, 37, 224, 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);
    }
}

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

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

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

            .equipment-grid {
                grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
                gap: 30px;

                .equipment-card {
                    height: 380px;
                }
            }
        }

        .modal {
            .modal-content {
                .modal-details {
                    grid-template-columns: 1fr;
                    gap: 15px;
                }

                .modal-header {
                    flex-direction: column;
                    text-align: center;

                    .modal-title-section {
                        text-align: center;
                    }
                }
            }
        }
    }
}

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

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

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

            .equipment-grid {
                grid-template-columns: 1fr;
                gap: 25px;
                max-width: 400px;

                .equipment-card {
                    height: 350px;
                }
            }

            .filter-tabs {
                gap: 10px;
                margin-bottom: 30px;

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

        .stats-section {
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }
        }

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

                .modal-header {
                    .modal-image {
                        width: 120px;
                        height: 120px;
                    }

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

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

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

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

            .equipment-grid {
                max-width: 100%;
                gap: 20px;

                .equipment-card {
                    height: 320px;

                    .equipment-info {
                        padding: 20px;

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

        .stats-section {
            .stats-grid {
                grid-template-columns: 1fr;
                gap: 15px;

                .stat-item {
                    .stat-number {
                        font-size: 2em;
                    }
                }
            }
        }

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

                .modal-header {
                    .modal-image {
                        width: 100px;
                        height: 100px;
                    }

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