* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #F99898;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: 
        "header"
        "main"
        "footer";
}

header {
    grid-area: header;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
}

header > div:first-child {
    display: flex;
    align-items: center;
    padding-left: 20px;
}

header > div:first-child p:first-child {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: 'Arizonia', cursive;
    font-size: 24px;
    font-weight: bold;
    color: black;
    margin-right: 10px;
}

header > div:first-child p:last-child {
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(to right, #000000, #ffffff);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Trade Winds', sans-serif;
}

header > img:last-child {
    padding-right: 20px;
}

footer {
    grid-area: footer;
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding: 20px;
}

footer > div {
    display: flex;
    width: 100%;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    justify-content: space-around;
}

footer > div > div {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

footer > div > div:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

/* Styles spécifiques à la page index */
#index main {
    grid-area: main;
    padding: 20px;
    padding-top: 60px;
}

#index main > div {
    position: relative;
    width: 100%;
    height: 100%;
}

#index main > div > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.4);
}

#index main > div > p{
    position: absolute;
    bottom: 75px;
    left: 20px;
    background: rgba(255, 255, 255, 0.3);
    color: black;
    padding: 8px 20px;
    border-radius: 20px;
    font-family: Arial, sans-serif;
    font-size: 20px;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#index main > div > p:last-child {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.3 );
    color: black;
    padding: 8px 20px;
    border-radius: 20px;
    font-family: Arial, sans-serif;
    font-size: 20px;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}


/* Styles spécifiques à la page statistique */
#statistique main {
    grid-area: main;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    grid-template-areas: 
        "title title"
        "hydration exercises"
        "progression progression";
}

#statistique main > div:first-child {
    grid-area: title;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin-bottom: 0;
    background: transparent;
    backdrop-filter: none;
    border: none;
}

#statistique main > div:nth-child(2) {
    grid-area: hydration;
}

#statistique main > div:nth-child(3) {
    grid-area: exercises;
}

#statistique main > div:nth-child(4) {
    grid-area: progression;
    grid-column: 1 / -1;
}

#statistique main > div:first-child p {
    font-size: 24px;
    font-weight: bold;
    color: black;
    margin: 0;
}

#statistique main > div:first-child select {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    color: black;
    backdrop-filter: blur(2px);
    cursor: pointer;
}

#statistique main > div:nth-child(2),
#statistique main > div:nth-child(3),
#statistique main > div:nth-child(4) {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    min-height: 245px;
    display: flex;
    justify-content: center;
}

#statistique main > div:nth-child(2) p,
#statistique main > div:nth-child(3) p,
#statistique main > div:nth-child(4) p {
    font-size: 20px;
    font-weight: bold;
    color: black;
    text-align: center;
}

/* Styles spécifiques à la page profil */
#profil main {
    grid-area: main;
    padding: 20px;
    display: grid;
    grid-template-rows: 1fr 2fr;
    gap: 20px;
}

#profil main > div {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    display: flex;
    justify-content: center;
}

#profil main > div p {
    font-size: 24px;
    font-weight: bold;
    color: var(--text);
    margin: 0;
}

/* Styles spécifiques pour la page nutrition */
#nutrition main {
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

#nutrition main > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#nutrition main > div:first-child p {
    font-size: 24px;
    font-weight: bold;
    color: var(--text);
}

#jourSelect {
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.25);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
}

#nutrition main > div:nth-child(n+2) {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#nutrition main > div:nth-child(n+2) > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#nutrition main > div:nth-child(n+2) > div:first-child > p:first-child {
    font-size: 18px;
    font-weight: bold;
    color: var(--text);
}

#nutrition main > div:nth-child(n+2) > div:first-child > p:last-child {
    font-size: 14px;
    color: var(--text-secondary);
}

#nutrition main > div:nth-child(n+2) > div:not(:first-child) {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#nutrition main > div:nth-child(n+2) > div:last-child {
    border-bottom: none;
}

#nutrition main > div:nth-child(n+2) > div:not(:first-child) > p:first-child {
    color: var(--text);
    font-size: 14px;
}

#nutrition main > div:nth-child(n+2) > div:not(:first-child) > div {
    display: flex;
    gap: 15px;
}

#nutrition main > div:nth-child(n+2) > div:not(:first-child) > div > p {
    color: var(--text-secondary);
    font-size: 14px;
}

#nutrition main > div:nth-child(n+2) > button {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--text);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

#nutrition main > div:nth-child(n+2) > button:hover {
    background: rgba(255, 255, 255, 0.05);
}

#nutrition main > div:last-child {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

#nutrition main > div:last-child > div {
    background: var(--gradient);
    color: #000000;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

#nutrition main > div:last-child > div > p:first-child {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

#nutrition main > div:last-child > div > p:last-child {
    font-size: 12px;
    opacity: 0.9;
}

#nutrition main > div:nth-child(6) {
    margin-top: 20px;
}

#nutrition main > div:nth-child(6) > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#nutrition main > div:nth-child(6) > div:nth-child(2) {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin: 10px 0;
    overflow: hidden;
}

#nutrition main > div:nth-child(6) > div:nth-child(2) > div {
    height: 100%;
    background: var(--gradient);
    border-radius: 5px;
    transition: width 0.5s ease;
}

#nutrition main > div:nth-child(6) > div:last-child {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}