/* Variables et reset */
:root {
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --bg-primary: #F3F4F6;
    --bg-white: #FFFFFF;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

header {
    background: linear-gradient(to right, #4338CA, #3730A3);
    color: white;
    padding: 2rem;
    border-radius: 0.5rem 0.5rem 0 0;
}

main {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: var(--shadow);
}

/* Profile */
.profile {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-image {
    width: 120px;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.profile h2 {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: normal;
}

/* Sections communes */
section {
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.image-style {
    width: 85%; /* Largeur de l'image */
    margin-left: 6%;
    margin-bottom: -34%;
    margin-top: -12%;
    border: 2px solid #000; /* Bordure noire de 2 pixels */
    border-radius: 50%; /* Coins arrondis */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3); /* Ombre portée */
}

section h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

section img {
    width: 115px;
    height:115px;
    margin-left:  26%;
    margin-top: -7%;
}

/* Contact */
.contact ul {
    list-style: none;
}

.contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.contact li:hover {
    color: var(--primary);
}

.icon {
    font-style: normal;
}

/* Compétences */
.skill-category {
    margin-bottom: 1rem;
}

.skill-category h4 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: #EEF2FF;
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    text-align: center;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

/* Langues */
.languages ul {
    list-style: none;
}

.languages li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.level {
    color: var(--primary);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-light);
}

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

.timeline-dot {
    position: absolute;
    left: -2.25rem;
    width: 1rem;
    height: 1rem;
    background-color: var(--primary);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
}

.timeline-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.company {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Formation */
.education-item {
    margin-bottom: 1.5rem;
}

.education-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.school {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

/* Certifications */
.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.certification-card {
    background-color: #EEF2FF;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.certification-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.certification-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.certification-card p {
    color: var(--primary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }

    .profile {
        flex-direction: column;
        text-align: center;
    }

    .certification-grid {
        grid-template-columns: 1fr;
    }
}