/* ==========================================
   1. BASE & DIRECTION ARTISTIQUE COMMUNE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

html, body {
    width: 100%;
    min-height: 100%;
    min-height: 100dvh;
    background-color: #000000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    position: relative;
}

/* Arrière-plan WebGL fixe */
#canvas-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    z-index: 0;
    pointer-events: none;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.main-layout {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: clamp(18px, 4vw, 40px);
}

/* ==========================================
   2. SHADER TEXTE (ANTROPIK LABS & AUDIO LABORATORY)
   ========================================== */
.hero-title-stage {
    position: relative;
    transform: scaleX(1.05);
    padding: 0 clamp(8px, 3vw, 24px);
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: clamp(16px, 3.5vw, 28px);
}

.hero-title-stage::before {
    content: '';
    position: absolute;
    inset: -30% -10%;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.18), transparent 65%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

.hero-title {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-size: clamp(34px, 9vw, 76px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    text-align: center;
    line-height: 1.15;
    color: transparent;
    width: 100%;
}

#title-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.2));
}

/* Bouton Style Apple / Glassmorphism */
.about-intro {
    width: 100%;
    max-width: 760px;
    padding: 20px 22px;
    margin: 0 auto 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.about-intro h2 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
}

.about-intro p {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.63);
    font-weight: 300;
}

.apple-btn {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0px rgba(255, 255, 255, 0.08), 0 15px 35px rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 18px 48px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

.apple-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 20px 40px rgba(0, 0, 0, 0.7);
    transform: translateY(-2px);
}

.watermark {
    width: 100%;
    text-align: center;
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.18);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: clamp(24px, 4vw, 40px);
    padding-bottom: 4px;
}

/* ==========================================
   3. STYLES SPECIFIQUES PAGE PLUGINS
   ========================================== */
.plugins-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: clamp(12px, 2.5vw, 20px) auto 0 auto;
    gap: clamp(24px, 5vw, 40px);
}

.nav-header {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 8px;
}

.back-btn {
    padding: 12px 24px;
    font-size: 11px;
    border-radius: 10px;
    align-self: flex-start;
    margin-top: 2px;
    min-width: 104px;
    text-align: center;
}

/* Grille de cartes */
.plugins-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    width: 100%;
}

/* Cartes (Glassmorphism étendu) */
.plugin-card {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: clamp(18px, 3vw, 24px);
    padding: clamp(20px, 4vw, 35px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0px rgba(255, 255, 255, 0.05);
    min-width: 0;
}

.plugin-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.07), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.plugin-card:hover {
    border-color: rgba(124, 58, 237, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 40px 80px rgba(124, 58, 237, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.plugin-card:hover::before {
    opacity: 1;
}

/* Gestion des images des plugins */
.plugin-img-wrapper {
    width: 100%;
    height: clamp(160px, 32vw, 220px);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: clamp(16px, 3vw, 24px);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.plugin-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.plugin-card:hover .plugin-img {
    transform: scale(1.04);
}

/* Métadonnées internes */
.plugin-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-bottom: 18px;
}

.badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 30px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.25);
    color: #a78bfa;
}

.price {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

.plugin-name {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.plugin-tagline {
    font-size: clamp(13px, 2.1vw, 14px);
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
    margin-bottom: 24px;
    font-weight: 300;
}

/* Listes de caractéristiques */
.plugin-features {
    list-style: none;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.plugin-features li {
    font-size: clamp(12px, 1.8vw, 13px);
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
}

.plugin-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: rgba(124, 58, 237, 0.7);
    font-weight: bold;
}

.plugin-features strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.card-btn {
    width: 100%;
    text-align: center;
}

/* ==========================================
   4. RESPONSIVE
   ========================================== */
@media (max-width: 900px) {
    .plugins-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .main-layout {
        padding: 24px 18px;
    }
    .plugin-img-wrapper {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .main-layout {
        padding: 18px 14px 24px;
    }
    .about-intro {
        padding: 16px 18px;
    }
    .about-intro p {
        font-size: 12px;
    }
    .nav-header {
        justify-content: flex-start;
        margin-bottom: 10px;
    }
    .back-btn {
        margin-top: 0;
        padding: 10px 18px;
        min-width: 92px;
        border-radius: 999px;
    }
    .apple-btn {
        padding: 14px 34px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .main-layout {
        padding: 16px 12px 20px;
    }
    .nav-header {
        margin-bottom: 12px;
    }
    .back-btn {
        padding: 10px 16px;
        min-width: 88px;
        border-radius: 999px;
    }
}