body {
    background-color: black; /* Set background color to black */
    color: white; /* Ensure text color is white */
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* Apply a more readable font */
}

.titre {
    padding-top: 120px;
    padding-bottom: 40px;
    height: 200px;
    width: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(50,50,50,1) 100%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.titre h1 {
    color: #fff;
    font-family: "Lilita One", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 64px;
}

.ligne {
    height: 2px;
    width: 80%;
    background: #00ff00;
    margin: 0 auto;
    margin-bottom: 40px;
}

#blog-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-post {
    background: #1e1e1e;
    padding: 20px;
    margin: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    width: calc(50% - 40px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.blog-post img {
    width: 100%;
    max-width: 100%; /* Assure que l'image ne dépasse pas la largeur de son conteneur */
    height: auto; /* Permet à la hauteur de l'image de s'ajuster automatiquement pour conserver les proportions */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}


.blog-post h2 {
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 10px;
}

.blog-post p {
    color: #ddd;
    text-align: left;
    line-height: 1.6;
}

.blog-post .date {
    color: #aaa;
    font-size: 0.9em;
    margin-bottom: 10px;
}

#load-more, #load-less {
    background-color: #00ff00;
    border: none;
    color: #000;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin: 5px;
}

#load-more:hover, #load-less:hover {
    background-color: #fff;
    color: #00ff00;
}

.blog-post .btn-see-more {
    background-color: #00ff00;
    border: none;
    color: #000;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 15px;
}

.blog-post .btn-see-more:hover {
    background-color: #fff;
    color: #00ff00;
}

/* Styles pour la fenêtre contextuelle */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: #333;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    color: #fff;
    position: relative;
}

.modal-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.modal-content p {
    margin: 10px 0;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
}

.close:hover, .close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}
/* Ajout de styles pour la responsive design */

/* Pour les écrans jusqu'à 768px de large (tablettes en mode portrait et smartphones) */
@media screen and (max-width: 768px) {
    .blog-post {
        width: calc(100% - 30px); /* Affichage en pleine largeur */
    }
}
