html {
    /* Active le défilement doux */
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.custom-bleu-line {
    height: 7 !important; /* Hauteur de la ligne */
    color: #082445; /* Couleur de la ligne (rouge dans cet exemple) */
    padding: 0;
    margin: 0;
}

/** lazy loading management */
/* lazy-loading.css */
.lazyloading-image {
    width: 100px; 
    height: 100px; 
    object-fit: cover; 
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.5s ease-in, transform 0.5s ease-in; /* Added transition for smooth effect */
    transform: scale(0.8); /* Start with a smaller scale */
}

.lazyloading-image.loaded {
    opacity: 1;
    transform: scale(1); /* Scale up to full size */
}

.actualite-item .text {
    flex-grow: 3;
    padding-right: 20px;
}

@media (max-width: 768px) {
    .actualite-item .card-body {
        flex-direction: column;
        text-align: center;
    }

    .actualite-item .text {
        padding-right: 0;
        margin-bottom: 10px;
    }

    .actualite-item .actualite-image {
        width: 50px;
        height: 50px;
    }
}

/** Loading and last button */

body {
    overflow: hidden;
}

/*#loading-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #082445;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}*/

#loading-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #082445;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

#loading-text{
    text-align: center;
}

#main-content {
    display: none;
}

#loading-text span {
    display: inline-block;
    animation: flip-text 1.5s infinite;
    animation-delay: calc(0.1s * var(--i));
}

@keyframes flip-text {
    0% { transform: rotateY(0); color: white; }
    50% { transform: rotateY(180deg); color: blue; }
    100% { transform: rotateY(360deg); color: white; }
}

.hidden {
    display: none;
}

html {
    scroll-behavior: smooth; /* Pour un défilement fluide */
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #082445;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

#back-to-top:hover {
    background-color: #0056b3;
}

.hidden {
    opacity: 0;
    visibility: hidden;
}

.visible {
    opacity: 1;
    visibility: visible;
}
