/* ========================================
   CLIPTOKK - MINIMAL DESIGN V2
   Inspired by: Integrated Biosciences
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600&display=swap');

/* ========================================
   CSS RESET & BASE
   ======================================== */

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

:root {
    /* Colors - Dark/Charcoal palette */
    --charcoal: #1a1a1a;
    --charcoal-light: #2a2a2a;
    --charcoal-lighter: #3a3a3a;
    --sea-green: #3d5a5b;
    --sea-green-light: #4d6a6b;
    --off-white: #f7f7f5;
    --white: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);

    /* Spacing - Fluid clamp-based */
    --space-xs: clamp(8px, 1vw, 12px);
    --space-sm: clamp(16px, 2vw, 24px);
    --space-md: clamp(24px, 3vw, 40px);
    --space-lg: clamp(40px, 5vw, 64px);
    --space-xl: clamp(64px, 8vw, 120px);
    --space-2xl: clamp(96px, 12vw, 160px);

    /* Typography */
    --font-primary: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Courier New', monospace;

    /* Layout */
    --max-width: 1280px;
    --content-width: 800px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: #fafbfc;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--charcoal);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--charcoal);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--charcoal);
}

h4 {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--charcoal);
}

p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.text-large {
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
    line-height: 1.6;
}

.text-mono {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.content-width {
    max-width: var(--content-width);
    margin: 0 auto;
}

.section {
    padding: var(--space-2xl) 0;
}

.section-tight {
    padding: var(--space-xl) 0;
}

/* Section Divider (01 / 02 / 03) */
.section-divider {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: var(--space-lg);
    font-weight: 400;
}

/* ========================================
   HEADER
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--charcoal);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.nav a {
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: var(--charcoal);
}

.nav-cta {
    font-weight: 400 !important;
    color: var(--charcoal) !important;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 0.9375rem;
    font-weight: 400;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--charcoal);
}

.btn:hover {
    background: var(--charcoal);
    color: var(--white);
    border-color: var(--charcoal);
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--charcoal);
    color: var(--white);
    border-color: var(--charcoal);
}

.btn-primary:hover {
    background: var(--charcoal-light);
    border-color: var(--charcoal-light);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1rem;
}

/* ========================================
   HERO
   ======================================== */

.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: var(--space-2xl) 0 var(--space-xl) 0;
    margin-top: 60px;
}

.hero-content {
    max-width: 900px;
}

.hero h1 {
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 700px;
}

.hero-stats {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--charcoal);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
}

.hero-cta {
    margin-top: var(--space-lg);
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* ========================================
   GRID LAYOUTS
   ======================================== */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* ========================================
   CARD
   ======================================== */

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-lg);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: var(--space-sm);
}

.card-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ========================================
   PRICING
   ======================================== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-lg);
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--charcoal);
}

.pricing-card.featured {
    border-color: var(--charcoal);
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.02) 0%, var(--white) 100%);
}

.pricing-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--space-xs);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xs);
}

.pricing-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.pricing-features {
    list-style: none;
    margin: var(--space-md) 0;
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.pricing-features li {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    padding: 10px 0;
    line-height: 1.5;
}

.pricing-card .btn {
    width: 100%;
    margin-top: var(--space-sm);
}

/* ========================================
   CASE STUDY
   ======================================== */

.case-study {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
}

.case-study-header {
    margin-bottom: var(--space-lg);
}

.case-study-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.case-study-title {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: var(--space-sm);
}

.case-study-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--charcoal);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ========================================
   ARTIST CARDS - BENTO LAYOUT
   ======================================== */

.artist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 400px);
    gap: 12px;
    margin-top: var(--space-xl);
}

@media (max-width: 900px) {
    .artist-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 300px);
        gap: var(--space-md);
    }
}

.artist-card {
    background: var(--white);
    border: none;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.artist-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.artist-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 40%, transparent 100%);
    padding: var(--space-lg);
    color: var(--white);
}

.artist-info {
    text-align: left;
}

.artist-info h4 {
    margin-bottom: 8px;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 500;
}

.artist-info p {
    font-size: 0.9375rem;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.95);
}

.artist-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.8125rem;
    color: var(--white);
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    padding: var(--space-xl) 0 var(--space-md) 0;
    border-top: 1px solid var(--border);
    margin-top: var(--space-2xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

.footer-brand {
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: var(--space-sm);
}

.footer-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--charcoal);
}

.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    text-align: center;
}

/* ========================================
   UTILITIES
   ======================================== */

.text-center {
    text-align: center;
}

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        min-height: auto;
        padding: var(--space-xl) 0;
    }

    .hero-stats {
        gap: var(--space-md);
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ========================================
   FLOATING CARD EFFECTS (NEW DA)
   ======================================== */

.card, .bento-item, .case-study, .artist-card {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover, .bento-item:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

/* Boutons style plus doux */
.btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-radius: 12px;
}

.btn:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Sections avec fond blanc */
.section {
    background: white;
    border-radius: 24px;
    margin: var(--space-md) 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Petits éléments décoratifs flottants */
.floating-element {
    position: absolute;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 16px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Case study avec effet de profondeur */
.case-study {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: var(--space-xl);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Amélioration du BentoGrid */
.bento-grid {
    perspective: 1000px;
}

.bento-item {
    border-radius: 24px;
    will-change: transform;
}
