@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
    box-sizing: border-box;
}


/* scrollbar */
::-webkit-scrollbar{
    width: 15px;
}

::-webkit-scrollbar-thumb {
    width: 5px;
    background-color: rgb(177,173,173);
    border-radius: 6px;
}

body {
    background-color: #313B72;
    background: 
        linear-gradient(rgba(190, 211, 195, 0.8), rgba(190, 211, 195, 0.8)), /* Couleur avec opacité */
        url('fond.jpg'); /* Image de fond */
    background-size: cover; /* Ajuste l'image pour couvrir tout l'écran */
    background-position: center; /* Centre l'image */
    background-repeat: repeat; /* Empêche la répétition de l'image */
}

a {
    text-decoration: 0;
    color: #000;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

ul{
    list-style: none;
}

.title{
    text-transform: uppercase;
    font-size: 60px;
    letter-spacing: 2px;
    color: #000;
}

p{
    color: #2F2F2F;
    margin: 20px 0;
    letter-spacing: 2px;
    font-size: 18px;
    line-height: 25px;
    text-align: justify;
}


header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 8%;
    padding: 20px 0;
    border-bottom: 1px solid #000;
}

.header__logo {
    font-weight: 500;
}

.header__menu {
    display: flex;
    justify-content: center;  /* Centre les éléments horizontalement */
    align-items: center;      /* Centre les éléments verticalement (optionnel) */
    height: 30px;             /* Ajuste la hauteur de la barre si nécessaire */
    margin-left: -150px;
}
.header__menu a {
    margin-left: 20px;
    padding-bottom: 3px;
    position: relative;
}

.header__menu a:after {
    position: absolute;
    left: 0;
    bottom: -2px;
    content: "";
    height: 1px;
    width: 0%;
    background-color: #000;
    transition: 0.5s ease-out;

}

.header__menu a:hover:after {
    width: 100%;
}

.header__buttons a{
    margin-left: 20px;
}

.header__buttons a:last-child{
    border: 1px solid #000;
    padding: 10px 30px;
    transition: 0,5s;
}

.header__buttons a:last-child:hover {
    background-color: #000;
    color: #fff;

}

.home {
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px; /* Ajoute un espace entre les éléments */
    height: calc(100vh - 80px);
    width: 100%;
}

.home__left {
    width: 100%;
    max-width: 1000px;
    margin-left: 40px; /* Ajoute un espace entre le texte et l'image */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Ombre visible */
}

.home__right {
    width: 500px;
    max-width: 800%;
    height: auto;
    display: flex;
    justify-content: center;
    margin-right: 10px; /* Ajoute un espace entre l'image et le texte */
}

.image-container {
    border: 5px solid #000;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    padding: 5px; /* Ajuster si nécessaire */
    width: 100%; /* Pour que l'image s'ajuste bien */
    max-width: 400px; /* Si tu veux que l'image ne dépasse pas cette largeur */
}

.image-container img {
    max-width: 100%; /* L'image ne dépasse pas la largeur de son conteneur */
    height: auto; /* Conserve les proportions de l'image */
    margin-bottom: 10px; /* Ajoute un espace sous l'image */
}

.pres {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px; /* Ajoute un espace entre les éléments */
    height: calc(100vh - 80px);
    width: 100%;
    flex-direction: row-reverse;
}


.title2{
    text-align: center;
    text-transform: uppercase;
    font-size: 60px;
    letter-spacing: 2px;
    color: #000;
}

.pres__left {
    width: 500px;
    max-width: 800%;
    height: auto;
    display: flex;
    justify-content: center;
    margin-right: 20px; /* Réduit l'espace entre la vidéo et le texte */
    margin-left: 20px;
    margin-top: 10%; /* Conserve l'espacement vertical */
}

.pres__right {
    width: 900px;
    padding: 0 8%; /* Ajoute un espace horizontal de 8% */
    max-width: 700%;
    height: 80%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-top: 5%; /* Conserve l'espacement vertical */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Ombre visible */
}




.upgrades {
    padding: 20px 8%;
    margin-top: 15%;
    margin-bottom: 90px;
}

.upgrades_photos {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: 100px repeat(5, 1fr); /* 100px pour le titre, ajuste si besoin */
    gap: 20px;
    height: 80vh;
}

.div1 {
    grid-area: 2 / 1 / 3 / 3;
}

.div2 {
    grid-area: 2 / 3 / 7 / 5;
}

.div3 {
    grid-area: 1 / 5 / 7 / 5;
    
}

.div4 {
    grid-area: 1 / 1 / 2 / 8;
    text-align: center;
    background: #fff;
    color: #5e493a;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 80px;
    letter-spacing: 3px;
    padding: 20px 0 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 10px 10px 0 0;
    background-color: #1e1e1c;
}

.div5 {
    grid-area: 2 / 3 / 3 / 6; /* Lignes 2 à 3, colonnes 3 à 6 (3 colonnes) */
    text-align: center;
    align-self: end;
    height: 49.5%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: #dcd6cf ;
    border-radius: 10px 10px 10px 10px;
    color: #5e493a;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 40px ;
    font-weight: bold;
}

.div6 {
    grid-area: 2 / 6 / 3 / 8; /* Ligne 2, colonnes 6 à 7 */
    
}

.div7 {
    grid-area: 2 / 3 / 3 / 6; /* Lignes 2 à 3, colonnes 3 à 6 (3 colonnes) */
    text-align: center;
    align-self: start;
    height: 49.5%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: #dcd6cf;
    border-radius: 10px 10px 10px 10px;
    color: #5e493a;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 40px ;
    font-weight: bold;
   }


.div6, .div7 {
    margin: 0; /* Supprimez les marges inutiles */
    padding: 0; /* Supprimez les paddings inutiles */
}

.div6 img, .div7 span {
    margin: 0; /* Supprimez les marges autour de l'image et du texte */
    padding: 0;
}

.upgrades_photos div img {
    width:  100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: 0;
    transition: opacity 1s, filter 0.5s;
}

/* Définition de l'animation */
@keyframes appear {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.upgrades_photos div img.visible {
    opacity: 1;
    filter: grayscale(0);
}


.upgrades_photos div img:hover {
    filter: grayscale(0);
}


.upgrades_photos span{
    color: #5e493a;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 20px ;
}

.div5, .div4, .div7, .div3 {
    /*border: 1px solid #1e1e1c;*/
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}



.div3 span {
    transform: rotate(-90deg);
    color: #fff;
    font-size: 60px;
}


