/* IMPORT DES POLICES */
@font-face {
    font-family: "Grotesk";
    src: url("../../_media/font/Grotesk-01Extrafin.woff2") format("woff2");
    font-weight: 200;
    /* Extra-Light */
    font-style: normal;
}

@font-face {
    font-family: "Grotesk";
    src: url("../../_media/font/Grotesk-02Mince.woff2") format("woff2");
    font-weight: 300;
    /* Light */
    font-style: normal;
}

@font-face {
    font-family: "Grotesk";
    src: url("../../_media/font/Grotesk-03Regular.woff2") format("woff2");
    font-weight: 400;
    /* Regular */
    font-style: normal;
}

@font-face {
    font-family: "Grotesk";
    src: url("../../_media/font/Grotesk-04Gras.woff2") format("woff2");
    font-weight: 500;
    /* Bold */
    font-style: normal;
}

@-webkit-keyframes shine {
    from {
        -webkit-mask-position: 150%;
    }

    to {
        -webkit-mask-position: -50%;
    }
}

/* GLOBALS */
:root {
    --color-main-black: #120801;
    --color-main-black-60: #1208019c;
    --color-main-black-40: #12080165;
    --color-main-blue: #183a37;
    --color-main-cyan: #527673;
    --color-main-orange: #fdad86;
    --color-main-white: #fdf7f0;

    --font-title: 'Grotesk';
    --font-text: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

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

a {
    font-style: normal;
    text-decoration: none;
}

li {
    list-style: none;
}

h1 {
    font-family: var(--font-title);
    font-weight: 400;
    font-size: 4rem;
    color: var(--color-main-black);
}

body {
    background: var(--color-main-white);
    min-height: 100vh;
    height: auto;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow-x: hidden;
}

p,
label,
input,
button {
    font-family: "Roboto", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 400;
    font-size: 1.3rem;
    color: var(--color-main-black);
}

h2 {
    font-family: "Roboto", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 400;
    font-size: 2rem;
    color: var(--color-main-black);
}

.hidden {
    display: none;
}

.header-title {
    text-align: center;
    transition: all 0.2s ease;
}

.header-title:hover {
    -webkit-mask-image: linear-gradient(
        -75deg,
        var(--color-main-black) 20%,
        var(--color-main-black-60) 50%,
        var(--color-main-black) 80%
    );
    -webkit-mask-size: 200%;
    animation: shine 1.5s infinite;
}

.gb-button1 {
    align-items: center;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
    box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
    box-sizing: border-box;
    color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
    font-family: "Roboto", serif;
    font-size: 16px;
    font-weight: 500;
    justify-content: center;
    line-height: 1.25;
    margin: 0;
    min-height: 3rem;
    padding: calc(0.875rem - 1px) calc(1.5rem - 1px);
    position: relative;
    text-decoration: none;
    transition: all 250ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
}

.gb-button1:hover,
.gb-button1:focus {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
    color: rgba(0, 0, 0, 0.65);
}

.gb-button1:hover {
    transform: translateY(-1px);
}

.gb-button1:active {
    background-color: #f0f0f1;
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: rgba(0, 0, 0, 0.06) 0 2px 4px;
    color: rgba(0, 0, 0, 0.65);
    transform: translateY(0);
}

/* -----------------/----------\---------------- */
/* ----------------|---INDEX---|---------------- */
/* ----------------\----------/----------------- */

/* header */
.index .header-header {
    margin: 1.5rem;
    display: flex;
    justify-content: center;
}

/* main */

.index main {
    width: auto;
    max-width: 1280px;
    height: auto;
    margin: 0 auto;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.index .main-box {
    text-align: justify;
    max-width: 800px;
    margin: 0 auto;
    /* background-color: var(--color-main-cyan);
    padding: 2rem 3rem;
    box-shadow: 10px 10px 0px 0px var(--color-main-black); */
}

.index .main-text {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-main-black);
    font-family: var(--font-text);
}

.index .main-link {
    color: var(--color-main-blue);
    text-decoration: underline;
    transition: color 0.15s ease-out;
}

.index .main-link:hover {
    color: var(--color-main-orange);
}

.index .gamelist-gamelist {
    display: grid;
    grid-template-columns: 1fr;
    width: auto;
    margin: 0 auto;
    gap: 0.5rem;
    height: 14rem;
    flex: 1;
}

.index .gamelist-gamelist li {
    height: 100%;
}

.index .gamelist-gamelist li a {
    width: auto;
    height: 100%;
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto;
    background-color: black;
    transition: all 0.2s ease;
    overflow: hidden;
}

.index .gamelist-img {
    grid-area: 1/1/2/2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    align-self: center;
    justify-self: center;
    opacity: 0.8;
    transition: all 0.4s ease-out;
}

.index .gamelist-gamelist li a:hover .gamelist-img {
    opacity: 0.4;
    transform: scale(1.05);
}

.index .gamelist-h2 {
    width: 100%;
    grid-area: 1/1/2/2;
    align-self: center;
    justify-self: center;
    text-align: center;
    width: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: transparent;
    z-index: 10;
    transition: all 0.2s ease-out;
}

.index .gamelist-gamelist li a:hover .gamelist-h2 {
    color: var(--color-main-white);
    transform: scale(1.4);
}

.index .gamelist-year {
    width: 100%;
    grid-area: 1/1/2/2;
    align-self: flex-start;
    justify-self: end;
    width: auto;
    margin: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-main-black);
    z-index: 10;
    transition: all 0.2s ease-out;
}

.index .gamelist-language {
    width: 100%;
    grid-area: 1/1/2/2;
    align-self: flex-start;
    justify-self: start;
    width: auto;
    margin: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-main-black);
    z-index: 10;
    transition: all 0.2s ease-out;
}

.index .gamelist-gamelist li a:hover .gamelist-year {
    color: var(--color-main-white);
}

.index .gamelist-gamelist li a:hover .gamelist-language {
    color: var(--color-main-white);
}

/* version ordinateur de 769px*/
@media (min-width: 769px) {
    .index .gamelist-gamelist {
        grid-template-columns: 1fr 1fr;
    }
}

/* version ordinateur de 769px*/
@media (min-width: 1279px) {
    .index .gamelist-gamelist {
        grid-template-columns: 1fr 1fr 1fr;
    }
}