/* === COULEURS ETS === */
:root {
    /* Primary - Rouge ETS */
    --red-ets: #E2231A;
    --red-dark: #B01A13;
    --red-light: #F45A4F;

    /* Secondary - Bleu IA */
    --blue-ai: #1B4F72;
    --blue-light: #5DADE2;
    --blue-accent: #2E86C1;

    /* Neutrals */
    --black: #1A1A1A;
    --grey-dark: #2E2E2E;
    --grey: #7A7A7A;
    --grey-light: #F2F2F2;
    --white: #FFFFFF;

    /* Status */
    --success: #2ECC71;
    --info: #3498DB;
    --warning: #E67E22;
    --error: #C0392B;

    /* Providers */
    --anthropic: #D35400;
    --openai: #00A896;
    --gemini: #3A0CA3;
    --ollama: #5F5F5F;

    /* New Tech Colors */
    --gradient-tech: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, #0c1445 0%, #1B4F72 50%, #0a2540 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --neon-blue: #00d4ff;
    --neon-purple: #b24bf3;
    --neon-green: #00ff88;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--grey-light);
    color: var(--black);
    line-height: 1.6;
}

/* === HEADER === */
header {
    background: linear-gradient(135deg, var(--red-ets), var(--red-dark));
    color: var(--white);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
}

.logo-section h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-section p {
    font-size: 0.8rem;
    opacity: 0.9;
}

.status-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: right;
}

.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.15);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-admin:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}

/* User info (quand connecté) */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-user {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(39, 174, 96, 0.3);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid rgba(39, 174, 96, 0.5);
}

.btn-user:hover {
    background: rgba(39, 174, 96, 0.5);
    transform: translateY(-1px);
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(231, 76, 60, 0.3);
    color: white;
    border: 1px solid rgba(231, 76, 60, 0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: rgba(231, 76, 60, 0.6);
    transform: translateY(-1px);
}

#agent-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* === HERO SECTION === */
.hero {
    background: var(--gradient-hero);
    color: var(--white);
    padding: 10rem 2rem 6rem;
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

/* Animated background grid */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* Floating particles */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0,212,255,0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(178,75,243,0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(0,255,136,0.1) 0%, transparent 40%);
    pointer-events: none;
}

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

.hero-content h2 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    background: linear-gradient(135deg, #ffffff 0%, var(--neon-blue) 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

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

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

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

.btn-hero {
    background: linear-gradient(135deg, var(--red-ets), var(--red-dark));
    color: var(--white);
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(226, 35, 26, 0.4);
}

.btn-hero:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(226, 35, 26, 0.5);
}

.btn-hero-secondary {
    background: var(--glass-bg);
    color: var(--white);
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
}

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 450px;
    height: 450px;
    z-index: 1;
}

