:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-color: #f8fafc;
    --accent-color: #38bdf8;
    --secondary-accent: #818cf8;
    --green-status: #4ade80;
    --font-main: 'Montserrat', sans-serif;
    --font-code: 'Space Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

/* --- Splash Screen --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0f172a; /* Ton fond sombre */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Toujours au-dessus de tout */
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1); /* Animation de glissement */
}

.loader-content {
    text-align: center;
}

.loader-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: white;
    letter-spacing: 5px;
    display: block;
    margin-bottom: 20px;
    animation: fadeInOut 1.5s ease-in-out;
}

.loader-bar {
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-accent));
    margin: 0 auto;
    animation: progress 1.2s ease-in-out forwards;
}

/* Sortie du loader vers le haut */
.loader-hidden {
    transform: translateY(-100%);
}

@keyframes progress {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(10px); }
    50% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

/* --- Layout Utils --- */
.container { max-width: 1200px; margin: 0 auto; width: 100%; }
.page-padding { padding: 120px 10% 50px 10%; }
.full-height { min-height: 100vh; }
.flex-center { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.text-center { text-align: center; }

/* --- Barre de Status --- */
.status-bar {
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    padding: 8px 0;
    position: fixed;
    top: 0;
    z-index: 1001;
    display: flex;
    justify-content: center;
}
.status-content { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 500; }
.pulsing-dot {
    width: 8px; height: 8px; background-color: var(--green-status);
    border-radius: 50%; animation: pulse 2s infinite;
}
.lbp-logo {
    height: 20px;
    width: auto;
    background-color: white; /* Fond blanc pour voir le logo bleu/jaune */
    padding: 2px 4px;
    border-radius: 4px;
    display: block;
}
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* --- Navigation --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; height: 70px;
    position: fixed; top: 35px; width: 100%;
    background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(10px);
    z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.logo a { font-size: 1.4rem; font-weight: 700; color: var(--accent-color); }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { font-weight: 500; font-size: 0.9rem; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-color); }
.btn-contact { border: 1px solid var(--accent-color); padding: 8px 20px; border-radius: 20px; }
.btn-contact:hover { background: var(--accent-color); color: var(--bg-color) !important; }

/* Burger */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: var(--text-color); margin: 5px; transition: all 0.3s; }

