/* =====================================================================
   M'Script — style.css (SPA finale)
   ===================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --pink: #ec4899;
    --pink-dark: #be185d;
    --pink-soft: rgba(236, 72, 153, 0.15);
    --bg: #0a0a0f;
    --bg-card: rgba(20, 20, 28, 0.7);
    --bg-card-solid: #15151c;
    --bg-input: rgba(0, 0, 0, 0.4);
    --border: rgba(255, 255, 255, 0.05);
    --border-strong: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-muted: #a0a0a8;
    --text-soft: #8a8a92;
    --text-dim: #6b6b75;
    --text-faint: #5a5a65;
    --green: #22c55e;
    --gold: #eab308;
    --blue: #3b82f6;
    --red: #ef4444;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed; inset: 0;
    background: radial-gradient(ellipse at center top, rgba(236, 72, 153, 0.18) 0%, transparent 50%),
                radial-gradient(ellipse at center, rgba(40, 5, 25, 0.6) 0%, var(--bg) 80%);
    pointer-events: none; z-index: 0;
}

.stars { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.star  { position: absolute; background: #ffffff; border-radius: 50%; opacity: 0; animation: twinkle 4s infinite ease-in-out; }
@keyframes twinkle { 0%, 100% { opacity: 0; } 50% { opacity: var(--opacity, 0.8); } }

/* ====== Header ====== */
.header {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 50px;
    width: 100%;
    backdrop-filter: blur(10px);
}

.logo { display: flex; align-items: center; text-decoration: none; cursor: pointer; gap: 12px; }
.logo-img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; transition: transform 0.3s ease; }
.logo:hover .logo-img { transform: scale(1.05); }
.logo-text { color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -0.5px; }
.logo-text .accent { color: var(--pink); }

.nav-menu {
    position: absolute; left: 50%; transform: translateX(-50%);
    display: flex; gap: 5px;
    background: var(--bg-card); backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 50px; padding: 8px 15px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.5px;
    padding: 10px 18px; border-radius: 50px;
    transition: all 0.3s ease;
    background: none; border: none;
    cursor: pointer;
    font-family: inherit;
    position: relative;
}

.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; }
.nav-link.active::after {
    content: ''; position: absolute; bottom: 4px; left: 50%;
    transform: translateX(-50%);
    width: 20px; height: 2px; background: var(--pink); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.btn-pill {
    background: var(--bg-card); border: 1px solid var(--border);
    color: #fff; padding: 10px 18px; border-radius: 50px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
    cursor: pointer; display: flex; align-items: center; gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none; font-family: inherit;
}
.btn-pill:hover { background: rgba(40, 40, 48, 0.8); }

.btn-login {
    background: var(--bg-card); border: 1px solid var(--border);
    color: #fff; width: 44px; height: 44px; border-radius: 50%;
    cursor: pointer; transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
}
.btn-login:hover {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}
.btn-login svg { width: 20px; height: 20px; }

.btn-account {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
    border: none; color: #fff;
    padding: 11px 18px; border-radius: 50px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
    cursor: pointer; display: flex; align-items: center; gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.3);
    font-family: inherit;
}
.btn-account:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(236, 72, 153, 0.5); }
.btn-account .avatar-mini {
    width: 22px; height: 22px; border-radius: 50%; object-fit: cover;
    border: 1.5px solid rgba(255,255,255,0.4);
}

/* ====== SPA pages ====== */
.page-view { display: none; animation: fadeUp 0.45s ease both; }
.page-view.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ====== Hero ====== */
.hero {
    position: relative; z-index: 5;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 80px 20px 60px;
    max-width: 1200px; margin: 0 auto;
}

.hero-title {
    font-size: 72px; font-weight: 800; line-height: 1.1;
    letter-spacing: -2px; margin-bottom: 30px; color: #fff;
}
.hero-title .accent { color: var(--pink); }
.hero-title .muted  { color: var(--text-dim); }
.typewriter-line { min-height: 1.5em; }
.typewriter-cursor::after {
    content: ""; display: inline-block; width: 2px; height: 1em;
    margin-left: 0.18em; vertical-align: -0.12em;
    background: var(--pink); animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hero-subtitle {
    font-size: 16px; color: var(--text-soft); line-height: 1.6;
    max-width: 720px; margin-bottom: 50px; font-weight: 400;
}

.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }

.btn-primary {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
    color: #fff; border: none; padding: 16px 36px; border-radius: 50px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.5);
    text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
    font-family: inherit;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(236, 72, 153, 0.7); }

.btn-secondary {
    background: var(--bg-card); border: 1px solid var(--border-strong); color: #fff;
    padding: 16px 32px; border-radius: 50px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    display: inline-flex; align-items: center; gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none; font-family: inherit;
}
.btn-secondary:hover { background: rgba(40,40,48,0.9); transform: translateY(-2px); }

.hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px; margin-top: 56px; width: 100%; max-width: 800px;
}
.hero-stat {
    background: var(--bg-card); backdrop-filter: blur(10px);
    border: 1px solid var(--border); border-radius: 20px;
    padding: 22px; text-align: center;
}
.hero-stat-value { font-size: 32px; font-weight: 800; color: #fff; }
.hero-stat-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-soft); margin-top: 4px; }

.hero-line {
    position: relative; z-index: 5;
    width: 80%; max-width: 1400px; margin: 30px auto;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(236, 72, 153, 0.5) 50%, transparent 100%);
}

/* ====== Section générale ====== */
.section {
    position: relative; z-index: 5;
    max-width: 1300px; margin: 0 auto;
    padding: 60px 50px;
}
.section-title {
    text-align: center; font-size: 42px; font-weight: 800;
    color: #fff; letter-spacing: -1px; margin-bottom: 12px;
}
.section-title .accent { color: var(--pink); }
.section-sub {
    text-align: center; color: var(--text-soft); font-size: 14px;
    max-width: 600px; margin: 0 auto 50px; line-height: 1.6;
}