.ai-animation {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Orbiting nodes */
.node {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 0 20px currentColor;
}

.node-1 {
    background: var(--neon-blue);
    color: var(--neon-blue);
    top: 50%; left: 50%;
    animation: orbit1 8s linear infinite;
}

.node-2 {
    background: var(--neon-purple);
    color: var(--neon-purple);
    top: 50%; left: 50%;
    animation: orbit2 12s linear infinite;
}

.node-3 {
    background: var(--neon-green);
    color: var(--neon-green);
    top: 50%; left: 50%;
    animation: orbit3 6s linear infinite;
}

.node-4 {
    background: var(--red-ets);
    color: var(--red-ets);
    top: 50%; left: 50%;
    animation: orbit4 10s linear infinite reverse;
}

/* Central brain icon */
.ai-animation::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0,212,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

.ai-animation::after {
    content: '🧠';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    filter: drop-shadow(0 0 20px rgba(0,212,255,0.5));
}

@keyframes orbit1 {
    from { transform: rotate(0deg) translateX(100px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

@keyframes orbit2 {
    from { transform: rotate(45deg) translateX(150px) rotate(-45deg); }
    to { transform: rotate(405deg) translateX(150px) rotate(-405deg); }
}

@keyframes orbit3 {
    from { transform: rotate(90deg) translateX(80px) rotate(-90deg); }
    to { transform: rotate(450deg) translateX(80px) rotate(-450deg); }
}

@keyframes orbit4 {
    from { transform: rotate(180deg) translateX(180px) rotate(-180deg); }
    to { transform: rotate(540deg) translateX(180px) rotate(-540deg); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

/* Connection lines */
.connection {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 50%;
    animation: rotate-slow 20s linear infinite;
}

.connection::before, .connection::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(178,75,243,0.15);
    border-radius: 50%;
}

.connection::before {
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
}

.connection::after {
    width: 360px;
    height: 360px;
    transform: translate(-50%, -50%);
}

@keyframes rotate-slow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

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

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

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

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.hero-stat .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat .stat-desc {
    font-size: 0.85rem;
    opacity: 0.8;
}

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

/* === PROCESS SECTION === */
.process-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.section-subtitle {
    text-align: center;
    color: var(--grey);
    font-size: 1.1rem;
    margin-top: -1rem;
    margin-bottom: 3rem;
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.process-step {
    flex: 1;
    max-width: 260px;
    text-align: center;
    position: relative;
    padding: 2rem 1rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(27, 79, 114, 0.15);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.step-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--blue-ai), var(--blue-accent));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(27, 79, 114, 0.3);
    transition: all 0.3s;
}

.process-step:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
}

.process-step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blue-ai);
    margin-bottom: 0.75rem;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--grey);
    line-height: 1.6;
}

.process-connector {
    flex: 0 0 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    margin-top: 100px;
    position: relative;
    opacity: 0.5;
}

.process-connector::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid var(--neon-purple);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* Responsive process */
@media (max-width: 1024px) {
    .process-timeline {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .process-step {
        max-width: 100%;
        width: 100%;
    }

    .process-connector {
        width: 3px;
        height: 40px;
        margin: 0;
        background: linear-gradient(180deg, var(--neon-blue), var(--neon-purple));
    }

    .process-connector::after {
        right: 50%;
        bottom: -6px;
        top: auto;
        transform: translateX(50%);
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 8px solid var(--neon-purple);
        border-bottom: none;
    }

    .hero-stats {
        gap: 2rem;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-visual {
        display: none;
    }
}

/* === MAIN CONTAINER === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* === SECTIONS === */
.section {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--grey-light);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--blue-ai);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-badge {
    background: var(--blue-light);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.section-main-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue-ai);
    text-align: center;
    margin-bottom: 2rem;
}

/* === SECTION HEADERS === */
.section-header-centered {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(178,75,243,0.1));
    color: var(--blue-ai);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    border: 1px solid rgba(0,212,255,0.2);
}

.section-tag-light {
    background: rgba(255,255,255,0.1);
    color: white;
    border-color: rgba(255,255,255,0.2);
}

.section-description {
    color: var(--grey);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-description-light {
    color: rgba(255,255,255,0.8);
}

/* === FEATURES === */
.features-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--neon-blue), var(--neon-purple));
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: top;
}

.feature-card:hover::before {
    transform: scaleY(1);
}

.feature-card:hover {
    transform: translateX(8px);
    box-shadow: 0 15px 40px rgba(27, 79, 114, 0.12);
    border-color: rgba(0,212,255,0.2);
}

