@import url("globals.17266eeaf032.css");

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;

    /* appliquer le fond global également sur la balise html */
    background-color: hsl(var(--background));
}

body {
    flex: 1;

    /* propriétés déplacées depuis index.css pour rendre ces styles globaux */
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -moz-font-feature-settings: "liga" on;

    background: hsl(var(--background));
    color: hsl(var(--foreground));
}

main {
    flex: 1; /* ← prend tout l'espace restant */
}

.site-footer {
    margin-top: auto; /* ← pousse le footer en bas */
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 260px;
    padding: 12px 16px;
    border-radius: 8px;
    color: hsl(var(--primary-foreground)); /* texte clair par défaut sur toasts colorés */
    display: flex;
    justify-content: space-between;
    align-items: center;

    opacity: 0;
    transform: translateX(30px);
    animation: slide-in 0.4s forwards;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: inherit;
    cursor: pointer;
    margin-left: 10px;
}

@keyframes slide-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* mapping des états vers les variables */
.toast.success {
    background-color: hsl(var(--primary));
}

.toast.error {
    background-color: hsl(var(--destructive));
}

.toast.warning {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.toast.info {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}


/* icônes Material Symbols : on conserve la famille, on applique la couleur via la variable */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    text-transform: none;
    font-size: 24px;
    vertical-align: middle;
    line-height: 1;
}

.material-symbols-outlined.icon {
    color: var(--brand-green);
}

.page__title {
    justify-content: center;
    display: flex;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 2rem 0;
    color: var(--brand-green);
    letter-spacing: 2px;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}
