:root {
    --main-bg-color: rgb(204, 42, 42);
    --main-color: #0b1f1f;
    --second-color: white;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    margin: auto;
    font-family: 'Inter';
    font-size: 15px;
    letter-spacing: 1px;
    color: var(--main-color);
}

.fa-solid, .fa-brands {
    line-height: 40px;
    font-size: 20px;
}

h2 {
    font-size: 20px;
    margin: 0;
}

hr {
    height: 80px;
    border:none;
    margin: 0;
}

hr:nth-child(even) {
    background: linear-gradient(-2deg, white 0 49%, var(--main-bg-color) 50% 100%);
    background-size: 100%;
}

hr:nth-child(odd) {
    background: linear-gradient(2deg, var(--main-bg-color) 0 49%, white 50% 100%);
    background-size: 100%;
}

section:nth-child(even) {
    background-color: white;
}

section:nth-child(odd) {
    background-color: var(--main-bg-color);
    color: white;
}

section:nth-child(odd) h1 {
    text-align: right;
}

section {
    padding: 50px 10%;
}

h1:target {
    padding-top: 100px; 
    margin-top: -100px; 
}

.ou_jouer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

@font-face {
    font-family: 'Lexia Mono';
    src: url('../fonts/TrialStaticFonts/LexiaMono_Trial_Blk.ttf');
}

h1 {
    margin: 0 0 10px 0;
    font-family: 'Signika Negative';
    font-size: 28px;
}

a {
    text-decoration: none;
    color: var(--main-color);
}

a:hover {
    text-decoration: underline;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    margin: auto;
    border-bottom: 1px solid;
    background-color:  rgba(255, 255, 255, 0.7);
    backdrop-filter : blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.img-logo {
    height: 200px;
}

#name {
    font-size:26px;
    font-family: "Lexia Mono";
    text-transform: uppercase;
    text-shadow: white 0px 0px 0.1em;
}

#name a:hover {
    text-decoration:none;
}

#title {
    display: flex;
    line-height: 30px;
    gap: 10px;
}

#subtitle {
    font-size: 24px;
    text-align: center;
    font-family: 'Signika Negative';
    font-weight: bold;
    text-shadow: white 0px 0px 10px;
}

nav a {
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 16px;
    display: flex;
}

nav a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

nav {
    height: 40px;
    line-height: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.menu {
    height: 60px;
    position: relative;
}

.submenu {
    position: absolute;
    width: 200px;
    top: 60px;
    left: 0;
    background-color: white;
    padding-left: 10px;
    border: 1px solid;
    border-top: none;
}

main {
    margin: auto;
}

.socials {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome {
    margin-right : 5%;
    padding: 15px;
    text-align: justify;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10%;
}

.welcome p {
    margin: 10px;
}

.news {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
    margin-top: 25px;
}

article {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: 1px solid;
    border-color: rgb(0, 0, 0, 0.2);
    background-color: rgb(200, 4, 4, 0.1);
    border-radius: 10px;
    padding: 10px;
    position: relative;
}

article h2 {
    margin-top: 25px;
}

.div-titre {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.news-content {
    margin-top: 10px;
}

.news-script {
    width: 80%;
    text-align: justify;
}

.news-date {
    font-size: 14px;
    color:rgb(220, 218, 218);
    position: absolute;
    padding: 5px 10px;
    height: 20px;
    line-height: 20px;
    top: -15px;
    left: 50%;
    transform:translateX(-50%);
    background-color: var(--main-color);
    border: 2px solid white;
    border-radius: 10px;
}

.news-photo {
    width: 100%;
}

.news-photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-plus {
    text-align: right;
}

.card-jouer {
    background-color: rgb(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid white;
    color: var(--main-color);
}

.actus {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.actus-article {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: 1px solid;
    border-color: rgb(0, 0, 0, 0.2);
    background-color: white;
    border-radius: 10px;
    padding: 10px;
    position: relative;
    color: var(--main-color);
    margin-top: 20px;
}

.actus-script {
    visibility: hidden;
    height: 0;
    opacity: 0;
    transition: 300ms;
    width: 80%;
    text-align: justify;
}

/*** COmponents ***/
/* Animation cross onclick */

.cross {
    margin-top: 25px;
    margin-right: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 300ms;
}

.cross-1 {
    position: relative;
    height: 20px;
    border: 2px solid #24282d;
}

.cross-1::after {
    content: '';
    position: absolute;
    height: 20px;
    border: 2px solid #24282d;
    transform: rotate(90deg) translate3d(-2px, 2px, 0);
}

footer {

    padding: 2% 5%;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3%;
}

.footer-infos {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

footer h3 {
    margin: 0;
    font-family: 'Signika Negative';
}

footer a {
    text-underline-offset: 3px;
    color: var(--main-color);
}

footer a:hover {
    text-decoration: underline;
}

footer li {
    margin-bottom: 5px;
}

.grid-2 {
    width: 100%;
    gap: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.mentions {
    text-align:center;
    font-size: 12px;
    padding: 5px 0;
}

.maps {
    text-align:center;
    margin-top: 20px;
    width: 400px;
}

@media (max-width: 1200.98px) {

    header {
        padding: 20px;
    }

}

@media (max-width: 767.98px) {

    header {
        padding: 10px;
        flex-direction: column;
    }

    .welcome {
        flex-direction: column;
        gap: 25px;
    }

    .news {
        grid-template-columns: 1fr;
    }

    .ou_jouer {
        grid-template-columns: 1fr;
    }

    footer {
        display: flex;
        flex-flow: wrap;
        gap: 20px;
    }

    .news-script {
        width: 100%;
    }

}

@media (max-width: 450px) {

    .img-logo {
        display: none;
    }

    #name {
        font-size: 22px;
    }

    nav a {
        font-size: 12px;
    }

    .maps {
        width: 300px;
    }

    section {
        padding: 30px 10px;
    }

}