*,
*::before,
*::after {
  box-sizing: border-box;
}

@font-face {
  font-family: 'Nutgame';
  src: url('font/nutgame/NutgameDEMO-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Nutgame';
  src: url('font/nutgame/NutgameDEMO-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Nutgame';
  src: url('font/nutgame/NutgameDEMO-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'NoirPro';
  src: url('font/NoirPro/NoirPro-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'NoirPro';
  src: url('font/NoirPro/NoirPro-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'NoirPro';
  src: url('font/NoirPro/NoirPro-Italic.woff2') format('woff2');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'NoirPro';
  src: url('font/NoirPro/NoirPro-BoldItalic.woff2') format('woff2');
  font-weight: bold;
  font-style: italic;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'NoirPro', sans-serif;
  font-style: normal;
  background-color: #f8f9fa;
  color: #0f0f0f;
}

/* CSS for desktop */

.menu {
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
  display: block;
}

.menu-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin-inline: auto;
  padding: 15px;
}

.logo {
  display: block;
  width: 100px;
}

.logo img {
  width: 100%;
}

.menu-list {
  display: flex;
  list-style: none;
  align-items: center;
}

.menu-list a {
  text-decoration: none;
  color: #0f0f0f;
  padding: 30px;
  font-size: 1.3rem;
  font-family: 'Nutgame', sans-serif;
}

.menu-list a:hover {
  color: #6A6A6A;
  transition: ease 500ms;
}

.mobile-menu {
  width: 100%;
  top: 0;
  height: 80px;
  background-color: #fff;
  z-index: 10000;
  padding-inline: 20px;
  display: flex;
  align-items: center;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
  display: none;
  overflow: hidden;
}

.material-symbols-outlined {
  cursor: pointer;
  position: absolute;
  right: 20px;
}

@media (max-width : 768px) {
  .menu-container {
      width: 100%;
      flex-direction: column;
      justify-content: center;
  }

  .mobile-menu {
      display: flex;
  }

  .menu-list {
      flex-direction: column;
      padding: 0;
  }

  .menu-list a {
      box-sizing: border-box;
      display: block;
      font-size: 1.2rem;
  }

  .logo {
      margin-bottom: 20px;
      width: 120px;
  } 

  .menu {
      transform: translateX(-100%);
      transition: transform 0.3s ease-in-out;
      top: 80px;
      position: absolute;
      background-color: #f8f9fa;
  }

  .logo-mobile {
      display: block;
      width: 100px;
  }
}

/* Utilisation de la police importée */
.messagedefilant div span,
.messagedefilant div:after {
  font-family: 'Nutgame', sans-serif;
  font-style: italic;
}

.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#trunk {
  position: relative;
  width: 80%;
  margin: 100px auto;
}

/* Texte défilant */

.textdefil {
  top: 50%;
  bottom: 50%;
}

.messagedefilant {
  overflow: hidden;
  position: relative;
  height: 900px;

}

.messagedefilant div {
  position: absolute;
  min-width: 100%;
  /* au minimum la largeur du conteneur */
}

.messagedefilant div span,
.messagedefilant div:after {
  position: relative;
  display: inline-block;
  font-size: 10rem;
  white-space: nowrap;
  top: 0;
}

.messagedefilant div span {
  animation: defilement 150s infinite linear;
}

.messagedefilant div:after {
  position: absolute;
  top: 0;
  left: 0;
  content: attr(data-text);
  animation: defilement2 150s infinite linear;
}

@keyframes defilement {
  0% {
    margin-left: 0;
  }

  100% {
    margin-left: -100%;
  }
}

@keyframes defilement2 {
  0% {
    margin-left: 100%;
  }

  100% {
    margin-left: 0%;
  }
}

.name {
  font-size: 3rem;
  text-align: center;
  font-weight: normal;
  color: #0f0f0f;
  display: flex;
  justify-content: center;
}

.fname {
  font-weight: bold;
  
}

.lname{
  font-style: italic;
}

.outer-headings {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100vh;
}

.outer-headings h1 {
  font-size: 3rem;
}

.inner-headings {
  border: 0px solid #0f0f0f;
  height: 50px;
  line-height: 50px;
  font-size: 3rem;
  text-transform: uppercase;
  overflow: hidden;
}

.inner-headings span {
  position: relative;
  color: #6A6A6A;
  animation: animation 10s infinite ease;
}

@keyframes animation {
  0%, 100% {
    top: 0;
  }

  20% {
    top: 0;
  }
  25% {
    top: -50px;
  }

  45% {
    top: -50px;
  }

  50% {
    top: -100px;
  }

  70% {
    top: -100px;
  }

  75% {
    top: -150px;
  }

  95% {
    top: -150px;
  }
}

@media (width >= 768px){
  .outer-headings{
    display: none;
  }
}

@media (width <= 768px) {

  .outer-headings h1 {
    font-size: 2rem;
  }

  .inner-headings {
    font-size: 2.35rem;
  }

}

.presentation-container {
  border-bottom: solid 0.25px #0f0f0f;
}

.presentation {
  display: flex;
  justify-content: center;
  flex-direction: row;
  padding: 20px;
}

.proj-button {
  padding: 10px;
  border-radius: 25px;
  border: 1px solid #0f0f0f;
  cursor: pointer;
  font-family: 'Nutgame', sans-serif;
  font-size: 1.2rem;
  color: #0f0f0f;
  background-color: #fff;
  margin-right: 20px;
}

.proj-button:hover {
  background-color: #0f0f0f;
  transition: ease 500ms;
  color: #fff;
}

.proj-button2 {
  padding: 10px;
  border-radius: 25px;
  background-color: #0f0f0f;
  cursor: pointer;
  font-family: 'Nutgame', sans-serif;
  font-size: 1.2rem;
  color: #fff;
  margin-right: 20px;
  border: #0f0f0f solid 1px;
}

.proj-button2:hover {
  background-color: #fff;
  transition: ease 300ms;
  color: #0f0f0f;
  border: #0f0f0f solid 1px;
}

.proj-button2:hover a {
  color: #0f0f0f;
  text-decoration: none;
}

.proj-button2 a {
  text-decoration: none;
  color: #fff;
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
}

.proj-button a {
  text-decoration: none;
  color: inherit;
}

.photo-container {
  border: 1px #0f0f0f solid;
  width: 500px;
  height: fit-content;
  margin: 50px;
  border-radius: 25px;
  padding: 20px;
  padding-bottom: 10px;
}

.photo {
  width: 40%;
  height: 40%;
  border-radius: 15px;
  float: left;
  margin-right: 15px;
}

.text-prez {
  font-size: 1.125rem;
  line-height: 1.3;
}

.text-prez p {
  margin: 0;
} 

.last-project-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 50px;
}

.last-project-name {
  font-size: 2rem;
  font-family: 'Nutgame', sans-serif;
}

.last-project-name h3 {
  margin-bottom: 10px;
}

.last-project-title {
  font-size: 3rem;
  font-family: 'Nutgame', sans-serif;
}

.last-project-title h2 {
  margin-bottom: 10px;
}

.last-project-btn {
  margin-top: 20px;
}


@media (max-width: 510px) {
  .presentation {
    padding: 0;
  }
  .photo-container {
    flex-direction: column; /* Empile les éléments verticalement */
    align-items: center;
    width: 100%;
    margin: 0;
    margin-block: 30px;
  }

  .button {
    flex-wrap: wrap;
  }

  .proj-button2 {
    margin-top: 20px;
  }

  .photo {
    border-radius: 15px;
    width: 100px;
    height: 110px;
  }
}


.slider {
  width: 1300px;
  max-width: 700px;
  height: 500px;
  margin: auto;
  position: relative;
  overflow: hidden;
  border-radius: 25px;
  margin: 50px;
  /* box-shadow: -2px 5px 33px 6px rgba(0, 0, 0, 0.35); */
}

.list {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  width: max-content;
}

.list img {
  width: 700px;
  max-width: 100vw;
  height: 100%;
  object-fit: cover;
}

.dots {
  position: absolute;
  bottom: 10px;
  color: #fff;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.dots li {
  list-style: none;
  margin: 20px;
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-radius: 20px;
  transition: .2s;
}

.dots li.active {
  width: 30px;
}

.center {
  width: 100%;
  height: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.stack-area {
  width: 100%;
  height: 300vh;
  position: relative;
  display: flex;
  justify-content: center;
}

.right, .left {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  box-sizing: border-box;
  flex-basis: 50%;
}

@media (width <= 768px) {
  .slider {
    max-width: 500px;
    height: 300px;
  }

  .list img {
    width: 500px;
  }
}

@media (width <= 510px) {
  .slider {
    max-width: 350px;
    height: 250px;
    margin: 0;
    margin-block: 30px;
  }

  .list img {
    width: 350px;
  }
}

.cards {
  position: relative;
  width: 100%;
  height: 100%;
}

.card {
  width: 350px;
  height: 350px;
  box-sizing: border-box;
  padding: 35px;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  left: 50%;
  transition: ease-in-out 0.5s;
}

.card:nth-child(1) {
  background-color: #0f0f0f;
  z-index: 4;
}

.card:nth-child(2) {
  background-color: #1A1A1A;
  z-index: 3;
}

.card:nth-child(3) {
  background-color: #262626;
  z-index: 2;
}

.card:nth-child(4) {
  background-color: #3B3B3B;
  z-index: 1;
}

.card:nth-child(5) {
  background-color: #515151;
  z-index: 0;
}

.card:nth-child(6) {
  background-color: #6A6A6A;
  z-index: -1;
}

.card:nth-child(7) {
  background-color: #888888;
  z-index: -2;
}

.card:nth-child(8) {
  background-color: #A5A5A5;
  z-index: -3;
}

.sub {
  font-size: 2rem;
  font-family: 'Nutgame', sans-serif;
  color: #fff;
}

.content {
  color: #fff;
  font-size: 1.2rem;
}

.card.active {
  transform-origin: bottom left;
}

.left {
  align-items: center;
  flex-direction: column;
  margin-left: 50px;
}

.title {
  width: 420px;
  font-size: 5.25rem;
  color: #0f0f0f;
  font-weight: bold;
  line-height: 88px;
  display: flex;
  font-family: 'Nutgame', sans-serif;
}

.mobile-competences {
  margin-left: 30px;
}

.mobile-title {
  font-size: 4rem;
  color: #0f0f0f;
  font-weight: bold;
  line-height: 88px;
  display: flex;
}

.mobile-competences button{
  font-family: 'Nutgame', sans-serif;
  font-size: 14px; 
  padding: 15px 30px;
  background: #0f0f0f;
  color:white;
  border-radius: 25px;
  border: none; 
  outline: none;
  cursor: pointer; 
  margin-top: 20px;
}

.mobile-competences a {
  text-decoration: none;
  color: white;
}

.sub-title {
  width: 420px;
  color: #0f0f0f;
  font-size: 1.5rem;
  margin-top: 30px;
}

.sub-titles button {
  font-family: 'Nutgame', sans-serif;
  font-size: 1rem; 
  padding: 15px 30px;
  background: #0f0f0f;
  color:white;
  border-radius: 25px;
  border: none; 
  outline: none;
  cursor: pointer; 
  margin-top: 20px;
}

.sub-titles a {
  text-decoration: none;
  color: white;
}

.contact {
  border-top: solid 0.25px #0f0f0f;
}

.title-contact {
  font-size: 5.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative; /* Positionne le texte au-dessus de l'image */
  z-index: 1; /* Assure que le texte est au-dessus de l'image */
  background-image: url(img/background.png);
  background-repeat: no-repeat;
  background-size:cover;
  height: 100vh;
  font-family: 'Nutgame', sans-serif;
  
}

.title-contact a {
  text-decoration: none;
  color: #0f0f0f;
}

.title-contact p {
  font-size: 1.5rem;
  font-family: 'NoirPro', sans-serif;
}

.hover-underline-animation {
  display: inline-block;
  position: relative;
}

.hover-underline-animation::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 5px;
  bottom: 0;
  left: 0;
  background-color: #0f0f0f;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.footer {
  text-align: center;
  padding: 20px 0;
  position: relative;
  bottom: 0;
  width: 100%;
  border-top: 1px solid #0f0f0f;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer p {
  margin: 0;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  font-family: 'Nutgame', sans-serif;
  font-size: 1.5rem;
}

.footer-links li {
  margin: 0 15px;
}

.footer-links a {
  color: #0f0f0f;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #6A6A6A;
}




/* CSS for other devices */

@media (max-width: 768px) {
  #trunk {
    display: none;
  }

  #container {
    display: none;
  }

  .name {
    font-size: 2rem;
    text-align: center;
  }

  .textdefil {
    top: 15%;
    bottom: 50%;
  }

  .messagedefilant div span,
  .messagedefilant div:after {
    font-size: 3rem;
  }

}

@media (max-width: 850px) {
  .left {
    display: none;
  }
}

@media (width > 850px) {
  .mobile-competences {
    display: none;
  }
}

@media (max-width: 1300px) {
  .presentation {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 20px;
  }
}

@media (max-width: 1000px) {
  .card {
    width: 300px;
    height: 300px;
  }

  .sub {
    font-size: 1.5rem;
  }
  
  .content {
    font-size: 1rem;
  }
}

@media (width <= 768px) {
  .card {
    width: 220px;
    height: 300px;
    padding: 15px;
  }

  .sub {
    font-size: 1.5rem;
  }

  .content {
    font-size: 0.9rem;
  }

  .hover-underline-animation {
    font-size: 3rem;
  }

  .contact p {
    font-size: 1rem;
    text-align: center;
  }

  .footer-links {
    font-size: 1.2rem;
    margin: 0;
    margin-bottom: 20px;
    margin-top: 10px;
  }

  .footer {
    padding: 5px;
  }
}