/* --- VARIABLES & COULEURS (Thème Pink Sci-Fi) --- */
:root {
    --bg-color: #050508;       
    --card-bg: rgba(17, 17, 22, 0.7);
    --primary: #ff007f;        
    --secondary: #5865F2;      
    --text-color: #e0e0e0;     
    --glass: rgba(5, 5, 8, 0.85);
    --neon-glow: 0 0 10px rgba(255, 0, 127, 0.7), 0 0 20px rgba(255, 0, 127, 0.4);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar Personnalisée */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #fff; box-shadow: var(--neon-glow); }

/* --- BACKGROUND ANIMÉ (Orbs) --- */
.background-orbs {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: floatingOrb 20s infinite alternate ease-in-out;
}

.orb-1 { width: 500px; height: 500px; background: var(--primary); top: -10%; left: -10%; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: #5800cc; bottom: 10%; right: -5%; animation-duration: 25s; }
.orb-3 { width: 300px; height: 300px; background: #ff007f; top: 40%; left: 40%; opacity: 0.2; animation-duration: 15s; }

@keyframes floatingOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 80px) scale(1.2); }
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 0, 127, 0.1);
    animation: slideDown 0.8s ease-out;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    text-shadow: var(--neon-glow);
    letter-spacing: 2px;
}

.links a:not(.btn-contact) {
    margin-left: 25px;
    font-size: 0.95rem;
    color: #bbb;
    text-decoration: none;
    position: relative;
    transition: 0.3s;
}

.links a:not(.btn-contact)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 8px var(--primary);
}

.links a:not(.btn-contact)::hover { color: #fff; }
.links a:not(.btn-contact)::hover::after { width: 100%; }

/* Bouton Contact Navbar */
.btn-contact {
    margin-left: 25px;
    background: rgba(255, 0, 127, 0.1);
    border: 1px solid var(--primary);
    padding: 10px 25px;
    border-radius: 50px;
    color: var(--primary) !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.1);
}
.btn-contact::after { display: none; }

.btn-contact:hover {
    background: var(--primary);
    color: rgb(0, 0, 0) !important;
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.6);
    transform: translateY(-2px);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: fadeInUp 1s ease-out;
}

/* Titre blanc fixe */
.gradient-text {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255, 0, 127, 0.4);
    animation: none;
}

.hero-content p {
    font-size: 1.5rem;
    color: #ccc;
    font-family: 'Consolas', monospace;
    margin-bottom: 30px;
    min-height: 1.6em;
    animation: fadeInUp 1.5s ease-out;
}

.typewriter { color: var(--primary); font-weight: bold; }

/* Correction CURSEUR (Barre unique) */
.cursor { 
    display: inline-block; 
    width: 3px; 
    height: 1.2em; /* Hauteur définie car pas de texte dedans */
    background-color: var(--primary); 
    animation: blink 1s infinite;
    vertical-align: middle;
    margin-left: 5px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.social-icons a {
    display: inline-block;
    font-size: 2.2rem;
    margin: 0 15px;
    color: rgba(255,255,255,0.7);
    transition: 0.3s;
}
.social-icons a:hover {
    color: var(--primary);
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 8px var(--primary));
}

/* --- ANIMATION SCROLL REVEAL --- */
.reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* --- SECTIONS --- */
.container {
    padding: 100px 10%;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
    box-shadow: var(--neon-glow);
    border-radius: 2px;
}

/* --- ABOUT & CARDS --- */
.intro-text {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-left: 3px solid var(--primary);
    border-radius: 12px;
    font-size: 1.1rem;
    color: #ddd;
    border: 1px solid rgba(255,255,255,0.05);
}

.skills-grid, .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card, .project-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.skill-card:hover, .project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px -10px rgba(255, 0, 127, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    transition: 0.3s;
}
.skill-card:hover i {
    color: var(--primary);
    text-shadow: var(--neon-glow);
    transform: scale(1.1);
}

.project-card img, .image-placeholder {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card:hover img { transform: scale(1.02); }

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 0.9rem;
    position: relative;
    background: rgba(5,5,8,0.9);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .container { padding: 60px 5%; }
    nav { flex-direction: column; gap: 15px; padding: 15px; }
    .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
    .links a:not(.btn-contact) { margin: 0 10px; }
    .btn-contact { margin: 10px 0 0 0; }
}

/* --- PAGE CONTACT (NOUVEAU) --- */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Formulaire Container */
.contact-form-container {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Inputs & Textarea */
.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

/* Bouton Envoyer */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover {
    background: #d4006a;
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.7);
}

/* Responsive pour la page contact */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr; /* Pile les éléments sur mobile */
    }
}