/* ====== Trust badges ====== */
.trust-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px; margin-top: 20px;
}
.trust-card {
    display: flex; align-items: center; gap: 16px;
    background: var(--bg-card); backdrop-filter: blur(10px);
    border: 1px solid var(--border); border-radius: 18px;
    padding: 20px 22px;
    transition: all 0.3s ease;
}
.trust-card:hover { border-color: rgba(236, 72, 153, 0.3); transform: translateY(-2px); }
.trust-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--pink-soft); color: var(--pink); flex-shrink: 0;
}
.trust-card-info p { color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.trust-card-info span { color: var(--text-soft); font-size: 12px; }

/* ====== Promo banner ====== */
.promo-banner {
    background: linear-gradient(135deg, rgba(236,72,153,0.15) 0%, rgba(190,24,93,0.1) 100%);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 20px;
    padding: 22px 28px;
    display: flex; align-items: center; gap: 18px;
    max-width: 1200px; margin: 0 auto 30px;
    position: relative; z-index: 5;
}
.promo-banner-badge {
    background: var(--pink); color: #fff;
    padding: 6px 14px; border-radius: 50px;
    font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
    flex-shrink: 0;
}
.promo-banner-msg { color: #fff; font-size: 14px; font-weight: 600; flex: 1; }
.promo-banner-pct { color: var(--pink); font-size: 22px; font-weight: 800; }

/* ====== Products grid ====== */
.products-page { max-width: 1400px; margin: 0 auto; padding: 40px 50px 80px; position: relative; z-index: 5; }

.search-bar {
    position: relative; max-width: 900px; margin: 0 auto 40px;
    display: flex; align-items: center;
    background: var(--bg-card); backdrop-filter: blur(10px);
    border: 1px solid var(--border); border-radius: 50px;
    padding: 6px 24px;
    transition: border-color 0.3s ease;
}
.search-bar:focus-within { border-color: rgba(236, 72, 153, 0.4); }
.search-icon { color: var(--text-muted); margin-right: 12px; flex-shrink: 0; }
.search-input {
    flex: 1; background: transparent; border: none; outline: none;
    color: #fff; font-size: 14px; font-family: inherit;
    padding: 16px 0;
}
.search-input::placeholder { color: var(--text-dim); }

.catalog-filters {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 10px; margin: 0 auto 32px; max-width: 900px;
}
.catalog-filter {
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 20px; border-radius: 50px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
    cursor: pointer; transition: all 0.3s ease;
    font-family: inherit;
}
.catalog-filter:hover { color: #fff; }
.catalog-filter.active {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
    color: #fff; border-color: transparent;
    box-shadow: 0 4px 16px rgba(236,72,153,0.3);
}

.products-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--bg-card); backdrop-filter: blur(10px);
    border: 1px solid var(--border); border-radius: 16px;
    overflow: visible; position: relative;
    transition: all 0.3s ease;
    display: flex; flex-direction: column;
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-4px); border-color: rgba(236, 72, 153, 0.3);
    box-shadow: 0 12px 40px rgba(236, 72, 153, 0.15);
}
.product-image {
    position: relative; aspect-ratio: 16 / 9; overflow: hidden;
    border-radius: 16px 16px 0 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1a1a24 0%, #2a1530 100%);
}
.product-image img {
    width: 100%; height: 100%; object-fit: cover;
}
.product-image-placeholder {
    color: #fff; font-weight: 800; font-size: 22px;
    letter-spacing: 1px; text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    text-align: center; padding: 0 20px;
}
.product-watermark {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px; border-radius: 8px;
    opacity: 0.85;
}
.product-cat-badge {
    position: absolute; top: 14px; left: 14px;
    background: rgba(0,0,0,0.7); color: #fff;
    padding: 5px 12px; border-radius: 50px;
    font-size: 10px; font-weight: 800; letter-spacing: 1px;
}
.product-info {
    padding: 22px 24px 24px;
    display: flex; flex-direction: column; flex: 1;
    position: relative;
}
.product-dev-avatar {
    position: absolute; top: -24px; right: 18px;
    width: 48px; height: 48px; border-radius: 50%;
    border: 3px solid var(--bg); background: linear-gradient(135deg, #6b7280, #374151);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 18px;
    z-index: 10;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(236, 72, 153, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-dev-avatar img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.product-dev-avatar:hover { transform: scale(1.1); box-shadow: 0 6px 22px rgba(236, 72, 153, 0.5), 0 0 0 2px var(--pink); }
.product-title {
    color: #fff; font-size: 14px; font-weight: 700;
    letter-spacing: 0.3px; text-transform: uppercase;
    margin-bottom: 14px; line-height: 1.4;
}
.product-price {
    color: var(--pink); font-size: 22px; font-weight: 800; margin-bottom: 16px;
    display: flex; align-items: baseline; gap: 8px;
}
.product-price span { font-size: 14px; font-weight: 600; }
.product-price .old { color: var(--text-dim); font-size: 14px; text-decoration: line-through; font-weight: 600; }

.product-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tag {
    background: rgba(40, 40, 48, 0.8); color: #c0c0c8;
    font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
    padding: 6px 12px; border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.btn-add-cart {
    margin-top: auto; width: 100%;
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
    color: #fff; border: none;
    padding: 14px; border-radius: 10px;
    font-size: 13px; font-weight: 700; letter-spacing: 1px;
    cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.25);
    font-family: inherit;
}
.btn-add-cart:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(236, 72, 153, 0.5); }

/* ====== Plans (abonnements) ====== */
.plans-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 26px; max-width: 1200px; margin: 0 auto;
    text-align: left;
}
.plan-card {
    position: relative;
    background: linear-gradient(180deg, rgba(20, 20, 28, 0.9) 0%, rgba(15, 15, 22, 0.95) 100%);
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    padding: 36px 32px 32px;
    display: flex; flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.plan-card:hover { transform: translateY(-6px); }

.plan-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.plan-price .currency { color: #fff; font-size: 24px; font-weight: 700; }
.plan-price .amount   { color: #fff; font-size: 48px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.plan-price .old-price{ color: var(--text-faint); font-size: 16px; text-decoration: line-through; font-weight: 600; }
.plan-period { color: var(--text-soft); font-size: 13px; margin-bottom: 24px; }
.plan-name { font-size: 24px; font-weight: 800; letter-spacing: 0.5px; margin-bottom: 12px; }
.plan-desc { color: #b0b0b8; font-size: 14px; line-height: 1.5; margin-bottom: 24px; min-height: 42px; }
.duration-toggle {
    display: flex; background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border); border-radius: 12px;
    padding: 4px; margin-bottom: 12px;
}
.duration-btn {
    flex: 1; background: transparent; border: none;
    color: var(--text-soft); font-size: 12px; font-weight: 700;
    letter-spacing: 1px; padding: 12px; border-radius: 8px;
    cursor: pointer; transition: all 0.3s ease; font-family: inherit;
}
.duration-btn:hover { color: #fff; }
.save-text { font-size: 12px; font-weight: 600; margin-bottom: 22px; }
.plan-features { list-style: none; margin-bottom: 30px; flex: 1; }
.plan-features li {
    color: #d0d0d8; font-size: 14px;
    padding: 8px 0 8px 24px; position: relative;
}
.plan-features li::before { content: '✓'; position: absolute; left: 0; font-weight: 800; }
.btn-subscribe {
    width: 100%; color: #fff; border: none;
    padding: 16px; border-radius: 12px;
    font-size: 14px; font-weight: 800; letter-spacing: 1.5px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: all 0.3s ease; font-family: inherit;
}
.btn-subscribe:hover { transform: translateY(-1px); }

/* Variantes par couleur */
.plan-illegal { background: linear-gradient(180deg, rgba(15, 35, 25, 0.7) 0%, rgba(10, 20, 15, 0.95) 100%); border-color: rgba(34, 197, 94, 0.18); }
.plan-illegal .plan-name, .plan-illegal .save-text { color: var(--green); }
.plan-illegal .plan-features li::before { color: var(--green); }
.plan-illegal .btn-subscribe { background: linear-gradient(135deg, #15803d 0%, #166534 100%); box-shadow: 0 4px 20px rgba(34, 197, 94, 0.25); }
.plan-illegal .duration-btn.active { background: linear-gradient(135deg, #15803d 0%, #166534 100%); color: #fff; }

.plan-core { background: linear-gradient(180deg, rgba(45, 35, 10, 0.7) 0%, rgba(20, 15, 5, 0.95) 100%); border-color: rgba(234, 179, 8, 0.3); box-shadow: 0 0 60px rgba(234, 179, 8, 0.15); }
.plan-core .plan-name, .plan-core .save-text { color: var(--gold); }
.plan-core .plan-features li::before { color: var(--gold); }
.plan-core .btn-subscribe { background: linear-gradient(135deg, #a16207 0%, #854d0e 100%); box-shadow: 0 4px 20px rgba(234, 179, 8, 0.3); }
.plan-core .duration-btn.active { background: linear-gradient(135deg, #a16207 0%, #854d0e 100%); color: #fff; }
.popular-badge {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #ca8a04 0%, #a16207 100%);
    color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 1px;
    padding: 8px 22px; border-radius: 50px;
    box-shadow: 0 4px 20px rgba(234, 179, 8, 0.4);
}

.plan-legal { background: linear-gradient(180deg, rgba(15, 25, 45, 0.7) 0%, rgba(10, 15, 25, 0.95) 100%); border-color: rgba(59, 130, 246, 0.18); }
.plan-legal .plan-name, .plan-legal .save-text { color: var(--blue); }
.plan-legal .plan-features li::before { color: var(--blue); }
.plan-legal .btn-subscribe { background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%); box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25); }
.plan-legal .duration-btn.active { background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%); color: #fff; }

/* ====== Creators ====== */
.creators-grid {
    display: flex; flex-direction: column; gap: 12px;
    max-width: 560px; margin: 0 auto;
}
.creator-card {
    display: flex; align-items: center; gap: 18px;
    background: var(--bg-card); backdrop-filter: blur(10px);
    border: 1px solid var(--border); border-radius: 14px;
    padding: 14px 22px;
    transition: all 0.3s ease;
    position: relative; overflow: hidden;
}
.creator-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: var(--pink);
    opacity: 0; transition: opacity 0.3s ease;
}
.creator-card:hover { transform: translateX(4px); border-color: rgba(236, 72, 153, 0.25); }
.creator-card:hover::before { opacity: 1; }
.creator-card-avatar {
    width: 54px; height: 54px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
}
.creator-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.creator-card-info { flex: 1; }
.creator-card-name { color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 2px; }
.creator-card-role { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: var(--pink); }

/* ====== Reviews ====== */
.reviews-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.review-card {
    background: var(--bg-card); backdrop-filter: blur(10px);
    border: 1px solid var(--border); border-radius: 18px;
    padding: 24px;
    transition: all 0.3s ease;
}
.review-card:hover { border-color: rgba(236, 72, 153, 0.25); }
.review-stars { color: var(--gold); font-size: 16px; margin-bottom: 12px; letter-spacing: 2px; }
.review-comment { color: #d0d0d8; font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.review-author {
    display: flex; align-items: center; gap: 12px;
    padding-top: 14px; border-top: 1px solid var(--border);
}
.review-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    color: #fff; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.review-name { color: #fff; font-weight: 700; font-size: 13px; }
.review-date { color: var(--text-faint); font-size: 11px; }

/* ====== FAQ ====== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--bg-card); backdrop-filter: blur(10px);
    border: 1px solid var(--border); border-radius: 16px;
    margin-bottom: 12px; overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item:hover { border-color: rgba(236, 72, 153, 0.2); }
.faq-question {
    width: 100%; padding: 20px 24px;
    background: transparent; border: none; color: #fff;
    font-size: 15px; font-weight: 700; text-align: left;
    cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px;
    font-family: inherit;
}
.faq-icon {
    color: var(--pink); font-size: 22px; transition: transform 0.3s ease; flex-shrink: 0;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: var(--pink-soft); border-radius: 8px;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-muted); font-size: 14px; line-height: 1.6;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 24px 22px; }
.faq-answer-inner img { max-width: 100%; border-radius: 12px; margin-top: 12px; }

.faq-cta {
    margin-top: 30px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 18px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 18px; padding: 22px 26px;
    cursor: pointer; transition: all 0.3s ease;
    color: #fff; text-decoration: none; text-align: left;
    width: 100%; max-width: 800px; margin-left: auto; margin-right: auto;
    font-family: inherit;
}
.faq-cta:hover { border-color: rgba(236, 72, 153, 0.35); transform: translateY(-2px); }
.faq-cta-title { font-size: 16px; font-weight: 800; color: #fff; }
.faq-cta-sub { font-size: 12px; color: var(--text-soft); margin-top: 4px; }
.faq-cta-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ====== Changelog ====== */
.changelog-list {
    max-width: 800px; margin: 0 auto; position: relative; padding-left: 36px;
}
.changelog-list::before {
    content: ''; position: absolute; left: 12px; top: 4px; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--pink), transparent);
}
.changelog-item { position: relative; margin-bottom: 28px; }
.changelog-item::before {
    content: ''; position: absolute; left: -36px; top: 8px;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 0 4px rgba(236,72,153,0.2), 0 0 0 8px var(--bg);
}
.changelog-card {
    background: var(--bg-card); backdrop-filter: blur(10px);
    border: 1px solid var(--border); border-radius: 18px;
    padding: 22px 26px;
    transition: all 0.3s ease;
}
.changelog-card:hover { border-color: rgba(236, 72, 153, 0.3); transform: translateX(4px); }
.changelog-head {
    display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap;
}
.changelog-badge {
    background: var(--pink); color: #fff;
    padding: 3px 10px; border-radius: 50px;
    font-size: 10px; font-weight: 800; letter-spacing: 1px;
}
.changelog-date { font-size: 11px; color: var(--text-faint); font-weight: 600; }
.changelog-title { color: #fff; font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.changelog-summary { color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.changelog-img { margin-top: 12px; max-width: 100%; border-radius: 12px; }

/* ====== Dashboard client ====== */
.dashboard {
    max-width: 1200px; margin: 0 auto;
    padding: 40px 50px;
    position: relative; z-index: 5;
}
.dash-header {
    background: var(--bg-card); backdrop-filter: blur(10px);
    border: 1px solid var(--border); border-radius: 24px;
    padding: 28px 32px; margin-bottom: 24px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 18px;
}
.dash-user { display: flex; align-items: center; gap: 18px; }
.dash-avatar {
    width: 72px; height: 72px; border-radius: 20px;
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    color: #fff; font-weight: 800; font-size: 28px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(236,72,153,0.3);
}
.dash-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-user-name { color: #fff; font-size: 26px; font-weight: 800; }
.dash-user-meta {
    color: var(--text-soft); font-size: 11px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    margin-bottom: 6px;
    display: inline-flex; align-items: center; gap: 8px;
}
.dash-badge {
    background: var(--pink-soft); color: var(--pink);
    padding: 3px 10px; border-radius: 6px;
    font-size: 10px; font-weight: 800;
}

.dash-tabs {
    display: flex; gap: 8px; margin-bottom: 24px;
    overflow-x: auto; padding-bottom: 4px;
}
.dash-tab {
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 12px 22px; border-radius: 50px;
    font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
    cursor: pointer; transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
    display: inline-flex; align-items: center; gap: 8px;
}
.dash-tab:hover { color: #fff; }
.dash-tab.active {
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    color: #fff; border-color: transparent;
    box-shadow: 0 4px 16px rgba(236,72,153,0.3);
}
.dash-tab .badge-count {
    background: rgba(255,255,255,0.2); color: #fff;
    padding: 2px 8px; border-radius: 50px;
    font-size: 10px;
}
.dash-pane { display: none; }
.dash-pane.active { display: block; animation: fadeUp 0.3s ease; }

.dash-card {
    background: var(--bg-card); backdrop-filter: blur(10px);
    border: 1px solid var(--border); border-radius: 18px;
    padding: 26px;
}

.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th {
    color: var(--text-faint); font-size: 11px; font-weight: 800;
    letter-spacing: 1.5px; text-transform: uppercase;
    text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.dash-table td {
    padding: 16px; border-bottom: 1px solid var(--border);
    color: #d0d0d8; font-size: 14px;
}
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: rgba(255,255,255,0.02); }

.tickets-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.ticket-card {
    background: var(--bg-card); backdrop-filter: blur(10px);
    border: 1px solid var(--border); border-radius: 16px;
    padding: 20px; cursor: pointer;
    transition: all 0.3s ease;
}
.ticket-card:hover { border-color: rgba(236, 72, 153, 0.3); transform: translateY(-2px); }
.ticket-status {
    display: inline-block; padding: 4px 12px; border-radius: 50px;
    font-size: 10px; font-weight: 800; letter-spacing: 1px;
    margin-bottom: 10px;
}
.ticket-status-OUVERT  { background: rgba(239,68,68,0.15); color: var(--red); }
.ticket-status-REPONDU { background: rgba(234,179,8,0.15); color: var(--gold); }
.ticket-status-FERME   { background: rgba(107,114,128,0.2); color: var(--text-muted); }
.ticket-subject { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.ticket-meta { color: var(--text-faint); font-size: 11px; }

.btn-new-ticket {
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    color: #fff; border: none;
    padding: 12px 22px; border-radius: 12px;
    font-size: 13px; font-weight: 800; letter-spacing: 0.5px;
    cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(236,72,153,0.3);
    font-family: inherit;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-new-ticket:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(236,72,153,0.5); }

/* ====== Modales ====== */
.modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px);
    z-index: 200;
    align-items: center; justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease;
}
.modal.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
    position: relative;
    background: linear-gradient(180deg, #15151c 0%, #0d0d12 100%);
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 24px;
    padding: 36px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(236, 72, 153, 0.15);
    animation: popIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}
@keyframes popIn { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-wide  { max-width: 900px; }
.modal-large { max-width: 720px; }

.modal-close {
    position: absolute; top: 16px; right: 16px;
    background: rgba(255, 255, 255, 0.04); border: none; color: var(--text-muted);
    width: 34px; height: 34px; border-radius: 8px;
    cursor: pointer; transition: all 0.2s ease; font-size: 14px;
}
.modal-close:hover { background: rgba(239, 68, 68, 0.15); color: var(--red); }

.modal-header { text-align: center; margin-bottom: 24px; }
.modal-logo {
    width: 64px; height: 64px; border-radius: 14px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
}
.modal-header h2 { color: #fff; font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.modal-header p  { color: var(--text-soft); font-size: 13px; }

.form { display: flex; flex-direction: column; gap: 14px; }
.form-input, .form-textarea, .form-select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 14px 18px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    outline: none;
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-faint); }
.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--pink); box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}
.form-input.error { border-color: var(--red); animation: shake 0.4s ease; }
.form-input.otp {
    text-align: center; letter-spacing: 8px; font-size: 22px; font-weight: 800;
}
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-label {
    color: var(--text-muted); font-size: 12px; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase;
    margin-bottom: 4px; display: block;
}
.form-hint { color: var(--text-faint); font-size: 11px; margin-top: 4px; }
.form-submit {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
    color: #fff; border: none;
    padding: 15px; border-radius: 12px;
    font-size: 14px; font-weight: 800; letter-spacing: 0.5px;
    cursor: pointer; font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.3);
}
.form-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(236, 72, 153, 0.5); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.modal-divider {
    position: relative; text-align: center; margin: 22px 0 18px;
}
.modal-divider::before {
    content: ''; position: absolute; top: 50%; left: 0; right: 0;
    height: 1px; background: rgba(255, 255, 255, 0.06);
}
.modal-divider span {
    position: relative; background: #0d0d12; padding: 0 14px;
    color: var(--text-faint); font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
}
.modal-link {
    background: none; border: none; color: var(--pink);
    font-weight: 700; cursor: pointer; font-family: inherit;
    text-decoration: none;
}
.modal-link:hover { text-decoration: underline; }

/* Product modal */
.product-modal-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    max-height: 90vh; overflow: hidden;
}
.product-modal-media {
    background: linear-gradient(135deg, #1a1a24 0%, #2a1530 100%);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    min-height: 480px;
}
.product-modal-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-modal-media iframe { width: 100%; height: 100%; border: 0; }
.product-modal-info {
    padding: 36px;
    overflow-y: auto;
    display: flex; flex-direction: column;
}
.product-modal-cat {
    display: inline-block;
    background: var(--pink-soft); color: var(--pink);
    padding: 5px 14px; border-radius: 50px;
    font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
    margin-bottom: 14px; width: fit-content;
}
.product-modal-title { color: #fff; font-size: 26px; font-weight: 800; margin-bottom: 8px; line-height: 1.2; }
.product-modal-price { color: var(--pink); font-size: 32px; font-weight: 800; margin-bottom: 22px; }
.product-modal-desc { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin-bottom: 24px; flex: 1; white-space: pre-line; }
.product-modal-actions { display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 768px) {
    .product-modal-grid { grid-template-columns: 1fr; }
    .product-modal-media { min-height: 280px; }
}

/* Toast */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
    background: var(--bg-card-solid); border: 1px solid var(--border-strong);
    border-radius: 14px; padding: 16px 22px;
    color: #fff; font-size: 13px; font-weight: 600;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    animation: slideInRight 0.3s ease;
    max-width: 340px;
}
.toast.success { border-color: rgba(34,197,94,0.4); }
.toast.error   { border-color: rgba(239,68,68,0.4); }
.toast.info    { border-color: rgba(236,72,153,0.4); }
@keyframes slideInRight { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Ticket chat */
.ticket-chat {
    flex: 1; overflow-y: auto;
    padding: 20px; display: flex; flex-direction: column; gap: 14px;
    background: rgba(0,0,0,0.2);
    border-radius: 14px;
}
.ticket-msg {
    max-width: 80%;
    padding: 12px 16px; border-radius: 14px;
    font-size: 14px; line-height: 1.5;
}
.ticket-msg.CLIENT { background: rgba(236,72,153,0.15); color: #fff; align-self: flex-end; border: 1px solid rgba(236,72,153,0.3); }
.ticket-msg.STAFF  { background: var(--bg-input); color: var(--text-muted); align-self: flex-start; }
.ticket-msg img { max-width: 100%; border-radius: 10px; margin-top: 8px; cursor: pointer; }
.ticket-msg-author { font-size: 11px; font-weight: 800; letter-spacing: 1px; opacity: 0.7; margin-bottom: 4px; }
.ticket-reply-form { display: flex; gap: 10px; margin-top: 16px; }
.ticket-reply-form input[type=text] { flex: 1; }

/* Heart favorite */
.btn-fav {
    background: rgba(255,255,255,0.06); border: 1px solid var(--border);
    color: var(--text-muted); width: 40px; height: 40px;
    border-radius: 12px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}
.btn-fav:hover { background: rgba(236,72,153,0.15); color: var(--pink); }
.btn-fav.active { background: var(--pink); color: #fff; border-color: transparent; }

/* Why us */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.why-card {
    background: var(--bg-card); backdrop-filter: blur(10px);
    border: 1px solid var(--border); border-radius: 18px;
    padding: 28px;
    transition: all 0.3s ease;
}
.why-card:hover { transform: translateY(-4px); border-color: rgba(236, 72, 153, 0.3); }
.why-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--pink-soft); color: var(--pink);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.why-title { color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.why-text  { color: var(--text-muted); font-size: 13px; line-height: 1.6; }

/* Pack section bg */
.pack-page-body { position: relative; }
.pack-bg {
    position: fixed; inset: 0;
    background: url('img/fondpack.png') center/cover no-repeat;
    z-index: 0; opacity: 0.4;
}
.pack-bg-overlay {
    position: fixed; inset: 0;
    background:
        radial-gradient(ellipse at center top, rgba(236, 72, 153, 0.15) 0%, transparent 60%),
        linear-gradient(180deg, rgba(10, 10, 15, 0.4) 0%, rgba(10, 10, 15, 0.85) 60%, var(--bg) 100%);
    z-index: 1; pointer-events: none;
}

.legal-content { max-width: 800px; margin: 0 auto; padding: 0 50px 80px; position: relative; z-index: 5; color: var(--text-muted); line-height: 1.7; font-size: 14px; }
.legal-content h1 { color: #fff; font-size: 28px; font-weight: 800; margin: 24px 0 12px; }
.legal-content h2 { color: #fff; font-size: 20px; font-weight: 800; margin: 20px 0 10px; }
.legal-content h3 { color: var(--pink); font-size: 16px; font-weight: 700; margin: 16px 0 8px; }
.legal-content p, .legal-content li { margin-bottom: 8px; }
.legal-content ul, .legal-content ol { padding-left: 20px; margin-bottom: 16px; }

@media (max-width: 1024px) {
    .header { padding: 16px 20px; flex-wrap: wrap; gap: 16px; }
    .nav-menu { position: static; transform: none; order: 3; flex-wrap: wrap; justify-content: center; width: 100%; }
    .hero-title { font-size: 48px; }
    .section { padding: 40px 20px; }
    .section-title { font-size: 30px; }
    .plans-grid { grid-template-columns: 1fr; max-width: 480px; }
    .dashboard { padding: 30px 20px; }
}

@media (max-width: 640px) {
    .hero-title { font-size: 36px; }
    .hero-stats { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}
