/* =============================== FONTS =============================== */
@font-face {
    font-family: 'Inter';
    src: url(../assets/fonts/Inter-VariableFont_opsz\,wght.ttf);
}
@font-face {
    font-family: 'Glight';
    src: url(../assets/fonts/Galibier-Light.ttf);
}
@font-face {
    font-family: 'Gregular';
    src: url(../assets/fonts/Galibier-Regular.ttf);
}
@font-face {
    font-family: 'Gbold';
    src: url(../assets/fonts/Galibier-Bold.ttf);
}

/* =============================== Config =============================== */

* {
    box-sizing: border-box;
  }

:root {
    --black: #111;
    --white: #f7f7f7;
    --yellow: #fcff04;
    --red: #8f0e11;
    --gray: #D9D9D9;
    --inter: 'Inter', 'Open Sans', sans-serif;
    --gbold: 'Gbold', 'Arial', sans-serif;
    --gregular: 'Gregular', 'Arial', sans-serif;
    --glight: 'Glight', 'Arial', sans-serif;
}

body {
    font-family: var(--inter);
    background-color: var(--white);
    margin: 0

}

a {
    text-decoration: none;
    color: var(--black);

}

h1 {
    font-size: 5em;
    margin: 0.5em 0;
}
h2 {
    font-size: 2.5em;
    margin: 0.5em 0;
    font-style: italic;
}

h3, .coureurs-info a i {
    color: var(--white);
    font-size: 2em;
    margin: 0.1em;
}

h1, h2, h3, h4, h5, h6 {
    text-transform: uppercase;
    font-family: var(--gbold);
}

.flex {
    display: flex;
}

.yellow {
    background-color: var(--yellow);
}

.column {
    flex-direction: column;
}

.wrap {
    flex-wrap: wrap;
}

.space-between {
    justify-content: space-between;
}

.w100 {
    width: 100%;
}

.p2em {
    padding: 2em;
}

/* =============================== Header =============================== */

header {
    justify-content: space-around;
    align-items: center;  
}

header nav {
    position: fixed;
    top: 0px;
    font-family: var(--gbold);
    font-size: 1.2em;
    justify-content: space-around;
    align-items: center;
    text-transform: uppercase;
    width: 100%;
    z-index: 1; 
    padding: 0.5em 0;
    transition: all ease-in-out 0.4s;
}

header .navb {
    position: sticky;
    background-color: var(--black);
}


header a {
    position: relative;
    color: var(--white);
}
header nav a:after {
    content: '';
    display: block;
    margin: auto;
    height: 3px;
    border-radius: 75px 0 75px 0;
    width: 15%;
    background: var(--yellow);
    transition: all ease-in-out 0.2s;
}

header nav a:hover:after {
    width: 100%;
    background: var(--yellow);
}

.btn {
 background-color: var(--yellow);
 padding: 0.2em 4em;
 border-radius: 75px 0 75px 0;
 justify-content: center;
 align-items: center;
}

.btn img {
    aspect-ratio: 16/9;
    width: 80px;
}

#main-header.scrolled {
    border: var(--black) 0.5px solid;
    z-index: 10;
    backdrop-filter: blur(20px);
}

#main-header.scrolled a {
    color: #000;
}

/* =============================== Slider =============================== */
.slider {
    width: 100%;
    background-color: #000;
    min-height: 80vh;
    aspect-ratio: 16/9;
    position: relative;
}

.slider-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(75%);
}

.slider-content {
    color: var(--white);
    position: absolute;
    top:50%;
    transform: translate(30%, -60%);
    text-align: center;
}

.slider-content a {
    background-color: var(--yellow);
    padding: 0.8em 4em;
    border-radius: 75px 0 75px 0;
    font-size: 2em;
    font-family: var(--gbold);
    text-transform: uppercase;
    transition: all ease-in-out 0.4s;
}

.slider-content a:hover {
    background-color: var(--white);
}

/* =============================== Classement =============================== */

.classement, .coureurs-stars, .redif-container {
    margin: 1em auto 0 auto;
    width: 80%;
}

.classement .tableau {
    width: 100%;
    margin: 0 auto;
}

.class-line {
    justify-content: space-around;
    align-items: center;
}

.classement .tableau .class-line span img {
    width: 165px;
}

.classement .tableau .class-line  {
    min-height: 53px;
    position: relative;
}


.classement table  th, td {
    padding: 8px;
    width: min-content;
}


.classement .tableau .class-line:first-child {
    background-color: var(--black); 
    color: white;
}

.classement .tableau .class-line:nth-child(odd):not(:first-child) {
    background-color: #fff;
    color: var(--black);
}

.classement .tableau .class-line:nth-child(even) {
    background-color: #E9E9E9;
    color: var(--black);
}