.feature-icon-wrapper {
    position: relative;
    flex-shrink: 0;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

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

.feature-icon-red {
    background: linear-gradient(135deg, #E2231A, #ff6b6b);
    color: white;
    box-shadow: 0 8px 25px rgba(226, 35, 26, 0.3);
}

.feature-icon-blue {
    background: linear-gradient(135deg, var(--neon-blue), #0ea5e9);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.feature-icon-green {
    background: linear-gradient(135deg, var(--neon-green), #10b981);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.feature-icon-purple {
    background: linear-gradient(135deg, var(--neon-purple), #8b5cf6);
    color: white;
    box-shadow: 0 8px 25px rgba(178, 75, 243, 0.3);
}

.feature-glow {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s;
    filter: blur(20px);
    z-index: 0;
}

.feature-card:hover .feature-glow {
    opacity: 0.4;
}

.feature-glow-red { background: #E2231A; }
.feature-glow-blue { background: var(--neon-blue); }
.feature-glow-green { background: var(--neon-green); }
.feature-glow-purple { background: var(--neon-purple); }

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-ai);
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--grey);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.feature-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--grey-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey);
    transition: all 0.3s;
    opacity: 0;
    transform: translateX(-10px);
    align-self: center;
}

.feature-card:hover .feature-arrow {
    opacity: 1;
    transform: translateX(0);
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
}

/* === DEMO SECTION === */
.demo-section {
    background: linear-gradient(135deg, var(--white), #f8fafc);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.demo-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 2px solid var(--grey-light);
}

.demo-card h3 {
    color: var(--blue-ai);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

textarea {
    width: 100%;
    min-height: 180px;
    padding: 1rem;
    border: 2px solid var(--grey-light);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 1rem;
}

textarea:focus {
    outline: none;
    border-color: var(--blue-accent);
    box-shadow: 0 0 0 4px rgba(46, 134, 193, 0.1);
}

.provider-select {
    margin-bottom: 1rem;
}

.provider-select label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--grey-dark);
}

select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--grey-light);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--white);
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--blue-accent);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red-ets), var(--red-dark));
    color: var(--white);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(226, 35, 26, 0.4);
}

.btn-secondary {
    background: var(--blue-ai);
    color: var(--white);
    width: 100%;
    margin-top: 1rem;
}

.btn-secondary:hover {
    background: var(--blue-accent);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: var(--white);
}

.btn-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* === DEMO ACTIONS === */
.demo-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.demo-actions .btn {
    flex: 1;
    padding: 0.75rem 1rem;
}

/* === RESULTATS PANEL === */
.resultats-panel {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 4px solid var(--blue-accent);
    animation: fadeIn 0.3s ease;
}

.resultats-panel.financement {
    border-left-color: #10b981;
}

.resultats-panel.brevet {
    border-left-color: #8b5cf6;
}

.resultats-panel .results-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    color: var(--blue-ai);
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.resultats-panel .results-content {
    color: var(--grey-dark);
    line-height: 1.8;
}

.resultats-panel .results-content h4 {
    color: var(--blue-ai);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.1rem;
}

.resultats-panel .results-content ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.resultats-panel .results-content li {
    margin-bottom: 0.5rem;
}

.resultats-panel .results-content p {
    margin-bottom: 0.75rem;
}

/* Score Badge */
.score-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.score-badge.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.score-badge.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.score-badge.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

/* === PROJECT INFO === */
.project-info {
    background: var(--grey-light);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.info-row {
    display: flex;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.info-label {
    font-weight: 600;
    color: var(--blue-ai);
    min-width: 100px;
    margin-right: 0.5rem;
}

.info-value {
    color: var(--grey-dark);
    flex: 1;
}

.tag {
    display: inline-block;
    background: var(--blue-accent);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    margin: 0.15rem;
}

/* === PROGRESS === */
.progress-container {
    display: none;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
}

.progress-container.active {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--grey-light);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red-ets), var(--blue-accent));
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    margin-top: 0.75rem;
    color: var(--grey);
    font-size: 0.9rem;
}

/* === RESULTS === */
.results-title {
    font-size: 1.5rem;
    color: var(--blue-ai);
    margin: 2rem 0 1.5rem;
    text-align: center;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.result-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid var(--blue-accent);
    transition: transform 0.2s;
}

.result-card:hover {
    transform: translateY(-3px);
}

