/* Photo de profil */
.profile-photo {
    margin-bottom: 2rem;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;              /* Plus d'espace entre drapeau et texte */
    background: rgba(74, 144, 226, 0.2);
    padding: 0.5rem 1.2rem;  /* Un peu plus large */
    border-radius: 25px;    /* Plus arrondi */
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--light);
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.lang-switch img {
    width: 22px;          /* Légèrement plus grand */
    height: auto;
    display: block;
    border-radius: 3px;    /* Si tes PNG sont carrés */
}

.profile-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.8);
}

:root {
    --primary: #4A90E2;
    --secondary: #FF69B4;
    --dark: #0f0f0f;
    --darker: #0a0a0a;
    --light: #f0f0f0;
    --gray: #888;
    --success: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(74, 144, 226, 0.2);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--light);
    transition: all 0.3s ease;
}

/* Sections */
section {
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
#hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.hero-content .location {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.cta-buttons .btn {
    flex: 1 1 auto;
    min-width: 200px;
    max-width: 100%;
    text-align: center;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), #5BA0F2);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Compétences */
#competences h2, #experiences h2, #projets h2, #contact h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.skills-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category, .project-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(74, 144, 226, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover, .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.1);
}

.skill-category h3, .project-header h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-list li:last-child {
    border-bottom: none;
}

.skill-list li::before {
    content: "▹";
    color: var(--primary);
}

/* Expériences */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--darker);
}

.timeline-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.company {
    color: var(--secondary);
    font-weight: 600;
}

.date {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-item ul {
    padding-left: 20px;
}

/* Projets */
.project-card {
    overflow: hidden;
}

.project-header {
    padding: 1.5rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
}

.project-header .title-project {
    color: #ffffff;
}

.project-body {
    padding: 1.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech-tag {
    background: rgba(74, 144, 226, 0.2);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item div h3 {
    color: var(--primary);
}

.contact-item div p {
    color: var(--gray);
}

.status {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    margin-top: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--light);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--gray);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    #hero {
        padding-top: 8rem;
    }

    .lang-switch {
    justify-content: center;
    width: 100%;
    max-width: 150px;
    margin: 0.5rem auto;   /* Centré dans le menu */
}
    
    .profile-photo img {
        width: 120px;
        height: 120px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--darker);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 4rem 1rem;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}



