@font-face {
    font-family: 'BEBAS';
    /* ../ permet de revenir au dossier parent dans une url relative */
    src: url('../fonts/BEBAS___-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "Roboto", sans-serif;
    /* max-width: 1200px;
    min-width: 1100px; */
    margin: 0 auto;
}

header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    padding: 5px 50px 8px 50px;
    display: flex;
    justify-content: space-between;
    background-color: #ea222d;
}

nav ul li{
    align-self: center;
    color: white;
    display: inline-block;
}

nav.nav a {
    color: white;
    text-decoration: none;
    border-top: 2px solid white;
    border-bottom: 2px solid white;
}

nav.nav a:hover {
    border: none;
}

span.mot1 {
    font-family: "BEBAS", sans-serif;
    color: white;
    font-size: 32px;
}

span.mot2 {
    font-family: "BEBAS", sans-serif;
    color: white;
    font-size: 24px;
}

/* CSS de la partie texture */
figure {
    position: relative;
    margin: 0;
}

.textur {
    width: 100%;
    height: 400px;
}

.texture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgb(255, 255, 255));
}

.legende1 {
    position: absolute;
    top: 100px;
    left: 50px;

    text-transform: uppercase;
    font-weight: bold;
    background-color: white;
    color: #ea222d;
    font-size: 32px;
    padding: 10px;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.6);
}

.legende2 {
    position: absolute;
    top: 158px;
    left: 50px;

    background-color: #ea222d;
    color: white;
    font-size: 14px;
    padding: 10px;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.6);
}

/* CSS de la partie presentation des personnages */
h1 {
    font-family: "BEBAS", sans-serif;
    color: #ea222d;
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}

.row {
    display: flex;
    justify-content: center;
    align-items: baseline;
    padding-left: 50px;
    padding-right: 50px;
}

.row img {
    width: 50%;
    height: auto;
    padding: 10px;
}

.img {
    text-align: center;
    margin: 0;
}

.nom {
    font-weight: bold;
    margin: 20px;
}

.desc {
    margin: 10px;
}

/* CSS de la partie Vidéo */
.video-container {
    position: relative;
    width: 100%;
}

.video-container video {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgb(255, 0, 0) 0%, rgb(255, 0, 0) 50%, rgba(0, 0, 0, 0));
}

.devant {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.titre-devant {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    z-index: 2;
}

.titre-devant h2 {
    font-family: "BEBAS", sans-serif;
    color: white;
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}

.titre-devant h2.titre1 {
    margin-bottom: 180px;
}

/* CSS des liens vidéo youtube */
.lien-devant {
    position: absolute;
    display: flex;
    justify-content: space-evenly;
    z-index: 2;
    top: 70px;
    max-width: 1200px;
    min-width: 900px;
    margin: 20px 20px auto;
}

/* CSS du tableau */
.tableau-devant {
    position: absolute;
    z-index: 2;
    top: 300px;
    left: 50%;
    transform: translate(-50%);
    background-color: white;    
    max-width: 800px;
    min-width: 400px;
    margin: 0 auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 5px solid #FF0000;
}

th {
    font-weight: bold;
    padding: 6px;
    text-align: center;
    border-bottom: 2px solid #FF0000;
}

td {
    padding: 6px;
}

td:first-child {
    text-align: center;
}

td:last-child {
    text-align: center;
}

/* emplacement du formulaire et de la carte */
.form-map {
    display: flex;
    gap: 20px;
}

/* CSS du Formulaire de contact */
.form {
    margin-left: 50px;
    margin-right: 25px;
    max-width: 50%;
    width: 100%;
}

.form h2 {
    font-family: "BEBAS", sans-serif;
    color: #ea222d;
    text-align: center;
    font-size: 28px;
}

.form2 {
    margin-bottom: 25px;
}

label {
    display: block;
}

input[type="text"],
input[type="email"],
textarea {
    width: 93%;
    padding: 12px 15px;
    border: 1px solid black;
    border-radius: 6px;
}

select[id="inputdemande"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid black;
    border-radius: 6px;
}

input[type="submit"] {
    width: 100%;
    padding: 12px 15px;
    color: #ea222d;
    border: 2px solid #ea222d;
    border-radius: 6px;
    font-size: 16px;
}

/* CSS de la carte google */
.map {
    margin-left: 25px;
    margin-right: 50px;
    max-width: 50%;
    width: 100%;
}

.map h2 {
    font-family: "BEBAS", sans-serif;
    color: #ea222d;
    text-align: center;
    font-size: 28px;
}

.map iframe {
    width: 100%;
    margin: 15px 15px;
    border-radius: 6px;
}

/* CSS du pied de page */
footer {
    background-color: #ea222d;
    padding: 5px 50px 8px 50px;
}

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

.footer-text {
    color: white;
    font-size: 14px;
}

.footer-icons {
    display: flex;
    gap: 15px;
}

.footer-icons a {
    color: #ffffff;
    font-size: 24px;
}