<style>
body {
  margin: 0;
  font-family: Jost;
}

.tile-container {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));  
    gap: 20px;
    padding: 10px;
    justify-items: center;
}

.tile {
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    width: 100%; /* Utiliser 100% pour s'adapter à la grille */
    height: 330px; /* Ajustez la hauteur selon vos besoins */
    margin: 10px;
    position: relative;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 20;
    filter: grayscale(80%) brightness(120%) contrast(80%) saturate(60%); /* Filtre grayscale par défaut */
    transition: filter 0.3s ease; /* Transition pour le filtre */
}

.tile-overlay {
    position: relative;
    /*height:calc( 100% - 40px );*/
    height:calc( 100% - 0px );
    width:100%;
	    border-radius: 10px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
	background-color:rgba(0, 0, 0, 0.35);
	    z-index: 20;
}

.tile:hover {
    filter: grayscale(0%) brightness(110%) contrast(100%) saturate(80%); /* Filtre grayscale par défaut */
}

/* Etiquette */
.tile .etiquette {
    position: absolute;
    top: 10px;
    right: 10px;
    /*background-color: hsl(100, 50%, 40%);*/
    /*background-color: hsl(145, 30%, 46.5%);*/
    background-color: hsl(140, 32%, 42%);
    padding: 10px;
    border-radius: 50%;
    font-size: 1em;
    font-family: Jost;
    font-weight: normal;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-width: 50px;
    max-width: 100px;
    min-height: 50px;
    max-height: 100px;
    color: hsl(0, 0%, 100%);
    z-index: 21;
}

/* titre mandat */
.tile h5 {
    font-size: 27px;
    margin: 0;
    margin-top: 10px; /* Ajustez la marge supérieure pour une meilleure position */
    font-family: Jost;
    color: hsl(0, 0%, 100%);
    z-index: 21;
}

/* description mandat */
.tile h6, .tile p {
    font-size: 18px;
    margin-top: 0px;
    margin-bottom: 0px;
    font-weight: normal;
    font-family: Jost;
    color: hsl(0, 0%, 100%);
    z-index: 21;
}

/* situation mandat */
.tile h7 {
    font-size: 18px;
    margin-top: 2px;
    margin-bottom: 0px;
    font-weight: normal;
    font-family: Jost;
    color: hsl(0, 0%, 100%);
    z-index: 21;
}

a {
    text-decoration: none;
}

u {
    text-underline-offset: 7px;
}

/* Ombre sur le texte lors du survol de la tuile */
.tile:hover h5,
.tile:hover h6,
.tile:hover h7,
.tile:hover p {
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 1);
    /*color:white;*/
}
</style>







/* début responsive */

@media (max-width: 1200px) {
    .tile-container {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
}

@media (max-width: 900px) {
    .tile-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 800px) {
    .tile-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* fin responsive */

