/* --- VARIABLES --- */
:root {
    --soft-coral: #F7BEA2;
    --bisque-coral: #EF7A6C;
    --dusty-coral: #EA6676;
    --white-coral: #FBECDE;
    --white-pure: #FFFFFF;
    --black-pure: #000000;
    --blue-releases: #7ee8fa;
    --purple-shop: #B584FA;
    --font-main: 'DynaPuff', cursive;
    --font-alt: 'Quicksand', sans-serif;
    --transition: all 0.3s ease;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { 
    scroll-behavior: smooth; 
    color-scheme: dark;
}
body {
    background: var(--black-pure);
    color: var(--white-coral);
    font-family: var(--font-alt);
    overflow-x: hidden;
    line-height: 1.5;
}
a { text-decoration: none; transition: var(--transition); }
main { position: relative; z-index: 2; }

/* --- STRUCTURE --- */
.full-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
    text-align: center;
}
.inner-content { display: flex; flex-direction: column; align-items: center; width: 100%; }
h2 { font-family: var(--font-main); font-size: 2.5rem; margin-bottom: 30px; text-transform: uppercase; }

/* Utilitaires de texte */
.text-coral { color: var(--soft-coral); }
.text-releases { color: var(--bisque-coral); }
.text-support { color: var(--blue-releases); }
.text-shop { color: var(--purple-shop); }

/* --- HEADER & NAV --- */
header {
    position: fixed;
    top: 20px; 
    left: 50%; 
    transform: translateX(-50%);
    width: 95%; 
    max-width: 1100px; 
    z-index: 1000;
}
nav {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border-radius: 100px; 
    padding: 10px 25px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.25), 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}
nav .logo { font-family: var(--font-main); font-size: 1.8rem; color: var(--white-pure); font-weight: 700; }
.nav-links { display: flex; list-style: none; gap: 15px; }

/* --- BOUTONS & LIENS --- */
.nav-btn, .stream-link, .support-main-btn, .btn-shop-buy {
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 400 !important;
    padding: 8px 18px;
    border: 2px solid transparent;
    border-radius: 12px;
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

/* Couleurs État Normal */
.btn-listen, .btn-releases { color: var(--soft-coral) !important; }
.stream-link { background: var(--soft-coral); color: var(--black-pure) !important; }
.btn-support, .support-main-btn { background: var(--blue-releases); color: var(--black-pure) !important; }
.btn-shop, .btn-shop-buy { background: var(--purple-shop); color: var(--black-pure) !important; }

/* Couleurs État Survol */
.stream-link:hover {
    background: transparent !important;
    border-color: var(--white-pure) !important;
    color: var(--soft-coral) !important;
}
.btn-support:hover, .support-main-btn:hover {
    background: transparent !important;
    border-color: var(--white-pure) !important;
    color: var(--blue-releases) !important;
}
.btn-shop:hover, .btn-shop-buy:hover {
    background: transparent !important;
    border-color: var(--white-pure) !important;
    color: var(--purple-shop) !important;
}

/* --- HERO & COUNTERS --- */
.hero-logo { width: 400px; max-width: 80%; animation: floating 4s ease-in-out infinite; mix-blend-mode: screen; filter: brightness(1.1); }
.hero h1 { font-family: var(--font-main); font-size: clamp(3rem, 10vw, 8rem); margin: 20px 0 10px; color: var(--white-pure); }
.hero-numbers { display: flex; gap: 80px; margin-top: 60px; }
.counter { font-family: var(--font-main); font-size: 3.5rem; color: var(--white-pure); text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
.counter.purple { text-shadow: 0 0 20px rgba(191, 90, 242, 0.6); }

/* --- GRIDS & CARDS --- */
.streaming-grid, .releases-grid, .shop-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; width: 100%; }
.album-main-card, .release-card, .product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px; padding: 20px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}
.album-main-card:hover, .release-card:hover { border-color: var(--soft-coral); transform: translateY(-5px); }
.product-card:hover { border-color: var(--purple-shop); transform: translateY(-10px); }

