/* RESET */

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

* {
    box-sizing: border-box;
}

body {
    background: white;
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
}


/* HEADER */

header {
    background-color: rgb(20, 66, 95);
    height: 50px;
    width: 100%;
}

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

.contenu-header ul li a {
    display: block;
    padding: 10px 10px;
    background-color: rgba(29, 119, 175, 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(125, 179, 196, 0.4);
    transform: translateY(-2px);
}

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


/* MAIN */

main {
    position: relative;
    display: flex;
    flex: 1;
    justify-content: center;
    text-align: center;
    padding: 60px 0;
    isolation: isolate;
}


/* BACKGROUND FLOU */

main::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("../img/BG-RULES.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    filter: blur(8px);
    z-index: -1;
}


/* CONTENU */

.contenu-main {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 900px;
    width: 90%;
    margin: auto;
}

.contenu-main p {
    text-align: justify;
    line-height: 1.6;
}

.section h2 {
    margin-top: 30px;
}

.contenu-main hr {
    border: none;
    height: 2px;
    width: 70%;
    margin: 40px auto;
    background: linear-gradient(to right, transparent, white, transparent);
}


/* FOOTER */

footer {
    flex-shrink: 0;
    border-top: 1px dashed #000;
    width: 100%;
    background-color: rgb(23, 78, 78);
    padding: 12px 0;
}

.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 20px;

    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: 700px) {

    .contenu-header ul {
        justify-content: center;
        padding: 8px;
        gap: 6px;
    }

    .contenu-header .HomeButton {
        margin-right: 0;
        margin-left: 0;
    }

    .contenu-header ul li a {
        padding: 6px 8px;
        font-size: 0.7rem;
    }

    main {
        padding: 40px 15px;
    }

    .contenu-main {
        width: 95%;
    }

    .contenu-main p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .footer-service ul.Bonus {
        gap: 14px;
        padding: 0 10px;
    }

    .footer-service ul.Bonus a {
        font-size: 0.75rem;
    }

}