body {
    font-family: Arial, sans-serif;
    background: #111;
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 0;
}
#logo_pip{
    width: 15%;
    max-width: 400px;
}
h1 {
    margin: 20px 0;
}
h1 b{
    color:red;
}
.lg-backdrop.in {
    opacity: 0.9;
}
/* Conteneur flexible */
.gallery {
    display: flex;
    flex-wrap: wrap; /* les images passent à la ligne si nécessaire */
    gap: 10px;
    justify-content: center;
    padding: 20px;
}

/* Chaque image/video */
.gallery-item {
    height: 250px;      /* Hauteur fixe */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: #222;
}

.gallery-item a {
    display: block;
    height: 100%;
}

.gallery-item img,
.gallery-item video {
    height: 100%;       /* Hauteur uniforme */
    width: auto;        /* largeur proportionnelle, pas tronquée */
    object-fit: contain; /* ne pas couper les images */
    border-radius: 8px;
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.05);
}
/* Conteneur vidéo */
.gallery-item a[data-video] {
    position: relative;
}

/* Overlay play */
.gallery-item a[data-video]::after {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 64px;
    height: 64px;
    border-radius: 50%;

    color: white;
    border: solid 2px white;

    font-size: 28px;
    font-weight: bold;
    line-height: 64px;
    text-align: center;

    pointer-events: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

/* Effet hover */
.gallery-item a[data-video]:hover::after {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 0.5);
}

footer{
 margin:2%;   
}
footer a{
    color:white;
}
.filters{
    margin-bottom: 2%;
}
.filters button {
    font-weight: normal;
    background: #222;
    color: white;
    border: solid 1px white;
    padding: 10px 20px;
    margin: 2px;
    border-radius: 1px;
    cursor: pointer;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: lighter;
}

.filters button.active {
        color: red;
    border: solid 1px red;
}

.filters button:hover{
    background-color: #333;
}


@media (max-width: 640px) {
    #logo_pip{
    width: 25%;
    max-width: 400px;
}
    h1{
        font-size: 1em;
    }
    .filters button{
        font-size: 0.5em;
    }
.gallery-item {
    height: 200px;
}