body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Header */
.header-compact {
    background-color: #111;
    color: #fff;
    padding: 5px 0;
    text-align: center;
}

.header-title {
    font-size: 40px;
    margin: 10px 0;
    font-weight: 700;
    opacity: 0;
    animation: fadeIn 2s forwards;
}

.header-subtitle {
    font-size: 18px;
    color: #bbb;
    margin: 3px 0 10px 0;
    opacity: 0;
    animation: fadeIn 2.5s forwards;
}

.navbar {
    margin-top: 10px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 3s forwards;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    opacity: 0;
    animation: fadeIn 3.5s forwards;
}

.nav-link:hover {
    background-color: #e74c3c;
    color: #fff;
}

/* About Section */
.about-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background-color: #fff;
    opacity: 0;
    animation: fadeIn 2s forwards;
}

.about-container {
    display: flex;
    max-width: 1200px;
    align-items: center;
    gap: 40px;
    background-color: #fff;
    padding: 40px 20px;
    border-radius: 8px;
    opacity: 0;
    animation: fadeIn 2s forwards;
}

.about-image img {
    max-width: 300px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInPhoto 2s forwards;
}

.separator {
    width: 2px;
    height: 200px;
    background-color: #ccc;
    margin: 0 20px;
    opacity: 0;
    animation: fadeIn 2s forwards;
}

.about-text {
    opacity: 0;
    animation: fadeInText 2.5s forwards;
}

/* Soft Skills */
.soft-skills {
    margin-top: 20px;
    text-align: center;
    opacity: 0;
    animation: fadeInText 2.5s forwards;
}

.soft-skills h3,
.skills-section h3,
.experience-section h3,
.diploma-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    opacity: 0;
    animation: fadeInText 2.5s forwards;
}

.skills {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

.skills .dot {
    font-size: 20px;
    color: #e74c3c;
    margin: 0 10px;
}

/* Skills Section */
.skills-section {
    text-align: center;
    padding: 20px 0;
    background-color: #f9f9f9;
    opacity: 0;
    animation: fadeIn 2.5s forwards;
}

.skill-category {
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeIn 3s forwards;
}

.skill-category h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #e74c3c;
}

.skills-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.skills-logos img {
    max-width: 60px;
    transition: transform 0.3s ease, opacity 0.3s ease; /* Transition fluide pour le hover/unhover */
    opacity: 0.8; /* Opacité initiale légèrement réduite */
}

.skills-logos img:hover {
    transform: scale(1.2); /* Agrandir légèrement l'icône au survol */
    opacity: 1; /* Augmenter l'opacité au survol */
}

.skills-logos img {
    transform: scale(1); /* Retour à la taille normale */
    opacity: 0.8; /* Retour à l'opacité initiale */
}

/* Experience Section */
.experience-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: #fff;
    opacity: 0;
    animation: fadeIn 2.5s forwards;
}

.experience-container {
    width: 100%;
    max-width: 1200px;
    opacity: 0;
    animation: fadeIn 3s forwards;
}

.experience-item {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    text-align: left;
    width: 100%;
    opacity: 0;
    animation: fadeInText 3.5s forwards;
}

.experience-left {
    flex: 1;
    max-width: 250px;
    text-align: left;
}

.experience-right {
    flex: 2;
    margin-left: 20px;
    position: relative;
    padding-left: 20px;
    text-align: left;
}

.experience-line {
    width: 4px;
    height: 100%;
    background-color: #e74c3c;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    animation: fadeIn 3.5s forwards;
}

.experience-right h4 {
    font-size: 18px;
    color: #e74c3c;
    margin-bottom: 10px;
}

.experience-right ul {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    color: #555;
    opacity: 0;
    animation: fadeInText 4s forwards;
}

.experience-right ul li {
    margin-bottom: 5px;
}

/* Diploma Section */
.diploma-section {
    text-align: center;
    padding: 40px 0;
    background-color: #f4f4f4;
    opacity: 0;
    animation: fadeIn 2.5s forwards;
}

.diploma-item {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInText 3s forwards;
}

.diploma-item .dot {
    font-size: 20px;
    color: #e74c3c;
    margin: 0 10px;
}


/* Footer */
.footer-compact {
    background-color: #000; /* Noir */
    color: #fff;
    padding: 15px 0; /* Ajoute un peu de padding pour l'espace */
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-text {
    font-size: 14px;
    margin: 0;
    opacity: 0;
    animation: fadeIn 2s forwards;
}



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

@keyframes fadeInText {
    to {
        opacity: 1;
    }
}

@keyframes fadeInPhoto {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLogos {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .header-title {
        font-size: 32px;
    }

    .header-subtitle {
        font-size: 16px;
    }

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

    .nav-link {
        font-size: 14px;
        padding: 8px 12px;
    }

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

    .separator {
        display: none;
    }

    .about-image img {
        max-width: 100%;
    }

    .experience-item {
        flex-direction: column;
        align-items: center;
    }

    .experience-left,
    .experience-right {
        max-width: 100%;
        text-align: center;
    }

    .experience-line {
        width: 4px;
        left: -10px;
    }

    .diploma-item {
        text-align: center;
    }

        /* Footer */
    .footer-compact {
        background-color: #111;
        color: #fff;
        padding: 10px 0;
        text-align: center;
    }

    .footer-text {
        font-size: 14px;
        margin: 0;
        opacity: 0;
        animation: fadeIn 2s forwards;
    }
}
