/* --- Variables de couleurs (THÈME SOMBRE) --- */
:root[data-theme="dark"] {
    --bg-dark: #050a14;
    --bg-secondary: #0b132b;
    --text-light: #e6f1ff;
    --text-muted: #8892b0;
    --neon-blue: #00f2ff;
    --neon-green: #00ff9f;
    --overlay-color: rgba(5, 10, 20, 0.75);
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(0, 242, 255, 0.1);
}

/* --- Variables de couleurs (THÈME CLAIR) --- */
:root[data-theme="light"] {
    --bg-dark: #f5f7fa;
    --bg-secondary: #ffffff;
    --text-light: #1a1a2e;
    --text-muted: #4a5568;
    --neon-blue: #0077ff;
    --neon-green: #00c853;
    --overlay-color: rgba(255, 255, 255, 0.85);
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 119, 255, 0.2);
}

/* Variables communes */
:root {
    --font-main: 'Poppins', sans-serif;
    --font-title: 'Orbitron', sans-serif;
}

/* --- Reset et Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* --- Bouton de changement de thème --- */
#theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-green));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 25px rgba(0, 242, 255, 0.5);
}

.theme-icon {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: var(--bg-dark);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

/* Mode clair : ajouter une ombre à la nav */
:root[data-theme="light"] nav {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--neon-green), var(--neon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(0, 255, 159, 0.5), 0 0 20px rgba(0, 242, 255, 0.5);
}

/* En mode clair, réduire l'effet de lueur */
:root[data-theme="light"] .logo {
    text-shadow: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--neon-green), var(--neon-blue));
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--neon-blue);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background-image: url('background-mv.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    z-index: 1;
    transition: background-color 0.3s ease;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-family: var(--font-title);
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.7);
}

/* Réduire l'effet de lueur en mode clair */
:root[data-theme="light"] .hero h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero h2 {
    font-size: 1.8rem;
    color: var(--neon-blue);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* --- Boutons --- */
.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(to right, var(--neon-blue), var(--neon-green));
    color: white;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

/* En mode clair, utiliser un texte foncé */
:root[data-theme="light"] .btn-primary {
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(0, 255, 159, 0.6);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.btn-secondary:hover {
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
    transform: translateY(-3px);
}

.btn-small {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    border-radius: 4px;
}

.btn-small:hover {
    background: rgba(0, 242, 255, 0.1);
}

/* --- Sections Globales --- */
.container {
    padding: 6rem 10%;
    background-color: var(--bg-dark);
    transition: background-color 0.3s ease;
}

.container-alt {
    padding: 6rem 10%;
    background-color: var(--bg-secondary);
    background-image: radial-gradient(circle at 50% 50%, rgba(0, 242, 255, 0.05) 0%, transparent 50%);
    transition: background-color 0.3s ease;
}

/* En mode clair, ajouter une bordure subtile */
:root[data-theme="light"] .container-alt {
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.section-title {
    font-family: var(--font-title);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title::before,
.section-title::after {
    content: '';
    height: 2px;
    width: 100px;
    background: linear-gradient(to right, transparent, var(--neon-blue), transparent);
    margin: 0 20px;
}

.sub-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--neon-green);
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.intro-text {
    text-align: center;
    max-width: 700px;
    margin: -2rem auto 3rem auto;
    color: var(--text-muted);
}

/* --- À propos --- */
.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-text strong {
    color: var(--neon-blue);
}
/* --- Projet Professionnel --- */
.career-content {
    max-width: 1000px;
    margin: 0 auto;
}

.career-vision,
.career-path,
.career-goals,
.career-motivation {
    margin-bottom: 4rem;
}

.career-vision p,
.career-motivation p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.career-vision strong,
.career-motivation strong {
    color: var(--neon-blue);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 3rem;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--neon-blue), var(--neon-green));
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: -2.85rem;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--neon-blue);
}

.timeline-content {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 3px solid var(--neon-blue);
    transition: all 0.3s ease;
}

