html {
    font-size: 1rem;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Tablette */
@media (max-width: 992px) {
    .responsive-text {
        font-size: 0.95rem;
    }
}

/* Smartphone */
@media (max-width: 768px) {
    .responsive-text {
        font-size: 0.9rem;
    }
}

/* Très petits écrans (ex : iPhone SE) */
@media (max-width: 480px) {
    .responsive-text {
        font-size: 0.85rem;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: rgb(43, 48, 53);
}

.background-powderblue {
    background-color: powderblue;
}

.background-lightyellow {
    background-color: lightyellow;
}

#loginBox{
    margin-top: 2%;
}

#rememberMeLabel{
   margin-top: 2%;
   color: white;
}

.img-128x128 {
    border-radius: 25px;
    width: 256px;
    height: 256px;
}

.img-128x128 {
    border-radius: 25px;
    width: 128px;
    height: 128px;
}

.img-64x64 {
    border-radius: 25px;
    width: 64px;
    height: 64px;
}

.img-48x48 {
    border-radius: 25px;
    width: 48px;
    height: 48px;
}

.img-32x32 {
    border-radius: 25px;
    width: 32px;
    height: 32px;
}

.img-24x24 {
    border-radius: 25px;
    width: 24px;
    height: 24px;
}

.img-16x16 {
    border-radius: 25px;
    width: 16px;
    height: 16px;
}

.img-8x8 {
    border-radius: 25px;
    width: 8px;
    height: 8px;
}

.my-6 {
    margin-top: 4rem !important;
    margin-bottom: 4rem !important;
}

.my-7 {
    margin-top: 5rem !important;
    margin-bottom: 5rem !important;
}

.my-8 {
    margin-top: 6rem !important;
    margin-bottom: 6rem !important;
}

.my-9 {
    margin-top: 7rem !important;
    margin-bottom: 7rem !important;
}

.my-10 {
    margin-top: 8rem !important;
    margin-bottom: 8rem !important;
}

/*.font-size-1-5 {
    font-size: 1.5rem;
}*/

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.popup-content {
    position: relative;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .popup-content img {
        max-width: 100%;
        max-height: 100%;
        border-radius: 4px;
    }

.popup-close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

/* Transition fluide sur opacité */
#pbQuarter {
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 0;
    transform: translateY(-10px);
    z-index: 10000; /* plus que le z-index du #loading-overlay */
}

    /* Masqué par défaut */
    #pbQuarter.hidden {
        display: none;
    }


    /* Apparition */
    #pbQuarter.show {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    #loading-overlay.active {
        visibility: visible;
        opacity: 1;
    }

.custom-spinner {
    width: 48px;
    height: 48px;
    border: 6px solid transparent;
    border-top: 6px solid #4caf50;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 12px;
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}