body {
    font-family: Arial, sans-serif;
    background: #f4f7f5;
    margin: 0;
    padding: 0;
    color: #222;
}

h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    background: #2e7d32;
    color: white;
    padding: 25px;
    margin: 0 0 25px 0;
    text-align: center;
}

h1::before {
    content: "";
    flex: 0 0 auto;
    width: 72px;
    height: 48px;
    background: url("../photos/logo_pedibus_carre.png") center / contain no-repeat;
}

.pedibus-page-title::before,
.dashboard-title::before,
.login-title::before {
    display: none;
}

.pedibus-title-logo,
.dashboard-title-logo,
.login-title-logo,
.pedibus-title-logo-compact {
    width: auto;
    height: 1em;
    object-fit: contain;
    flex: 0 0 auto;
}

p {
    max-width: 900px;
    margin: 15px auto;
}

nav {
    max-width: 900px;
    margin: 30px auto;
}

nav ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

nav ul li {
    margin: 0;
}

nav ul li a,
nav ul li .dashboard-action-button {
    display: block;
    box-sizing: border-box;
    width: 100%;
    background: white;
    color: #2e7d32;
    text-decoration: none;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
    font-weight: bold;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #d8e5d8;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: 0.2s ease;
    cursor: pointer;
}

nav ul li a:hover,
nav ul li .dashboard-action-button:hover {
    background: #2e7d32;
    color: white;
    transform: translateY(-3px);
}

.return-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 8px;
    background: #f28c28;
    color: white;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    transition: 0.2s ease;
}

.return-button:hover,
.return-button:focus-visible {
    background: #d97706;
    color: white;
    transform: translateY(-1px);
}

#push-notifications-message {
    display: block;
    margin-top: 7px;
    color: #555;
    line-height: 1.35;
    text-align: center;
}

#push-notifications-message:empty {
    display: none;
}

.dashboard-welcome {
    text-align: center;
    font-size: 1.1em;
}

.logout-link a {
    background: #f8d7da;
    color: #842029;
    border-color: #f5c2c7;
}

.logout-link a:hover {
    background: #842029;
    color: white;
}

@media (max-width: 600px) {
    h1 {
        padding: 20px 14px;
        margin-bottom: 18px;
        font-size: 1.65rem;
        line-height: 1.2;
        gap: 10px;
    }

    h1::before {
        width: 58px;
        height: 39px;
    }

    .pedibus-title-logo,
    .dashboard-title-logo,
    .login-title-logo,
    .pedibus-title-logo-compact {
        width: auto;
        height: 1em;
    }

    .dashboard-welcome {
        padding: 0 16px;
        font-size: 1.1rem;
        line-height: 1.45;
    }

    .dashboard-nav {
        width: auto;
        margin: 22px 14px;
    }

    .dashboard-nav ul {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dashboard-nav ul li a,
    .dashboard-nav ul li .dashboard-action-button {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 62px;
        padding: 16px 18px;
        font-size: 1.15rem;
        line-height: 1.35;
        text-align: center;
    }
}