.result-card.top-1 {
    border-left-color: #FFD700;
    background: linear-gradient(135deg, #fffef5, var(--white));
}

.result-card.top-2 {
    border-left-color: #C0C0C0;
}

.result-card.top-3 {
    border-left-color: #CD7F32;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.result-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--grey);
}

.result-card.top-1 .result-rank { color: #FFD700; }
.result-card.top-2 .result-rank { color: #C0C0C0; }
.result-card.top-3 .result-rank { color: #CD7F32; }

.result-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
}

.score-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

.score-high {
    background: #d4edda;
    color: #155724;
}

.score-medium {
    background: #fff3cd;
    color: #856404;
}

.score-low {
    background: #f8d7da;
    color: #721c24;
}

.result-role {
    color: var(--blue-accent);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.result-expertises {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.expertise-tag {
    background: var(--grey-light);
    color: var(--grey-dark);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
}

/* === PROVIDERS SECTION === */
.providers-section {
    padding: 5rem 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.providers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0,212,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

.providers-section .section-main-title {
    color: white;
    position: relative;
    z-index: 1;
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.provider-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.provider-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-green));
    opacity: 0;
    transition: opacity 0.3s;
}

.provider-card:hover::before {
    opacity: 1;
}

.provider-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    background: rgba(255, 255, 255, 0.12);
}

.provider-card h4 {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.provider-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Agent specific glow effects */
.provider-deephemisync:hover { box-shadow: 0 20px 50px rgba(27, 79, 114, 0.4); }
.provider-triad:hover { box-shadow: 0 20px 50px rgba(139, 92, 246, 0.4); }
.provider-deepspin:hover { box-shadow: 0 20px 50px rgba(245, 158, 11, 0.4); }
.provider-mentia:hover { box-shadow: 0 20px 50px rgba(16, 185, 129, 0.4); }

.provider-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    transition: all 0.3s;
}

.provider-card:hover .provider-logo {
    transform: scale(1.1) rotate(5deg);
}

/* Nouveaux agents IA logos */
.provider-deephemisync .provider-logo {
    background: linear-gradient(135deg, #1B4F72, #2E86C1);
    color: white;
    box-shadow: 0 10px 30px rgba(27, 79, 114, 0.4);
}
.provider-triad .provider-logo {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}
.provider-deepspin .provider-logo {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}
.provider-mentia .provider-logo {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

/* Legacy providers logos */
.provider-anthropic .provider-logo { background: var(--anthropic); color: white; }
.provider-openai .provider-logo { background: var(--openai); color: white; }
.provider-gemini .provider-logo { background: var(--gemini); color: white; }
.provider-ollama .provider-logo { background: var(--ollama); color: white; }

.provider-card h4 {
    margin-bottom: 0.5rem;
    color: var(--black);
}

.provider-card p {
    color: var(--grey);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.provider-price {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--grey-light);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.provider-free {
    background: var(--success);
    color: white;
}

/* Provider Card - New Structure */
.provider-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
}

.provider-status .status-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.provider-info {
    margin-bottom: 1rem;
}

.provider-info h4 {
    color: white !important;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.provider-info p {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.provider-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.provider-feature {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
}

.provider-card:hover .provider-feature {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.provider-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    z-index: 10;
}

.provider-badge-new {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
    animation: pulse-new 2s infinite;
}

@keyframes pulse-new {
    0%, 100% { box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5); }
    50% { box-shadow: 0 4px 25px rgba(16, 185, 129, 0.8); }
}

/* Deep Hemisync+ (Optimized) */
.provider-deephemisyncplus {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.1), transparent);
}

.provider-deephemisyncplus .provider-logo {
    color: #10b981;
}

.provider-deephemisyncplus .status-dot {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.provider-deephemisyncplus:hover {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
}

.provider-deephemisyncplus:hover .provider-feature {
    background: rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.5);
}

/* Agent specific feature colors on hover */
.provider-deephemisync:hover .provider-feature {
    background: rgba(27, 79, 114, 0.3);
    border-color: rgba(27, 79, 114, 0.5);
}

.provider-triad:hover .provider-feature {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

.provider-deepspin:hover .provider-feature {
    background: rgba(245, 158, 11, 0.3);
    border-color: rgba(245, 158, 11, 0.5);
}

.provider-mentia:hover .provider-feature {
    background: rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.5);
}

/* === ABOUT SECTION === */
.about-section {
    background: var(--blue-ai);
    color: var(--white);
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-logo img {
    max-width: 200px;
    filter: brightness(0) invert(1);
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-text p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-stats {
        justify-content: center;
    }
}

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

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--red-light);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-section p {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.6;
    font-size: 0.85rem;
}

/* === TOAST === */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--black);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--error); }
.toast.info { background: var(--blue-accent); }

/* === TRANSLATION INDICATOR === */
.translating {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.translating::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    z-index: 10;
    border-radius: inherit;
}

.translating::after {
    content: 'Traduction...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 11;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    animation: pulse-translate 1.5s ease-in-out infinite;
}

@keyframes pulse-translate {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
}

/* Language indicator badge */
.lang-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(178,75,243,0.1));
    color: var(--blue-ai);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(0,212,255,0.2);
    margin-left: 0.5rem;
}

