body, html { height: 100%; margin: 0; padding: 0; font-family: 'Asap', sans-serif; font-size: 18px; text-align: justify; scroll-behavior: smooth; }

.marginnavbar { margin-top: 80px; }

/* Pour les ancres */
#presentation { position: relative; top: -80px; }

.text-justify { text-align: justify; }

.text-rouge { color: #aa0000; }

.card-hover { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card-hover:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

div.bg1, div.bg2, div.bg3, div.bg4, div.bg5, div.bg6 { display: grid; place-items: center; }
div.bg1 { min-height: 100vh; background: url('img/fond/fond_grille_opacity-50.png') repeat center fixed, url('img/fond/IMG_1401.jpg') no-repeat center fixed; background-size: auto, cover; }
div.bg2 { min-height: 60vh; background: url('img/fond/fond_grille_opacity-50.png') repeat center fixed, url('img/fond/IMG_1195.jpg') no-repeat center fixed; background-size: auto, cover; }
div.bg3 { min-height: 60vh; background: url('img/fond/fond_grille_opacity-50.png') repeat center fixed, url('img/fond/IMG_1396.jpg') no-repeat center fixed; background-size: auto, cover; }
div.bg4 { min-height: 60vh; background: url('img/fond/fond_grille_opacity-50.png') repeat center fixed, url('img/fond/IMG_1185.jpg') no-repeat center fixed; background-size: auto, cover; }
div.bg5 { min-height: 60vh; background: url('img/fond/fond_grille_opacity-50.png') repeat center fixed, url('img/fond/IMG_1422.jpg') no-repeat center fixed; background-size: auto, cover; }
.img-hero { position: absolute; left: 72%; top: 62%; transform: translate(-50%, -50%); }

.titre-decore { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.titre-decore::before,
.titre-decore::after { content: ""; flex: 1; height: 1px; background-color: #000; }

/* Masonry layout */
.masonry { column-count: 1; column-gap: 1.5rem; }
@media (min-width: 576px) {
    .masonry { column-count: 2; }
}
@media (min-width: 992px) {
    .masonry { column-count: 3; }
}
@media (min-width: 1400px) {
    .masonry { column-count: 4; }
}
.masonry-item { break-inside: avoid; margin-bottom: 1.5rem; position: relative; overflow: hidden; border-radius: .5rem; }
.masonry-item img { width: 100%; height: auto; display: block; border-radius: .5rem; transition: transform .4s ease; }
.masonry-item:hover img { transform: scale(1.05); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .3s ease; border-radius: .5rem; }
.masonry-item:hover .gallery-overlay { opacity: 1; }text-rouge

div.generique ul { list-style-type: none; margin: 0; padding: 0; }
div.generique li { display: block; overflow: hidden; width: 100%; margin: 5px 0 5px 0; list-style-type: none; text-align: center; }
div.generique span.role { display: block; float: left; width: 49%; margin: 0 1% 0 0; text-align: right; color: lightgrey; }
div.generique span.role2 { color: lightgrey; }
div.generique span.nom { display: block; float: left; width: 49%; margin: 0 0 0 1%; text-align: left; text-transform: uppercase; }

.video-thumb { position: relative; cursor: pointer; overflow: hidden; }
.video-thumb::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.35); opacity: 0; transition: 0.3s ease; }
.video-thumb::after { content: ""; position: absolute; top: 50%; left: 50%; width: 100px; height: 100px; transform: translate(-50%, -50%) scale(0.8); transition: 0.3s ease; background-image: url("data:image/svg+xml;utf8,\<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'>\<circle cx='50' cy='50' r='45' fill='white' opacity='0.6'/>\<polygon points='40,30 75,50 40,70' fill='black'/>\</svg>"); background-size: contain; background-repeat: no-repeat; }
.video-thumb:hover::before { opacity: 1; }
.video-thumb:hover::after { transform: translate(-50%, -50%) scale(1); }

@media all and (max-width: 992px) { /* version mobile */

html, body { font-size: 14px; }

div.bg1, div.bg2, div.bg3, div.bg4, div.bg5, div.bg6 { min-height: 50vh; }
.img-hero { margin: 80px 0; width: 90%; position: relative; left: 45%; top: 20%; transform: translate(-50%, -50%); }

}
