/* Variables CSS pour une meilleure cohérence et maintenance */
:root {
    --primary-color: #8A2BE2; /* Violet */
    --secondary-color: #4169E1; /* Bleu royal */
    --background-dark: #121212;
    --background-light: #f8f9fa;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-dark);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

ul {
    list-style: none;
}

/* Header et Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(5px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links ul {
    display: flex;
}

.nav-links ul li {
    margin: 0 15px;
}

.nav-links ul li a {
    font-size: 16px;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-links ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Section Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 200px; /* Encore plus d'espace pour détacher complètement */
    padding-bottom: 80px; /* Plus d'espace en bas pour l'encadré */
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f0f23);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Overlay sombre pour améliorer le contraste */
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 10;
    position: relative;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 30px;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
    position: relative;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}
.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    border-radius: 30px;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* Responsive Navigation */
@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .nav-links {
        position: absolute;
        right: 0;
        top: 0;
        height: 100vh;
        background-color: var(--background-dark);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 999;
    }
    
    .nav-links ul {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-links ul li {
        margin: 20px 0;
        text-align: center;
    }
    
    .burger {
        display: block;
        z-index: 1000;
    }
    
    .nav-active {
        transform: translateX(0%);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .toggle .line2 {
        opacity: 0;
    }
    
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .typewriter-text {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}

/* Footer */
footer {
    background-color: rgba(18, 18, 18, 0.9);
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Styles pour les boutons d'action principaux */
.main-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cv-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.cv-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.3);
}

.linkedin-btn {
    background: #0077B5;
    color: white;
}

.linkedin-btn:hover {
    background: #005885;
    transform: translateY(-2px);
}

.email-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.email-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Section chatbot mise en avant */
.chatbot-highlight {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(138, 43, 226, 0.3);
    margin-bottom: 60px; /* Espace avec la section suivante */
    backdrop-filter: blur(10px);
}
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
    text-align: center;
}

.chatbot-highlight h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.chatbot-highlight p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Description des compétences */
.skill-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.4;
}

/* Responsive pour les boutons d'action */
@media screen and (max-width: 768px) {
    .main-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .chatbot-highlight {
        padding: 1.5rem;
    }
}

/* Styles pour les logos des entreprises */
.timeline-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.company-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 5px;
}

/* Section contact redesignée */
.contact-section-enhanced {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(65, 105, 225, 0.1) 100%);
    padding: 4rem 0;
    position: relative;
}

.contact-section-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.contact-container-enhanced {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.contact-content {
    text-align: center;
}

.contact-title-enhanced {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(138, 43, 226, 0.3);
}

.contact-intro-enhanced {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 280px;
    border: 2px solid transparent;
}

.linkedin-cta {
    background: linear-gradient(45deg, #0077B5, #005885);
    color: white;
}

.linkedin-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 119, 181, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.email-cta {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.email-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(138, 43, 226, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-cta i {
    font-size: 2rem;
    opacity: 0.9;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cta-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.cta-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Responsive pour la section contact */
@media screen and (max-width: 768px) {
    .contact-title-enhanced {
        font-size: 2rem;
    }
    
    .contact-intro-enhanced {
        font-size: 1.1rem;
    }
    
    .contact-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-cta {
        min-width: 100%;
        max-width: 350px;
    }
    
    .company-logo {
        width: 35px;
        height: 35px;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Séparation entre les sections */
.section-separator {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), #9932cc, var(--primary-color), transparent);
    margin: 100px auto;
    max-width: 300px;
    opacity: 0.8;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(138, 43, 226, 0.3);
}

/* Styles responsive pour la photo de profil */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        padding-bottom: 40px;
        min-height: 90vh;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
        margin-bottom: 20px;
    }
    
    .main-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .hero-content {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 90px;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
}

/* Assurer que la navigation reste au-dessus */
nav {
    z-index: 1000;
}

.language-switcher {
    z-index: 1001;
}
