:root {
    --primary-color: #00bcd4; /* Cyan / Teal pour l'accent principal */
    --primary-color-rgb: 0, 188, 212; /* Version RGB de la couleur primaire */
    --secondary-color: #0097a7; /* Une nuance plus foncée de l'accent pour hover */
    --dark-bg1: #12121f; /* Fond très sombre principal */
    --dark-bg2: #1a1a2e; /* Fond un peu moins sombre pour sections alternatives ou cartes */
    --text-light: #e0e0e0; /* Texte principal clair */
    --text-medium: #b0b0c0; /* Texte secondaire plus gris */
    --card-border: #2a2a3f; /* Bordure pour les éléments de la timeline */
    --font-main: 'Poppins', sans-serif;
    --hero-overlay-color: rgba(10, 10, 20, 0.75);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg1);
    color: var(--text-light);
    line-height: 1.7;
    padding-top: 70px; /* Hauteur de la navbar fixe */
}

/* --- Navbar --- */
.navbar {
    background-color: rgba(18, 18, 31, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}
.nav-menu a i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

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

.nav-menu a:hover {
    color: var(--primary-color);
}
.nav-menu a:hover i {
    color: var(--text-light);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger { display: none; cursor: pointer; }
.hamburger .bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--text-light); transition: all 0.3s ease-in-out;}


/* --- Hero Section --- */
.hero-section {
    min-height: calc(100vh - 70px);
    background-image: url('https://via.placeholder.com/1920x1080/12121f/0f0f1a?text=REMPLACEZ+MOI+PAR+UNE+IMAGE+DE+FOND+SERVEURS'); /* REMPLACEZ CECI */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: left;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--hero-overlay-color);
}

.hero-content-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1150px;
    width: 100%;
    z-index: 1;
    gap: 3rem;
}

.hero-text {
    max-width: 55%;
    flex-shrink: 0;
}

.greeting-pill {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-bg1);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.8rem;
    letter-spacing: 0.5px;
}

.hero-text h1 {
    font-size: 3.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    line-height: 1.15;
}

.hero-text h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-medium);
    margin-bottom: 2.2rem;
}

.contact-details-hero {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.contact-details-hero li {
    margin-bottom: 0.9rem;
    font-size: 1rem;
    color: var(--text-medium);
    display: flex;
    align-items: center;
}

.contact-details-hero i {
    color: var(--primary-color);
    margin-right: 1rem;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}
.contact-details-hero a {
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-details-hero a:hover {
    color: var(--primary-color);
}

.hero-image-container {
    max-width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.hero-profile-pic {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(var(--primary-color-rgb), 0.6);
    box-shadow: 0 0 25px rgba(var(--primary-color-rgb), 0.3),
                0 0 0 8px rgba(var(--dark-bg1), 0.4);
}


/* --- Content Sections (General) --- */
.content-section {
    padding: 70px 2rem;
    background-color: var(--dark-bg1);
}
.content-section.alt-bg {
    background-color: var(--dark-bg2);
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 600;
}
.icon-title { margin-right: 0.5em; }

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
    opacity: 0.7;
}

/* --- About Section --- */
.about-content-flex {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}
.about-text-content { flex: 2; }
.about-text-content p {
    margin-bottom: 1.5rem;
    color: var(--text-medium);
    font-size: 1.05rem;
}
.btn-cv-section {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-bg1);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin-top: 1rem; /* Espace au-dessus du bouton */
}
.btn-cv-section i { margin-right: 0.6rem; }
.btn-cv-section:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.about-illustration {
    flex: 1;
    text-align: center;
}
.about-illustration img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    opacity: 0.8;
}

