/* ==========================================================================
   Arkose Textures & Dynamic Theme Backgrounds
   ========================================================================== */

:root {
    --bg-texture-light: url('/static/textures/Texture_papier_01.png');
    --bg-texture-dark: url('/static/textures/Texture.png');
}

/* Mode Clair (par défaut) : Texture Papier 01 */
body {
    background-color: #f3f4f6;
    background-image: var(--bg-texture-light) !important;
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}

/* Mode Sombre : Texture Arkose Sombre */
html.dark body,
body.dark {
    background-color: #111827;
    background-image: var(--bg-texture-dark) !important;
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}

/* ==========================================================================
   Pied de page toujours ancré en bas (Sticky Footer Layout)
   ========================================================================== */
html {
    height: 100%;
}

body:not(.login-body) {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body > .w-full.mx-auto,
.page-wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

footer,
.site-footer {
    margin-top: auto !important;
    flex-shrink: 0;
    width: 100%;
}
