/**
 * SKANBIZ — Design system premium (landing, catalogues, marketplace)
 * Typographie éditoriale, motion subtile, grilles produit haut de gamme
 */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Plus+Jakarta+Sans:ital,wght@0,500;0,600;0,700;0,800;1,500&display=swap');

:root {
    --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --premium-radius: 20px;
    --premium-radius-sm: 12px;
    --premium-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 32px rgba(15, 23, 42, 0.06);
    --premium-shadow-lg: 0 4px 8px rgba(15, 23, 42, 0.04), 0 24px 64px rgba(var(--brand-primary-rgb), 0.12);
    --premium-border: rgba(15, 23, 42, 0.08);
    --premium-surface: #ffffff;
    --premium-muted: #64748b;
    --premium-text: #0f172a;
}

/* Pages premium : typo globale — pas d'étirement */
.landing-page,
.shop-catalog-page,
.marketplace-page {
    font-family: var(--font-body);
    letter-spacing: 0;
    font-stretch: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.landing-page p,
.landing-page li,
.landing-page .gp-hero-lead,
.landing-page .gp-feature-card p,
.landing-page .gp-section-header p,
.shop-catalog-page p,
.shop-catalog-page .sc-card-desc,
.shop-catalog-page .sc-grid-desc,
.shop-catalog-page .sc-modern-desc,
.shop-catalog-page .sc-shop-intro-text {
    letter-spacing: 0;
    line-height: 1.6;
    font-family: var(--font-body);
}

/* Display : titres principaux uniquement (pas les cartes produit) */
.landing-page h1,
.landing-page .gp-section-header h2,
.landing-page .gp-cta-final h2,
.landing-page .gp-preview-title,
.shop-catalog-page .sc-shop-intro-title,
.marketplace-page .section-title,
.marketplace-page .pd-title,
.marketplace-page .pd-related-title {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    font-stretch: 100%;
}

.landing-page h2:not(.gp-section-header h2),
.landing-page h3,
.landing-page h4,
.landing-page h5 {
    font-family: var(--font-body);
    letter-spacing: -0.01em;
    font-weight: 600;
}

/* Titres produits : corps de texte (lisibles, compacts) */
.shop-catalog-page .sc-card-title,
.shop-catalog-page .sc-grid-title,
.shop-catalog-page .sc-modern-title,
.shop-catalog-page .sc-empty-title {
    font-family: var(--font-body);
    letter-spacing: 0;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.shop-catalog-page .sc-price,
.shop-catalog-page .sc-grid-price,
.shop-catalog-page .sc-modern-price {
    font-family: var(--font-body);
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}

/* Scroll reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.85s var(--ease-out-expo),
        transform 0.85s var(--ease-out-expo);
    will-change: opacity, transform;
}

[data-reveal="fade"] {
    transform: none;
}

[data-reveal="scale"] {
    transform: scale(0.94) translateY(12px);
}

[data-reveal="left"] {
    transform: translateX(-32px);
}

[data-reveal="right"] {
    transform: translateX(32px);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Grain texture overlay (landing) */
.sk-grain::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    z-index: 1;
}
