body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: white;
}

#body {
    background-color: #101010
}

.fa-1x {
    font-size: 1.5em !important;
}

.grey {
    color: gray;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 5rem;
    padding-right: 5rem;
    padding-top: 15px;
    padding-bottom: 10px;
    background-color: #101010;
    color: rgba(255, 255, 255, 0.87);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: rgba(255, 255, 255, 0.87);
    text-decoration: none;
    font-size: 22px;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: rgba(255, 255, 255, 0.87);
    text-decoration: none;
}

main {
    padding-left: 5rem;
    padding-right: 5rem;
    min-height: 100vh;
}

footer {
    height: auto;
    color: rgba(255, 255, 255, 0.87);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 5rem 2rem 5rem;
    background-color: #101010;
}

.padding-bottom {
    padding-bottom: 50px;
}

.social-link-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social_link {
    display: flex;
    justify-content: left;
    gap: 10px;
    margin: 0;
}

.social_link li {
    list-style: none; 
    padding-right: 1%;
}

.active-link:hover{
    color: #7700ff;
    border-bottom: 1px solid #7700ff;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.gallery-item {
    opacity: 0;
    transform: translateY(60px);
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

#project {
    padding-left: 5rem;
    padding-right: 5rem;
}

.project-content {
    padding-top: 20px;
    padding-bottom: 40px;
    border-bottom: 1px solid #101010
}

.project-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
}

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

.project-item img {
    width: 70%;
    height: 100%;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.75fr 1fr;
    padding-top: 3.3rem;
    padding-bottom: 3.3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.75fr 1fr;
    border-top: 1px solid #101010;
    padding-top: 1dvb;
}

.portrait {
    flex-grow: 1;
    max-width: 500px;
}

.list {
    display: flex;
    flex-direction: column;
    margin: 20px 0;
    color: darkgray;
}

.link-contact {
    text-decoration: underline;
    cursor: pointer;
}

.links a {
    cursor: pointer;
    color: darkgray;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 50px;
    padding: 20px 0px 100px 0px;
}

button {
    background-color: black;
    border-radius: 30px;
    color: white;
    padding: 10px 30px 10px 30px;
    box-shadow: none;
    border-color: black;    
    border-radius: 30px;
    color: white;
    font-size: 18px;
    border-style: none;
}

.previous-next-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem;
  }

  /* Boutons désactivés */
button:disabled,
button:disabled span.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

button span.disabled {
  pointer-events: none;
  text-decoration: none;
  color: inherit;
}

/* Animation */
.animated-navigation {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.6s ease forwards;
}

@media (max-width: 768px) {
    header {

        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    footer {
        padding: 1rem;
        flex-direction: column;
        gap: 10px;
}

    #project {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .project-content {
        padding-top: 0px;
    }

    .logo {
        width: 250px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .previous-next-container {
        padding: 1rem;
    }

    .legal {
        text-align: center;
    }

    .project-item img {
        width: 100%;
    }

    #project {
        min-height: 100vh;
    }

    .project-item {
        padding-top: 20px;
    }
}

/* Burger */
.burger {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.87);
    position: absolute;
    cursor: pointer;
    z-index: 1001;
    padding: 0px;
    top: 1px;
    right: 15px;
  }
  
  /* Dropdown menu (mobile only) */
  #dropdown-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: black;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-in-out;
    z-index: 1000;
  }
  
  #dropdown-menu.open {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
  
  #dropdown-menu ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 3rem;
    text-align: center;
  }

  #dropdown-menu li a {
    color: rgba(255, 255, 255, 0.87);
    text-decoration: none;
  }

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
  
  /* Media query : version mobile */
  @media (max-width: 768px) {
    .burger {
      display: block;
    }
  
    nav#main-menu {
      display: none;
    }

    main {
        padding-left: 1rem;
        padding-right: 1rem;
    }
  }
  
  /* Desktop menu reste affiché */
  @media (min-width: 769px) {
    #dropdown-menu {
      display: none !important;
    }
  
    nav#main-menu ul {
      display: flex;
      gap: 2rem;
      list-style: none;
    }
  
    nav#main-menu a {
        text-decoration: none;
        font-size: 22px;
        font-family: Arial, Helvetica, sans-serif;
    }
  }