.lang-badge svg {
    width: 12px;
    height: 12px;
}

/* Translation toggle button */
.translate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(178,75,243,0.1));
    color: var(--blue-ai);
    border: 1px solid rgba(0,212,255,0.3);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.translate-btn:hover {
    background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(178,75,243,0.2));
    border-color: rgba(0,212,255,0.5);
    transform: translateY(-1px);
}

.translate-btn svg {
    width: 16px;
    height: 16px;
}

.translate-btn.active {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    border-color: transparent;
}

/* === CHATBOT WIDGET === */
.chatbot-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red-ets), var(--red-dark));
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(226, 35, 26, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(226, 35, 26, 0.5);
}

.chatbot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--blue-accent);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
}

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

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 550px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.chatbot-window.open {
    display: flex;
}

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

.chatbot-header {
    background: linear-gradient(135deg, var(--blue-ai), var(--blue-accent));
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.chatbot-status {
    font-size: 0.75rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.chatbot-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

.chatbot-close {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.2s;
}

.chatbot-close:hover {
    background: rgba(255,255,255,0.3);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8fafc;
    max-height: 320px;
    min-height: 200px;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease;
}

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

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--blue-ai);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: var(--red-ets);
    order: 2;
}

.user-message {
    flex-direction: row-reverse;
}

.message-content {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    max-width: 80%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.user-message .message-content {
    background: var(--red-ets);
    color: white;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 4px;
}

.message-content p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
    font-size: 0.85rem;
}

.message-content li {
    margin-bottom: 0.25rem;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.5rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--grey);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-5px); opacity: 1; }
}

.chatbot-input-area {
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--grey-light);
}

.quick-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.quick-btn {
    background: var(--grey-light);
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--grey-dark);
}

.quick-btn:hover {
    background: var(--blue-light);
    color: white;
}

.chatbot-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.chatbot-input-wrapper input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--grey-light);
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.chatbot-input-wrapper input:focus {
    border-color: var(--blue-accent);
}

.chatbot-send {
    width: 44px;
    height: 44px;
    background: var(--red-ets);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
}

.chatbot-send:hover {
    background: var(--red-dark);
    transform: scale(1.05);
}

