/* ====== RESET ET TYPOGRAPHIE ====== */
body {
    font-family: 'Inter', sans-serif;
    color: #1f1f1f;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background: #f2f4f8;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ====== HERO ABOUT ====== */
.hero-about {
    background: linear-gradient(135deg, #0f1c3f 0%, #274b74 100%);
    color: #ffffff;
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.hero-about::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    top: -60px;
    right: -60px;
    filter: blur(60px);
}

.about-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.profile-large img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

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

.profile-info h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 0 15px;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.profile-info .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.contact-info-mini p {
    font-size: 0.95rem;
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e0e0e0;
}

/* ====== SECTION TITLES ====== */
.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #1f1f1f;
}

/* ====== SECTION BACKGROUNDS ====== */
.description,
.experiences,
.skills-section,
.formations {
    padding: 60px 0;
}

.description {
    background: #ffffff;
    color: #1f1f1f;
}

.experiences {
    background: #f7f8fc;
}

.skills-section {
    background: #ffffff;
}

.formations {
    background: #f7f8fc;
}

/* ====== DESCRIPTION ====== */
.description-content p {
    font-size: 1.05rem;
    margin-bottom: 18px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* ====== TIMELINE ====== */
.timeline {
    position: relative;
    margin: 60px 0;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    width: 4px;
    height: 100%;
    background: #4361ee33;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 40px;
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 20px;
    width: 16px;
    height: 16px;
    background: #4361ee;
    border-radius: 50%;
    border: 3px solid #ffffff;
}

.timeline-date {
    font-weight: 600;
    color: #4361ee;
    margin-bottom: 10px;
}

.timeline-item h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.timeline-item ul {
    list-style-type: disc;
    margin: 0;
    padding-left: 20px;
}

.timeline-item ul li {
    margin-bottom: 6px;
}

/* ====== COMPETENCES ====== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #274b74;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-item h4 {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.skill-item p {
    font-size: 0.95rem;
    color: #555;
}

/* ====== FORMATIONS ====== */
.formations-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.formation-item h3 {
    font-size: 1.3rem;
    color: #274b74;
    margin-bottom: 5px;
}

.formation-item .institution {
    font-style: italic;
    color: #555;
    margin-bottom: 5px;
}

.formation-item p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
    .about-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-large img {
        width: 160px;
        height: 160px;
    }

    .profile-info h1 {
        font-size: 2rem;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-item {
        padding-left: 35px;
    }
}

@media (max-width: 576px) {
    .hero-about {
        padding: 100px 20px 60px;
    }

    .profile-info h1 {
        font-size: 1.8rem;
    }

    .profile-info .subtitle {
        font-size: 1rem;
    }

    .timeline-item h3 {
        font-size: 1.15rem;
    }
}
