* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

body {
    height: 100vh;
    width: 100vw;
    background-image: url(images/aesthetic-planet-ocean-background-galaxy-nature-remix.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: "Lilita One", sans-serif;
    box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  scroll-behavior: smooth;
}


main {
    max-width: 900px;
    padding: 0 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh; /* occupe toute la hauteur */
    text-align: center;
    padding: 0 24px;
    margin: 0 auto;
    transform: translateY(-10%);
}

main a {
    color: #3a3a3a;
}

main h2 {
    font-weight: 800;
    font-size: 2.5rem; /* 48px */
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 700px;
    color: aliceblue;
    margin-left: auto;
    margin-right: auto;
}

main p {
    font-weight: 400;
    font-size: 1.5rem;
    color: #d1d5db;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
    line-height: 1.5;
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    z-index: 1000;
    background: transparent; /* ou un fond si nécessaire */
}

.navbar a {
    color: white;
}

.navbar .logo {
    font-size: 2em;
    font-weight: bold;
    padding-left: 2rem;
}

.navbar .nav-links ul {
    display: flex;
}

.navbar .nav-links ul li {
    display: flex;
    margin: 0 20px;
}

.navbar .nav-links ul li a {
    --bg: ;
    cursor: pointer;
    border: 1px solid var(--bg);
    border-radius: 4px;
    padding: 0.8em 2em;
    background: var(--bg);
    transition: 0.2s;
}

.navbar .nav-links ul li a:hover {
    color: var(--hover-text);
    transform: translate(-0.25rem, -0.25rem);
    background: var(--hover-bg);
    box-shadow: 0.25rem 0.25rem var(--bg);
    color: #fff;
}

.navbar .nav-links ul li a:active {
    transform: translate(0);
    box-shadow: none;
}

.navbar .menu  {
    font-size: 2.5rem;
    display: none;
    padding: 2rem;
}

section {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 24px;
    color: #d1d5db;
    }

section h3 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 24px;
    border-bottom: 2px solid #4b5563;
    padding-bottom: 8px;
    color: white;
    }

section p {
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    color: white;
}

section a,
section h2 {
    color: #fff;
}

/* From Uiverse.io by andrew-demchenk0 */ 
.button {
  --bg-color-sub: #dedede;
  --bg-color: #fff;
  --main-color: #323232;
  position: relative;
  width: 200px; /* Augmenté */
  height: 60px;  /* Augmenté */
  cursor: pointer;
  display: flex;
  align-items: center;
  border: 2px solid var(--main-color);
  background-color: var(--bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 15px rgba(255, 255, 255, 0.427);
  font-size: 1.25rem; /* Légèrement augmenté */
}

.button, .button__icon, .button__text {
  transition: all 0.3s;
}

.button .button__text {
  transform: translateX(30px); /* Ajusté pour la nouvelle largeur */
  color: var(--font-color);
  font-weight: 600;
}

.button .button__icon {
  position: absolute;
  transform: translateX(145px); /* Ajusté */
  height: 100%;
  width: 50px; /* Augmenté */
  background-color: var(--bg-color-sub);
  display: flex;
  align-items: center;
  justify-content: center;
}

.button .svg {
  width: 24px; /* Légèrement plus grand */
  fill: var(--main-color);
}

.button:hover {
  background: var(--bg-color);
}

.button:hover .button__text {
  color: transparent;
}

.button:hover .button__icon {
  width: 198px; /* Ajusté pour couvrir presque tout le bouton */
  transform: translateX(0);
}

.button:active {
  transform: translate(3px, 3px);
  box-shadow: 0px 0px var(--main-color);
}

#projects {
    max-width: 1200px;
    padding-top: 80px;
    padding-bottom: 80px;
    color: white;
}

#projects h3 {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.project-card {
    background-color: rgba(31, 41, 55, 0.85);
    border-radius: 12px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.3);
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: scale(1.03);
}

.project-card img {
    width: 100%;
    height: 192px;
    object-fit: cover;
    display: block;
}

.project-content {
    padding: 24px;
}

.project-content h4 {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: white;
}

.project-content p {
    font-size: 1rem;
    color: #d1d5db;
    margin: 0;
    line-height: 1.4;
}

.skills {
    display: flex;
    gap: 40px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
    align-content: start;
}

#skills p {
    color: #fff;
}

.skills img{
    max-width: 10rem;
    height: auto;
    filter: drop-shadow(0px 0px 2px grey);
}

.skills .skills-items p {
    display: grid;
    justify-content: center;
    align-items: center;
    color: #fff;
}

