* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Red Hat Display', sans-serif;
    background-color: #f8f8f8;
    color: #333;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    background-color: #314833;
    justify-content: space-around;
    align-items: center;
    padding: 15px 0;
}

section.background {
    top: 0;
    left: 0;
    width: 100%;
    height: 800px; /* Hauteur de votre bannière */
    background: url('background vps.jpg') no-repeat center top;
    background-size: cover;
    z-index: 1000;
}

nav a {
    text-decoration: none;
    color: #d1c4b5;
    font-size: 20px;
    margin: 0 20px;
    transition: color 0.3s, transform 0.3s;
    background-color: #314833;
    border: transparent;
    padding: 10px;
}

nav a:hover {
    color: black;
    background-color: #BE9828;
    padding: 10px;
    border-radius: 20px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0; /* Supprimer la marge supérieure */
    z-index: 1;
}

.projets {
    width: 80%;
    margin: 40px auto;
}
#projets_sequence_112, #projets_sequence_212, #projets_sequence_sae, #projets_sequence_312{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.projets a {
    background: black;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    height: 150px;
    width: 20%;
    margin: 50px;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s, background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
p{
    border-radius: 8px;
    background-color: white;
    padding: 5px;
}
.projets #projets_sequence_112 a:nth-child(1){
 background: url("batman.jpeg") no-repeat;
    background-size: cover;
}
.projets #projets_sequence_112 a:nth-child(2){
    background: url("japanese.jpeg") no-repeat;
    background-size: cover;
}
.projets #projets_sequence_112 a:nth-child(3){
    background: url("toystory.jpeg") no-repeat;
    background-size: cover;
}
.projets #projets_sequence_112 a:nth-child(4){
    background: url("iut.jpeg") no-repeat;
    background-size: cover;
}
.projets #projets_sequence_112 a:nth-child(5){
    background: url("tree.jpeg") no-repeat;
    background-size: cover;
}
.projets #projets_sequence_112 a:nth-child(6){
    background: url("Mario Kart.jpeg") no-repeat;
    background-size: cover;

}
.projets #projets_sequence_112 a:nth-child(7){
    background: url("Mario Kart.jpeg") no-repeat;
    background-size: cover;

}
.projets #projets_sequence_212 a:nth-child(1){
    background: url("monopoly.jpeg") no-repeat;
    background-size: cover;
}
.projets #projets_sequence_212 a:nth-child(2){
    background: url("Skateboard Decks Wallpaper.jpeg") no-repeat;
    background-size: cover;
}
.projets #projets_sequence_212 a:nth-child(3){
    background: url("js.jpeg") no-repeat;
    background-size: cover;
}
.projets #projets_sequence_212 a:nth-child(4){
    background: url("Calculator Stickers for Sale.jpeg") no-repeat;
    background-size: cover;
}
.projets #projets_sequence_212 a:nth-child(5){
    background: url("waterfall-thac-dray-nur-buon-me-thuot-daklak-68147.jpeg") no-repeat;
    background-size: cover;
}
.projets #projets_sequence_212 a:nth-child(6){
    background: url("wow.jpeg") no-repeat;
    background-size: cover;
}

.projets #projets_sequence_sae a:nth-child(1){
    background: url("books.jpeg") no-repeat;
    background-size: cover;
}
.projets #projets_sequence_sae a:nth-child(2){
    background: url("Marvel Avenger Sketch.jpeg") no-repeat;
    background-size: cover;
}
.projets #projets_sequence_sae a:nth-child(3){
    background: url("Portfolio 2023.jpeg") no-repeat;
    background-size: cover;
}

.projets #projets_sequence_312 a:nth-child(1){
    background: url("figma.jpg") no-repeat;
    background-size: cover;
}

.projets a:hover {
    background: #555;
    transform: scale(1.05);
}

.projets h2 {
    font-size: 36px;
    color: black;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    grid-column: span 3;
}


footer {
    padding: 20px 0;
    text-align: center;
    background-color: #000;
    box-shadow: 0 -2px 4px rgba(255, 255, 255, 0.1);
}

footer p {
    font-size: 16px;
    color: #ccc;
    background-color: #000;
}
