body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}
header {
    background-color: #222;
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
header h1 {
    margin: 0;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: 1px;
}
header h1 a {
    color: inherit;
    text-decoration: none;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    gap: 20px;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
nav a:hover {
    color: #1e90ff;
}
.section {
    background-color: #fff;
    margin: 40px 0;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 3px solid #1e90ff;
    padding-bottom: 10px;
    font-weight: 700;
}
.section p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
}
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}
.project-card {
    background-color: #fefefe;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 500px; /* Limite la largeur maximale */
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.project-card .image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8;
    padding: 20px;
}
.project-card img {
    max-width: 100%;
    max-height: 400px; /* Limite la hauteur maximale */
    height: auto;
    width: auto;
    object-fit: contain; /* Garde les proportions sans crop */
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.project-card p {
    margin: 15px 20px 20px;
    color: #555;
    font-size: 1.1rem;
}
footer {
    background-color: #222;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}
a {
    color: #1e90ff;
}
a:hover {
    color: #0d6efd;
}

@media (max-width: 768px) {
    .project-card img {
        max-height: 300px;
    }
    .project-card .image-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .project-card img {
        max-height: 250px;
    }
    .project-card .image-container {
        padding: 10px;
    }
}

.site-logo {
    height: 40px;
    width: 40px;
    object-fit: contain;
    vertical-align: middle;
}

.logo-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-title h1 {
    margin: 0;
}

.language-switcher {
    display: flex;
    justify-content: right;
    align-items: right;
    gap: 10px;
    margin-top: 10px;
}

.flag-icon {
    height: 20px;
    width: auto;
    cursor: pointer;
}
