@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Outfit", sans-serif;
}

html {
  overflow-x: hidden;
  font-size: max(1rem, 1vw);
}

body {
  background-color: #f7edd8;
  overflow-x: hidden;
  background-image: url(../ressources/background/pattern-tile.png);
  background-size: 68px;
  animation: moving_bg 5s linear infinite;
}

@keyframes moving_bg {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 -68px;
  }
}

/* 💢💢💢💢💢 --- GENERAL --- 💢💢💢💢💢 */

a {
  text-decoration: none;
  color: black;
}

.full_page {
  min-height: calc(100vh - 10rem - 2.62rem - 2.62rem);
}

.container {
  padding: 0 10vw;
}

.btn {
  display: flex;
  width: min-content;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  background-color: #f7edd8;
  padding: 0.38rem 1rem;
  text-transform: uppercase;
  font-weight: 800;
  white-space: nowrap;
  border-radius: 5rem;
  border: #101010 solid 0.2rem;
  box-shadow: 0.15rem 0.15rem 0px #101010;
  transition: 0.3s;
}

.btn:hover {
  background-color: #c346c6;
}

.btn:active {
  background-color: white;
}

.btn_important {
  background-color: #c346c6;
}

.btn_important:hover {
  background-color: white;
}

#vps_link {
  font-size: 1rem;
}

h1 {
  font-size: 1.62rem;
  text-transform: uppercase;
}

.tittle {
  display: flex;
  align-items: center;
  gap: 0.38rem;
}

.fa-asterisk {
  font-size: 1.62rem;
}

.background_gradient {
  z-index: -99;
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    180deg,
    rgba(247, 237, 216, 1) 0%,
    rgba(247, 237, 216, 0) 100%
  );
}

/* 🍧🍧🍧🍧🍧 --- NAVBAR --- 🍧🍧🍧🍧🍧 */

header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
  margin-bottom: 2.62rem;
  padding: 1rem 10vw;
  text-transform: uppercase;
  font-weight: 800;
  background-color: #50c646;
  border-bottom: #101010 solid 0.2rem;
}

.logo {
  font-size: 1.5rem;
  display: flex;
}

.hammedburger {
  position: absolute;
  right: 10vw;
  transform: translateY(50%);
}

#menu_nav {
  z-index: 99;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 0.38rem;
  top: calc(5rem + 1.62rem);
  right: 10vw;
  transform: translateX(100vw);
}

#menu_nav .btn {
  width: fit-content;
}

#menu_nav.is_active > .order_1 {
  animation: menu_from_top 0.3s cubic-bezier(0.42, 0, 0.01, 0.98) forwards;
  animation-delay: 0s;
}

#menu_nav.is_active > .order_2 {
  animation: menu_from_top 0.3s cubic-bezier(0.42, 0, 0.01, 0.98) forwards;
  animation-delay: 0.15s;
}

#menu_nav.is_active > .order_3 {
  animation: menu_from_top 0.3s cubic-bezier(0.42, 0, 0.01, 0.98) forwards;
  animation-delay: 0.3s;
}

#menu_nav.is_active > .order_4 {
  animation: menu_from_top 0.3s cubic-bezier(0.42, 0, 0.01, 0.98) forwards;
  animation-delay: 0.45s;
}

@keyframes menu_from_top {
  0% {
    filter: blur(2px);
    transform: translateX(0);
  }
  100% {
    filter: blur(0px);
    transform: translateX(-100vw);
  }
}

#menu_nav.not_active {
  transform: translateX(0);
}

#menu_nav.not_active > .order_1 {
  animation: menu_to_top 0.3s cubic-bezier(0.42, 0, 0.01, 0.98) forwards;
  animation-delay: 0.45s;
}

#menu_nav.not_active > .order_2 {
  animation: menu_to_top 0.3s cubic-bezier(0.42, 0, 0.01, 0.98) forwards;
  animation-delay: 0.3s;
}

