:root {
    /* TOKENS M3 DARK & LUXE ACCENTS */
    --md-sys-color-background: #141218;
    --md-sys-color-on-background: #e6e1e5;
    --md-sys-color-surface: #1d1b20;
    --md-sys-color-surface-variant: #49454f;
    --md-sys-color-on-surface: #e6e1e5;
    --md-sys-color-on-surface-variant: #cac4d0;
    --md-sys-color-surface-container: #211f26;
    
    --md-sys-color-primary: #a8c7fa;
    --md-sys-color-on-primary: #062e6f;
    --md-sys-color-primary-container: #004a77;
    --md-sys-color-outline-variant: #444746;

    --font-title: 'Montserrat', sans-serif;
    --font-subtitle: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-code: 'Space Mono', monospace;

    --md-shape-corner-medium: 12px;
    --md-shape-corner-large: 16px;
    --md-shape-corner-extra-large: 28px;
    --md-shape-corner-full: 50px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

@media (pointer: fine) {
    body, a, button, input, .global-card, .brand-card { cursor: none !important; }
}

body {
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* Custom Cursor */
.cursor-dot {
    width: 8px; height: 8px; background-color: var(--md-sys-color-primary);
    border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none;
    z-index: 10000000; transform: translate(-50%, -50%); opacity: 0; transition: opacity 0.3s ease;
}
.cursor-outline {
    width: 36px; height: 36px; border: 2px solid rgba(168, 199, 250, 0.5);
    border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none;
    z-index: 9999999; transform: translate(-50%, -50%); opacity: 0; transition: opacity 0.3s ease, transform 0.1s ease-out;
}
.cursor-visible { opacity: 1 !important; }
.cursor-hover .cursor-dot { width: 12px; height: 12px; background-color: #fff; }
.cursor-hover .cursor-outline { width: 54px; height: 54px; border-color: var(--md-sys-color-primary); background: rgba(168, 199, 250, 0.08); }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; width: 100%; }
.page-padding { padding: 140px 6% 60px 6%; }
.text-center { text-align: center; }

/* Status & Nav */
.status-bar {
    background: var(--md-sys-color-surface);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    width: 100%; padding: 6px 0; position: fixed; top: 0; z-index: 1001; display: flex; justify-content: center;
}
.status-content { display: flex; align-items: center; gap: 10px; font-family: var(--font-subtitle); font-size: 0.75rem; color: var(--md-sys-color-on-surface-variant); }
.pulsing-dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; }

.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; height: 64px; position: fixed; top: 32px; width: 100%;
    background: rgba(29, 27, 32, 0.85); backdrop-filter: blur(20px);
    z-index: 1000; border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
.logo a { font-family: var(--font-title); font-size: 1.2rem; font-weight: 700; color: var(--md-sys-color-primary); }

.btn-portfolio-back {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary);
    font-family: var(--font-subtitle); font-weight: 600; font-size: 0.85rem;
    padding: 8px 18px; border-radius: var(--md-shape-corner-full); transition: transform 0.2s, box-shadow 0.2s;
}
.btn-portfolio-back:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(168, 199, 250, 0.3); }

/* Header Elements */
.global-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(168, 199, 250, 0.1); border: 1px solid var(--md-sys-color-primary);
    color: var(--md-sys-color-primary); padding: 6px 16px; border-radius: var(--md-shape-corner-full);
    font-family: var(--font-subtitle); font-size: 0.85rem; font-weight: 600; margin-bottom: 16px;
}
.section-title { font-family: var(--font-title); font-size: 2.5rem; font-weight: 900; margin-bottom: 12px; }
.global-subtitle { font-family: var(--font-body); color: var(--md-sys-color-on-surface-variant); max-width: 600px; margin: 0 auto 36px auto; font-size: 1rem; line-height: 1.6; }

/* --- SECTION LUXURY HOLDING SHOWCASE (DOUBLE FLUX) --- */
.ecosystem-showcase {
    position: relative;
    background: linear-gradient(180deg, rgba(33, 31, 38, 0.6) 0%, rgba(20, 18, 24, 0.85) 100%);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-shape-corner-extra-large, 28px);
    padding: 40px 20px;
    margin: 0 auto 56px auto;
    max-width: 1000px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.ecosystem-ambient-glow {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    height: 150px;
    background: radial-gradient(circle, rgba(168, 199, 250, 0.25) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.ecosystem-header {
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
}

.group-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-family: var(--font-subtitle);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 5px 14px;
    border-radius: var(--md-shape-corner-full);
    margin-bottom: 12px;
}
.group-pill i { color: var(--md-sys-color-primary); }

.ecosystem-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--md-sys-color-on-background);
    margin-bottom: 6px;
}

