:root {
    /* Couleurs globales Stemovia */
    --background-dark: #0A0A0A;
    --background-secondary: #111111;
    --text-white: #FFFFFF;
    --text-gray: #A7B0B8;
    --primary-cyan: #0077A8;
    --primary-cyan-hover: #005F8A;
    
    /* Couleurs par agent */
    --vera-bg: #0A1E28;
    --vera-hover: #0E2533;
    --vera-border: #29D3FF;

    --vera-plus-bg: #0D1F2D;
    --vera-plus-hover: #122436;
    --vera-plus-border: #29D3FF;
    
    --cleo-bg: #2A2635;
    --cleo-hover: #332E42;
    --cleo-border: #6EE7FF;
    
    --neo-bg: #161E2F;
    --neo-hover: #1C2740;
    --neo-border: #00E5FF;
    
    --ari-bg: #1A1528;
    --ari-hover: #211A33;
    --ari-border: #C4B5FD;
    
    --aelys-bg: #0F1B2E;
    --aelys-hover: #14223A;
    --aelys-border: #38BDF8;
    
    /* Fonctionnelles */
    --success: #10b981;
    --border: #262626;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-white);
    background: var(--background-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Logo robot en arrière-plan */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background-image: url('logo_stemovia.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* ============================================
   HEADER
============================================ */
header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo::before {
    content: '';
    width: 40px;
    height: 40px;
    background-image: url('logo_stemovia_simple.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.cta-button {
    background: var(--primary-cyan);
    color: var(--background-dark);
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--primary-cyan-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.3);
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
    padding: 8rem 0 6rem;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.05) 0%, transparent 50%);
}

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

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a3a3a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--aelys-border) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* ============================================
   AGENTS SECTION
============================================ */
.agents {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 4rem;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Cartes agents avec couleurs personnalisées */
.agent-card {
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 25px rgba(0,229,255,0.08);
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.agent-card:hover {
    transform: translateY(-8px);
}

/* Vera - Bleu pétrole (position 1) */
.agent-card:nth-child(1) {
    background: var(--vera-bg);
    border-color: var(--vera-border);
}
.agent-card:nth-child(1):hover {
    box-shadow: 0 0 40px rgba(41, 211, 255, 0.2);
}
.agent-card:nth-child(1) .agent-image {
    background: #0A1E28 !important;
}
.agent-card:nth-child(1) .agent-content {
    background: var(--vera-bg);
}
.agent-card:nth-child(1) .agent-content:hover {
    background: var(--vera-hover);
}

/* Vera+ - Premium (position 2) */
.agent-card:nth-child(2) {
    background: var(--vera-plus-bg);
    border-color: var(--vera-plus-border);
}
.agent-card:nth-child(2):hover {
    box-shadow: 0 0 40px rgba(41, 211, 255, 0.25);
}
.agent-card:nth-child(2) .agent-image {
    background: transparent;
}
.agent-card:nth-child(2) .agent-content {
    background: var(--vera-plus-bg);
}
.agent-card:nth-child(2) .agent-content:hover {
    background: var(--vera-plus-hover);
}

/* Aelys - Noir bleuté (position 2) */
.agent-card:nth-child(3) {
    background: var(--aelys-bg);
    border-color: var(--aelys-border);
}
.agent-card:nth-child(3):hover {
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.2);
}
.agent-card:nth-child(3) .agent-image {
    background: #0F1B2E !important;
}
.agent-card:nth-child(3) .agent-content {
    background: var(--aelys-bg);
}
.agent-card:nth-child(3) .agent-content:hover {
    background: var(--aelys-hover);
}

/* Néo - Bleu nuit (position 3) */
.agent-card:nth-child(4) {
    background: var(--neo-bg);
    border-color: var(--neo-border);
}
.agent-card:nth-child(4):hover {
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.2);
}
.agent-card:nth-child(4) .agent-image {
    background: transparent;
}
.agent-card:nth-child(4) .agent-content {
    background: var(--neo-bg);
}
.agent-card:nth-child(4) .agent-content:hover {
    background: var(--neo-hover);
}

/* Cléo - Mauve gris (position 4) */
.agent-card:nth-child(5) {
    background: var(--cleo-bg);
    border-color: var(--cleo-border);
}
.agent-card:nth-child(5):hover {
    box-shadow: 0 0 40px rgba(110, 231, 255, 0.2);
}
.agent-card:nth-child(5) .agent-image {
    background: transparent;
}
.agent-card:nth-child(5) .agent-content {
    background: var(--cleo-bg);
}
.agent-card:nth-child(5) .agent-content:hover {
    background: var(--cleo-hover);
}

