* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, sans-serif;
    background: radial-gradient(circle at top, #140022, #0a0a0f);
    color: white;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(20,0,35,0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(45deg, #facc15, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* HAMBURGER */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 26px;
    height: 2px;
    background: #facc15;
    border-radius: 2px;
    transition: 0.3s;
}
/* MENU */
.menu {
    position: fixed;
    right: -260px;
    top: 0;
    height: 100%;
    width: 260px;
    background: rgba(35,0,60,0.95);
    backdrop-filter: blur(20px);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    transition: 0.4s ease;
    border-radius: 20px 0 0 20px; /* arrondi gauche */
}

.menu.active {
    right: 0;
}

.menu-header {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(45deg, #facc15, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    text-align: center;
}

.menu a {
    text-decoration: none;
    color: #facc15;
    font-size: 18px;
    transition: 0.2s;
    padding: 10px;
    border-radius: 12px;
}

.menu a:hover {
    background: rgba(250,204,21,0.2);
    color: #a855f7;
}

/* PRODUCTS */
.products {
    padding: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 40px;
}

.product {
    background: rgba(168,85,247,0.05);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 22px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid rgba(250,204,21,0.1);
    text-align: center; /* centré */
}

.product:hover {
    transform: translateY(-8px);
    border: 1px solid #facc15;
    box-shadow: 0 0 25px rgba(250,204,21,0.2);
}

.product img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 15px;
}

.product h3 {
    color: #a855f7;
    margin-bottom: 10px;
}

.product p {
    color: #facc15;
    font-weight: 600;
    border: 2px solid #facc15; /* encadre le prix */
    padding: 6px 12px;
    border-radius: 12px;
    display: inline-block; /* pour s’adapter à la largeur du texte */
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(145deg, #1a002e, #240042);
    padding: 40px;
    border-radius: 24px;
    width: 360px;
    text-align: center;
    animation: pop 0.25s ease;
    border: 1px solid rgba(250,204,21,0.2);
}

.modal img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 20px;
}

.buttons {
    margin-top: 20px;
}

/* BUTTONS */
.buy {
    background: linear-gradient(45deg, #facc15, #a855f7);
    border: none;
    padding: 12px 20px;
    border-radius: 14px;
    color: black;
    cursor: pointer;
    font-weight: 600;
    margin-top: 20px;
}

.buy:hover {
    opacity: 0.85;
}



/* ANIMATION */
@keyframes pop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ===================== */
/* 📱 MOBILE RESPONSIVE */
/* ===================== */

@media (max-width: 768px) {

    /* Navbar plus compacte */
    .navbar {
        padding: 15px 20px;
    }

    .logo-text {
        font-size: 18px;
    }

    /* Hamburger plus gros */
    .hamburger span {
        width: 28px;
        height: 3px;
    }

    /* Menu plein écran */
    .menu {
        width: 100%;
        right: -100%;
        border-radius: 0;
        padding-top: 80px;
        align-items: center;
    }

    .menu.active {
        right: 0;
    }

    .menu-header {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .menu a {
        font-size: 20px;
        width: 80%;
        text-align: center;
    }

    /* Produits en 1 colonne */
    .products {
        grid-template-columns: 1fr !important;
        padding: 20px;
    }

    /* Templates plus espacés */
    .product-card {
        padding: 25px;
    }

    /* Bouton Buy Now plus gros */
    .buy {
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }

    /* Modal adapté */
    .modal-content {
        width: 90%;
        padding: 25px;
    }

}

/* ===== FIX MENU SUPERPOSITION ===== */

.menu {
    z-index: 1000;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 900;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

.close-menu {
    position: absolute;
    right: 20px;
    top: 40px;
    font-size: 22px;
    cursor: pointer;
    color: #facc15;
}

.close-menu:hover {
    color: #a855f7;
}

/* Bloque le scroll quand menu ouvert */
body.menu-open {
    overflow: hidden;
}