/* --- Timeline (Education & Experience) --- */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::after { content: ''; position: absolute; width: 3px; background-color: var(--primary-color); opacity: 0.3; top: 0; bottom: 0; left: 50%; margin-left: -1.5px; }
.timeline-item { padding: 10px 40px; position: relative; background-color: inherit; width: 50%; }
.timeline-item::after { content: ''; position: absolute; width: 16px; height: 16px; right: -8px; background-color: var(--dark-bg2); /* Assurez-vous que la couleur de fond correspond à .alt-bg si la timeline est dessus */ border: 3px solid var(--primary-color); top: 25px; border-radius: 50%; z-index: 1; }
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item:nth-child(even)::after { left: -8px; }
.timeline-content { padding: 20px 25px; background-color: var(--card-border); position: relative; border-radius: 6px; box-shadow: 0 3px 10px rgba(0,0,0,0.3); }
.timeline-content h3, .timeline-content h4 { color: var(--primary-color); font-size: 1.2rem; margin-bottom: 0.4rem; font-weight: 600;}
.timeline-content .institution, .timeline-content .company { color: var(--text-medium); font-style: italic; margin-bottom: 0.5rem; font-size: 0.95rem; }
.timeline-content .date { display: block; font-size: 0.9rem; color: var(--primary-color); font-weight: 500; margin-bottom: 0.8rem; }
.timeline-content ul { list-style-type: disc; margin-left: 20px; color: var(--text-medium); font-size: 0.95rem; }
.timeline-content ul li { margin-bottom: 0.4rem; }
.timeline-item:nth-child(odd)::before { content: " "; height: 0; position: absolute; top: 30px; width: 0; z-index: 1; right: 30px; border: medium solid var(--card-border); border-width: 10px 0 10px 10px; border-color: transparent transparent transparent var(--card-border); }
.timeline-item:nth-child(even)::before { content: " "; height: 0; position: absolute; top: 30px; width: 0; z-index: 1; left: 30px; border: medium solid var(--card-border); border-width: 10px 10px 10px 0; border-color: transparent var(--card-border) transparent transparent; }
/* Si la timeline est sur un fond .alt-bg, le cercle doit avoir ce fond */
.content-section.alt-bg .timeline-item::after {
    background-color: var(--dark-bg2);
}


/* --- Skills & Interests Section --- */
.skills-interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}
.skills-column h3, .interests-column h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(var(--primary-color-rgb), 0.3); /* Utilisation de primary-color-rgb */
    padding-bottom: 0.5rem;
}
.skills-tags span {
    display: inline-block;
    background-color: var(--card-border);
    color: var(--text-medium);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 0.6rem;
    margin-bottom: 0.6rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
.skills-tags span:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}
.interests-list, .languages-list {
    list-style: none;
    padding-left: 0;
}
.interests-list li, .languages-list li {
    margin-bottom: 0.8rem;
    color: var(--text-medium);
    font-size: 1rem;
    display: flex;
    align-items: center;
}
.interests-list i, .languages-list i {
    color: var(--primary-color);
    margin-right: 0.8rem;
    width: 20px;
    text-align: center;
}
.languages-list { margin-top: 2rem; }


/* --- Footer --- */
.footer {
    background-color: var(--dark-bg1);
    color: var(--text-medium);
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid var(--card-border);
    font-size: 0.9em;
}

/* --- Responsive Design --- */
@media screen and (max-width: 992px) {
    .hero-content-container { flex-direction: column; text-align: center; }
    .hero-text { max-width: 100%; margin-bottom: 2.5rem; order: 2; }
    .contact-details-hero li { justify-content: center; }
    .hero-image-container { max-width: 280px; order: 1; margin-bottom: 2rem; }
    .hero-profile-pic { max-width: 250px;}
    .about-content-flex { flex-direction: column; }
    .about-text-content { text-align: center; } /* Centrer le texte et le bouton */
    .about-illustration { margin-top: 2rem; }
}

@media screen and (max-width: 768px) {
    body { padding-top: 60px; }
    .navbar { padding: 0.8rem 1.5rem; }
    .nav-menu { position: fixed; left: -100%; top: 60px; flex-direction: column; background-color: var(--dark-bg1); width: 100%; text-align: center; transition: 0.3s; box-shadow: 0 10px 27px rgba(0,0,0,0.2); padding-bottom: 1rem;}
    .nav-menu.active { left: 0; }
    .nav-menu li { margin: 1.2rem 0; }
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { left: 0; }
    .timeline-item::before { display: none; }
    .timeline-item::after { left: 23px; }
}

@media screen and (max-width: 480px) {
    .hero-text h1 { font-size: 2.6rem; }
    .hero-text h2 { font-size: 1.3rem; }
    .content-section h2 { font-size: 1.8rem; }
    .skills-interests-grid { grid-template-columns: 1fr; }
}