.ecosystem-desc {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--md-sys-color-on-surface-variant);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Double Marquee Container */
.marquee-dual-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 8px 0;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,1) 12%, rgba(0,0,0,1) 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,1) 12%, rgba(0,0,0,1) 88%, transparent 100%);
}

.marquee-row {
    overflow: hidden;
    width: 100%;
    display: flex;
}

.marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
}

/* Animations opposées fluides */
.track-left {
    animation: scrollTrackLeft 24s linear infinite;
}

.track-right {
    animation: scrollTrackRight 24s linear infinite;
}

.marquee-dual-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes scrollTrackLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollTrackRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Cartes de marque (Style Cosmétique / Haute Joaillerie Tech) */
.brand-card {
    background: rgba(29, 27, 32, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--md-shape-corner-large, 16px);
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 60px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    position: relative;
    transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.brand-card:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--md-sys-color-primary);
    background: rgba(45, 41, 52, 0.95);
    box-shadow: 0 10px 24px rgba(168, 199, 250, 0.22);
}

.brand-logo {
    max-height: 30px;
    max-width: 125px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s ease;
}

.brand-card:hover .brand-logo {
    transform: scale(1.08);
}

/* Filter & Search */
.filter-wrapper { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 48px; }
.search-box {
    display: flex; align-items: center; gap: 12px;
    background: var(--md-sys-color-surface-container);
    border: 1px solid var(--md-sys-color-outline-variant);
    padding: 12px 20px; border-radius: var(--md-shape-corner-full);
    width: 100%; max-width: 480px; color: var(--md-sys-color-on-surface-variant);
}
.search-box input {
    background: transparent; border: none; outline: none;
    color: var(--md-sys-color-on-surface); font-family: var(--font-body); font-size: 0.95rem; width: 100%;
}
.category-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.filter-chip {
    background: var(--md-sys-color-surface-container); color: var(--md-sys-color-on-surface-variant);
    border: 1px solid var(--md-sys-color-outline-variant); padding: 6px 16px;
    border-radius: var(--md-shape-corner-medium); font-family: var(--font-subtitle); font-size: 0.8rem;
    transition: all 0.2s ease;
}
.filter-chip.active, .filter-chip:hover {
    background: var(--md-sys-color-primary-container); color: #c2e7ff; border-color: var(--md-sys-color-primary);
}

/* Grid & Cards */
.global-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; text-align: left; }

.global-card {
    background: var(--md-sys-color-surface-container);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-shape-corner-extra-large);
    padding: 28px; display: flex; flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    transform-style: preserve-3d;
}
.global-card:hover {
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 16px 32px rgba(0,0,0,0.4);
}
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.card-icon {
    width: 48px; height: 48px; background: rgba(168, 199, 250, 0.1);
    border-radius: var(--md-shape-corner-medium); display: flex;
    align-items: center; justify-content: center; font-size: 1.4rem; color: var(--md-sys-color-primary);
}
.card-badge {
    background: var(--md-sys-color-surface-variant); color: var(--md-sys-color-on-surface);
    padding: 4px 10px; border-radius: var(--md-shape-corner-full); font-family: var(--font-subtitle); font-size: 0.7rem; font-weight: 600;
}
.global-card h3 { font-family: var(--font-title); font-size: 1.25rem; color: var(--md-sys-color-on-surface); margin-bottom: 8px; }
.global-card p { font-family: var(--font-body); font-size: 0.88rem; color: var(--md-sys-color-on-surface-variant); line-height: 1.5; margin-bottom: 24px; flex-grow: 1; }

.btn-visit {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: transparent; border: 1px solid var(--md-sys-color-outline-variant);
    color: var(--md-sys-color-primary); padding: 10px 18px; border-radius: var(--md-shape-corner-full);
    font-family: var(--font-subtitle); font-size: 0.85rem; font-weight: 600; transition: all 0.2s ease;
}
.btn-visit:hover { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); border-color: transparent; }

/* Motion & Footer */
.scroll-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(0.2, 0, 0, 1), transform 0.6s cubic-bezier(0.2, 0, 0, 1); }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

footer { margin-top: auto; padding: 32px 0; text-align: center; color: var(--md-sys-color-on-surface-variant); font-family: var(--font-subtitle); font-size: 0.8rem; border-top: 1px solid var(--md-sys-color-outline-variant); }