* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #e0f7fa; /* Fond bleu clair */
    color: #333;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #00838f; /* Bleu foncé */
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

h1 {
    font-size: 2.5rem;
}

main {
    flex: 1;
    padding: 2rem;
}

.projects-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: #2C3E50;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 240px; /* Largeur fixe pour les cartes */
}

.project-card:hover {
    cursor: pointer;
    transform: translateY(-5px);
}

.project-card img {
    width: 240px; /* Largeur fixée à 240 pixels */
    height: 240px; /* Hauteur fixée à 240 pixels */
    object-fit: cover;
}

.project-card h2 {
    font-size: 1.5rem;
    margin: 1rem;
    color: #fff;
}

.project-card p {
    margin: 0 1rem 1rem;
    color:#fff;
}

.in-progress {
    position: relative;
    overflow: hidden;
}

.in-progress::before {
    content: "En cours de développement \Mise en ligne bientôt!";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 10;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.in-progress:hover::before {
    opacity: 1;
}

footer {
    background-color: #00838f; /* Bleu foncé */
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
}

@media (max-width: 768px) {
    .projects-container {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: 90%; /* Largeur adaptative sur mobile */
        max-width: 350px; /* Limite la largeur maximale */
    }

    .project-card img {
        width: 100%; /* Image qui s'adapte à la largeur de la carte */
        height: auto; /* Hauteur proportionnelle */
    }
}