/* --- Reset CSS --- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Images --- */

img {
    display: block;
    filter: grayscale(100%) contrast(150%);
    image-rendering: pixelated;
}

.banner-img {
    width: 100%;
    max-width: 900px;
    height: 150px;
    object-fit: cover;
}

.profile-pic,
.divider-img {
    width: 100%;
    object-fit: cover;
}

.menu-img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* --- Global styles --- */

body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #ffdeb4;
    padding: 20px;
    margin: auto;
    width: 900px;
}

/* --- Header --- */
header {
    width: 100%;
    background-color: #ec5555;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    width: 100%;
}

.menu-header-navbar-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    width: 100%;
}

.menu-header-navbar-list li {
    flex: 1 1 auto;
    text-align: center;
}

.menu-header-navbar-list a {
    display: block;
    white-space: nowrap;
}

/* --- Main layout (page index uniquement) --- */
main.index {
    display: flex;
    gap: 20px;
    background-color: #92fa9a;
}

.index .left {
    flex: 1 1 33.333%;
    max-width: 33.333%;
    background-color: rgb(140, 142, 238);
    border-right: 3px dotted #1f1e1e;
}

.index .right {
    flex: 1 1 66.666%;
    max-width: 66.666%;
    background-color: rgb(252, 138, 191);
}

/* --- Left content --- */
.index .bio {
    background-color: rgb(228, 229, 255);
}

.index .now {
    background-color: rgb(250, 208, 228);
}

.profile-pic {
    width: 100%;
}

.h3-left {
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
}

.bio-span,
.activity-span {
    font-weight: bold;
    margin-right: 8px;
}

.bio-span::after,
.activity-span::after {
    content: ":";
}

.image-divider {
    text-align: center;
    margin: 20px 0 20px 0;
}

.divider-img {
    width: 100%;
}

/* --- Right content --- */
.welcome {
    margin-bottom: 30px;
}

.h2-right {
    margin-bottom: 10px;
}

.welcome-text {
    line-height: 1.6;
}

/* --- Menu grid --- */
.index .menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.menu-item {
    text-align: center;
}

.menu-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.menu-item img {
    width: 100%;
    max-width: 100px;
    object-fit: cover;
    margin: 0 auto;
}

.menu-item p {
    margin-top: 5px;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px;
    background-color: #eee;
}

/* --- Responsive : passe en colonne sur mobile --- */
@media (max-width: 768px) {
    main.index {
        flex-direction: column;
    }

    .index .left,
    .index .right {
        max-width: 100%;
    }

    .index .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}