/* Style général */
header > div,
main,
footer > div {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Détails du projet */
main {
  padding: 2rem 0;
}

main img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

main div:nth-of-type(4),
main div:nth-of-type(5) {
  margin-top: 2em;
  padding: 1.5em;
  background: var(--card-bg);
  border-radius: 5px;
}

main h3 {
  color: var(--accent-color);
  margin-bottom: 1em;
}

main ul {
  list-style: disc;
  margin-left: 20px;
}

main ul li {
  margin-bottom: 0.5em;
}

main div:nth-of-type(4) > div > span {
  display: inline-block;
  background: var(--header-footer-bg);
  color: var(--text-color);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  margin-right: 5px;
  margin-bottom: 5px;
}

main > a {
  display: inline-block;
  margin-top: 2em;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
}

main > a:hover {
  text-decoration: underline;
}

/* Vignette projet */
main > div:first-of-type {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

main > div:first-of-type > div {
  margin-bottom: 1.5em;
  width: 380px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

main > div:first-of-type > div:hover {
  transform: scale(1.02);
}

main > div:first-of-type > div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

main > div:first-of-type > div:hover img {
  transform: scale(1.1);
}

main > div:first-of-type > div div {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 24px;
  color: black;
  text-shadow: 1px 1px 3px rgb(165, 158, 158);
  opacity: 0;
  transition: opacity 0.3s;
}

main > div:first-of-type > div:hover div {
  opacity: 1;
}

main > div:nth-of-type(2) {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

main > div:nth-of-type(2).show {
  display: flex;
}

main > div:nth-of-type(2) img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px black;
  z-index: 1;
}

main > div:nth-of-type(2) span {
  transition: 0.3s ease;
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  z-index: 2;
}

main > div:nth-of-type(2) span:hover {
  transform: rotate(-90deg);
  color: #ff6b6b;
}

main > div:nth-of-type(3) {
  display: flex;
  justify-content: space-evenly;
  margin-top: 2em;
}

main > div:nth-of-type(3) a {
  width: 35%;
  text-align: center;
}