:root {
    --primary-color: #00d2ff; /* Bleu Cyan Tech */
    --secondary-color: #3a7bd5;
    --bg-dark: #0f172a;
    --glass-bg: rgba(20, 30, 45, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark); /* Fallback */
}

/* --- TYPOGRAPHIE --- */
h1, h2, h3 {
    font-family: 'Orbitron', sans-serif; /* Font style Sci-fi/Tech */
    letter-spacing: 1px;
}

.title-glow {
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
}

.neon-text {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.description-text {
    line-height: 1.8;
    color: #cbd5e1;
    font-weight: 300;
}

.section-subtitle {
    color: #fff;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

/* --- CARTE PRINCIPALE GLASSMORPHISM --- */
.main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    width: 100%;
    transform-style: preserve-3d; /* Essentiel pour l'effet 3D */
    transform: perspective(1000px);
}

/* --- NAVIGATION TABS --- */
.custom-tabs .nav-link {
    color: #a0a0a0;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255,255,255,0.03);
    margin: 0 5px;
    border: 1px solid transparent;
}

.custom-tabs .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.custom-tabs .nav-link.active {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
    border: 1px solid rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* --- BOUTON LANGUE --- */
.lang-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}
.lang-btn {
    text-decoration: none;
    color: rgba(255,255,255,0.5);
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    font-size: 0.8rem;
    transition: 0.3s;
    margin-left: 5px;
}
.lang-btn.active, .lang-btn:hover {
    color: #fff;
    border-color: var(--primary-color);
    background: rgba(0, 210, 255, 0.1);
}

/* --- PROJETS & CAROUSEL --- */
.carousel-controls-container {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 110%;
    top: 50%;
    left: -5%;
    transform: translateY(-50%);
    pointer-events: none; /* Click through le container */
    z-index: 10;
}

.custom-control {
    pointer-events: auto;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.custom-control:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

/* Bouton visite */
.btn-glow {
    display: inline-block;
    padding: 10px 30px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-glow:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px var(--primary-color);
}

/* Tech Badges */
.tech-badge {
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-right: 5px;
    border: 1px solid rgba(0, 210, 255, 0.2);
}

/* --- CONTACT --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}
.contact-item {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 15px;
    transition: 0.3s;
    border: 1px solid transparent;
}
.contact-item:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}
.contact-item a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin-top: 10px;
}

/* --- ANIMATIONS ENTREE --- */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel Passion Images */
.img-cover {
    height: 400px;
    object-fit: cover;
}
.glass-caption {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    border-radius: 15px;
    padding: 15px;
    bottom: 20px;
}