/* Responsive chatbot */
@media (max-width: 480px) {
    .chatbot-container {
        bottom: 1rem;
        right: 1rem;
    }

    .chatbot-window {
        width: calc(100vw - 2rem);
        max-height: 70vh;
        bottom: 70px;
        right: 0;
    }

    .chatbot-toggle {
        width: 55px;
        height: 55px;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    header {
        padding: 0.75rem 1rem;
    }

    .logo-section h1 {
        font-size: 1.2rem;
    }

    .hero {
        padding: 6rem 1rem 3rem;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-visual {
        display: none;
    }

    .container {
        padding: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

/* === LANGUAGE SELECTOR === */
.language-selector {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.language-selector select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}

.language-selector select:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.language-selector select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.language-selector select option {
    background: #333;
    color: white;
    padding: 0.5rem;
}

/* Language selector for light backgrounds */
.language-selector.light select {
    background-color: white;
    border-color: #ddd;
    color: #333;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.language-selector.light select:hover {
    background-color: #f5f5f5;
}

@media (max-width: 768px) {
    .language-selector {
        margin-left: 0.5rem;
    }

    .language-selector select {
        padding: 0.3rem 1.5rem 0.3rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* === DEMO SHOWCASE SECTION === */
.demo-showcase {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 2rem;
    margin-top: -2rem;
}

.showcase-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--blue-ai);
    margin-bottom: 2.5rem;
    text-align: center;
}

.showcase-title svg {
    color: var(--warning);
}

.showcase-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.showcase-card .card-header {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 600;
}

.showcase-card .card-header svg {
    flex-shrink: 0;
}

/* Couleurs spécifiques pour chaque carte */
.card-subvention .card-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.card-brevet .card-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.card-matching .card-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.showcase-card .card-body {
    padding: 1.5rem;
}

.score-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 3px solid;
}

.card-subvention .score-circle {
    border-color: #10b981;
}

.card-brevet .score-circle {
    border-color: #8b5cf6;
}

.card-matching .score-circle {
    border-color: #3b82f6;
}

.score-number {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.card-subvention .score-number {
    color: #059669;
}

.card-brevet .score-number {
    color: #7c3aed;
}

.card-matching .score-number {
    color: #2563eb;
}

.score-text {
    font-size: 0.75rem;
    color: var(--grey);
    margin-top: 0.25rem;
}

.card-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--grey-light);
    font-size: 0.9rem;
    color: var(--grey-dark);
}

.card-details li:last-child {
    border-bottom: none;
}

.card-details li strong {
    color: var(--black);
}

@media (max-width: 768px) {
    .demo-showcase {
        padding: 2rem 1rem;
    }

    .showcase-title {
        font-size: 1.2rem;
        flex-direction: column;
    }

    .showcase-cards {
        grid-template-columns: 1fr;
    }
}

/* ====================================
   COOKIE CONSENT BANNER
   ==================================== */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--white);
    padding: 1.25rem 2rem;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease-out;
}

.cookie-consent.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-consent.hide {
    opacity: 0;
    transform: translateY(100%);
}

.cookie-content {
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-icon {
    font-size: 2.5rem;
    animation: cookieBounce 2s ease-in-out infinite;
}

@keyframes cookieBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(-5deg); }
    75% { transform: translateY(-3px) rotate(5deg); }
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-cookie-accept {
    background: linear-gradient(135deg, var(--success), #27ae60);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.btn-cookie-decline {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cookie-decline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.cookie-learn-more {
    color: var(--neon-blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.cookie-learn-more:hover {
    color: white;
    text-decoration: underline;
}

/* Cookie Details Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.cookie-modal {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .cookie-modal {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--grey);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: var(--grey-light);
    color: var(--black);
}

.cookie-modal h3 {
    color: var(--black);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.cookie-details-content h4 {
    color: var(--blue-ai);
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem;
}

.cookie-details-content h4:first-child {
    margin-top: 0;
}

.cookie-details-content p {
    color: var(--grey-dark);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.cookie-details-content ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.cookie-details-content li {
    color: var(--grey-dark);
    margin-bottom: 0.5rem;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--grey-light);
}

.cookie-table th {
    background: var(--grey-light);
    color: var(--black);
    font-weight: 600;
}

.cookie-table td {
    color: var(--grey-dark);
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 1rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-text {
        min-width: 100%;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-modal {
        padding: 1.5rem;
        margin: 1rem;
    }

    .cookie-modal-buttons {
        flex-direction: column;
    }

    .cookie-modal-buttons button {
        width: 100%;
    }
}
