  .page {
            display: none;
            min-height: 100vh;
        }

        .page.active {
            display: block;
        }


        .shop-section {
            padding: 4rem 0 2rem;
            position: relative;
            
            z-index: 2;
        }

        .shop-title {
            text-align: center;
            margin-bottom: 4rem;
        }

        .shop-title h1 {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 4rem;
            font-weight: 900;
            background: linear-gradient(135deg, #ffffff 0%, #ffffff 50%, #4facfe 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 1rem;
        }

        .shop-title p {
            font-size: 1.2rem;
            color: var(--text-secondary);
        }

        .products-container {
  max-width:80%; 
            
            margin: 0 auto;
            padding: 0 2rem;
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
            gap: 2rem;
            margin-bottom: 4rem;
        }


        .product-thumbnail {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.product-card:hover .product-thumbnail img {
    transform: scale(1.05);
}


        .product-card {
            background: var(--card-gradient);
            border-radius: 20px;
            border: 2px solid var(--glass-border);
            backdrop-filter: blur(20px);
            overflow: hidden;
            transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
            position: relative;
        }

        .product-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 30px 80px rgba(79, 172, 254, 0.3);
            border-color: rgba(79, 172, 254, 0.5);
        }

        .product-placeholder {
            font-size: 4rem;
            color: var(--text-secondary);
            opacity: 0.5;
        }

        .product-status {
            position: absolute;
            top: 1rem;
            right: 1rem;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            backdrop-filter: blur(10px);
        }

        .status-available {
            background: rgba(34, 197, 94, 0.2);
            border: 1px solid rgba(34, 197, 94, 0.4);
            color: #22c55e;
        }

        .status-maintenance {
            background: rgba(251, 191, 36, 0.2);
            border: 1px solid rgba(251, 191, 36, 0.4);
            color: #fbbf24;
        }

        .status-unavailable {
            background: rgba(239, 68, 68, 0.2);
            border: 1px solid rgba(239, 68, 68, 0.4);
            color: #ef4444;
        }

        .product-content {
            padding: 2rem;
        }

        .product-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1rem;
        }

        .product-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-primary);
        }

        .product-price {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.3rem;
            font-weight: 700;
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .product-description {
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .product-features {
            list-style: none;
            margin-bottom: 2rem;
        }

        .product-features li {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        .product-features i {
            color: var(--text-accent);
            font-size: 0.8rem;
        }

        .product-buttons {
            display: flex;
            gap: 1rem;
        }

        .btn-details {
            flex: 1;
            background: var(--glass-bg);
            color: white;
            border: 2px solid var(--glass-border);
            padding: 0.8rem 1.5rem;
            border-radius: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(20px);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .btn-details:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
        }

        .back-button {
       position: fixed !important;
    bottom: 2rem;
    left: 2rem;
            background: var(--card-gradient);
            border: 2px solid var(--glass-border);
            backdrop-filter: blur(20px);
            color: var(--text-primary);
            border-radius: 50px;
            padding: 1rem 2rem;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 1000;
            display: none;
            align-items: center;
            gap: 0.8rem;
            font-weight: 600;
            font-size: 1rem;
        }

        .back-button.show {
            display: flex;
        }

        .back-button:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
            box-shadow: 0 15px 40px rgba(79, 172, 254, 0.3);
            border-color: rgba(79, 172, 254, 0.5);
        }

        .back-button i {
            font-size: 1.2rem;
            color: var(--text-accent);
        }

        /* Product Detail Page */
        .product-detail {
            padding: 6rem 0 2rem;
            position: relative;
            z-index: 2;
            margin-top: 10px !important;
        }

        .detail-container {
        max-width:80%; 
            margin: 0 auto;
            padding: 0 2rem;
        }

        .detail-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .detail-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 3.5rem;
            font-weight: 900;
            background: linear-gradient(135deg, #ffffff 0%, #4facfe 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .detail-price {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 2rem;
            font-weight: 700;
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .detail-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-top: 2% !important;
        }

        .detail-main {
            background: var(--card-gradient);
            border-radius: 25px;
            border: 2px solid var(--glass-border);
            backdrop-filter: blur(20px);
            padding: 3rem;
        }

        .detail-main h2 {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.8rem;
            color: var(--text-primary);
            margin-bottom: 1.5rem;
        }

        .detail-main p {
            color: var(--text-secondary);
            margin-bottom: 2rem;
            line-height: 1.8;
            font-size: 1.1rem;
        }

        /* Media Gallery Styles */
        .media-gallery {
            margin: 2.5rem 0;
        }

        .media-tabs {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .media-tab {
            padding: 0.8rem 1.5rem;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .media-tab.active {
            background: var(--accent-gradient);
            color: white;
        }

        .media-tab:hover:not(.active) {
            background: rgba(255, 255, 255, 0.15);
            border-color: var(--text-accent);
        }

        .media-content {
            display: none;
        }

        .media-content.active {
            display: block;
        }

        .media-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
            gap: 1rem;
        }

/* Conteneur média (images + vidéos) */
.media-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* ratio 16:9 pour toutes les vidéos */
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Iframe YouTube et vidéos */
.media-item iframe,
.media-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

/* Overlay pour le titre et le bouton play */
.media-overlay-title,
.video-play-overlay {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 5px #000;
}

.video-play-overlay {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    pointer-events: none;
}

        .media-item:hover {
            transform: scale(1.05);
            border-color: var(--text-accent);
            box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
        }

        .media-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 15px;
        }

        .media-item video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 15px;
        }

        .media-placeholder {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            color: var(--text-secondary);
            text-align: center;
            padding: 2rem;
        }

        .media-placeholder i {
            font-size: 3rem;
            color: var(--text-accent);
        }

        .media-placeholder .media-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .media-placeholder .media-description {
            font-size: 0.9rem;
            opacity: 0.7;
        }



        /* Overlay pour les titres sur images */
        .media-overlay-title {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
            color: white;
            padding: 2rem 1rem 1rem;
            font-size: 0.9rem;
            font-weight: 600;
            text-align: center;
            backdrop-filter: blur(5px);
            transition: opacity 0.3s ease;
        }

        /* Overlay pour le bouton play sur vidéos */
        .video-play-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.8);
            border-radius: 50%;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        .media-item:hover .video-play-overlay {
            background: var(--accent-gradient);
            transform: translate(-50%, -50%) scale(1.1);
            border-color: rgba(255, 255, 255, 0.6);
        }

        .media-item:hover .media-overlay-title {
            opacity: 0.9;
        }

        .video-container {
            width: 100%;
            height: 100%;
            background: #000;
        }

        .feature-list {
            list-style: none;
        }

        .feature-list li {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
            color: var(--text-secondary);
            font-size: 1rem;
        }

        .feature-list i {
            color: var(--text-accent);
            font-size: 1.2rem;
            width: 20px;
        }

        .detail-specs {
            background: var(--card-gradient);
            border-radius: 25px;
            border: 2px solid var(--glass-border);
            backdrop-filter: blur(20px);
            padding: 3rem;
        }

        .spec-section {
            margin-bottom: 2.5rem;
        }

        .spec-section:last-child {
            margin-bottom: 0;
        }

        .spec-section h3 {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.4rem;
            color: var(--text-primary);
            margin-bottom: 1rem;
        }

        .specs-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .spec-item {
            text-align: center;
            background: rgba(255, 255, 255, 0.05);
            padding: 1.5rem;
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .spec-item i {
            font-size: 2rem;
            color: var(--text-accent);
            margin-bottom: 0.8rem;
            display: block;
        }

        .spec-label {
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin-bottom: 0.5rem;
        }

        .spec-value {
            font-weight: 600;
            color: var(--text-primary);
            font-size: 1rem;
        }

        .purchase-section {
            background: var(--card-gradient);
            border-radius: 25px;
            border: 2px solid var(--glass-border);
            backdrop-filter: blur(20px);
            padding: 3rem;
            text-align: center;
        }

        .purchase-section h2 {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 2rem;
            color: var(--text-primary);
            margin-bottom: 2rem;
        }

        .purchase-btn {
                   background: var(--card-gradient);
            color: white;
            border: none;
            padding: 1.5rem 4rem;
            border-radius: 20px;
            font-weight: 700;
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 1rem;
        }

        .purchase-btn:hover {
background-color:#ffffff1a ;
            transform: translateY(-5px);
        }

        .purchase-btn:disabled {
            background: var(--glass-bg);
            cursor: not-allowed;
            opacity: 0.6;
        }

  /* Conteneur vidéo responsive dans la modal */
.modal-body {
  width: 90vw !important;
  max-width: 100% !important;
  max-height: 80vh!important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modal-body iframe,
.modal-body video {
  width: 100%!important;
  height: 100%!important;
  border-radius: 15px;
  object-fit: contain;
}




        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.9);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 10000;
            backdrop-filter: blur(20px);
        }

        .modal-overlay.active {
            display: flex;
        }

