/* ========================================
   PRESKRI - KIMA VENTURES LANDING PAGE
   Style cohérent avec preskri.fr
   ======================================== */

/* CSS Variables */
:root {
    --color-primary: #6855f3;
    --color-primary-dark: #5242d6;
    --color-primary-light: #8577f5;
    --color-accent: #ffb496;
    --color-accent-light: #ffd4c2;

    --color-text: #363636;
    --color-text-light: #787878;
    --color-text-white: #ffffff;

    --color-bg: #fafafa;
    --color-bg-white: #ffffff;
    --color-bg-dark: #1a1a2e;

    --color-border: #e5e5e5;
    --color-shadow: rgba(104, 85, 243, 0.15);

    --font-display: 'Bricolage Grotesque', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 4px 20px var(--color-shadow);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--color-text-light);
    transition: var(--transition);
}

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

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text-white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--color-shadow);
}

.btn-secondary {
    background: var(--color-bg-white);
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-nav {
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: var(--color-text-white) !important;
    border-radius: var(--radius-sm);
}

.btn-nav:hover {
    background: var(--color-primary-dark);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-pitch {
    background: linear-gradient(135deg, #ff7b54 0%, #ffb496 50%, #ff7b54 100%);
    background-size: 200% 200%;
    color: #fff;
    border: none;
    box-shadow:
        0 4px 20px rgba(255, 123, 84, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: pitchGlow 3s ease infinite;
}

.btn-pitch:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 30px rgba(255, 123, 84, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: #fff;
}

@keyframes pitchGlow {
    0%, 100% {
        background-position: 0% 50%;
        box-shadow:
            0 4px 20px rgba(255, 123, 84, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        background-position: 100% 50%;
        box-shadow:
            0 6px 25px rgba(255, 123, 84, 0.55),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, #f8f7ff 0%, #ebe8ff 50%, #f0f0ff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(104, 85, 243, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 180, 150, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 700px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-accent-light);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.badge-icon {
    font-size: 1.1rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: titleReveal 1s ease forwards 0.3s;
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.hero .highlight {
    color: var(--color-primary);
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}

.hero-levee {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-top: 12px;
    margin-bottom: 3rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-visual {
    margin-top: 4rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 550px;
    margin: 4rem auto 0;
    padding: 0 3rem;
}

/* Bento: première stat plus grande (2 lignes) */
.hero-stats .stat-item:first-child {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 2rem;
}

.hero-stats .stat-item:first-child .stat-value {
    font-size: 3.5rem;
}

.hero-stats .stat-item:first-child .stat-label {
    font-size: 1rem;
}

/* Bento: dernière stat full width */
.hero-stats .stat-item:last-child {
    grid-column: span 2;
    padding: 1.25rem 2rem;
}

.hero-stats .stat-item:last-child .stat-value {
    font-size: 2.25rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
    opacity: 0;
    animation: statReveal 0.6s ease forwards;
}

.hero-stats .stat-item:nth-child(1) { animation-delay: 0.8s; }
.hero-stats .stat-item:nth-child(2) { animation-delay: 1s; }
.hero-stats .stat-item:nth-child(3) { animation-delay: 1.2s; }
.hero-stats .stat-item:nth-child(4) { animation-delay: 1.4s; }

@keyframes statReveal {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-primary);
}

.stat-item.stat-danger::before {
    background: linear-gradient(90deg, #dc3545, #ff6b6b);
}

.stat-item.stat-warning::before {
    background: linear-gradient(90deg, #e67700, #ffa94d);
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 15px 45px rgba(104, 85, 243, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.85);
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: 0.25rem;
}

/* ========================================
   DEMO SECTION (CANVAS)
   ======================================== */
.demo-section {
    padding: 6rem 2rem;
    background: var(--color-bg-dark);
}

.demo-header {
    text-align: center;
    margin-bottom: 3rem;
}

.demo-header h2 {
    font-size: 2.5rem;
    color: var(--color-text-white);
    margin-bottom: 0.75rem;
}

.demo-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.audio-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 180, 150, 0.15);
    border: 1px solid rgba(255, 180, 150, 0.3);
    border-radius: var(--radius-xl);
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 500;
}

.audio-hint i {
    font-size: 1.1rem;
    animation: pulseAudio 2s ease-in-out infinite;
}

@keyframes pulseAudio {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.demo-container {
    max-width: 900px;
    margin: 0 auto;
}

.demo-frame {
    position: relative;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.demo-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    display: flex;
    gap: 0.5rem;
}

.demo-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.demo-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.demo-frame iframe {
    display: block;
    width: 100%;
    height: 576px;
    border: none;
    background: #000;
}

.demo-instructions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.instruction-item kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: white;
}

/* ========================================
   SOLUTION SECTION
   ======================================== */
.solution-section {
    padding: 6rem 2rem;
    background: var(--color-bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 15px 45px rgba(104, 85, 243, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(104, 85, 243, 0.15);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ========================================
   TRACTION SECTION
   ======================================== */
.traction-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.traction-section .section-header h2,
.traction-section .section-header p {
    color: var(--color-text-white);
}

.traction-section .section-header p {
    opacity: 0.8;
}

.traction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.traction-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.traction-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text-white);
}

.traction-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

/* ========================================
   TEAM SECTION
   ======================================== */
.team-section {
    padding: 6rem 2rem;
    background: var(--color-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.team-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-card:hover {
    box-shadow:
        0 15px 45px rgba(104, 85, 243, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
}

.team-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-white);
}

.team-card h3 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.team-role {
    display: block;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.team-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border-radius: 50%;
    color: var(--color-text-light);
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--color-primary);
    color: var(--color-text-white);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--color-bg-white) 0%, #f8f7ff 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(104, 85, 243, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content h2 {
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.contact-content p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: nowrap;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 3rem 2rem;
    background: var(--color-bg-dark);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-white);
    font-family: var(--font-display);
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

.footer-copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ========================================
   KIMA VENTURES SPECIFIC
   ======================================== */
.kima-badge {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-text-white);
    box-shadow: 0 4px 15px rgba(104, 85, 243, 0.3);
    border: none;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
}

.kima-badge .badge-icon {
    font-size: 1.2rem;
    display: inline-block;
    animation: bounce 2s ease infinite;
}

/* Stat color variants */
.stat-item.stat-danger .stat-value {
    color: #dc3545;
}

.stat-item.stat-warning .stat-value {
    color: #e67700;
}

.stat-item.stat-primary .stat-value {
    color: var(--color-primary);
}

/* ========================================
   OPPORTUNITY SECTION
   ======================================== */
.opportunity-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #f8f7ff 0%, var(--color-bg) 100%);
    position: relative;
}

.opportunity-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary-light), transparent);
}

.opportunity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto 4rem;
}

.opp-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.opp-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.opp-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 50px rgba(104, 85, 243, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(104, 85, 243, 0.2);
}

.opp-card:hover::after {
    transform: scaleX(1);
}

.opp-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.opp-card h3 {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.opp-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.opp-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

/* ========================================
   COMPARISON TABLE
   ======================================== */
.value-prop {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.value-prop h3 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.comparison-table {
    display: grid;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.comparison-header,
.comparison-row {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
}

.comparison-header {
    background: var(--color-bg);
    font-weight: 600;
    font-size: 0.85rem;
}

.comparison-header .comp-col {
    padding: 1rem 0.75rem;
    text-align: center;
    color: var(--color-text-light);
}

.comparison-header .comp-col.highlight-col {
    background: var(--color-primary);
    color: var(--color-text-white);
}

.comparison-row {
    border-top: 1px solid var(--color-border);
}

.comparison-row .comp-col {
    padding: 1rem 0.75rem;
    font-size: 0.9rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-row .comp-col.label {
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-bg);
    justify-content: flex-start;
    text-align: left;
}

.comparison-row .comp-col:not(.label) {
    color: var(--color-text-light);
}

.comparison-row .comp-col.highlight-col {
    background: rgba(104, 85, 243, 0.08);
    color: var(--color-primary);
    font-weight: 600;
}

/* ========================================
   TEAM GRID 4 COLUMNS
   ======================================== */
.team-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
}

.team-grid-4 .team-card {
    padding: 1.75rem 1.25rem;
}

.team-grid-4 .team-avatar {
    width: 80px;
    height: 80px;
}

.team-grid-4 .avatar-fallback {
    font-size: 1.5rem;
}

.team-grid-4 .team-card h3 {
    font-size: 1.1rem;
}

.team-grid-4 .team-card p {
    font-size: 0.875rem;
}

/* ========================================
   KIMA MESSAGE (CONTACT)
   ======================================== */
.kima-message {
    margin-bottom: 2rem;
}

.kima-intro {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-text-white);
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1rem;
}

.contact-docs {
    margin-top: 2rem;
}

.docs-note {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px var(--color-shadow);
    }
    50% {
        box-shadow: 0 4px 30px rgba(104, 85, 243, 0.35);
    }
}

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

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.btn-primary.btn-large {
    animation: pulse 2s infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Animated gradient text */
.hero .highlight {
    background: linear-gradient(90deg, var(--color-primary), #9b8afb, var(--color-primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

/* Dock-style text animation (like macOS dock) */
.dock-text {
    display: inline-block;
    cursor: default;
}

.dock-letter {
    display: inline-block;
    transition: transform 0.2s ease;
    background: linear-gradient(90deg, var(--color-primary), #9b8afb, var(--color-primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

.dock-text:hover .dock-letter,
.dock-text.animate .dock-letter {
    animation: dockBounce 0.6s ease forwards, gradientShift 3s ease infinite;
    animation-delay: calc(var(--i) * 0.03s), 0s;
}

@keyframes dockBounce {
    0% {
        transform: scale(1) translateY(0);
    }
    40% {
        transform: scale(1.35) translateY(-8px);
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

/* ========================================
   GLASSMORPHISM CARDS
   ======================================== */
.glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 8px 32px rgba(104, 85, 243, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.stat-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 8px 32px rgba(104, 85, 243, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.opp-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 8px 32px rgba(104, 85, 243, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.feature-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 8px 32px rgba(104, 85, 243, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.team-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 8px 32px rgba(104, 85, 243, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.value-prop {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 8px 32px rgba(104, 85, 243, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* ========================================
   SCROLL REVEAL (Framer-style)
   GPU-accelerated, butter-smooth
   ======================================== */
.scroll-reveal {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    transition:
        opacity 1s cubic-bezier(0.25, 1, 0.5, 1),
        transform 1s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Hero: réorganisation mobile - bento au-dessus des boutons */
    .hero {
        padding: 6rem 1.5rem 3rem;
        flex-direction: column;
        align-items: center;
    }

    .hero-content,
    .hero-visual {
        display: contents;
    }

    .hero-badge { order: 1; }
    .hero h1 { order: 2; }
    .hero .hero-subtitle { order: 3; }
    .hero .hero-levee { order: 4; margin-bottom: 1.5rem; }
    .hero-stats {
        order: 5;
        margin: 2rem 0 !important;
        width: 100%;
        padding: 0 1rem;
    }
    .hero-cta { order: 6; }

    /* Cacher le bouton scroll-arrow sur mobile */
    .scroll-arrow,
    .pill-rain-container {
        display: none !important;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .hero-stats .stat-item:first-child {
        grid-row: span 1;
        padding: 1.5rem;
    }

    .hero-stats .stat-item:first-child .stat-value {
        font-size: 2.5rem;
    }

    .hero-stats .stat-item:last-child {
        grid-column: span 1;
    }

    .demo-frame iframe {
        height: 400px;
    }

    .demo-instructions {
        flex-direction: column;
        align-items: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .features-grid,
    .team-grid,
    .team-grid-4 {
        grid-template-columns: 1fr;
    }

    .opportunity-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr;
    }

    .comparison-header .comp-col:first-child,
    .comparison-row .comp-col.label {
        display: none;
    }

    .comparison-row .comp-col {
        padding: 0.75rem;
        border-bottom: 1px solid var(--color-border);
    }

    .comparison-row .comp-col::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 0.5rem;
    }

    .value-prop {
        padding: 1.5rem;
    }

    .traction-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-cta {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ========================================
   PILL RAIN ANIMATION
   ======================================== */
.pill-rain-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

.pill {
    position: absolute;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Comprimé rond blanc avec barre de sécabilité */
.pill-round {
    width: 72px;
    height: 72px;
    background: #f5f5f5;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    transition: height 0.25s ease-out, border-radius 0.25s ease-out;
    position: relative;
}

.pill-round::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #999;
    border-radius: 2px;
    transform: translateY(-50%);
}

.pill-round.flat {
    height: 24px;
    border-radius: 12px;
}

/* Comprimé rond blanc variante avec barre de sécabilité */
.pill-round-sm {
    width: 64px;
    height: 64px;
    background: #fafafa;
    border-radius: 50%;
    border: 2px solid #e5e5e5;
    transition: height 0.25s ease-out, border-radius 0.25s ease-out;
    position: relative;
}

.pill-round-sm::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #999;
    border-radius: 2px;
    transform: translateY(-50%);
}

.pill-round-sm.flat {
    height: 20px;
    border-radius: 10px;
}

/* Comprimé ovale blanc avec barre de sécabilité */
.pill-oval {
    width: 85px;
    height: 60px;
    background: #f8f8f8;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    transition: height 0.25s ease-out, border-radius 0.25s ease-out;
    position: relative;
}

.pill-oval::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    right: 15%;
    height: 3px;
    background: #999;
    border-radius: 2px;
    transform: translateY(-50%);
}

.pill-oval.flat {
    height: 22px;
    border-radius: 11px;
}

/* Gélule blanc/rouge */
.pill-capsule-white-red {
    width: 80px;
    height: 34px;
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 48%, #dc2626 52%, #dc2626 100%);
    border-radius: 17px;
    border: 2px solid #d0d0d0;
}

/* Gélule jaune/rouge */
.pill-capsule-yellow-red {
    width: 75px;
    height: 32px;
    background: linear-gradient(90deg, #fbbf24 0%, #fbbf24 48%, #dc2626 52%, #dc2626 100%);
    border-radius: 16px;
    border: 2px solid #d0d0d0;
}

/* Gélule vert foncé/blanc */
.pill-capsule-green-white {
    width: 82px;
    height: 35px;
    background: linear-gradient(90deg, #166534 0%, #166534 48%, #ffffff 52%, #ffffff 100%);
    border-radius: 17px;
    border: 2px solid #d0d0d0;
}

/* Le cachet "survivant" qui devient le bouton */
.pill.survivor {
    z-index: 15;
    cursor: pointer;
    pointer-events: auto;
}

.pill.morphing {
    transition:
        left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        top 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.4s ease,
        box-shadow 0.4s ease,
        border-radius 0.3s ease,
        opacity 0.3s ease;
}

/* Scroll arrow caché initialement */
.scroll-arrow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-white);
    border-radius: 50%;
    color: var(--color-primary);
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(104, 85, 243, 0.2);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

.scroll-arrow.visible {
    opacity: 1;
    pointer-events: auto;
    animation: scrollBounce 0.8s ease-in-out infinite;
}

.scroll-arrow:hover {
    background: var(--color-primary);
    color: var(--color-text-white);
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(104, 85, 243, 0.35);
    animation: none;
}

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

/* ========================================
   FULLSCREEN MODE
   ======================================== */
.demo-frame.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    border-radius: 0;
}

.demo-frame.fullscreen iframe {
    height: 100vh;
}

.demo-frame.fullscreen .demo-controls {
    top: 1.5rem;
    right: 1.5rem;
}

/* ========================================
   HERO SIMPLE (sans stats)
   ======================================== */
.hero.hero-simple {
    min-height: 70vh;
    padding-bottom: 6rem;
}

.hero.hero-simple .hero-content {
    max-width: 800px;
}

.hero.hero-simple h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .hero.hero-simple {
        min-height: 60vh;
        padding: 6rem 1.5rem 4rem;
    }

    .hero.hero-simple h1 {
        font-size: 2rem;
    }
}
