/* Landing — meme palette que dashboard.css / login.css */
:root {
    --bg-main: #FFFFFF;
    --bg-side: #FBFBFA;
    --text-dark: #37352F;
    --text-light: #73726E;
    --accent: #8A2BE2;
    --accent-soft: rgba(138, 43, 226, 0.08);
    --border: #EDECEC;
    --hover-bg: #EFEFEE;
    --card-bg: #FFFFFF;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--text-dark);
    background: var(--bg-main);
    line-height: 1.5;
}

a { color: inherit; }

/* ---------- Navbar ---------- */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.landing-logo {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
    text-decoration: none;
}

.landing-logo span { color: var(--accent); }

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.landing-nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.15s;
}

.landing-nav-links a:hover { color: var(--text-dark); }

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-ghost {
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-dark);
    border: 1px solid var(--border);
    background: transparent;
    transition: 0.15s;
}

.btn-ghost:hover { background: var(--hover-bg); }

.btn-primary {
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: var(--accent);
    border: none;
    transition: 0.15s;
}

.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }

.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: var(--accent);
    transition: 0.15s;
}

.btn-primary-lg:hover { opacity: 0.92; transform: translateY(-1px); }

.btn-outline-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-dark);
    background: var(--bg-main);
    border: 1px solid var(--border);
    transition: 0.15s;
}

.btn-outline-lg:hover { background: var(--hover-bg); }

/* ---------- Hero (2 colonnes : accroche + carte produit) ---------- */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 40px 72px;
    display: grid;
    grid-template-columns: 1fr minmax(260px, 340px);
    gap: 56px;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.12;
    margin: 0 0 18px;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-lead {
    font-size: 17px;
    color: var(--text-light);
    margin: 0 0 20px;
    line-height: 1.6;
    max-width: 440px;
}

.hero-sub-link {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.hero-sub-link a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.hero-sub-link a:hover { text-decoration: underline; }

/* Carte produit hero */
.hero-product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(138, 43, 226, 0.07);
    transition: 0.25s;
    width: 100%;
    max-width: 340px;
    justify-self: end;
}

.hero-product-card:hover {
    box-shadow: 0 20px 48px rgba(138, 43, 226, 0.12);
    transform: translateY(-2px);
}

.hero-product-banner {
    height: 130px;
    overflow: hidden;
    background: #1a0a2e;
}

.hero-product-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-product-body {
    padding: 18px 20px 20px;
}

.hero-product-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 3px 8px;
    border-radius: 5px;
    margin-bottom: 8px;
}

.hero-product-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

.hero-product-desc {
    font-size: 13px;
    color: var(--text-light);
    margin: 0 0 12px;
    line-height: 1.5;
}

.hero-product-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-product-perks li {
    font-size: 12px;
    color: var(--text-dark);
    padding-left: 18px;
    position: relative;
}

.hero-product-perks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 12px;
}

.hero-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.hero-product-price .price {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.hero-product-price .price-note {
    font-size: 11px;
    color: var(--text-light);
}

.btn-buy {
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 13px;
}

/* ---------- Sections ---------- */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 40px;
}

.section-head {
    text-align: center;
    margin-bottom: 48px;
}

.section-head h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 10px;
}

.section-head p {
    color: var(--text-light);
    font-size: 15px;
    margin: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px;
    transition: 0.2s;
}

.feature-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.06);
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.55;
}

/* ---------- Produits (aperçu boutique) ---------- */
.products-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.preview-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: 0.2s;
}

.preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.preview-banner {
    height: 140px;
    background: var(--bg-side);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
}

.preview-body { padding: 22px; }

.preview-body h3 {
    margin: 0 0 12px;
    font-size: 17px;
}

.preview-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.preview-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

/* ---------- CTA bandeau ---------- */
.cta-band {
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 0 40px;
}

.cta-inner {
    background: linear-gradient(135deg, var(--accent) 0%, #6a1cb0 100%);
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    color: #fff;
}

.cta-inner h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px;
}

.cta-inner p {
    opacity: 0.9;
    font-size: 15px;
    margin: 0 0 28px;
}

.cta-inner .btn-outline-lg {
    background: #fff;
    border-color: #fff;
    color: var(--accent);
}

.cta-inner .btn-outline-lg:hover { background: rgba(255,255,255,0.92); }

/* ---------- Footer ---------- */
.landing-footer {
    border-top: 1px solid var(--border);
    padding: 32px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.landing-footer a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 20px;
}

.landing-footer a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 48px 20px 56px;
        text-align: center;
    }
    .hero-content { text-align: center; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-product-card {
        max-width: 360px;
        justify-self: center;
        margin: 0 auto;
    }
    .hero-product-footer { flex-direction: column; align-items: stretch; }
    .btn-buy { text-align: center; }
}

@media (max-width: 768px) {
    .landing-nav { padding: 14px 20px; }
    .landing-nav-links { display: none; }
    .section { padding: 40px 20px; }
    .features-grid { grid-template-columns: 1fr; }
    .cta-band { padding: 0 20px; }
    .landing-footer { padding: 24px 20px; flex-direction: column; text-align: center; }
    .landing-footer a { margin: 0 10px; }
}