.modal-content {
  width: 95vw;
  max-width: 1200px;
  max-height: none !important;
  padding: 0; /* enlève le padding qui rétrécit la vidéo */
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent; /* tu peux garder le gradient si tu veux */
  border: none;
}


        .modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: var(--glass-bg);
            border: 2px solid var(--glass-border);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--text-primary);
            transition: all 0.3s ease;
        }

        .modal-close:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: rotate(90deg);
        }


        

        @keyframes ripple {
            to {
                transform: scale(2);
                opacity: 0;
            }
        }





        









/* Large Screens (1440px - 2000px) */
@media (max-width: 1440px) {
    .products-container {
        max-width: 75%;
        padding: 0 2rem;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
    .product-title {
        font-size: 1.5rem;
    }
    .product-price {
        font-size: 1.3rem;
    }
    .detail-title {
        font-size: 3.5rem;
    }
    .detail-price {
        font-size: 2rem;
    }
}

/* Medium Screens (1024px - 1440px) */
@media (max-width: 1024px) {
    .products-container {
        max-width: 90%;
        padding: 0 1.5rem;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.8rem;
    }
    .product-thumbnail {
        height: 220px;
    }
    .detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .detail-main,
    .detail-specs,
    .purchase-section {
        padding: 2rem;
    }
    .detail-title {
        font-size: 3rem;
    }
    .detail-price {
        font-size: 1.8rem;
    }
}

/* Small Screens / Tablets (800px - 1024px) - Empilement vertical */
@media (max-width: 800px) {
    .products-container {
        max-width: 95%;
        padding: 0 1rem;
    }
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    .product-thumbnail {
        height: 200px;
    }
    .product-buttons {
        flex-direction: column !important;
        gap: 0.8rem;
    }
    .btn-details {
        width: 100%;
        justify-content: center;
    }
    .product-title {
        font-size: 1.3rem;
    }
    .product-price {
        font-size: 1.1rem;
    }
    .detail-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    .detail-main,
    .detail-specs,
    .purchase-section {
        padding: 2rem;
    }
    .detail-title {
        font-size: 2.5rem;
    }
    .detail-price {
        font-size: 1.6rem;
    }
    .media-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    .media-item {
        aspect-ratio: auto;
        height: 180px;
    }
   .purchase-section {
        display: flex;
        flex-direction: column; /* empile les boutons verticalement */
        gap: 1rem; /* espace entre les boutons */
        align-items: stretch; /* prend toute la largeur disponible */
    }

    .purchase-section .purchase-btn {
        width: 100%; /* chaque bouton prend toute la largeur */
    }
    .back-button {
        bottom: 1rem;
        left: 1rem;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* Extra Small Screens / Large Mobile (480px - 800px) */
@media (max-width: 480px) {
    .product-thumbnail {
        height: 180px;
    }
    .product-title {
        font-size: 1.2rem;
    }
    .product-price {
        font-size: 1rem;
    }
    .detail-title {
        font-size: 2rem;
    }
    .detail-price {
        font-size: 1.4rem;
    }
    .detail-content {
        gap: 1rem;
    }
    .detail-main,
    .detail-specs,
    .purchase-section {
        padding: 1.5rem;
    }
    .media-grid {
        grid-template-columns: 1fr !important;
        gap: 0.8rem;
    }
}

/* Ultra Small Screens / Very Small Mobile (<360px) */
@media (max-width: 360px) {
    .product-thumbnail {
        height: 150px;
    }
    .product-title {
        font-size: 1rem;
    }
    .product-price {
        font-size: 0.9rem;
    }
    .detail-title {
        font-size: 1.8rem;
    }
    .detail-price {
        font-size: 1.2rem;
    }
    .back-button {
        bottom: 1rem;
        left: 1rem;
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    .purchase-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}
