/* Style de base */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
}

/* En-tête principale */
header.hero {
    text-align: center;
/*    background: linear-gradient(135deg, #4a90e2, #0072ff); */
    color: white;
    padding: 2rem;
}

header.hero h1 {
    font-size: 2.5rem;
    margin: 0;
}

header.hero p {
    font-size: 1.2rem;
    margin: 0.5rem 0 0;
}

/* Galerie */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem;
    justify-content: center;
}

.block {
    position: relative;
    flex: 1 1 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s, filter 0.3s;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.block_bas {
    position: relative;
    flex: 1 1 calc(60% - 1rem);
    max-width: calc(60% - 1rem);
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s, filter 0.3s;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.block:hover {
    filter: brightness(0.9);
    transform: scale(1.03);
}

.block_bas:hover {
    filter: brightness(0.9);
    transform: scale(1.03);
}

/* ----- Les 3 blocs -------- */

/* Titres */
.centrage {
    display: flex;
	justify-content: center; /* centrage horizontal */
	align-items: center; /* centrage vertical */
}


/* Image */
.block img {
    /* width: 100%;
    height: auto; */
    display: block;
    border-radius: 8px 8px 0 0;
}

/* Image+ textes */
.img-texts {
    display: flex;
	flex-direction: column; /* alignement vertical des textes et div contenus à l'intérieur de cette div */
	justify-content: center; /* centrage horizontal */
	align-items: center; /* centrage vertical */
}

/* Texte en superposition */
.text-overlay {
    padding: 1rem;
    /* text-align: center; */
    background-color: #f4f4f4;
}

.text-overlay h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.text-overlay p {
    font-size: 0.9rem;
    color: #555;
}

/* Boutons et sous-blocs */
.content {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e9e9e9;
    border-top: 1px solid #ddd;
}

.sub-block {
    font-size: 0.9rem;
    color: #333;
}

.btn {
    background-color: #0072ff;
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
    .block {
        flex: 1 1 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
	
	.block_bas {
    flex: 1 1 calc(80% - 1rem);
    max-width: calc(80% - 1rem);
	}
}

@media (max-width: 480px) {
    .block {
        flex: 1 1 100%;
        max-width: 100%;
    }
	
	.block_bas {
    flex: 1 1 100%;
    max-width: 100%;
	}
}