.product-image { width: 100%; height: 260px; border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover img { transform: scale(1.05); }

/* --- ANIMATIONS & LUMIÈRES --- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.2s ease-out, transform 1.2s ease-out; will-change: opacity, transform; }
.reveal.active { opacity: 1; transform: translateY(0); }

.abyssal-light {
    position: fixed; z-index: 0; width: 3px; height: 3px; border-radius: 50%; pointer-events: none;
    animation: drift var(--duration) ease-in-out infinite alternate;
    background: rgba(255, 255, 255, 0.9); box-shadow: 0 0 12px 3px rgba(255, 255, 255, 0.5); 
    will-change: transform, opacity;
}
#support-page .abyssal-light { background: var(--blue-releases); box-shadow: 0 0 12px 3px rgba(126, 232, 250, 0.5); }
#shop-page .abyssal-light { background: var(--purple-shop); box-shadow: 0 0 12px 3px rgba(181, 132, 250, 0.5); }

@keyframes floating { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes drift { 0% { transform: translate3d(0, 0, 0); opacity: 0.2; } 100% { transform: translate3d(var(--move-x), var(--move-y), 0); opacity: 0.9; } }

/* --- FOOTER --- */
footer {
    padding: 100px 20px 60px; text-align: center;
    background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-logo {
    font-family: var(--font-main);
    color: var(--white-pure);
    font-size: 2rem;
    margin-bottom: 10px;
}
.footer-socials { display: flex; justify-content: center; gap: 25px; margin: 30px 0; }
.footer-socials a {
    color: var(--soft-coral) !important;
    font-size: 1.6rem;
    transition: var(--transition);
}
.footer-socials a:hover {
    color: var(--white-pure) !important;
    transform: translateY(-3px);
}
.footer-bottom { font-size: 0.9rem; opacity: 0.8; }

/* --- CART SIDEBAR --- */
.badge {
    background: var(--white-pure);
    color: var(--black-pure);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 5px;
}

.cart-sidebar {
    position: fixed;
    top: 0; 
    right: -400px;
    width: 100%; 
    max-width: 350px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border-left: 1px solid var(--purple-shop);
    z-index: 9999 !important;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.cart-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998 !important;
    display: none;
    transition: var(--transition);
}
.cart-overlay.active { display: block; }
.cart-sidebar.open { right: 0; }

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

#close-cart {
    background: none;
    border: none;
    color: var(--white-pure);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

#close-cart:hover {
    color: var(--dusty-coral);
    transform: scale(1.1);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
}

.cart-item-details p { margin: 0; }
.cart-item-title { font-weight: 600; font-size: 0.95rem; }
.cart-item-price { font-size: 0.85rem; opacity: 0.7; }

.remove-item {
    color: var(--dusty-coral);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.remove-item:hover { color: var(--bisque-coral); }

.cart-footer {
    margin-top: auto;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: inherit;
}
#paypal-button-container {
    margin-top: 20px;
    width: 100%;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.cart-open { overflow: hidden; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem !important; }
    h2 { font-size: 1.8rem !important; }
    
    /* --- HEADER MOBILE --- */
    nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        border-radius: 20px;
    }

    /* --- GRILLES HARMONISÉES (Header + Page) --- */
    /* On applique la même grille de 2 colonnes et la même largeur max au menu ET aux boutons de la page */
    .nav-links, 
    .streaming-grid { 
        display: grid;
        grid-template-columns: 1fr 1fr; 
        gap: 10px;
        width: 100%;
        max-width: 320px; /* Empêche les boutons de s'étaler trop */
        margin: 0 auto;   /* Centre la grille dans la page */
    }

    /* Cas particulier : Le bouton Ko-fi est seul, on le centre et on limite sa largeur */
    .support-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    /* --- BOUTONS HARMONISÉS (Taille et Police) --- */
    .nav-btn, 
    .stream-link, 
    .support-main-btn, 
    .btn-shop-buy { 
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%; 
        max-width: 320px; /* Même largeur que le menu */
        min-height: 46px; /* Hauteur identique partout */
        padding: 0 15px !important;
        font-size: 0.8rem !important;
        white-space: nowrap;
    }

    /* --- AJUSTEMENTS DE MISE EN PAGE --- */
    .full-page {
        padding-top: 160px; 
    }

    .hero-numbers { gap: 20px; }
    .counter { font-size: 2rem; }
    
    .cart-sidebar {
        padding-top: 150px !important; 
        height: 100dvh !important; 
    }
}