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

ul {
    list-style: none;
}

body {
    font-family: "texte";
}

html {
  scroll-behavior: smooth;
}

:root { 
  --rouge: #5c101f;
  --marronf: #5e503f;
  --marronc: #a9927d;
  --blanc: #fefefe;
  --noir: #0a0908;
}

@font-face {
  font-family: "titre";
  src: url(fonts/CooperHewitt-Bold.otf);
}

@font-face {
  font-family: "soustitre";
  src: url(fonts/CooperHewitt-Light.otf);
}

@font-face {
  font-family: "texte";
  src: url(fonts/Roboto-Regular.ttf);
}

@font-face {
  font-family: "nom";
  src: url(fonts/daydream.ttf);
}

/*Head*/

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 85px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    transition: all 0.2s ease-out;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: auto;

}

header.scroll {
    background-color: #5c101f;
    transition: all 0.2s ease-out;
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.50);
}

header.scroll .nav ul li a {
    color: var(--blanc);
}

header.scroll .nav ul li a:hover {
    color: var(--blanc);
    border-bottom: solid 1.5px var(--blanc);
}

.logo {
    height: 35px;
}

.titre {
    z-index: 2;
    font-family: "titre";
    color: var(--marronc);
    font-size: 15vw;
    text-transform: uppercase;
    position: absolute;
    top: 35%;
    left: 51%;
    transform: translateX(-50%) translateY(-50%);
}

.titre2 {
    z-index: 1;
    font-family: "titre";
    color: var(--marronf);
    font-size: 15vw;
    text-transform: uppercase;
    position: absolute;
    top: 35%;
    left: 51%;
    transform: translateX(-53%) translateY(-62%);
}

.nav ul {
    display: flex;
    align-items: center;
}

.nav ul li a {
    color: var(--noir);
    text-decoration: none;
    margin-right: 35px;
    font-weight: bold;
    font-size: 1.2em;
}

.nav ul li:last-child a {
    margin-right: 0;
}

.nav ul li a:hover {
    color: var(--rouge);
    border-bottom: solid 1.5px var(--rouge);
}

.ban {
    background-image: url(images/fond.jpg);
    position: relative;
    opacity: 1;
    height: 100vh;
}

.ban::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--noir);
    opacity: 0.78;
    height: 100%;
    width: 33%;
}

.profil {
    position: absolute;
    left: -2%;
    bottom: 0;
    width: 32%;
    z-index: 3;
}

.texteBan {
    position: absolute;
    bottom: 20px;
    right: 50px;
    width: 52%;
    text-align: right;
    font-family: "texte";
    font-size: 1.3em;
}

.texteBan span {
    color: var(--rouge);
    font-size: 5vw;
    margin-bottom: 30px;
    font-family: "nom";
}

.down {
    position: absolute;
    bottom: 20px;
    left: 37%;
    width: 50px;
}

/*Sommaire*/

.som {
    position: relative;
    padding-top: 170px !important;
    padding-bottom: 170px !important;
}

