/* --- VARIABLES & RÉINITIALISATION --- */
:root {
    --primary-color: #2c3e50; /* Bleu marine foncé */
    --accent-color: #4a90e2;  /* Bleu vif (nouvel accent) */
    --light-color: #f8f9fa;   /* Fond très clair */
    --text-dark: #343a40;
    --text-light: #ecf0f1;
    --border-color: #e9ecef;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    --font-header: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    font-weight: 600;
}

h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 8px;
    display: inline-block;
}

h3 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

section {
    margin-bottom: 2.5rem;
}

/* --- STRUCTURE PRINCIPALE --- */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    display: flex;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* --- COLONNE GAUCHE (SIDEBAR) --- */
.sidebar {
    width: 33%;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 2.5rem;
}

.profile {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-name {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

.sidebar h3 {
    color: #fff;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
}

.sidebar section ul li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.sidebar section ul li i {
    color: var(--accent-color);
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.sidebar a {
    color: var(--text-light);
    word-break: break-word;
}

.sidebar a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* --- COLONNE DROITE (MAIN) --- */
.main-content {
    width: 67%;
    padding: 3rem;
    overflow-y: auto; /* Au cas où le contenu est long */
}

/* Section "Héros" */
.hero {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    border-left: 5px solid var(--accent-color);
}

.hero .hero-title {
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-color);
    display: block;
}

.hero .objective {
    font-size: 1.1rem;
    font-weight: 300;
    margin-top: 0.5rem;
}

/* Grille de compétences */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.skill-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.skill-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.skill-card i {
    margin-right: 8px;
    color: var(--accent-color);
}

.skill-card p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tags span {
    background: var(--light-color);
    color: var(--primary-color);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* Grille de Projets */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.project-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.project-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    font-family: var(--font-header);
}

.project-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(5px);
}

/* Section Parcours (Timeline) */
.timeline-container {
    display: flex;
    gap: 2rem;
}

.timeline-column {
    width: 50%;
}

.timeline-column h3 {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.timeline-item {
    position: relative;
    padding: 1rem 0 1rem 1.5rem;
    border-left: 2px solid var(--accent-color);
}

/* Point sur la timeline */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px; /* (12px / 2) - 2px border */
    top: 1.25rem;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
}

.timeline-item p {
    margin: 0;
}

.timeline-item .date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    display: block;
    margin-top: 0.25rem;
}

/* --- ANIMATION JS --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- RESPONSIVITÉ --- */
@media (max-width: 1000px) {
    .container {
        flex-direction: column;
        margin: 1rem;
        width: auto;
    }
    .sidebar, .main-content {
        width: 100%;
        padding: 2rem;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .timeline-container {
        flex-direction: column;
        gap: 0;
    }
    .timeline-column {
        width: 100%;
    }
}
