@import url("https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");

:root {
  --accent-color: #94d2bd;
  --dark-main-color: #005f73;
  --bg-color: #001219;
  --text-color: white;
  --button-bg-color: rgb(0, 48, 48);
  --secondary: #e9d8a6;
  --separation: #00afb9;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
}

header {
  padding: 20px 0;
  text-align: center;
  border-bottom: 2px solid var(--separation);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler {
  border-color: var(--text-color) !important;
}

.bg-body-tertiary {
  background-color: transparent !important;
}

nav .navbar-collapse {
  justify-content: center;
}

.nav-link {
  font-size: 18px;
  color: var(--text-color);
}

.navbar-expand-lg .navbar-toggler {
  margin-left: auto;
  margin-right: 30px;
}

.navbar-collapse {
  margin-top: 30px;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 2vw;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

nav li {
  margin: 10px 0;
  text-align: center;
}

nav a {
  text-transform: uppercase;
  font-size: 24px;
  display: block;
  width: 100%;
  transition: all 0.3s ease;
}

nav a.active {
  border: 2px solid var(--accent-color);
  background-color: var(--button-bg-color);
  padding: 5px 20px !important;
  border-radius: 5px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-child {
  background-color: var(--accent-color);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  margin-right: 15px;
}

.skate-ref a {
  font-size: 26px;
  font-weight: bold;
  font-family: "Permanent Marker", cursive;
}

.container {
  width: 90%;
  margin: 0 auto;
}

section {
  padding: 30px 0;
}

span {
  color: var(--separation);
}

h1 {
  font-size: 32px;
  color: var(--secondary) !important;
  font-weight: bold;
  margin: 30px auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Bebas Neue", sans-serif;
}

h6 {
  font-size: 18px;
  color: var(--accent-color);
}

a {
  color: var(--text-color);
  text-decoration: none;
}

a.nav-link {
  transition: all 0.3s ease;
}

a:hover {
  font-weight: 600;
  color: var(--secondary) !important ;
}

p {
  text-align: justify;
  font-size: 14px;
}

.form_bttn {
  border: 2px solid var(--dark-main-color);
  background-color: var(--bg-color);
  padding: 7px 20px;
  box-shadow: 2px 2px 2px var(--dark-main-color);
  cursor: pointer;
  margin: 70px auto;
  border-radius: 10px;
  display: block;
  transition: all 0.3s ease;
}

.form_bttn:hover {
  background-color: var(--bg-color);
  border: 2px solid var(--dark-main-color);
}

.tab_title {
  font-size: 32px;
  text-align: center;
  padding: 30px 0;
}

.gallery {
  width: 300px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  gap: 20px;
  padding: 20px;
}

.gallery div {
  border: 2px solid var(--dark-main-color);
  border-radius: 10px;
  padding: 15px;
  background-color: rgba(0, 48, 48, 0.2);
}

.gallery h3 {
  color: var(--secondary);
  margin-bottom: 15px;
}

.gallery p {
  margin: 8px 0;
  font-size: 14px;
}

.gallery img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 15px;
  transition: all 0.5s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

.sorting-options {
  margin: 20px 0;
  text-align: center;
}

.sorting-options a {
  margin: 0 5px;
}

form {
  width: 300px;
  margin: 30px auto;
  padding: 25px;
  background-color: #00332b3f;
  border-radius: 10px;
  border: 2px solid #007663;
}

form label {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

form input[type="text"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--accent-color);
  border-radius: 5px;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Poppins", Arial, sans-serif;
}

form input[type="text"]::placeholder {
  font-size: 14px;
  font-style: italic;
}

form input[type="submit"] {
  background-color: var(--button-bg-color);
  color: var(--text-color);
  border: 2px solid var(--accent-color);
  padding: 10px 40px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  margin: 0 auto;
  display: block;
  box-shadow: 5px 5px 5px var(--dark-main-color);
  transition: all 0.3s ease;
}

form input[type="submit"]:hover {
  background-color: var(--bg-color);
  color: var(--secondary);
}

table {
  width: 100%;
  margin: 30px 0;
  border-collapse: collapse;
  background-color: rgb(186, 196, 196);
  border-radius: 10px;
  overflow: hidden;
}

thead {
  background-color: var(--dark-main-color);
  color: var(--text-color);
  font-weight: bold;
}

th,
td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--dark-main-color);
}

tbody tr:hover {
  background-color: rgba(148, 210, 189, 0.1);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgb(177, 179, 180);
}

.table-bordered {
  border: 2px solid var(--dark-main-color);
}

.table a {
  color: rgb(40, 58, 52);
  transition: all 0.3s ease;
}

.table a:hover {
  color: rgb(10, 72, 52) !important;
  text-decoration: underline;
}

.admin-panel h1 {
  text-align: center;
  margin-bottom: 30px;
}

.admin-panel .card {
  background-color: var(--button-bg-color);
  border: 2px solid var(--dark-main-color);
  border-radius: 10px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.admin-panel .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.admin-panel .card-header {
  background-color: var(--dark-main-color);
  color: var(--text-color);
  border-bottom: 2px solid var(--accent-color);
  padding: 15px;
}

.admin-panel .card-header h2 {
  font-size: 24px;
  margin: 0;
  color: var(--secondary);
}

.admin-panel .card-body {
  padding: 20px;
  color: var(--text-color);
}

.admin-panel .card-body p {
  text-align: center;
  margin-bottom: 20px;
}

.admin-panel .btn-primary {
  background-color: var(--dark-main-color);
  border-color: var(--accent-color);
  color: var(--text-color);
  padding: 8px 25px;
  font-weight: 500;
  display: block;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.admin-panel .btn-primary:hover {
  background-color: var(--accent-color);
  color: var(--bg-color) !important;
  transform: scale(1.05);
}

footer {
  border-top: 2px solid var(--separation);
}

.footer_first {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 90%;
  margin: 0 auto;
  padding: 30px;
}

.footer_first p,
.text_footer p {
  font-size: 12px;
}

.text_footer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer_first h6 {
  font-size: 16px;
}

.skate-ref-footer,
.navigation,
.RS,
.ref {
  width: 100%;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.navigation p,
.RS p {
  text-align: center;
  width: 100%;
}

.RS {
  text-align: center;
}

.footer-p {
  margin-top: 15px;
}

.easter-egg a {
  font-size: 11px;
}

#back-to-top {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--dark-main-color);
  color: var(--text-color);
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#back-to-top:hover {
  background-color: var(--accent-color);
  transform: translateY(-5px);
}

#back-to-top i {
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

i {
  font-size: 30px;
}

.navigation a {
  transition: all 0.5s ease;
}

.navigation a:hover {
  color: var(--secondary) !important;
}

.error-container {
  text-align: center;
  padding: 50px 0;
}

.skateboard-icon {
  font-size: 40px;
  transform: rotate(-20deg);
}

.error-code {
  font-size: 36px;
  font-weight: bold;
  color: var(--accent-color);
  margin-bottom: 30px;
  font-family: "Permanent Marker", cursive;
}

.error-message {
  font-size: 18px;
  margin: 40px auto;
}

/*Travaux*/
.skateboard-animation {
  margin: 30px 0;
  position: relative;
}

.skateboard {
  font-size: 40px;
  animation: skate 3s infinite linear;
  display: inline-block;
}

.dust {
  font-size: 25px;
  position: absolute;
  animation: dust 3s infinite linear;
  opacity: 0.7;
}

@keyframes skate {
  0% {
    transform: translateX(-100px) rotate(0deg);
  }

  50% {
    transform: translateX(100px) rotate(180deg);
  }

  100% {
    transform: translateX(-100px) rotate(360deg);
  }
}

@keyframes dust {
  0% {
    transform: translateX(-130px);
    opacity: 0;
  }

  30% {
    transform: translateX(-110px);
    opacity: 0.8;
  }

  50% {
    transform: translateX(70px);
    opacity: 0.5;
  }

  70% {
    transform: translateX(90px);
    opacity: 0.8;
  }

  100% {
    transform: translateX(-130px);
    opacity: 0;
  }
}

@media screen and (min-width: 576px) {
  header {
    padding: 50px 0;
    text-align: center;
  }

  .logo {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo-child {
    background-color: var(--accent-color);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    margin-right: 30px;
  }

  .skate-ref a {
    font-size: 52px;
    font-weight: bold;
    font-family: "Permanent Marker", cursive;
  }

  section {
    padding: 60px 0;
  }

  .container {
    width: 80%;
    margin: 0 auto;
  }

  h1 {
    font-size: 52px;
    color: var(--accent-color);
  }

  h2 {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: 30px;
  }

  p {
    font-size: 18px;
  }

  .form_bttn {
    font-size: 18px;
  }

  .tab_title {
    font-size: 56px;
    text-align: center;
  }

  .gallery {
    width: 1080px;
    display: grid;
    margin: 0 auto;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
  }

  h3 {
    font-size: 60px;
  }

  .gallery p {
    font-size: 18px;
  }

  form {
    width: 900px;
    margin: 50px auto;
    background-color: var(--bg-color);
    padding: 50px;
  }

  form input[type="text"]::placeholder {
    font-size: 16px;
  }

  form input[type="submit"] {
    margin-top: 30px;
    padding: 10px 60px;
  }

  .footer_first {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    width: 80%;
    margin: 0 auto;
    padding: 50px;
  }

  .footer_first p,
  .text_footer p {
    font-size: 16px;
  }

  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    padding: 10px;
  }

  #back-to-top i {
    font-size: 16px;
  }

  .skate-ref-footer {
    grid-column: 1 / 2;
  }

  .navigation {
    grid-column: 2 / 3;
  }

  .RS {
    grid-column: 3 / 3;
  }

  .text_footer {
    text-align: center;
  }

  i {
    font-size: 50px;
    margin-top: 10px;
    transition: all 0.5s ease;
  }

  i:hover {
    font-size: 55px;
    color: var(--secondary);
  }

  /*Error 404*/
  .error-container {
    padding: 100px 0;
  }

  .skateboard-icon {
    font-size: 80px;
  }

  .error-code {
    font-size: 120px;
    margin-bottom: 20px;
  }

  .error-message {
    font-size: 24px;
    margin: 60px auto;
  }

  /*Travaux*/
  .skateboard-animation {
    margin: 30px 0;
    position: relative;
  }

  .skateboard {
    font-size: 40px;
    animation: skate 3s infinite linear;
    display: inline-block;
  }

  .dust {
    font-size: 25px;
    position: absolute;
    animation: dust 3s infinite linear;
    opacity: 0.7;
  }

  @keyframes skate {
    0% {
      transform: translateX(-100px) rotate(0deg);
    }

    50% {
      transform: translateX(100px) rotate(180deg);
    }

    100% {
      transform: translateX(-100px) rotate(360deg);
    }
  }

  @keyframes dust {
    0% {
      transform: translateX(-130px);
      opacity: 0;
    }

    30% {
      transform: translateX(-110px);
      opacity: 0.8;
    }

    50% {
      transform: translateX(70px);
      opacity: 0.5;
    }

    70% {
      transform: translateX(90px);
      opacity: 0.8;
    }

    100% {
      transform: translateX(-130px);
      opacity: 0;
    }
  }
}

/*table1 gestion*/
.figure-card {
  background-color: rgba(0, 48, 48, 0.3);
  border: 2px solid var(--dark-main-color);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.figure-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.figure-card img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.figure-card h3 {
  color: var(--secondary);
  font-size: 24px;
  margin-bottom: 15px;
}

.figure-card .info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 5px;
}

.figure-card .info-label {
  font-weight: 600;
  color: var(--accent-color);
}

.figure-card .actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.figure-card .btn {
  flex: 1;
  padding: 8px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.figure-card .btn i,
.form-bttn i {
  font-size: 14px;
}

.figure-card .btn-edit {
  background-color: var(--dark-main-color);
  border: 1px solid var(--accent-color);
  color: white;
}

.figure-card .btn-delete {
  background-color: rgb(139, 0, 0);
  border: 1px solid rgb(220, 53, 69);
  color: white;
}

.figure-card .btn:hover {
  transform: scale(1.05);
}

@media (min-width: 769px) {
  .figure-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
  }

  .figure-card .actions {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .figure-card .btn {
    flex: initial;
    padding: 6px 12px;
  }

  .figure-card .btn-edit,
  .figure-card .btn-delete {
    width: 80px;
  }
}
