* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

body {
    height: 100vh;
    width: 100vw;
    background-image: url(images/vue-de-dessus-du-bureau-concept-sombre-avec-espace-copie.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;
    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; 
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 700px;
    color: aliceblue;
    margin-left: auto;
    margin-right: auto;
    margin-top: 35%;
}

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;
}

.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;
}


.container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

/* From Uiverse.io by Na3ar-17 */ 
.container1 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Pour empiler verticalement */
    padding: 16px 24px;
    min-width: 120px;
    min-height: 48px;
    background: #222;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: #fff;
    font-size: 1.1rem;
    gap: 8px; /* espace entre les textes si plusieurs */
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.container1:hover {
    background: #333;
}

/* Si tu as un texte ou un span à l'intérieur, tu peux aussi ajouter : */
.container1 p, .container1 span {
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.label {
  background-color: transparent;
  border: 2px solid rgb(91, 91, 240);
  display: flex;
  align-items: center;
  border-radius: 50px;
  width: 160px;
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 5px;
  position: relative;
}

.label::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  width: 8px;
  height: 8px;
  transition: all 0.4s ease;
  border-radius: 100%;
  margin: auto;
  opacity: 0;
  visibility: hidden;
}

.label .input {
  display: none;
}

.label .title {
  font-size: 17px;
  color: #fff;
  transition: all 0.4s ease;
  position: absolute;
  right: 18px;
  bottom: 14px;
  text-align: center;
}

.label .title:last-child {
  opacity: 0;
  visibility: hidden;
}

.label .circle {
  height: 45px;
  width: 45px;
  border-radius: 50%;
  background-color: rgb(91, 91, 240);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: 0 0 0 0 rgb(255, 255, 255);
  overflow: hidden;
}

.label .circle .icon {
  color: #fff;
  width: 30px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.label .circle .square {
  aspect-ratio: 1;
  width: 15px;
  border-radius: 2px;
  background-color: #fff;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.label .circle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  background-color: #3333a8;
  width: 100%;
  height: 0;
  transition: all 0.4s ease;
}

.label:has(.input:checked) {
  width: 57px;
  animation: installed 0.4s ease 3.5s forwards;
}

.label:has(.input:checked)::before {
  animation: rotate 3s ease-in-out 0.4s forwards;
}

.label .input:checked + .circle {
  animation:
    pulse 1s forwards,
    circleDelete 0.2s ease 3.5s forwards;
  rotate: 180deg;
}

.label .input:checked + .circle::before {
  animation: installing 3s ease-in-out forwards;
}

.label .input:checked + .circle .icon {
  opacity: 0;
  visibility: hidden;
}

.label .input:checked ~ .circle .square {
  opacity: 1;
  visibility: visible;
}

.label .input:checked ~ .title {
  opacity: 0;
  visibility: hidden;
}

.label .input:checked ~ .title:last-child {
  animation: showInstalledMessage 0.4s ease 3.5s forwards;
}

@keyframes pulse {
  0% {
    scale: 0.95;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    scale: 1;
    box-shadow: 0 0 0 16px rgba(255, 255, 255, 0);
  }
  100% {
    scale: 0.95;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes installing {
  from {
    height: 0;
  }
  to {
    height: 100%;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(-90deg) translate(27px) rotate(0);
    opacity: 1;
    visibility: visible;
  }
  99% {
    transform: rotate(270deg) translate(27px) rotate(270deg);
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes installed {
  100% {
    width: 150px;
    border-color: rgb(35, 174, 35);
  }
}

@keyframes circleDelete {
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes showInstalledMessage {
  100% {
    opacity: 1;
    visibility: visible;
    right: 56px;
  }
}



#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 {
  grid-row: span 2;
}
.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}


.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 {
  grid-column: 2 / 4;
  grid-row: 2;
  height: 150px;
  font-size: 1.2rem;
  line-height: 1.4;
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer .box-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.footer .box2 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.footer .credit {
    margin-top: 15px;
    text-align: center;
}

.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;
  }

  }

/* À propos de moi */
section:first-of-type h3,
section:first-of-type p {
    -webkit-text-stroke: 1px;
    -webkit-text-stroke-color: #3a3a3a;
    color: white;
}

/* Compétences */
#skills h3,
#skills h2,
#skills p,
#skills {
    -webkit-text-stroke: 1px;
    -webkit-text-stroke-color: #3a3a3a;
    color: white;
}

/* Titre des expériences */
#experiences h2, 
#experiences h3, 
#experiences p {
    -webkit-text-stroke: 1px;
    -webkit-text-stroke-color: #3a3a3a;
    color: white;
}


#projects h3,
#contact,
main h2 {
    -webkit-text-stroke: 1px;
    -webkit-text-stroke-color: #3a3a3a;
    color: white;
}


main h2 + * {

    -webkit-text-stroke: 1px;
    -webkit-text-stroke-color: #3a3a3a;
    color: white;
}
main h2 + * * {
    -webkit-text-stroke: 1px;
    -webkit-text-stroke-color: #3a3a3a;
    color: white;
}