/* Ari - Anthracite (position 5) */
.agent-card:nth-child(6) {
    background: #1A1528;
    border-color: #C4B5FD !important;
}
.agent-card:nth-child(6):hover {
    box-shadow: 0 0 40px rgba(196, 181, 253, 0.2);
}
.agent-card:nth-child(6) .agent-image {
    background: transparent;
}
.agent-card:nth-child(6) .agent-content {
    background: #1A1528;
}
.agent-card:nth-child(6) .agent-content:hover {
    background: #211A33;
}

.agent-image {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    overflow: visible;
    padding: 2rem;
    position: relative;
}

.agent-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: transparent !important;
}

.agent-content {
    padding: 2rem;
}

.agent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.agent-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-white);
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.agent-role {
    color: var(--primary-cyan);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agent-description {
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.agent-button {
    width: 100%;
    background: var(--success);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}

.agent-button:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* ============================================
   ABOUT SECTION
============================================ */
.about {
    padding: 6rem 0;
    background: var(--background-secondary);
}

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

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-content > p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.feature-item p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ============================================
   CONTACT SECTION
============================================ */
.contact {
    padding: 6rem 0;
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: var(--primary-cyan);
}

.contact-icon {
    font-size: 1.5rem;
}

.cta-button-large {
    background: var(--primary-cyan);
    color: var(--background-dark);
    padding: 1.25rem 3rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.cta-button-large:hover {
    background: var(--primary-cyan-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 229, 255, 0.3);
}

/* ============================================
   FOOTER - HORIZONTAL
============================================ */
footer {
    background: var(--background-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-cyan);
    font-size: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-legal {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

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

.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    display: block;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--primary-cyan);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

.footer-bottom::before {
    content: '';
    display: block;
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background-image: url('logo_stemovia_simple.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
}

/* ============================================
   COOKIE BANNER - EN BAS
============================================ */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--neo-bg) 0%, var(--vera-bg) 100%);
    border-top: 2px solid var(--primary-cyan);
    padding: 1.5rem;
    box-shadow: 0 -8px 30px rgba(0, 229, 255, 0.2);
    z-index: 2000;
    display: none;
    backdrop-filter: blur(20px);
}

#cookie-banner.show {
    display: block;
    animation: slideUp 0.4s ease;
}

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

.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 0 40px;
}

.cookie-content p {
    color: var(--text-white);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.cookie-content a {
    color: var(--primary-cyan);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-button {
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.cookie-button.accept {
    background: var(--primary-cyan);
    color: var(--background-dark);
}

.cookie-button.accept:hover {
    background: var(--primary-cyan-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 229, 255, 0.4);
}

.cookie-button.decline {
    background: transparent;
    color: var(--text-gray);
    border: 1px solid var(--border);
}

.cookie-button.decline:hover {
    border-color: var(--text-gray);
    color: white;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .agents-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    /* Header mobile */
    nav {
        padding: 1rem 0;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .cta-button {
        padding: 0.45rem 0.8rem;
        font-size: 0.72rem;
        border-radius: 6px;
        white-space: nowrap;
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* Hero mobile */
    .hero {
        padding: 4rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        letter-spacing: -1px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Section titles mobile */
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Agents grid mobile */
    .agents-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .agent-card {
        border-radius: 16px;
    }
    
    .agent-image {
        height: 220px;
        padding: 1.5rem;
    }
    
    .agent-content {
        padding: 1.5rem;
    }
    
    .agent-card h3 {
        font-size: 1.4rem;
    }
    
    .agent-role {
        font-size: 0.85rem;
    }
    
    .agent-description {
        font-size: 0.9rem;
    }
    
    .agent-button {
        padding: 0.85rem;
        font-size: 0.9rem;
    }
    
    /* Contact mobile */
    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-item {
        font-size: 1rem;
    }
    
    .cta-button-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Cookie banner mobile */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
        gap: 1.5rem;
    }
    
    .cookie-content p {
        font-size: 0.9rem;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-button {
        width: 100%;
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* About mobile */
    .about-content h2 {
        font-size: 2rem;
    }
    
    .about-content > p {
        font-size: 1rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    /* Footer mobile */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Très petit mobile */
    .hero h1 {
        font-size: 1.65rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .cta-button {
        padding: 0.5rem 0.85rem;
        font-size: 0.75rem;
    }
    
    .agent-image {
        height: 200px;
        padding: 1rem;
    }
    
    body::before {
        width: 300px;
        height: 300px;
    }
}
