* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3d509f;
    --secondary-color-foncee: #dce1f5;
    --secondary-color-clair: #f5f7ff;
    --accent-color: #e8ecf7;
    --text-color: #000;
    --background-color: #f5f7fa;
    --white-color: #fff;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
    padding: 40px 20px;
    line-height: 1.6;
}

.cv-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* Sidebar gauche */
.sidebar {
    position: absolute;
    max-width: 280px;
    padding: 40px 25px;
    background-color: var(--secondary-color-clair);
    top: -85px;
    left: 5%;
}

.profile-section {
    text-align: center;
    margin-bottom: 30px;
}

.profile-img {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border: 5px solid #f5f7ff;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar h2 {
    color: var(--text-color);
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.85em;
    color: var(--text-color);
}

.contact-item::before {
    content: "✉️";
    font-size: 1.2em;
}

.contact-item:nth-child(2)::before {
    content: "📱";
}

.contact-item:nth-child(3)::before {
    content: "🌐";
}
.contact-item:nth-child(4)::before {
    content: "📍";
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
}

.sidebar section {
    margin-bottom: 30px;
}

.sidebar h3 {
    color: var(--text-color);
    font-size: 0.85em;
    margin-bottom: 8px;
    font-weight: 600;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 8px;
    font-size: 0.85em;
    color: #555;
    padding-left: 15px;
    position: relative;
}

.sidebar li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--text-color);
    font-size: 0.7em;
}

.skill-item {
    margin-bottom: 10px;
}

.skill-name {
    font-size: 0.85em;
    color: var(--text-color);
    margin-bottom: 3px;
}

.formation-item {
    margin-bottom: 15px;
}

.formation-year {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.85em;
}

.formation-title {
    font-size: 0.85em;
    color: var(--text-color);
}

/* Contenu principal */
.Contenu-principal{
    width: 60%;
    text-align: left;
}
.main-content {
    justify-content: flex-end;
    position: relative;
    padding: 40px;
    background: white;
    display: flex;
    height: 2000px;
}

header.header {
    background-color: var(--secondary-color-foncee);
    width: 100%;
    height: 150px;
    position: relative;
}

header.header h1 {
    font-size: 2em;
    color: var(--text-color);
    letter-spacing: 1px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50% -50%);
}

header.header .subtitle {
    font-size: 0.95em;
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

header.header p {
    color: var(--text-color);
    font-size: 0.9em;
    line-height: 1.7;
}

.main-content h2 {
    font-size: 1.3em;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary-color-foncee);
}

.main-content section {
    margin-bottom: 35px;
}

article.job {
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 3px solid var(--secondary-color-foncee);
    position: relative;
}

article.job::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 5px;
    width: 11px;
    height: 11px;
    background: var(--secondary-color-foncee);
    border-radius: 50%;
    border: 3px solid white;
}

article.job h3 {
    color: var(--text-color);
    font-size: 1.1em;
    margin-bottom: 5px;
}

article.job .job-details {
    color: var(--text-color);
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

article.job .job-location {
    font-style: italic;
}

article.job .job-description {
    color: var(--text-color);
    font-size: 0.9em;
    line-height: 1.6;
}

.expertise ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.expertise li {
    padding: 10px 15px;
    background: linear-gradient(135deg, #f0f0ff 0%, #e8e8ff 100%);
    list-style: none;
    font-size: 0.9em;
    color: var(--text-color);
    border-radius: 5px;
    transition: transform 0.2s;
}

.expertise li:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
}

@media (max-width: 768px) {
    .cv-container {
        grid-template-columns: 1fr;
    }

    .expertise ul {
        grid-template-columns: 1fr;
    }

    body {
        padding: 20px 10px;
    }

    .main-content {
        padding: 30px 20px;
    }
}

@media print {
    body {
        background: white;
        padding: 0;
    }

    .cv-container {
        box-shadow: none;
        border-radius: 0;
    }
}