.som:after {
    content: "";
    background-color: #5e503f;
    height: 35%;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

.sommaire {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 35px;
}

.card {
    border-radius: 15px;
    background-color: transparent;
    perspective: 1000px;
    flex: 1;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.card a {
    display:block;
    width:100%;
    height:100%;
    perspective:1000px;
}

.somDiv {
    border-radius: 15px;
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.card:hover .somDiv {
    transform:rotateY(180deg);
    cursor: pointer;
}

.pile, .face {
    border-radius: 15px;
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.imgSom {
    border-radius: 15px;
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.pile {
    transform: rotateY(180deg);
}

.pictoDiv {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 45px;
    height: 45px;
    background-color: var(--blanc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.picto2Div {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 45px;
    height: 45px;
    background-color: var(--rouge);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.pictoSom {
    width: 25px;
    height: 25px;
}

.picto2Div .pictoSom {
    filter: brightness(100);
}

.titreSom {
    position: absolute;
    z-index: 2;
    bottom: 10px;
    left: 15px;
    color: var(--blanc);
    text-transform: uppercase;
    font-family: "soustitre";
    font-weight: bold;
    font-size: 1.5em;
}

.titre2Som {
    color: var(--blanc);
    text-transform: uppercase;
    font-family: "soustitre";
    font-weight: bold;
    font-size: 1.5em;
}

.face:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,1), transparent);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.desc {
    position: absolute;
    top: 10px;
    left: 15px;
    z-index: 2;
    right: 15px;
}

.descProjet {
    color: var(--blanc);
    font-family: "texte";
}

.starSom {
    position: absolute;
    height: 100px;
    top: -35px;
    right: 5px;
    z-index: 2;
}

.pile:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.70);
    border-radius: 15px;
}

.sepSom {
    margin: 15px 0;
    height: 1.5px;
    width: 30%;
    background-color: var(--blanc);
}

/*Ligne*/

.ligne {
    background-color: var(--marronc);
    height: 10px;
    width: 100%;
}

.container {
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.titreAll {
    color: var(--marronf);
    font-family: "soustitre";
    text-transform: uppercase;
    font-size: 3.5em;
    font-weight: bold;
}

.titreAll span {
    color: var(--marronc);
}


/* Projets */

.projet1 {
    padding: 135px 0;
}

.projet2 {
    padding-bottom:100px;
    position: relative;
}

.projet2:after {
    content: "";
    background-color: var(--marronc);
    height: 100%;
    width: 40%;
    position: absolute;
    top: 0;
    right: 0;
}

.projet2 .titreAll {
    padding-top: 60px;
}

.imgP1, .imgP2, .imgP3 {
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.imgP1 {
    margin-top: 35px !important;
}

.imgP1 img, .imgP2 img {
    width: 32%;
    border-radius: 15px;
}

.imgP3 img {
    width: 24%;
    border-radius: 15px;
}

.contenuP1, .contenuP2 {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
}

.contenuP2 {
    margin-top: 35px;
}

.imgTwine, .imgJeu {
    border-radius: 15px;
    width: 48%;
    height: 100%;
}

.texteP1, .texteP3 {
    width: 48%;
    display: flex;
    flex-direction: column;
    align-items: end;
}

.texteP2 {
    width: 48%;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.projet1 .titreAll {
    text-align: right;
}

.texteP1 .txt, .texteP3 .txt {
    text-align: right;
}

.bouton {
    text-transform: uppercase;
    color: var(--blanc);
    padding: 15px 35px;
    background-color: var(--rouge);
    border-radius: 40px;
    transition: all 0.2s ease-out;
    font-size: 1.1em;
    border: solid 1px #5c101f;
}

.bouton:hover {
    cursor: pointer;
    transition: all 0.2s ease-out;
    color: var(--rouge);
    background-color: var(--blanc);
    border: solid 1px #5c101f;
}

.txt span {
    font-weight: bold;
}

.txtTitre {
    color: var(--rouge);
    font-size: 1.5em;
    text-align: right;
    font-weight: bold;
    margin: 25px 0 20px 0;
}

.txtTitre2 {
    color: var(--rouge);
    font-size: 1.5em;
    font-weight: bold;
    margin: 25px 0 20px 0;
}

.txt img {
    margin: 15px 0;
    width: unset;
    border-radius: 15px;
    max-width: 70%;
}

code {
    color: var(--rouge);
}

.lien {
    color: #5c101f;
    text-decoration: none;
    font-weight: bold;
}

.lien:hover {
    text-decoration: underline;
}

.txt {
    overflow-y: scroll;
    aspect-ratio: 4/1.8;
    margin-bottom: 50px;
    padding: 20px 30px;
}

.texteP3 .txt {
    aspect-ratio: 4/1.8;
}

.texteP2 .txt {
    padding-left: 0;
}

.txt::-webkit-scrollbar {
    width: 10px;
}

.txt::-webkit-scrollbar-track {
    background: var(--marronc);
    border-radius: 4px;
}

.txt::-webkit-scrollbar-thumb {
    background-color: var(--marronf);
    border-radius: 4px;
    border: 2px solid var(--marronc);
}

.txt::-webkit-scrollbar-thumb:hover {
    cursor: pointer;
}

a {
    text-decoration: none;
}

.divbt {
    display: flex;
}

.divbt .bouton:first-child {
    margin-right: 10px;
}

.projet3 {
    margin-bottom: 100px;
    margin-top: 60px;
}

footer {
    background-color: var(--rouge);
    color: var(--blanc);
    height: 85px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

footer p {
    font-size: 1.2em;
    color: var(--blanc);
}

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

footer a {
    color: var(--blanc);
    font-size: 1.2em;
}

footer a:hover {
    font-weight: bold;
    text-decoration: underline;
}