section.head {
    margin: 110px 0 0 0;
}
div.head {
    width: 100%;
    height: 25vh;
    background-size: cover;
    background-position: center center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
div.head h1 {
    text-align: center;
    text-align: left;
    color: #fff;
    font-size: 3em;
    margin: 0;
    padding: 10px 50px;
    border-radius: 15px;
    text-shadow: 4px 3px 10px rgba(0, 0, 0, 1);
    position: relative;
}
div.head h1 strong {
    display: block;
    line-height: 100px;
}

main div.content {
    width: 100%;
    max-width: 1200px;
    margin: -20px auto 50px;
    background: #fff;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 9;
    padding: 40px 50px;
    position: relative;
}
h2 {
    font-size: 3em;
    text-align: center;
    color: #209551;
}

.colonnes {
    margin: 30px 0;
    display: flex;
    gap: 2rem; 
    align-items: flex-start;
}
.colonnes .main {
    flex: 3; /* 3/4 */
}
.colonnes .bref {
    flex: 1; /* 1/4 */
    height: auto;
}
.colonnes .bref .card {
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    background: #fafafa;
    padding: 5px;
    margin: 10px 0;
    height: auto;
}
.colonnes .bref .card h3 {
    font-size: 1.2em;
    text-align: center;
    color: #209551;
}
.colonnes .bref .card a {
    color: #222;
}
.colonnes img {
    display: block;
    padding: 5px;
    background: #fff;
    margin: 10px auto;
    border: solid 1px rgba(0, 0, 0, 0.1);
}
.colonnes p.legende {
    font-size: 0.8em;
    text-align: center;
    font-style: italic;
}

div.photos {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
}
div.photos a.photo {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
div.photos a.photo img {
    width: 100%;
    height: auto;
    display: block;
}

div.actions {
    margin: 20px 0;
    display: flex;
    gap: 15px;
}
div.actions a {
    display: block;
    background: #fff;
    color: #209551;
    border: solid 1px #209551;
    padding: 0 15px;
    height: 40px; 
    line-height: 40px; 
    border-radius: 20px;
    text-decoration: none;
    transition: .5s;
}
div.actions a:hover {
    background: #209551;
    color: #fff;
    transition: .5s;
}

/* --- LightGallery: légende lisible --- */

/* Conteneur de la légende */
.lg-sub-html {
    background: rgba(0, 0, 0, 0.55) !important; /* fond semi-transparent */
    color: #fff !important;                    /* texte blanc */
    padding: 15px 20px !important;
    border-radius: 6px;
    max-width: 90%;
    margin: 0 auto;
    transition: 0.5s;
}

/* Titre de la légende */
.lg-sub-html h4 {
    margin: 0 0 5px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff !important;
}

/* Texte de la légende */
.lg-sub-html p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #eee !important;
}

/* Ombre sur le texte */
.lg-sub-html * {
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* --- Galerie miniatures front --- */
#elsenheim-gallery.photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* Chaque image */
#elsenheim-gallery .photo img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Effet au survol */
#elsenheim-gallery .photo img:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Conteneur <a> en mode bloc */
#elsenheim-gallery .photo {
    display: block;
    position: relative;
    text-decoration: none;
}

@media (max-width: 900px) {
    section.head {
        margin: 60px 0 0 0;
    }
    .colonnes {
        display: block;
    }
}
@media (max-width: 750px) {
    div.actions a {
        height: auto;
        line-height: 20px;
        padding: 10px;
        text-align: center;
    }
}
@media (max-width: 450px) {
    main div.content {
        padding: 5px;
    }
    div.actions {
        display: block;
    }
    div.actions a {
        margin: 5px 0;
    }

    div.grid {
        display: block;
    }

}
