body {
    line-height: 1.5 !important;
    font-size: 1rem !important;
    background-color: #eaeaea;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

@font-face {
    font-family: Grave;
    src: url(font/GravePresse-ExtraBold.otf);
}
@font-face {
    font-family: League;
    src: url(font/League_Spartan/LeagueSpartan-VariableFont_wght.ttf);
}

/* ----- GALERIE FLEXBOX (remplace Masonry) ----- */
.masonry {
    display: flex;
    flex-wrap: wrap;            /* Passe à la ligne automatiquement */
    gap: 25px;                  /* Espacement entre les items */
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}


/* 3 images par ligne sur desktop */
.item {
    flex: 0 0 calc(20% - 25px);
    display: block;
    position: relative;
}

/* Adaptation responsive */
@media (max-width: 992px) {
    .item {
        flex: 0 0 calc(33.33% - 25px); /* 3 images par ligne */
    }
}

@media (max-width: 768px) {
    .item {
        flex: 0 0 calc(50% - 25px); /* 2 images par ligne */
    }
}

@media (max-width: 576px) {
    .item {
        flex: 0 0 100%; /* 1 image par ligne */
    }
}

.item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ----- Floating title ----- */
.floating-title {
    position: fixed;
    pointer-events: none;
    background: white;
    padding: 8px 14px;
    font-size: 22px;
    font-weight: 700;
    border: 1px solid black;
    opacity: 0;
    transition: opacity .15s ease-out;
    z-index: 99999;
    font-family: League !important;
}