.classement .tableau .class-line::before  {
    content: attr(data-rank);
    font-size: 1.1250em;
    left: -17.5px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    z-index: 1;
}

.classement .tableau .class-line:not(:first-child)::before {
    background-color: var(--black);
    color: white;
}

.classement .tableau .class-line:first-child::before {
    background-color: var(--yellow);
    color: black; 
}

.classement a {
    background-color: var(--black);
    margin: 2em 1em;
    padding: 0.5em;
    border-radius: 75px 0 75px 0;
    font-size: 1em;
    font-family: var(--gbold);
    text-transform: uppercase;
    color: var(--white);
    width: 25%;
    min-height: 50px;
}

/* =============================== Coureurs Star =============================== */

.coureurs-stars {
    padding: 1em 0;
}

.coureurs-container {
    justify-content: space-between;
    align-items: center;
}

.coureurs-box {
    width: 23.875em;
    height: 18.125em;
    background-color: var(--white);
    position: relative;
}

.coureurs-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coureurs-info {
    position: absolute;
    bottom: 0;
    padding: 1em;
    width: 100%;
}

.coureurs-info span a {
    background-color: var(--yellow);
    padding: 0.2em 1em;
    border-radius: 75px 0 75px 0;
    font-family: var(--gbold);
    text-transform: uppercase;
    font-style: italic;
    transition: all ease-in-out 0.4s;
    width: min-content;
}

.coureurs-info .coureurs-name {
    justify-content: space-between;
    width: 100%;
}

.coureurs-info a {
    display: flex;
    justify-content: center;
    align-items: center;
}
.coureurs-info a i, .redif-link a i {
    transform: rotate(-45deg);
    transition: ease-in-out 0.2s;
}

.coureurs-info a i:hover {
    color: var(--yellow);
    transform: scaleX(1.5);
}

/* =============================== Redif =============================== */

.redif-link {
    display: flex;
    flex-direction: column;
}

.redif-link a {
    background-color: var(--gray);
    margin: 0.5em 3em;
    padding: 0.5em 1em;
    text-transform: uppercase;
    font-family: var(--inter);
    font-weight: 700;
    font-style: italic;
    text-align: center;
    width: fit-content;
    display: flex;
    align-items: center;
    transition: all ease-in-out 0.2s;
}

.redif-link a:hover, .redif-link a:first-child:hover {
    background-color: var(--black);
    color: var(--white);
}

.redif-link a:first-child {
    background-color: var(--yellow);
    padding: 1em;
    border-radius: 25px 0 25px 0;
    transition: all ease-in-out 0.2s;

}

.redif-link a i {
    font-size: 0.8em;
    margin: 0 0.5em;
}


/* =============================== Footer =============================== */

footer {
    background-color: var(--black);
    margin: 1em 0 0 0 ;
}

footer .prefooter {
    color: var(--white);
    font-family: var(--inter);
    font-weight: 200;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    padding: 1.5em 6em;
}

.prefooter .resaux-link {
    margin: 0 7em;
}

footer .prefooter h2 {
    font-style: italic;
    margin: 0;
}

.resaux-link a {
    color: var(--black);
    background-color: var(--yellow);
    padding: 0.5em;
    border-radius: 50%;
    font-size: 1.5em;
    margin: 0 0.5em;
}

.foot {
    background-color: #000;
    width: 100%;
    color: var(--white);
    font-family: var(--inter);
    font-weight: 200;
    align-items: center;
    margin: 0 auto;
    padding: 2em;
}

.foot-logo {
    width: 12.89em;
    height: 8.40em;
}

.foot-containera {
    width: 40%;
    border-right: 1px var(--white) solid ;
    justify-content: center;
}

.foot-containerb {
    margin: 0 2em;
}

/* =============================== 404 et reservé =============================== */

.main-container {
    width: 100%;
    margin: 0;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 80vh;
    position: relative;
}

.main-container h1 {
    color: #6B6B6B;
    font-size: 10em;
    font-style: italic;
    margin: 0;
}

.main-container h2 {
    color: var(--black);
    font-size: 3em;
    font-family: var(--inter);
    text-transform: none;
    margin: 0 0 1em 0;

}


.main-container img {
    width: 8.5em;
    height: 5.5em;
    position: fixed;
    bottom: 20vh;
}

.main-container a, .reserve h1 {
    font-family: var(--gbold);
    padding: 1em 2em;
    background-color: var(--yellow);
    border-radius: 75px 0 75px 0;
    width: 15%;
    text-align: center;
    margin: 0 0 5em 0;
    transition: all ease-in-out 0.2s;
    font-size: 1.2em;
    text-transform: uppercase;
}

.main-container a:hover {
    background-color: var(--white);
}

