/* ==========================================================================
   APPLE SOUNDS - STYLES PRINCIPAUX
   ========================================================================== */

/* --- VARIABLES & DESIGN TOKENS --- */
:root {
    --cloud-dancer: #F0F1EB;
    --ui-color: rgba(0, 0, 0, 0.3);
    --text-primary: #1d1d1f;
}

/* --- RESET & POLICE SYSTÈME APPLE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none !important;
}

html, body {
    background-color: var(--cloud-dancer);
    color: #000;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: none !important;
}

/* ==========================================================================
   CURSEUR PERSONNALISÉ (LOGIQUE EXACTE PORTFOLIO JASON)
   ========================================================================== */
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.06);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), height 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: left, top;
}

.cursor-follower.active {
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.5);
}

.cursor-follower.grabbing {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.8);
}

@media (max-width: 1024px), (pointer: coarse) {
    .cursor-follower {
        display: none !important;
    }

    * {
        cursor: auto !important;
    }
}

/* ==========================================================================
   SCÈNE D'ACCROCHE (INTRO)
   ========================================================================== */
.scene {
    position: absolute;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--cloud-dancer);
    z-index: 10;
}

#finale {
    font-size: clamp(2.2rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-align: center;
    padding: 0 20px;
}

.music-gradient {
    background: linear-gradient(135deg, #a3db4b, #4bc2db, #4b88db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   OVERLAY DE TRANSITION
   ========================================================================== */
#transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(180deg, #a3db4b, #4bc2db, #4b88db);
    transform: scaleY(0);
    transform-origin: bottom;
    z-index: 20;
    pointer-events: none;
}

/* ==========================================================================
   INTERFACE PRINCIPALE DES PRODUITS
   ========================================================================== */
#new-interface {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    z-index: 5;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 60px;
    text-align: center;
}

/* Grille fluide des 4 produits */
.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    flex-wrap: nowrap;
}

/* Cartes produits */
.product-image {
    width: 100%;
    max-width: 220px;
    height: 280px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--ui-color);
    border-radius: 32px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, border-color 0.3s ease;
    will-change: transform;
}

.product-image:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   PARTICULES D'EXPLOSION (CLIC PRODUIT)
   ========================================================================== */
.particle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
}

/* ==========================================================================
   RESPONSIVE (TABLETTES & MOBILES)
   ========================================================================== */
@media (max-width: 900px) {
    .image-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 500px;
    }

    .product-image {
        max-width: 100%;
        height: 200px;
        padding: 16px;
    }

    .section-title {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .image-container {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .product-image {
        height: 160px;
        border-radius: 20px;
        padding: 12px;
    }
}
