/* Mobile Version */
@media screen and (max-width: 576px) {
  #menu {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-toggler {
    display: block;
  }

  .navbar-collapse {
    display: none;
  }

  .navbar-toggler.collapsed, .navbar-collapse {
    display: block;
  }

  .navbar-nav {
    flex-direction: column;
    padding-left: 0;
    margin-top: 10px;
  }

  table {
    width: 100%;
    font-size: 12px;
  }

  main {
    flex-direction: column;
    align-items: center;
  }

  #photos {
    padding: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.galerie-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  transition: 0.5s;
  margin-bottom: 20px;
  animation: opacity 3s ease-in-out;
}

#theo h1, #theo p, #theo #ajout{
  display: flex;
  justify-content: center;
}

.lilian-john {
  width: 100%;
  overflow-x: auto;
}

#lilian {
  width: 100%;
  border-collapse: collapse;
}

.john {
  width: 100px;
  height: 100px;
}

@keyframes opacity {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

}


/* Desktop Version */
@media screen and (min-width: 577px) {
  table {
    width: 80%;
  }

  #photos {
    width: 70%;
    padding: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.galerie-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin-bottom: 20px;
    filter: grayscale(100%) blur(1px);
    transition: transform 1.5s ease-in-out, filter 1.5s ease-in-out, border-radius 2.5s ease-in-out;
}

.galerie-img:hover {
    border-radius: 25px;
    filter: grayscale(0%) blur(0px);
    transform: rotate(360deg);
}

#theo {
  width: 30%;
  margin: 0 auto;
}

#theo h1, #theo p, #theo #ajout{
  display: flex;
  justify-content: center;
}

.lilian-john {
  width: 100%;
}

#lilian {
  width: 80%;
  border-collapse: collapse;
  margin: auto;
}

.john {
  width: 300px;
  height: 300px;
  border-radius: 25%;
}

}


/* Général */
body {
  background-color: #2E294E;
  color: white;
}

main {
  display: flex;
  margin: 20px 0px 20px;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
}

/* Header & Footer */
header, footer {
  background-color: #011638;
  padding: 10px;
}

footer {
  text-align: center;
}


/* Menu */
#menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#menu .navbar-nav {
  list-style: none;
  display: flex;
  gap: 10px;
}

.element-menu {
  display: inline-block;
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}

.element-menu a, footer nav a, #retour a, #ajout {
  color: white;
  text-decoration: none;
  padding: 7px;
  transition: 0.5s;
  border-radius: 10px;
}

#retour a {
  color: #000;
  background-color: aqua;
}

.element-menu a:hover, footer nav a:hover, #retour a:hover, #ajout:hover {
  color: black;
  background-color: white;
}


/* Table */
table {
  width: 90%;
  margin-top: 20px;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 20px;
}

table, th, td {
  padding: 8px;
  text-align: center;
}

th, td {
  background-color: #011638;
  border: 1px solid #2E294E;
}

th:first-child {
  border-radius: 20px 0 0 0;
}

th:last-child {
  border-radius: 0 20px 0 0;
}

tr:last-child td:first-child {
  border-radius: 0 0 0 20px;
}

tr:last-child td:last-child {
  border-radius: 0 0 20px;
}

#retour {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

.btn, .btn-outline-success {
  border: #011638 2px solid;
}
