html, body {
    height: 100%;
    margin: 0;
    overflow: hidden; /* empêche le scroll */
}

.home-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    text-align: center;
    margin-top: 50px;
    z-index: 10; /* au-dessus du fond */
}

/* Arrière-plan mosaïque */
.home-background {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: grid;
    grid-template-areas:
        "a a b"
        "c d b"
        "c d e";
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 10px;
    padding: 0px;
}

/* Images sans arrondis et avec opacité */
.bg-photo {
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.bg1 { grid-area: a; }
.bg2 { grid-area: b; }
.bg3 { grid-area: c; }
.bg4 { grid-area: d; }
.bg5 { grid-area: e; }

/* Logo */
.logo-container { margin-bottom: 30px; }
.home-logo { width: 800px; height: auto; }

/* Titre */
.home-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 50px;
    color: white;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* Encadré bouton */
.login-box {
    background-color: rgba(156,10,75,0.85);
    padding: 20px 30px;
    border-radius: 10px;
}

/* Bouton */
.login-button {
    font-size: 1.5em;
    font-weight: bold;
    padding: 15px 40px;
    color: white;
    background-color: rgba(156,10,75,0.05);
/*    background-color: var(--orange);*/
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-button:hover {
    background: rgba(255, 255, 255, 0.15); /* semi-transparent */
    backdrop-filter: blur(8px); /* effet verre dépoli */
}

/* Responsive mobile <1000px */
@media (max-width: 1000px) {
    .home-background {
        grid-template-areas:
            "d d a"
            "b c a"
            "b e e";
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, minmax(100px, 1fr));
        gap: 5px;
    }

    .bg-photo {
        background-size: cover;
        background-position: center;
        width: 100%;
        height: 100%;
    }

    .home-content {
        position: relative;
        z-index: 10;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        margin-top: 30%;
    }

    .home-logo {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    .home-title {
        font-size: 3em;
        text-align: center;
        margin-bottom: 30px;
    }

    .login-box {
        background-color: rgba(156,10,75,0.85);
        padding: 20px 20px;
        border-radius: 10px;
        width: 70%;
       /* max-width: 350px;*/
        text-align: center;
    }

    .login-button {
        font-size: 2.5em;
        padding: 15px 30px;
        width: 100%;
    }
}
