html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Fond plein écran */
.background {
    position: relative;
    width: 100vw;
    height: 100vh;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    transition:
        transform 0.6s ease-in-out,
        opacity 0.6s ease-in-out;

    transform: scale(1.03);
    opacity: 0.95;
}

/* Texte en bas à droite */
.text-overlay {
    position: absolute;
    bottom: 20%;
    right: 10%;

    font-family: "Segoe UI", Arial, sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 2.2rem);
    font-weight: 600;
    /*color: #ffffff;*/

    padding: 12px 18px;
    border-radius: 8px;

    /* Lisibilité sur image */
    /*background: rgba(0, 0, 0, 0.35);*/
    backdrop-filter: blur(4px);

    /* Petite animation douce */
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

/* Texte footer */
.footer-text {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);

    font-family: "Segoe UI", Arial, sans-serif;
    font-size: clamp(0.8rem, 1.8vw, 1.1rem);
    font-weight: 400;
    color: #ffffff;

    padding: 6px 12px;
    border-radius: 6px;

    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);

    letter-spacing: 0.05em;

    transition: opacity 0.6s ease-in-out;
}

/* Mode paysage */
@media screen and (orientation: landscape) {
    .background {
        background-image: url("images/fond-paysage.jpg");
        transform: scale(1);
        opacity: 1;
    }
}

/* Mode portrait */
@media screen and (orientation: portrait) {
    .background {
        background-image: url("images/fond-portrait.jpg");
        transform: scale(1);
        opacity: 1;
    }
    .text-overlay {
        left: 50%;
        right: auto;

        transform: translate(-50%, -50%);
        text-align: center;
    }
}