#menu_nav.not_active > .order_3 {
  animation: menu_to_top 0.3s cubic-bezier(0.42, 0, 0.01, 0.98) forwards;
  animation-delay: 0.15s;
}

#menu_nav.not_active > .order_4 {
  animation: menu_to_top 0.3s cubic-bezier(0.42, 0, 0.01, 0.98) forwards;
  animation-delay: 0s;
}

@keyframes menu_to_top {
  0% {
    filter: blur(0);
    transform: translateX(0);
  }
  100% {
    filter: blur(2px);
    transform: translateX(100vw);
  }
}

/* 🧊🧊🧊🧊🧊 --- FOOTER --- 🧊🧊🧊🧊🧊 */

footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
  padding: 1rem 10vw;
  margin-top: 2.62rem;
  text-transform: uppercase;
  font-weight: 800;
  background-color: #50c646;
  border-top: #101010 solid 0.2rem;
}

footer .btn {
  position: absolute;
  bottom: 5rem;
  right: 10%;
  transform: translateY(50%);
}

/* 💛💛💛💛💛 --- INDEX --- 💛💛💛💛💛 */

section#index {
  display: grid;
  grid-template-rows: min-content;
  gap: 1.62rem;
}

section#index main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

section#index main p {
  text-align: justify;
}

section#index aside {
  position: relative;
  align-self: center;
  justify-self: center;
  overflow: hidden;
  aspect-ratio: 5/3;
  min-width: 100%;
  max-height: 100%;
  max-width: 100%;
}

section#index aside > img {
  z-index: -2;
  position: absolute;
  width: 55%;
  max-height: 70%;
}

section#index .sea {
  z-index: -1;
  display: flex;
  position: absolute;
  right: 0;
  height: 100%;
  width: 50%;
  background-image: url(../ressources/index/background.webp);
  background-size: cover;
  background-position: center;
  border: #101010 solid 0.2rem;
  border-radius: 0.38rem;
}

section#index aside .sea img {
  position: absolute;
  align-self: center;
  max-height: 80%;
  width: 65vw;
  max-width: 150%;
  object-fit: contain;
  right: 100%;
  transform: translateX(50%) rotate(-10deg);
}

/* 💚💚💚💚💚 --- ENCYCLOPIDIA --- 💚💚💚💚💚 */

section.catalogue {
  display: grid;
  grid-template-rows: auto;
  gap: 1.62rem;
}

section.catalogue article {
  position: relative;
  /* overflow: hidden; */
  display: grid;
  background-color: #d8f7f5;
  border: #101010 solid 0.2rem;
  border-radius: 0.38rem;
  /* box-shadow: 0.15rem 0.15rem 0px #101010; */
}

section.catalogue article:hover {
  /* box-shadow: 0.15rem 0.15rem 0px #101010; */
  background-color: #f7d9f7;
}

section.catalogue article img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  border-radius: 0.3rem 0.3rem 0 0;
  outline: #101010 solid 0.2rem;
}

section.catalogue article .information {
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
  padding: 0.62rem;
}

section.catalogue article .information_block span {
  font-weight: 600;
}

section.catalogue article .turtle_name {
  text-transform: uppercase;
  font-weight: 800;
}

/* 💙💙💙💙💙 --- RECHERCHE --- 💙💙💙💙💙 */

section#form_recherche form {
  overflow: hidden;
  display: grid;
  grid-template-columns: min-content 3fr min-content;
  width: 100%;
  padding: 0;
  gap: 0;
  border: #101010 solid 0.2rem;
  box-shadow: 0.15rem 0.15rem 0px #101010;
}

section#form_recherche form label {
  font-size: 0.62rem;
}

section#form_recherche form label:nth-child(1) {
  display: flex;
  align-content: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  height: 100%;
  padding: 0.38rem 1rem;
  background-color: #c346c6;
}

section#form_recherche form label:nth-child(3) {
  display: flex;
  align-content: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  height: 100%;
  padding: 0.38rem 1rem;
  background-color: #c346c6;
}

