/* Reset et variables globales */
:root {
    --primary-black: #0F0F0F;
    --primary-white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray-medium: #E0E0E0;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    min-height: 100%;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-white);
    color: var(--primary-black);
}

/* Curseur personnalisé */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--primary-black);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.2s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-black);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.6s, width 0.3s, height 0.3s;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

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

.logo {
    position: relative;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.1) 0%, rgba(26, 26, 26, 0) 100%);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo:hover::before {
    opacity: 1;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo span.garage {
    color: #1a1a1a;
}

.logo span.lib {
    color: #666666;
    font-weight: 600;
}

.logo .icon {
    width: 24px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-10deg);
    transition: transform 0.3s ease;
}

.logo:hover .icon {
    transform: rotate(0deg);
}

.logo .icon::before {
    content: 'G';
    color: white;
    font-size: 16px;
    font-weight: 700;
}

/* Version sombre du logo pour le footer ou les sections sombres */
.dark-section .logo a,
.dark-section .logo span.garage {
    color: white;
}

.dark-section .logo span.lib {
    color: #b3b3b3;
}

.dark-section .logo::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Style responsive */
@media (max-width: 768px) {
    .logo a {
        font-size: 1.5rem;
    }
    
    .logo .icon {
        width: 20px;
        height: 20px;
    }
    
    .logo .icon::before {
        font-size: 14px;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-black);
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-black);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-button {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-black);
    border-radius: 50px;
    text-decoration: none;
    color: var(--primary-black);
    transition: var(--transition-smooth);
}

.nav-button:hover {
    background: var(--primary-black);
    color: var(--primary-white);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.geometric-pattern {
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, var(--gray-light) 25%, transparent 25%),
                linear-gradient(-45deg, var(--gray-light) 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, var(--gray-light) 75%),
                linear-gradient(-45deg, transparent 75%, var(--gray-light) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: patternMove 20s linear infinite;
    opacity: 0.1;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpIn 1s forwards 0.5s;
}

.main-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 3rem;
}

.cta-button {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    background: var(--primary-black);
    color: var(--primary-white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.cta-button:hover {
    transform: scale(1.05);
}

.button-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover .button-effect {
    width: 300px;
    height: 300px;
}

/* Chat IA Flottant */
.chat-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1a1a1a;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chat-button:hover {
    transform: scale(1.1);
}

.chat-button.active {
    transform: scale(0.9);
}

.chat-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.3);
    pointer-events: none;
    animation: pulse 2s infinite;
}

.chat-widget {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chat-widget.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    padding: 1rem;
    background: #1a1a1a;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    max-width: 80%;
    line-height: 1.4;
}

.message.bot {
    background: #f5f5f5;
    align-self: flex-start;
}

.message.user {
    background: #1a1a1a;
    color: white;
    align-self: flex-end;
}

.chat-input {
    padding: 1rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 0.5rem;
}

.chat-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
}

.chat-input input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.send-message {
    background: #1a1a1a;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: transform 0.2s ease;
}

.send-message:hover {
    transform: scale(1.05);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    70% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.scroll-line {
    width: 2px;
    height: 100px;
    background: var(--gray-medium);
    border-radius: 1px;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-black);
    border-radius: 50%;
    position: absolute;
    left: -3px;
    top: 0;
    transition: top 0.3s;
}

/* Animations */
@keyframes fadeUpIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes patternMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-50%, -50%);
    }
}

/* Menu Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--primary-black);
    transition: var(--transition-smooth);
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 900;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        color: white;
        font-size: 1.5rem;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-links.active .nav-link {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active .nav-link:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active .nav-link:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active .nav-link:nth-child(4) { transition-delay: 0.4s; }

    .nav-button {
        background: white !important;
        color: #1a1a1a !important;
        font-size: 1.2rem !important;
        padding: 1rem 2rem !important;
        margin-top: 1rem;
    }

    .menu-toggle {
        display: block;
        width: 30px;
        height: 25px;
        position: relative;
        cursor: pointer;
        z-index: 1000;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #1a1a1a;
        position: absolute;
        transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
        border-radius: 2px;
    }

    .menu-toggle span:first-child {
        top: 0;
    }

    .menu-toggle span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .menu-toggle span:last-child {
        bottom: 0;
    }

    .menu-toggle.active span {
        background: white;
    }

    .menu-toggle.active span:first-child {
        transform: translateY(11px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:last-child {
        transform: translateY(-11px) rotate(-45deg);
    }

    /* Ajustements pour le mode sombre */
    .dark-section .menu-toggle span {
        background: white;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .cursor, .cursor-follower {
        display: none;
    }

    * {
        cursor: auto;
    }

    .scroll-indicator {
        display: none;
    }
} 