/* Style général */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    width: 80%;
    margin: 0 auto;
}



/* En-tête */
header {
    background-color: #333;
    color: white;
    padding: 20px 0;
}

header h1 {
    font-size: 2rem;
    text-align: center;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Section Hero */
.hero {
    background: #007bff;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    color: white;
}

.hero img:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.hero img {
    width: 25%;
    height: auto;
    border-radius: 12px;
    margin-top: 15px;
    margin-bottom: 12px;
}

/* Section À propos */
#about {
    background: #fff;
    padding: 50px 0;
    text-align: center;
}

#about p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Projets */
#projects {
    background: #f9f9f9;
    padding: 50px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.project-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.project-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.project-card h3 {
    color: #007bff;
    margin-top: 15px;
}

/* Section Contact */
#contact {
    padding: 50px 0;
    background: #fff;
    text-align: center;
}

.contact-links a {
    margin: 0 15px;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.contact-links a:hover {
    text-decoration: underline;
}

.contact-links img {
    width: 30px;
    height: auto;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
}


/* Section Formations et Expériences professionnelles */
#education, #experience {
    background: #fff;
    padding: 50px 0;
}

.education-card, .experience-card {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.education-card h3, .experience-card h3 {
    color: #007bff;
    margin-bottom: 10px;
}

.education-card p, .experience-card p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.experience-card img {
    width: 30px;
    height: auto;
    border-radius: 5px;
    margin-left: 3px;
    margin-top: 3px;
}

.education-card:hover, .experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}


/* Grid de projets */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center; /* Centrer les projets dans la grille */
}

/* S'assurer que les sections sont bien espacées */
.container {
    width: 80%;
    margin: 0 auto;
}

h2 {
    text-align: center;
    color: #007bff;
    margin-bottom: 30px;
}

#contacttitle {
    color : white;
}

#skills {
    padding: 80px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    margin-top: 30px;
    justify-items: center;
}

.skill-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-weight: 600;
    font-size: 16px;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