:root[data-theme="light"] .timeline-content {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.timeline-content:hover {
    border-color: var(--neon-green);
    box-shadow: 0 5px 20px rgba(0, 242, 255, 0.15);
    transform: translateX(5px);
}

.timeline-content h4 {
    color: var(--neon-blue);
    font-family: var(--font-title);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    margin-bottom: 0.5rem;
}

.timeline-content strong {
    color: var(--neon-green);
}

/* Goals Grid */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.goal-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

:root[data-theme="light"] .goal-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.goal-card:hover {
    border-color: var(--neon-green);
    box-shadow: 0 5px 20px rgba(0, 255, 159, 0.2);
    transform: translateY(-5px);
}

.goal-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.goal-card h4 {
    color: var(--neon-green);
    font-family: var(--font-title);
    margin-bottom: 1rem;
    text-align: center;
}

.goal-card ul {
    list-style: none;
    padding: 0;
}

.goal-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.goal-card li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--neon-blue);
    font-weight: bold;
}

/* Responsive pour la timeline */
@media (max-width: 900px) {
    .timeline {
        padding-left: 2rem;
    }
    
    .timeline-dot {
        left: -1.85rem;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Compétences --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.skill-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* En mode clair, ajouter une ombre */
:root[data-theme="light"] .skill-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tech-card:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 5px 20px rgba(0, 242, 255, 0.2);
    transform: translateY(-5px);
}

.soft-card:hover {
    border-color: var(--neon-green);
    box-shadow: 0 5px 20px rgba(0, 255, 159, 0.2);
    transform: translateY(-5px);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.skill-card:hover::before {
    left: 100%;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tech-card h4 {
    color: var(--neon-blue);
    margin-bottom: 1rem;
    font-family: var(--font-title);
}

.soft-card h4 {
    color: var(--neon-green);
    margin-bottom: 1rem;
    font-family: var(--font-title);
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Veille Technologique --- */
.watch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.watch-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border-left: 3px solid var(--neon-blue);
}

:root[data-theme="light"] .watch-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.watch-card h3 {
    color: var(--neon-blue);
    margin-bottom: 1rem;
    font-family: var(--font-title);
}

.tag {
    display: inline-block;
    font-size: 0.8rem;
    padding: 5px 10px;
    margin-top: 1rem;
    margin-right: 5px;
    border-radius: 20px;
    background: rgba(0, 242, 255, 0.1);
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
}

/* --- Projets --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

:root[data-theme="light"] .project-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 5px 20px rgba(0, 242, 255, 0.2);
    transform: translateY(-5px);
}

.project-image {
    background-size: cover;
    background-position: center;
    filter: grayscale(50%) contrast(1.2) brightness(0.8);
    transition: 0.3s;
}

.project-card:hover .project-image {
    filter: grayscale(0%) contrast(1) brightness(1);
}

.project-content {
    display: grid;
    justify-items: center;
    padding: 2rem;
}

.project-content h3 {
    color: var(--neon-blue);
    margin-bottom: 0.8rem;
    font-family: var(--font-title);
}

.project-tech {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--neon-green);
    font-family: var(--font-title);
}

/* --- Footer / Contact --- */
.footer {
    background-image: linear-gradient(to top, var(--bg-dark), var(--bg-secondary));
    padding: 5rem 10% 2rem;
    text-align: center;
    transition: background-image 0.3s ease;
}

.footer-content p {
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-btn {
    padding: 0.8rem 1.5rem;
    background: var(--card-bg);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.contact-btn:hover {
    background: var(--neon-blue);
    color: white;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
}

.contact-btn.linkedin:hover {
    background: #0077b5;
    color: white;
    border: none;
}

.contact-btn.github:hover {
    background: #333;
    color: white;
    border: none;
}

.location {
    color: var(--neon-green);
    font-weight: 500;
}

.copyright {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.4rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }
    
    .container, .container-alt {
        padding: 4rem 5%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-title::before, .section-title::after {
        width: 50px;
    }
    
    #theme-toggle {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}