.reserve h1 {
    color: var(--black);
    font-size: 2.5em;
    width: fit-content;
    padding: 0.8em 4em;
}

.reserve label {
    font-family: var(--inter);
    font-weight: 700;
    font-size: 1.2em;
}

.reserve form {
    justify-content: center;
    align-items: center;
}

.reserve form input {
    font-size: 1.2em;
    padding: 0;
    height: 50px;
    width: 426px;
    border: none;
    margin: 0.5em 0;
    align-items: center;
    padding: 0.8em 1em;
}

.reserve button {
    font-size: 1.2em;
    background-color: var(--black);
    height: 50px;
    color: var(--white);
    text-transform: uppercase;
    font-family: var(--inter);
    font-style: italic;
    font-weight: 700;
    padding: 0.5em 1.5em 0.5em 0.5em;
    border: none;
    border-radius: 0 0 75px 0;
    text-align: left;
    transition: all ease-in-out 0.2s;
}

.reserve button:active {
    background-color: var(--gray);
    color: var(--black);
}

.reserve input:focus {
    outline: none;
}

/* =============================== Equipes =============================== */

.equipe-line  {
    background-color: var(--black);
    justify-content: space-between;
    position: relative;
    padding: 0;
    margin: 2em 0;
}

.equipe-id {
    width: auto;
    z-index: 1;
    position: absolute;
    top: -12px;
    left: -17.5px;
}


.equipe-id div:first-child {
    background-color: var(--yellow);
    width: 35px;
    height: 24px;
    padding: 0.1em;
    color: var(--black);
}

.equipe-id div {
    background-color: #6B6B6B;
    color: var(--white);
    padding: 0.1em 0.2em;
    height: 24px;
    width: 147px;
    margin: 0;
    font-family: var(--gbold);
    font-style: italic;
    text-align: center;
}


.equipe-line .equipe-coureur {
    align-items: start;
    overflow: hidden;
    width: auto;
}

.equipe-line .equipe-sponsor {
    background-color: var(--gray);
    align-items: center;
    justify-content: center;
    width: 25%;
    padding: 0;
    margin: 0;
}

.sponsor-infos {
    flex-direction: column;
}

.equipe-line .equipe-sponsor img {
    width: 252px;
    text-align: center;
    margin: 0;
    padding: 0;
}

.equipe-line .coureur-img {
    width: 165px;
    scale: 1.9;
    padding: 0.5em;
    object-position: 0 35px;
}

.coureur-box h3, h2 {
    margin: 0em 0;
    color: var(--white);
}

.coureur-box {
    justify-content: center;
    align-items: center;
    height: max-content;
    min-height: 165px;
    margin-right: 3em;
}

.coureur-box .coureur-infos span, .equipe-sponsor span {
    color: #6B6B6B;
    font-weight: 700;
    font-size: 1em;
    text-transform: uppercase;

}

.coureur-infos:nth-child(2n) {
    border-right: 1px var(--white) solid;
    padding: 0 1.5em 0 0;
}

/* =============================== Inscription =============================== */

.inscription-container {
    width: 90%;
    margin: 5em auto;
    position: relative;
    background-color: var(--white);
}
.inscription-container form::before {
    content: "FORMULAIRE D'INSCRIPTION";
    background-color: var(--yellow);
    width: fit-content;
    padding: 0.2em 1em;
    color: var(--black);
    border-radius: 0 0 39px 0;
    display: block;
    position: absolute;
    font-size: 1.5em;
    font-style: italic;
    font-family: var(--gbold);
    top: 0;
    left: 0;
}

.inscription-container ol {
    list-style: none;
    line-height: 3em;
}

.inscription-container ol li {
    position: relative;
}

.inscription-container ol li::before {
    content: attr(data-rank);
    display: block;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    z-index: 1;
    color: var(--black);
    background-color: var(--yellow);
    height: 36px;
    width: 36px;
    top: 50%;
    left: -50px;
    transform: translate(0%, -50%);
}

.inscription-container form {
    background-color: #fff;
}


.inscription-container form input {
    background-color: var(--gray);
    color: #6B6B6B;
    font-size: 10px;
    font-family: var(--inter);
    font-weight: 700;
    border: none;
    margin: 0.5em;
    padding: 0.5em 1.5em;
    text-transform: uppercase;
    outline: none;
}

.inscription-container form h3 {
    color: var(--black);
    font-style: italic;
    margin-top: 0.5em;
}

.coureur-form-box {
    max-width: 24%;
    margin: 0.2em 1em;
}


.inscription-container form button {
    margin:auto;
    width: fit-content;
    background-color: var(--black);
    color: var(--white);
    border: none;
    font-style: italic;
    outline: none;
    font-size: 1.2em;
    font-family: var(--gbold);
    padding: 0.5em 1em;
}
