/* ==================== VARIABLES & RESET ==================== */
:root {
    --primary-gradient: linear-gradient(90deg, #3a8ee0 0%, #7a60ff 100%);
    --dark-bg: #0a0a1a;
    --dark-bg-secondary: #1a1a2e;
    --text-color: #f0f0f8;
    --text-color-secondary: #a0a0b0;
    --light-blue: #3a8ee0;
    --light-purple: #7a60ff;
    --header-height: 70px;
    --accent-color: #3a8ee0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

h1, h2, h3, h4 {
    font-weight: 600;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 20px; text-align: center; }
h3 { font-size: 1.8rem; margin-bottom: 15px; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 15px;
    color: var(--text-color-secondary);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    background: var(--primary-gradient);
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(58, 142, 224, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--light-blue);
    color: var(--light-blue);
}

.btn-secondary:hover {
    background: var(--light-blue);
    color: var(--text-color);
    box-shadow: none;
}

/* ==================== HEADER ==================== */
#header {
    width: 100%;
    height: var(--header-height);
    background-color: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#header nav {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-menu a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--light-blue);
}

.btn-header {
    padding: 8px 20px;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

/* ==================== SÉLECTEUR DE LANGUE (Header) ==================== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 20px; 
    font-weight: 600;
}

.lang-switcher a {
    color: var(--text-color-secondary);
    transition: color 0.3s ease;
}

.lang-switcher a:hover {
    color: var(--text-color);
}

.lang-switcher a.lang-active {
    color: var(--light-blue);
    cursor: default;
}

/* ==================== HÉROS ==================== */
#hero {
    height: 100vh;
    min-height: 700px;
    background: url('assets/background_website.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content .subtitle {
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: 300;
    margin-bottom: 40px;
}

.hero-buttons .btn {
    margin: 0 10px;
}

/* ==================== À PROPOS / STATS ==================== */
#about {
    max-width: 900px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.stat-item {
    background: var(--dark-bg-secondary);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item i {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-color-secondary);
    font-size: 1rem;
    margin: 0;
}

/* ==================== PORTFOLIO ==================== */
#portfolio {
    background-color: #080815;
}

.portfolio-desc {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.portfolio-separator {
    margin-top: 60px;
    text-align: center;
    border-bottom: 1px solid var(--light-blue);
    padding-bottom: 10px;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portfolio-item {
    background: var(--dark-bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
    /* Assurez-vous qu'il n'y a PAS de pointer-events: none; ici */
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(58, 142, 224, 0.2);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-info {
    padding: 25px;
}

.portfolio-info h4 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.portfolio-info span {
    font-size: 0.9rem;
    color: var(--text-color-secondary);
}

/* ==================== CONTACT ==================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info h2 {
    text-align: left;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-color-secondary);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info p i {
    font-size: 1.5rem;
    color: var(--light-blue);
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    font-size: 1.8rem;
    margin-right: 20px;
    color: var(--text-color-secondary);
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--light-blue);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--dark-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--light-blue);
}

/* ==================== FOOTER ==================== */
footer {
    background-color: #080815;
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--light-blue);
}

footer .social-icons {
    margin-bottom: 20px;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-color-secondary);
    margin: 0;
}

/* ==================== BOUTON FLOTTANT LANGUE ==================== */
.floating-lang-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 998;
    
    background: var(--primary-gradient);
    color: var(--text-color);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    
    width: 55px;
    height: 55px;
    border-radius: 50%;
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-lang-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(58, 142, 224, 0.3);
}

/* ==================== RESPONSIVE (MOBILE) ==================== */
@media (max-width: 900px) {
    .btn-header {
        display: none;
    }
    
    .hamburger {
        display: block;
    }

    .lang-switcher {
        display: none; 
    }

    .nav-menu {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--dark-bg);
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }
    
    .nav-menu.active {
        max-height: 500px;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a:hover {
        background-color: var(--dark-bg-secondary);
    }

    h1 { font-size: 2.5rem; }
    #hero .subtitle { font-size: 1.1rem; }

    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-info h2 {
        text-align: center;
    }
    
    .contact-info p {
        justify-content: center;
    }
}

@media (max-width: 500px) {
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}