html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

* {
    box-sizing: border-box;
}

body {
    background: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

/* HEADER */
header {
    background-color: rgb(165, 111, 61);
    width: 100%;
    min-height: 50px;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.contenu-header ul {
    list-style: none;
    margin: 0;
    padding: 10px 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.contenu-header ul li a {
    display: block;
    padding: 10px 12px;
    background-color: rgba(237, 163, 52, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.2s;
}

.contenu-header ul li a:hover {
    background-color: rgba(229, 189, 114, 0.4);
    transform: translateY(-2px);
}

.contenu-header .HomeButton {
    margin-right: auto;
}

/* MAIN */
main {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    isolation: isolate;
}

/* FOND FLOU */
.background {
    position: absolute;
    inset: 0;
    background-image: url(../img/BG-STATS.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(8px);
    transform: scale(1.05);
    z-index: -1;
}

/* CONTENU PRINCIPAL */
.contenu-main {
    position: relative;
    z-index: 1;
    color: white;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* TITRE */
.box-title {
    text-align: center;
    margin-bottom: 30px;
}

/* BLOCS STATS */
.box-1 {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    flex-wrap: wrap;
}

.box-stat {
    background-color: gray;
    border: 1px solid black;
    border-radius: 6px;
    padding: 15px;
    flex: 1 1 250px;
    max-width: 450px;
    min-width: 320px;
}

.box-stat ul,
.img-graph {
    margin: 0;
    text-align: left;
    overflow-wrap: break-word;
    word-break: break-word;
}

.img-graph {
    height: 150px;
    width: 300px;
}

.box-sum {
    background-color: gray;
    border: 1px solid black;
    border-radius: 6px;
    padding: 15px;
    flex: 1 1 250px;
    max-width: 920px;
    min-width: 920px;
    text-align: center;
}

/* FOOTER */
footer {
    width: 100%;
    background-color: rgb(23, 78, 78);
    border-top: 1px dashed #000;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    padding: 20px;
}

.footer-service h3 {
    font-size: 20px;
    text-align: center;
    margin: 0 0 15px 0;
    color: white;
}

.footer-service ul.Bonus {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-service ul.Bonus a {
    color: white;
    text-decoration: none;
}

.footer-service ul.Bonus a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .contenu-header ul {
        padding: 10px 15px;
        gap: 8px;
    }

    .contenu-main {
        max-width: 100%;
    }

    .box-1 {
        gap: 15px;
    }

    .box-stat {
        max-width: 100%;
    }

    .footer-service ul.Bonus {
        gap: 20px;
    }
}