:root {
    --bg-black: #080b12;
    --card-bg: rgba(255, 255, 255, 0.03);
    --blue-glow: #5d78ff;
    --text-white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    background-color: var(--bg-black); 
    color: var(--text-white); 
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, .logo { font-family: 'Orbitron', sans-serif; }

/* NAV */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; background: rgba(8, 11, 18, 0.95); position: fixed; width: 100%; z-index: 1000;
}
.logo span { color: var(--blue-glow); }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { color: white; text-decoration: none; font-size: 0.8rem; letter-spacing: 1px; }
.btn-pill { 
    background: var(--blue-glow); color: white; padding: 8px 20px; 
    border-radius: 20px; text-decoration: none; font-size: 0.7rem; font-weight: bold;
    box-shadow: 0 0 15px rgba(93, 120, 255, 0.5);
}

/* HERO */
.hero {
    height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; background: radial-gradient(circle at center, #111827 0%, #080b12 100%);
    padding: 0 15%;
}
.hero h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 20px; letter-spacing: 2px; }
.hero p { color: #9ca3af; font-size: 0.9rem; margin-bottom: 30px; line-height: 1.6; }
.btn-glow {
    background: transparent; border: 1px solid var(--blue-glow); color: white;
    padding: 12px 30px; border-radius: 25px; cursor: pointer;
    box-shadow: inset 0 0 10px rgba(93, 120, 255, 0.2), 0 0 15px rgba(93, 120, 255, 0.3);
}

/* SERVICES */
.section { padding: 80px 10%; text-align: center; }
.section-title { margin-bottom: 50px; font-size: 2rem; letter-spacing: 5px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.service-card {
    background: var(--card-bg); padding: 40px 20px; border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1); transition: 0.3s;
}
.service-card:hover { transform: translateY(-10px); border-color: var(--blue-glow); box-shadow: 0 10px 30px rgba(93, 120, 255, 0.1); }
.service-icon img { width: 80px; margin-bottom: 20px; filter: drop-shadow(0 0 10px var(--blue-glow)); }
.service-card h3 { font-size: 1rem; margin-bottom: 15px; }
.service-card p { font-size: 0.8rem; color: #9ca3af; }

/* ABOUT */
.about-flex { display: flex; align-items: center; gap: 50px; text-align: left; }
.about-content h2 { margin-bottom: 20px; }
.about-content p { margin-bottom: 15px; color: #9ca3af; font-size: 0.9rem; }
.about-image img { width: 100%; max-width: 400px; }

/* CONTACT */
/* --- CONTACT MINIMALISTE --- */
.contact-minimal {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(93, 120, 255, 0.2);
    border-radius: 20px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    backdrop-filter: blur(10px);
    transition: 0.4s ease;
}

.contact-card:hover {
    border-color: var(--blue-glow);
    box-shadow: 0 0 30px rgba(93, 120, 255, 0.15);
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-label {
    font-family: 'Orbitron';
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #6b7280;
}

.contact-link {
    font-family: 'Orbitron';
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    transition: 0.3s;
    word-break: break-word;
}

.contact-link:hover {
    color: var(--blue-glow);
    text-shadow: 0 0 15px rgba(93, 120, 255, 0.6);
}

.contact-divider {
    height: 1px;
    width: 100px;
    background: var(--blue-glow);
    margin: 0 auto;
    opacity: 0.3;
}

.contact-note {
    margin-top: 30px;
    font-size: 0.85rem;
    color: #4b5563;
    font-style: italic;
}

/* Ajustement Mobile */
@media (max-width: 768px) {
    .contact-link { font-size: 1.2rem; }
    .contact-card { padding: 40px 20px; }
}

/* BOT */
.bot-container { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; align-items: flex-end; }
.bot-bubble { background: #1f2937; padding: 10px 20px; border-radius: 10px; font-size: 0.8rem; margin-bottom: 10px; border-left: 3px solid var(--blue-glow); }
.bot-avatar { width: 70px; height: 70px; cursor: pointer; transition: 0.3s; }
.bot-avatar img { width: 100%; filter: drop-shadow(0 0 10px var(--blue-glow)); }
.bot-avatar:hover { transform: scale(1.1); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links, .nav-right .btn-pill { display: none; }
    .hero h1 { font-size: 1.8rem; }
    .about-flex { flex-direction: column; text-align: center; }
}









/* Style de la fenêtre de chat */
.chat-window {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 320px;
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid var(--blue-glow);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(93, 120, 255, 0.3);
    transition: all 0.3s ease;
}

.chat-window.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.chat-header {
    background: var(--blue-glow);
    padding: 12px;
    font-family: 'Orbitron';
    font-size: 0.7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#close-chat { background: none; border: none; color: white; cursor: pointer; font-size: 1.2rem; }

.chat-body {
    height: 300px;
    padding: 15px;
    overflow-y: auto;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bot-msg { background: rgba(255,255,255,0.05); padding: 10px; border-radius: 10px 10px 10px 0; border-left: 2px solid var(--blue-glow); align-self: flex-start; }
.user-msg { background: var(--blue-glow); padding: 10px; border-radius: 10px 10px 0 10px; align-self: flex-end; }

.chat-options {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: rgba(255,255,255,0.02);
}

.opt-btn {
    background: transparent;
    border: 1px solid var(--blue-glow);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.2s;
}

.opt-btn:hover { background: var(--blue-glow); }






/* --- AJUSTEMENTS MENU --- */
.nav-right { display: flex; align-items: center; gap: 20px; }

.burger {
    display: none;
    cursor: pointer;
    z-index: 2000;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: var(--text-white);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- STYLE MOBILE (MEDIA QUERIES) --- */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        right: 0px;
        top: 0px;
        height: 100vh;
        width: 100%;
        background: rgba(8, 11, 18, 0.98);
        backdrop-filter: blur(15px); /* Effet futuriste */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        gap: 40px;
        z-index: 1500;
    }

    .nav-links li { opacity: 0; }

    .nav-links a { font-size: 1.5rem; font-family: 'Orbitron'; }

    .btn-pill { display: none; } /* Cache le bouton bureau */
    
    .btn-pill-mobile {
        display: block;
        background: var(--blue-glow);
        padding: 15px 40px;
        border-radius: 30px;
        box-shadow: 0 0 20px rgba(93, 120, 255, 0.4);
    }

    .burger { display: block; }

    /* Animations Menu Ouvert */
    .nav-active { transform: translateX(0%); }

    @keyframes navLinkFade {
        from { opacity: 0; transform: translateX(50px); }
        to { opacity: 1; transform: translateX(0px); }
    }

    /* Transformation du Burger en X */
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
}




/* footer  */


/* --- FOOTER STARTCORDUX --- */
.main-footer {
    background: #05070a;
    padding: 60px 10% 30px 10%;
    margin-top: 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Orbitron';
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-logo span { color: var(--blue-glow); }

.footer-logo p {
    font-family: 'Inter';
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 5px;
}

.footer-socials { display: flex; gap: 20px; }

.social-icon {
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    transition: 0.3s;
    opacity: 0.6;
}

.social-icon:hover {
    color: var(--blue-glow);
    opacity: 1;
    text-shadow: 0 0 10px var(--blue-glow);
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #4b5563;
}

.separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(93, 120, 255, 0.3), transparent);
    margin-bottom: 20px;
}

.creator {
    margin-top: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.creator span {
    color: white;
    font-weight: bold;
    border-bottom: 1px solid var(--blue-glow);
    padding-bottom: 2px;
}

/* Responsivité Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}





/* réalise  */


/* --- PORTFOLIO --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.project-card {
    position: relative;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.4s ease;
}

.project-img {
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: 0.5s;
}

.project-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, var(--bg-black));
    transition: 0.4s;
}

.project-card:hover .project-img { transform: scale(1.1); filter: brightness(0.5); }
.project-card:hover .project-info { bottom: 0; }
.project-card:hover { border-color: var(--blue-glow); box-shadow: 0 0 20px rgba(93, 120, 255, 0.3); }

/* --- PARTENAIRES (AUTO-SCROLL) --- */
.partners-section {
    padding: 50px 0;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    margin: 50px 0;
}

.partners-track {
    display: flex;
    width: calc(250px * 10);
    animation: scroll 20s linear infinite;
}

.partner-logo {
    width: 250px;
    text-align: center;
    font-family: 'Orbitron';
    color: #4b5563;
    font-size: 1.2rem;
    filter: grayscale(1);
    transition: 0.3s;
}

.partner-logo:hover { color: var(--blue-glow); filter: grayscale(0); }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 5)); }
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .portfolio-grid { grid-template-columns: 1fr; }
}




/* annimation feu  */


/* --- EFFET FEU AU CURSEUR --- */
#cursor-fire-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; /* Très important : permet de cliquer sur les boutons dessous */
    z-index: 9999; /* Toujours au-dessus de tout */
}

.fire-spark {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.1s ease-out;
    animation: spark-fade 0.8s forwards;
}

/* Animation de disparition et de montée de l'étincelle */
@keyframes spark-fade {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px) scale(0);
        opacity: 0;
    }
}