/* ======== BASE ======== */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #2c043d;
    background: url('fuji.jpg') center/cover fixed no-repeat;
}

/* Éléments transparents */
section, header, .hero, footer {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem auto;
    width: 90%;
    max-width: 1100px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

nav a {
    margin-right: 1rem;
    color: #b4005d;
    text-decoration: none;
    font-weight: bold;
}

#cart-icon {
    font-size: 1.3rem;
    cursor: pointer;
}
#cart-count {
    background: #ff4aa4;
    padding: 3px 7px;
    border-radius: 30px;
    color: white;
}

/* HERO */
.hero {
    text-align: center;
}
.hero .btn {
    margin-top: 1rem;
}

/* BOUTONS */
.btn {
    padding: 0.7rem 1.3rem;
    background: #ff6aa9;
    border: none;
    border-radius: 25px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.btn:hover {
    background: #ff3e88;
    transform: translateY(-2px);
}

/* CATALOGUE PRODUITS */
.products {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}
.product-card {
    width: 260px;
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
}
.product-card img {
    width: 100%;
    border-radius: 12px;
    height: 180px;
    object-fit: cover;
}

/* ANIMATION BOUTON PANIER */
.add-to-cart:active {
    transform: scale(0.95);
}

/* PANIER */
#cart-section {
    text-align: center;
}

/* PÉTALES SAKURA */
.sakura-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -10vh;
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at 30% 30%, #ffe6f2 0, #ff9bc2 40%, #ff5b8a 100%);
    border-radius: 70% 10% 70% 10%;
    opacity: 0.8;
    animation: fall 12s linear infinite;
}

@keyframes fall {
    0% { transform: translateY(-10vh) rotateZ(0); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translateY(110vh) rotateZ(360deg); opacity: 0; }
}

/* Supprimer anciennes bulles */
.side-pokemon { display: none !important; }

/* Petit pop sur bouton */
.add-to-cart.active-pop {
    transform: scale(1.05);
    transition: 0.15s;
}

/* Jeton volant */
.flying-chip {
    position: fixed;
    width: 20px;
    height: 20px;
    background: #ff6aa9;
    border-radius: 50%;
    z-index: 9999;
    transition: 0.6s ease-out;
}

/* Mini pétales confettis */
.mini-sakura {
    position: fixed;
    top: 50%;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #ffe6f2 0%, #ff9bc2 50%, #ff5b8a 100%);
    border-radius: 70% 10% 60% 20%;
    opacity: 0.9;
    animation: miniFall linear forwards;
}

@keyframes miniFall {
    0% { transform: translateY(0) rotate(0deg); opacity:1; }
    100% { transform: translateY(80px) rotate(180deg); opacity:0; }
}

/* ===== POPUP PANIER ===== */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9999;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    padding: 1.75rem 2rem;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    max-width: 420px;
    width: 90%;
    color: #2b1033;
}

.cart-modal h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    text-align: center;
}

.cart-modal p {
    margin-top: 0.25rem;
    text-align: center;
}

.cart-close {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    border: none;
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
    color: #ff3e88;
}

.cart-modal ul {
    list-style: none;
    padding-left: 0;
}

.cart-modal li {
    font-size: 0.95rem;
}

