/* Page d'accueil publique — image hero en flux normal */
.accueil {
    width: 100%;
    min-height: calc(100vh - 200px); /* place header + footer sans chevauchement */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.accueil img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Variante : page d'accueil avec un toast d'erreur (ex: mot de passe invalide).
   Carte blanche élégante avec icône en pastille, titre + message, ombre douce
   et entrée en glissement vertical. */
.login-error-toast {
    /* Le header public est position:fixed (min-height 7.5vh, z-index 200) ;
       on décale le toast en dessous. */
    margin: calc(7.5vh + 24px) auto 20px;
    max-width: 540px;
    width: calc(100% - 32px);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1;
    animation: loginErrorToastIn .35s cubic-bezier(.2, .8, .2, 1);
}

.login-error-toast-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #FBDED6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-error-toast-icon .mi {
    font-size: 26px;
    color: #B5170D;
}

.login-error-toast-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.login-error-toast-body strong {
    font-size: 15px;
    font-weight: 700;
    color: #1F1A14;
    line-height: 1.3;
}

.login-error-toast-body span {
    font-size: 13.5px;
    color: #5C5648;
    line-height: 1.4;
}

@keyframes loginErrorToastIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accueil--with-error {
    min-height: calc(100vh - 280px);
}
