:root {
    --bg: #030406;
    --accents-1: #111;
    --accents-2: #333;
    --primary: #ffffff;
    --secondary: #888;
    --brand: #A5C9FF;
    --brand-glow: rgba(0, 112, 243, 0.3);
    --border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(255, 255, 255, 0.02);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --section-padding: 4rem 0;
    --container-width: 1100px;
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 0;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg);
    color: var(--primary);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Ffilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 9999;
}

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

section {
    padding: var(--section-padding);
    border-top: 1px solid var(--border);
}

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem; align-items: center; }
.grid-2-1 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 6rem; align-items: center; }
.grid-contact { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 6rem; align-items: start; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2-1, .grid-contact { grid-template-columns: 1fr; gap: 4rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

header {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    background: rgba(3, 4, 6, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    transition: all 0.3s ease;
}

nav { display: flex; justify-content: space-between; align-items: center; }

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

@media (max-width: 768px) {
    .nav-content {
        position: fixed;
        top: 0; right: -100%;
        width: 100%; height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-open .nav-content {
        right: 0;
    }
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
}

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

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }
    .nav-links a { font-size: 1.2rem !important; }
}

.nav-links a { color: var(--secondary); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    
    .nav-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
    .nav-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

.hero {
    position: relative;
    padding-top: 12rem;
    /* padding-bottom: 12rem; */
    text-align: center;
    overflow: hidden;
    border-top: none;
}

@media (max-width: 768px) {
    .hero { padding: 10rem 0 6rem; }
}

.hero h1 {
    text-align: center;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1.1;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    background: linear-gradient(to bottom, #fff 60%, rgba(255,255,255,0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 span.accent {
    color: #A5C9FF;
    -webkit-text-fill-color: #A5C9FF;
}

.hero p {
    text-align: center;
    font-size: 1.35rem;
    color: var(--secondary);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary { background: var(--primary); color: var(--bg); }
.btn-ghost { color: var(--secondary); border: 1px solid var(--border); }
.btn-outline { background: transparent; border: 1px solid var(--brand); color: var(--brand); }

/* Reasoning Hub Visuals - Responsive Adjustments */
.reasoning-hub {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 300px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .reasoning-hub {
        transform: scale(0.8);
        height: 260px;
    }
    
    .browser-mockup .reasoning-hub {
        margin-top: -20px;
    }
}

@media (max-width: 480px) {
    .reasoning-hub {
        transform: scale(0.65);
        height: 220px;
    }
    
    .browser-mockup > div:last-child {
        padding: 1rem !important; /* Réduire le padding interne du mockup */
    }
}

.hub-core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    z-index: 10;
}

.core-content {
    position: absolute;
    inset: 0;
    background: var(--brand);
    border-radius: 16px;
    display: flex;
    align-items: center; justify-content: center;
    box-shadow: 0 0 30px var(--brand-glow);
    z-index: 2;
}

.ring.r1 { width: 100px; height: 100px; }
.ring.r2 { width: 140px; height: 140px; }
.ring.r3 { width: 180px; height: 180px; }

/* Service Cards Refined */
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: clamp(1.5rem, 5vw, 3rem);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-title {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.2;
}

/* Carousel Slide Refined */
.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
}

@media (min-width: 901px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 1rem);
        width: calc(50% - 1rem);
    }
}

.use-case-chat {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: clamp(1.5rem, 5vw, 2.5rem);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s;
}

/* Section H2 Refined */
h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    letter-spacing: -1.5px;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .hero p {
        font-size: 1.1rem;
    }
    
    .grid-2, .grid-2-1 {
        gap: 3rem;
    }
}

.data-point {
    position: absolute;
    padding: 6px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--secondary);
    backdrop-filter: blur(4px);
    z-index: 5;
}

.p1 { top: 20%; left: 10%; }
.p2 { bottom: 20%; left: 10%; }
.p3 { top: 45%; left: 0%; }
.p4 { bottom: 45%; left: 20%; }

.output-node {
    position: absolute;
    right: 5%; top: 50%;
    transform: translateY(-50%);
    padding: 10px 20px;
    background: rgba(0, 112, 243, 0.1);
    border: 1px solid var(--brand);
    border-radius: 8px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    z-index: 5;
}

.pulse {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    box-shadow: 0 0 20px var(--brand-glow);
    animation: pulse-border 2s infinite;
}

.hub-svg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

.path-line {
    fill: none;
    stroke: rgba(0, 112, 243, 0.2);
    stroke-width: 1.5;
    stroke-dasharray: 5, 5;
    animation: dash 20s linear infinite;
}

.path-line.out {
    stroke: var(--brand);
    stroke-width: 2;
    opacity: 0.5;
}

