#main {
    font-family: Arial, sans-serif;
    width: 75%;
    margin: 0 auto;
    padding: 20px;
    /*background-color: #f4f4f4;*/
    border-radius: 10px;
    /*box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);*/
    
}

/*

#main h1 {
    font-size: 2.5em;
    color: #333;
    margin-top: 80px;
    text-transform: uppercase;
}
*/

.project-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.project-item {
    width: 48%;
    text-align: center;

}

.card {
    background: rgba(255, 255, 255, 0.15); /* semi-transparent */
    backdrop-filter: blur(10px); /* effet de flou en arrière-plan */
    
    border: 1px solid rgba(255, 255, 255, 0.3); /* effet de bord */
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    z-index: 0;
}


.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}


.card h2 {
    font-size: 1.4em;
    color: #333; /* texte blanc sur fond transparent */
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;/* lisibilité sur fond flou */
}

.card p {
    font-size: 1.1em;
    color:#333;
    line-height: 1.6;
    margin: 0;
    overflow: hidden;
}


.project-item a {
    display: block;
    height: 100%;
    width: 100%;
    color: inherit;
    text-decoration: none;
    opacity: 1;
}


.project-itemm {
    margin-bottom: 20px;
    width: auto;
}

/* STYLE DES CARTES */
.cardm {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    height: auto;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.cardm h2 {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.cardm p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
}
@media screen and (max-width: 768px) {
    #main {
        width: 90%;
    }
    .project-item {
        width: 100%;
    }
    .card h2 {
        font-size: 1.2em;
    }
    .card p {
        font-size: 1em;
    }
}