#experiences h2 {
    margin-bottom: 1rem;
    text-align: center;
    text-decoration: underline;
}


.experience-layout {
  display: grid;
  grid-template-columns: 200px 300px 300px;
  grid-template-rows: auto auto;
  gap: 16px;
  max-width: 990px;
  margin: 0 auto 2rem auto;
  color: white;
  justify-content: center;
  filter: drop-shadow(0px 0px 2px rgb(255, 255, 255));
}

.box {
  background-color: rgba(30, 30, 30, 0.9);
  padding: 12px;
  border-radius: 16px;
  box-shadow: 4px 4px 8px rgba(0,0,0,0.5);
  overflow: hidden;
  font-size: 1.4rem;
}

/* Image prend 2 lignes */
.image {
  grid-row: span 2;
}
.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Poste et date sur la 1re ligne */
.poste {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  font-weight: bold;
}

.date {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  font-weight: bold;
}

/* Description sous poste + date */
.description {
  grid-column: 2 / 4;
  grid-row: 2;
  height: 150px;
  font-size: 1.2rem;
  line-height: 1.4;
}

.footer .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(25rem, 1fr));
    gap: 1.5rem;
}
.footer .box-container .box2 h3{
    padding: .5rem 0;
    font-size: 2.5rem;
    color: white;
}

.footer .box-container .box2 a,
.footer .box-container .box2 p {
    display: block;
    padding: .5rem 0;
    font-size: 2rem;
    -webkit-text-stroke: 1px;
    -webkit-text-stroke-color: #3a3a3a;
    color: white;
    
}

.footer .box-container .box2 a:hover,
.footer .box-container .box2 p:hover { 
    -webkit-text-stroke-color: #ffffff;
    color: #3a3a3a;
}

.footer .credit{
    text-align: center;
    border-top: .1rem solid rgba(0,0,0,.1);
    font-size: 2rem;
    color: #fff;
    padding: .5rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.social-links .flex-center img {
  width: 40px;
  height: 40px;
}

.social-links,.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-btn {
  cursor: pointer;
  height: 50px;
  width: 50px;
  font-family: 'Titillium Web', sans-serif;
  color: #333;
  border-radius: 10px;
  box-shadow: 0px 10px 10px rgba(0,0,0,0.1);
  background: white;
  margin: 5px;
  transition: 0.3s;
  justify-content: center;
}

.social-btn svg {
  height: 24px;
  width: 24px;
}

.social-btn span {
  width: 0px;
  overflow: hidden;
  transition: 0.3s;
  text-align: center;
  margin-left: 5px;
}

.social-btn:hover {
  width: 150px;
  border-radius: 5px;
}

.social-btn:hover span {
  padding: 2px;
  width: 80px;
}

#twitter svg {
  fill: #1da1f2;
}

#linkedin svg {
  fill: #0e76a8;
}

#github {
  fill: #333;
}

@media screen and (max-width: 1500px) {
  main {
    max-width: 430px;
  }

  main h2 {
    font-size: 1.5rem;
  }

  main p {
    font-size: 1.2rem;
  }

}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 900px) {
  body {
    background-position: center;
  }

  main {
    max-width: 430px;
  }

  main h2 {
    font-size: 1rem;
  }

  main p {
    font-size: 1rem;
  }

    
    
  .navbar .menu  {
    display: block;
    z-index: 2;
  }

  .navbar {
    padding: 0;
  }

  .nav-links {
    top: 0;
    left: 0;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.319);
    backdrop-filter: blur(7px);
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: -100%;
    transition: 0.4s;   
    }

  .box {
    max-width: 400px;
    margin: 0 auto;
    margin-bottom: 20px;
  }

  .experience-layout {
    display: block;
  }

  .experience-layout img {
    width: 50%;
    margin-left: 25%;
  }

  .nav-links.mobile-menu {
    margin-left: 0;
    transition: 0.4s;
  }

  .nav-links ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .navbar .nav-links ul li a {
    font-size: 2rem;
    margin: 2rem;
    border: 2px solid var(--bg);
  }

  .experience-layout {
    grid-template-columns: 200px 165px 165px;
  }

  .footer .box-container .box2 a{
    font-size: 1.5rem;
    max-width: 330px;
    margin: auto;
    text-align: center;
  }
}

@media (min-width: 640px) {
  .projects-grid {
  grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 400px) {
  main h2 {
    font-size: 1rem;
  }

  main p {
    font-size: 1rem;
  }

  }