@keyframes rotate { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes pulse-glow { 0%, 100% { opacity: 0.2; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.2); } }
@keyframes pulse-border { 0% { box-shadow: 0 0 0 0 rgba(0, 112, 243, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(0, 112, 243, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 112, 243, 0); } }
@keyframes dash { to { stroke-dashoffset: -100; } }

.browser-mockup {
    background: #0d1117;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.8);
    overflow: hidden;
    position: relative;
}

.browser-header { background: #161b22; padding: 12px 20px; display: flex; gap: 8px; border-bottom: 1px solid var(--border); }

/* Use Case Carousel - 2 per page */
.carousel-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 2rem;
}

.carousel-slide {
    flex: 0 0 calc(50% - 1rem);
    min-width: calc(50% - 1rem);
}

.use-case-chat {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s;
}

.chat-line { display: flex; gap: 12px; margin-bottom: 2rem; align-items: flex-start; }
.chat-line.ai-line { flex-direction: row-reverse; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); object-fit: cover; }
.ai-icon-bubble { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ai-icon-bubble img { width: 100%; height: 100%; object-fit: contain; }
.chat-bubble { max-width: 85%; padding: 0.8rem 1.25rem; border-radius: 18px; font-size: 0.9rem; line-height: 1.5; position: relative; }

/* User: Left aligned, darker, neutral */
.chat-user { 
    background: rgba(255, 255, 255, 0.03); 
    color: var(--secondary); 
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

/* AI: Right aligned, brand color, glowing */
.chat-ai { 
    background: rgba(165, 201, 255, 0.1); 
    color: #fff; 
    border: 1px solid var(--brand);
    border-bottom-right-radius: 4px;
    box-shadow: 0 0 20px rgba(165, 201, 255, 0.05);
}

.chat-line.ai-line { 
    flex-direction: row-reverse; 
}

.carousel-nav { display: flex; justify-content: center; align-items: center; gap: 2rem; margin-top: 4rem; }
.nav-dots { display: flex; gap: 12px; }
.nav-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accents-2); cursor: pointer; transition: all 0.3s; }
.nav-dot.active { background: var(--brand); transform: scale(1.4); box-shadow: 0 0 12px var(--brand); }
.carousel-arrow { background: transparent; border: 1px solid var(--border); color: white; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; }
.carousel-arrow:hover { border-color: var(--brand); color: var(--brand); background: rgba(0, 112, 243, 0.05); }

/* General Sections */
.section-tag { color: var(--brand); text-transform: uppercase; font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 1rem; display: block; }
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

.grid { display: grid; gap: 2rem; }

/* Service Cards Premium */
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 112, 243, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.service-card.active {
    border-color: var(--brand);
    background: rgba(0, 112, 243, 0.02);
}

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

.service-icon {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 1rem;
    opacity: 0.5;
    font-family: monospace;
}

.service-category {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand);
    display: block;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    color: #fff;
}

.service-description {
    color: var(--secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.service-features {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    font-size: 0.9rem;
    color: #eee;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.feature-item span {
    color: var(--brand);
    font-weight: bold;
}

.vision-feature {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--border);
    transition: all 0.5s ease;
}

.vision-feature.active {
    border-left-color: var(--brand);
}

.vision-feature:not(.active) {
    opacity: 0.5;
}

.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; transition: border-color 0.3s; }
.card:hover { border-color: rgba(255, 255, 255, 0.2); }

.img-container { width: 100%; height: 100%; overflow: hidden; position: relative; border-radius: 12px; }
.img-container img { width: 100%; height: 100%; object-fit: cover; }
.img-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, transparent 0%, rgba(3,4,6,0.8) 100%); }

.avatar-img { width: 60px; height: 60px; border-radius: 50%; margin-bottom: 1rem; object-fit: cover; border: 1px solid var(--border); }
.team-card { text-align: center; }

.soft-edges {
    -webkit-mask-image: 
        linear-gradient(to bottom, transparent, black 10%, black 90%, transparent),
        linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: 
        linear-gradient(to bottom, transparent, black 10%, black 90%, transparent),
        linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

footer { padding: 5rem 0; border-top: 1px solid var(--border); background: #000; }
.linkedin-link:hover svg { fill: var(--brand) !important; }
/* Utility Classes for Layout */
.section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 8vw, 6rem);
}

.section-header p {
    max-width: 700px;
    margin: 1.5rem auto;
    color: var(--secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.vision-title {
    margin-bottom: 3rem;
}

.vision-features {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.partner-card-research {
    align-items: center;
    text-align: center;
}

.partner-card-research .logo-container {
    background: #fff;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    margin: 0 auto 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 180px;
    min-height: 90px;
    position: relative;
    z-index: 10;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-card-research .logo-container:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.partner-card-research img {
    max-height: 80px;
    max-width: 95%;
    object-fit: contain;
}

.partner-logo-box {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    background: #fff;
    border: none;
    text-decoration: none;
    border-radius: 16px;
}

.partner-logo-box img {
    max-width: 90%;
    max-height: 100px;
    object-fit: contain;
}

.cta-box {
    margin-top: 6rem;
    text-align: center;
}

.cta-bento {
    display: inline-block;
    padding: 2rem 4rem;
    border: 1px solid var(--brand);
    border-radius: 24px;
    background: rgba(0, 112, 243, 0.02);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-group input, 
.form-group select, 
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
    width: 100%;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 112, 243, 0.1);
}

.form-group select option {
    background: #0d1117;
    color: #fff;
}

@media (max-width: 900px) {
    .carousel-slide { flex: 0 0 100%; min-width: 100%; }
    .grid { grid-template-columns: 1fr !important; }
}
