/* Base générale */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: #e8edf7;
    line-height: 1.6;

    background: 
        linear-gradient(rgba(10, 15, 30, 0.85), rgba(10, 15, 30, 0.95)),
        url('/assets/images/bg.jpg');

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Conteneur principal */
.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.narrow {
    width: min(820px, 100%);
    margin: 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(14px);
    background: rgba(8, 12, 24, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #4f8cff, #7c5cff);
    color: #fff;
    font-weight: 800;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #bcc7df;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
}

/* Sections */
.section {
    padding: 88px 0;
}

.section-light {
    background: #121a31;
}

.section-heading {
    margin-bottom: 34px;
}

.section-heading h2 {
    margin: 10px 0 12px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.15;
}

.eyebrow {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(106, 139, 255, 0.14);
    color: #9bb6ff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Hero */
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 42px;
    align-items: center;
}

.hero-content h1,
.page-hero h1 {
    margin: 18px 0 18px;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.05;
    color: #ffffff;
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-card {
    position: relative;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(25, 35, 67, 0.95), rgba(15, 21, 39, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.card-glow {
    position: absolute;
    inset: auto -60px -60px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(79, 140, 255, 0.18);
    filter: blur(40px);
}

.mini-label {
    display: inline-block;
    margin-bottom: 14px;
    color: #9bb6ff;
    font-size: 0.9rem;
    font-weight: 700;
}

.service-preview ul {
    margin: 0;
    padding-left: 18px;
}

.service-preview li {
    margin-bottom: 12px;
}

/* Typing box */
.typing-box {
    height: 260px;
    overflow: hidden;
    padding: 24px;
    border-radius: 22px;
    background: rgba(14, 19, 36, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

#typing-text {
    margin: 0;
    min-height: 170px;
    white-space: pre-wrap;
}

.typing-box p {
    margin: 0;
    color: #dce5fb;
    font-size: 1.03rem;
    line-height: 1.8;
    white-space: pre-wrap;
}

.typing-cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    margin-top: 8px;
    background: #7c9dff;
    animation: blink 0.9s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Cartes */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.info-card,
.contact-card {
    padding: 28px;
    border-radius: 22px;
    background: rgba(17, 24, 45, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-card h3,
.contact-card h2 {
    margin-top: 0;
    color: #ffffff;
}

/* CTA */
.cta-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding: 34px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(79, 140, 255, 0.14), rgba(124, 92, 255, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Timeline */
.timeline {
    display: grid;
    gap: 18px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 18px;
    padding: 24px;
    border-radius: 20px;
    background: rgba(17, 24, 45, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-step {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #4f8cff, #7c5cff);
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
}

.form-group {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

label {
    font-weight: 600;
    color: #d8e1f4;
}

input,
textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0f1527;
    color: #ffffff;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: rgba(113, 150, 255, 0.8);
}

/* Boutons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s ease;
}

.button-primary {
    background: linear-gradient(135deg, #3b82f6, #ef4444);
}

.button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(79, 140, 255, 0.22);
}

.button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    background: transparent;
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Footer */
.site-footer {
    padding-top: 54px;
    background: #090d19;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 26px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #c6d3ee;
    text-decoration: none;
}

.footer-bottom {
    padding: 24px 0;
    margin-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #aab6d2;
}

/* Responsive */
@media (max-width: 980px) {
    .hero-grid,
    .contact-layout,
    .footer-grid,
    .cta-panel {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 0;
    }

    .main-nav {
        width: 100%;
    }

    .header-cta {
        width: 100%;
    }
}

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

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .typing-box {
        min-height: 280px;
    }

    .logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    }
    .brand {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* Glow effect */
    .hero h1 {
        text-shadow: 0 0 12px rgba(120, 160, 255, 0.25);
    }

    
    .info-card,
    .contact-card,
    .hero-card {
        backdrop-filter: blur(12px);
        background: rgba(20, 30, 60, 0.6);
        border: 1px solid rgba(255,255,255,0.08);
    }
    /* Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}




/* Text NEURASCALE */
.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
}


.logo-text {
    text-shadow: 0 0 8px rgba(120, 160, 255, 0.3);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    display: block;
    flex: 0 0 auto;
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(79, 140, 255, 0.22);
}
}