/* --- Hero Section --- */
.hero { display: flex; align-items: center; justify-content: space-between; padding: 0 10%; position: relative; overflow: hidden; padding-top: 50px; }
.hero-content { max-width: 600px; z-index: 2; }
h1 { font-size: 3.5rem; margin-bottom: 10px; }
.highlight { color: var(--accent-color); }
h2 { font-size: 1.5rem; color: var(--secondary-accent); font-family: var(--font-code); margin-bottom: 20px; }
.hero p { font-size: 1.1rem; line-height: 1.6; margin-bottom: 30px; color: #cbd5e1; }

.btn { display: inline-block; padding: 12px 30px; border-radius: 5px; font-weight: 600; transition: transform 0.3s; margin-right: 15px; }
.btn.primary { background: linear-gradient(45deg, var(--accent-color), var(--secondary-accent)); color: var(--bg-color); }
.btn.secondary { border: 2px solid var(--text-color); }
.btn:hover { transform: translateY(-3px); }

/* --- Visuals --- */
.hero-visual { position: absolute; right: 5%; top: 20%; width: 40%; height: 60%; }
.circle { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; }
.c1 { width: 300px; height: 300px; background: var(--accent-color); top: 10%; left: 20%; animation: float 6s infinite ease-in-out; }
.c2 { width: 200px; height: 200px; background: var(--secondary-accent); bottom: 10%; right: 10%; animation: float 8s infinite ease-in-out reverse; }
.float-icon { position: absolute; font-size: 3rem; color: rgba(255,255,255,0.2); animation: float 5s infinite; }
.i1 { top: 20%; right: 20%; } .i2 { bottom: 30%; left: 10%; animation-delay: 1s; } .i3 { top: 50%; right: 50%; font-size: 5rem; color: rgba(56, 189, 248, 0.3); animation-delay: 2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* --- Sections --- */
.section-title { font-size: 2.5rem; margin-bottom: 50px; text-align: center; position: relative; }
.section-title::after { content: ''; width: 60px; height: 4px; background: var(--accent-color); position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); }

/* About Grid */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: start; }
.about-text p { margin-bottom: 20px; line-height: 1.7; color: #cbd5e1; }
.skills-container { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.skill-tag { background: rgba(255,255,255,0.1); padding: 8px 15px; border-radius: 20px; font-size: 0.9rem; }
.stat-card { background: var(--card-bg); padding: 30px; border-radius: 15px; text-align: center; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.05); }
.stat-card i { font-size: 2rem; color: var(--accent-color); margin-bottom: 10px; }

/* Projects Grid */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.project-card { background: var(--card-bg); border-radius: 15px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); transition: transform 0.3s; display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-10px); }
.card-header { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: rgba(255,255,255,0.2); }
.roblox-bg { background: linear-gradient(135deg, #ce2029, #1e293b); }

/* Image Livre Fix */
.card-image-container { height: 350px; background: #111; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.book-cover { width: 100%; height: 100%; object-fit: contain; padding: 10px; background: #222; }

.card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.tags { display: flex; gap: 10px; margin-bottom: 15px; }
.tag { font-size: 0.7rem; padding: 4px 10px; border-radius: 4px; font-weight: bold; text-transform: uppercase; }
.tag.lua { background: #000080; } .tag.luau { background: #00a2ff; } .tag.roblox { background: #ce2029; } .tag.writer { background: #d97706; }
.project-card h3 { margin-bottom: 10px; }
.project-card p { font-size: 0.9rem; color: #cbd5e1; margin-bottom: 20px; flex-grow: 1; }

.buttons-group { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-small { display: inline-block; padding: 8px 15px; font-size: 0.9rem; border: 1px solid var(--accent-color); color: var(--accent-color); border-radius: 5px; }
.btn-buy { background: var(--accent-color); color: var(--bg-color); font-weight: bold; }
.btn-small.disabled { border-color: #64748b; color: #64748b; pointer-events: none; }

/* Aviation Page */
.aviation-body { background-image: url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?q=80&w=1920&auto=format&fit=crop'); background-size: cover; background-attachment: fixed; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.85); }
.relative { position: relative; } .white { color: white; }
.flight-path { display: flex; justify-content: space-between; align-items: center; max-width: 600px; margin: 50px auto; position: relative; }
.stop { display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2; }
.dot { width: 15px; height: 15px; background: white; border-radius: 50%; }
.line { height: 2px; flex-grow: 1; background: rgba(255,255,255,0.3); margin: 0 10px; }
.plane-icon { position: absolute; left: 0; top: -25px; font-size: 1.5rem; animation: fly 4s infinite linear; }
.aviation-quote { font-style: italic; font-size: 1.2rem; margin-top: 50px; opacity: 0.9; }
@keyframes fly { 0% { left: 0; } 100% { left: 100%; } }

/* Contact */
.btn-contact-big { font-size: 1.5rem; color: var(--text-color); border-bottom: 2px solid var(--accent-color); padding-bottom: 5px; word-break: break-all; }
.social-links { margin-top: 40px; font-size: 2rem; display: flex; gap: 20px; justify-content: center; }
footer { margin-top: auto; padding: 40px 0; text-align: center; color: #64748b; font-size: 0.9rem; border-top: 1px solid rgba(255,255,255,0.05); }

/* Animation Utils */
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }
.delay-200 { transition-delay: 0.2s; }

/* --- RESPONSIVE MOBILE --- */
@media screen and (max-width: 768px) {
    .page-padding { padding: 120px 5% 40px 5%; }
    
    .nav-links {
        position: absolute; right: 0; height: 100vh; top: 70px;
        background-color: var(--card-bg); flex-direction: column;
        align-items: center; width: 100%; transform: translateX(100%);
        transition: transform 0.4s ease-in; border-left: 1px solid rgba(255,255,255,0.1);
        justify-content: start; padding-top: 50px;
    }
    .nav-links-active { transform: translateX(0%); }
    .burger { display: block; }
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    .hero { flex-direction: column; text-align: center; justify-content: center; padding-top: 100px; height: auto; min-height: 100vh; }
    .hero-content { margin: 0; z-index: 5; }
    h1 { font-size: 2.5rem; }
    .hero-visual { opacity: 0.2; width: 100%; height: 100%; top: 0; left: 0; }
    .hero-buttons { display: flex; flex-direction: column; gap: 15px; }
    .btn { margin: 0; width: 100%; }

    .about-grid { grid-template-columns: 1fr; }
    
    .flight-path { flex-direction: column; height: 400px; gap: 0; margin: 30px auto; }
    .line { width: 2px; height: 100%; margin: 10px 0; }
    .plane-icon { transform: rotate(90deg); left: 6px; animation: flyVertical 4s infinite linear; }
    @keyframes flyVertical { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
}

/* --- Timeline Style --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding-left: 30px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -41px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: #1e293b;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    z-index: 1;
}

.highlight-dot {
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
}

.timeline-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.timeline-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #f8fafc;
}

.timeline-content p {
    font-family: 'Roboto', sans-serif;
    color: #cbd5e1;
    line-height: 1.5;
}