section#form_recherche form input {
  height: 100%;
  width: 100%;
  border-radius: 0;
  padding: 0.38rem;
  border: none;
  outline: #101010 solid 0.2rem;
  appearance: none;
}

/* 🦞🦞🦞🦞🦞 --- NAVBAR --- 🦞🦞🦞🦞🦞 */
.admin table {
  border: #101010 solid 0.2rem;
  border-collapse: collapse;
  background-color: #d8f7f5;
  box-shadow: 0.15rem 0.15rem 0px #101010;
}

.admin tr,
.admin td,
.admin th {
  position: relative;
  padding: 0.2rem;
  border: #101010 solid 0.1rem;
}

.admin thead {
  height: 2.62rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  border: #101010 solid 0.2rem;
  background-color: #c346c6;
}

.admin thead:hover {
  background-color: #c346c6 !important;
}

.admin tr:hover {
  background-color: #f7d9f7;
}

.admin table td:nth-child(1) {
  text-align: center;
}

.admin table td:nth-child(4) i {
  font-size: 1.62rem;
  letter-spacing: 0.62rem;
}

.admin table td:nth-child(4) i:hover {
  color: #c346c6;
}

.admin .gestion_modifier {
  text-align: center;
}

.admin .gestion_images {
  padding: 0;
}

.admin .gestion_images img {
  height: 70px;
}

@media only screen and (min-width: 480px) {
  /* ✈️✈️✈️✈️✈️ --- NAVBAR --- ✈️✈️✈️✈️✈️ */

  .hammedburger {
    display: none;
  }

  #menu_nav {
    z-index: 99;
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: end;
    gap: 0.38rem;
    top: calc(5rem);
    right: 10vw;
    transform: translateX(0) translateY(-50%);
  }

  #menu_nav a {
    display: flex;
    align-content: center;
    justify-content: center;
    min-width: 2.62rem;
    min-height: 2.62rem;
    padding: 0.38rem;
    transition: 0.3s;
    gap: 0;
  }

  #menu_nav p {
    font-size: 0;
    transition: 0.3s;
  }

  #menu_nav a:hover {
    padding: 0.38rem 1rem;
    gap: 1rem;
  }

  #menu_nav a:hover p {
    font-size: 1rem;
  }

  #menu_nav .btn {
    width: fit-content;
  }

  /* 💛💛💛💛💛 --- INDEX --- 💛💛💛💛💛 */

  section#index {
    align-content: start;
  }

  /* 💚💚💚💚💚 --- ENCYCLOPIDIA --- 💚💚💚💚💚 */

  section.catalogue {
    grid-template-rows: min-content;
  }

  section.catalogue article {
    grid-template-columns: 2fr 3fr;
  }

  section.catalogue article img {
    border-radius: 0.3rem 0 0 0.3rem;
  }

  /* 💙💙💙💙💙 --- RECHERCHE --- 💙💙💙💙💙 */

  section#form_recherche form label {
    font-size: 1rem;
  }
}

@media only screen and (min-width: 960px) {
  /* font-size: clamp(16px, 12vw, 20px); */

  /* ✈️✈️✈️✈️✈️ --- NAVBAR --- ✈️✈️✈️✈️✈️ */
  #menu_nav a {
    display: flex;
    align-content: center;
    justify-content: center;
    min-width: 2.62rem;
    min-height: 2.62rem;
    padding: 0.38rem 1rem;
    transition: 0.3s;
    gap: 1rem;
  }

  #menu_nav p {
    font-size: 1rem;
    transition: 0.3s;
  }

  /* 💛💛💛💛💛 --- INDEX --- 💛💛💛💛💛 */

  section#index {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 2fr 3fr;
    gap: 1.62rem;
    align-content: center;
  }

  section#index main {
    grid-area: 1;
  }

  /* 💚💚💚💚💚 --- ENCYCLOPIDIA --- 💚💚💚💚💚 */
  section.catalogue {
    grid-template-columns: repeat(2, 1fr);
  }

  section.catalogue .tittle {
    grid-column: 1/-1;
  }
}
