/* Réinitialisation et police */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Fond avec dégradé animé */
body {
    background: linear-gradient(45deg, #E2E8F0, #DBEAFE, #A78BFA); /* Gris-bleu, bleu pâle, violet pastel */
    background-size: 400% 400%; /* Grand dégradé pour animation fluide */
    animation: gradientBackground 15s ease infinite; /* Animation lente */
    color: #1E40AF; /* Bleu sombre pour le texte */
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animation du dégradé */
@keyframes gradientBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.97); /* Blanc semi-transparent pour lisibilité */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* En-tête */
.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #60A5FA, #A78BFA); /* Dégradé pastel bleu à violet */
    color: white;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.header h2 {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Sections */
.section {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #60A5FA; /* Bleu pastel pour dynamisme discret */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.section h3, .section h4 {
    text-align: center; /* Centrer les titres des sections */
}

/* Profil */
.profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #A78BFA; /* Violet pastel pour la bordure */
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05); /* Zoom léger au survol */
}

.profile-text h3 {
    color: #1E40AF;
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.profile-text p {
    font-size: 0.95rem;
    color: #4B5563; /* Gris foncé pour lisibilité */
}

.profile-text a {
    color: #60A5FA; /* Bleu pastel pour les liens */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.profile-text a:hover {
    color: #A78BFA; /* Violet pastel au survol */
}

/* Compétences */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.skill p {
    font-weight: 500;
    color: #1E40AF;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.skill-bar {
    background: #E5E7EB; /* Gris clair */
    border-radius: 6px;
    height: 10px;
    overflow: hidden;
}

.progress {
    background: linear-gradient(90deg, #60A5FA, #A78BFA); /* Bleu pastel à violet pastel */
    height: 100%;
    width: var(--progress); /* Secours pour afficher sans JS */
    border-radius: 6px;
    transition: width 1.5s ease-in-out;
}

/* Langues */
.languages {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center; /* Centrer les éléments de la liste */
}

.languages li {
    background: #60A5FA; /* Bleu pastel */
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    transition: background 0.3s ease;
}

.languages li:hover {
    background: #1E40AF; /* Bleu sombre au survol */
}

/* Projets */
.project {
    padding: 15px;
    border-radius: 8px;
    background: #F8FAFC; /* Blanc cassé */
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.project h4 {
    color: #1E40AF;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.project ul {
    list-style: disc;
    margin-left: 20px;
    color: #4B5563;
}

.project img {
    max-width: 100%;
    border-radius: 6px;
    margin-top: 10px;
    border: 1px solid #E5E7EB;
}

/* Loisirs */
.hobbies {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center; /* Centrer les éléments de la liste */
}

.hobbies li {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #E0F2FE; /* Bleu très clair */
    color: #1E40AF;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    transition: background 0.3s ease;
}

.hobbies li:hover {
    background: #A78BFA; /* Violet pastel au survol */
}

/* Contact */
.contact {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.contact li a {
    color: #60A5FA;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact li a:hover {
    color: #A78BFA;
}

.contact li i {
    color: #A78BFA;
    font-size: 1.1rem;
}

/* Responsivité */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        padding: 30px 15px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .header h2 {
        font-size: 1.1rem;
    }

    .profile {
        flex-direction: column;
        text-align: center;
    }

    .profile-img {
        width: 120px;
        height: 120px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .header h2 {
        font-size: 1rem;
    }

    .project h4 {
        font-size: 1rem;
    }
}

/* Image page croisière projet 1  */
.portfolio-card img {
    width: 10%;
    
}

#portfolio-certif h2 {
    text-align: center !important;
    width: 100% !important;
    margin-bottom: 25px !important;
}
