@import url("https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Sedgwick+Ave+Display&display=swap");

:root {
  --background-color: #2b2a2a;
  --text-color: white;
  --accent-color: aqua;
  --background-button: rgb(0, 48, 48);
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  --button-hover-background: rgb(0, 104, 104);
  --background-image: url(/images/BGv4.jpg);
  --background_hf: transparent;
}

.light-mode {
  --background-color: white;
  --text-color: black;
  --accent-color: rgb(0, 159, 159);
  --background-button: rgb(0, 159, 159);
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  --button-hover-background: rgb(0, 104, 104);
  --background-image: url(/images/BG_light.jpg);
  --background_hf: #ffffffc4;
}

/*Video*/
.video-container {
  display: flex;
  justify-content: center;
  margin-top: 1.2s;
}

#banniere-video {
  width: 100%;
  max-width: 800px;
  transition: transform 0.3s ease;
}

#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: 1px solid var(--accent-color);
  outline: none;
  background-color: var(--background-color);
  color: var(--text-color);
  cursor: pointer;
  padding: 15px;
  border-radius: 10px;
}

#scrollToTopBtn:hover {
  background-color: var(--background-button);
}

/*Loading*/
#loading-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #2b2a2a;
  z-index: 1000;
}

#loading-container.hidden {
  display: none;
}

.pl {
  width: 6em;
  height: 6em;
}

.pl__ring,
.pl__worm1,
.pl__worm2,
.pl__worm3 {
  animation-duration: 4s;
  animation-iteration-count: infinite;
}
.pl__ring {
  stroke: hsla(191, 100%, 50%, 0.332);
}
.pl__worm1 {
  animation-name: worm1;
}
.pl__worm2 {
  animation-name: worm2;
  transform-origin: 32px 88px;
}
.pl__worm3 {
  animation-name: worm3;
  transform-origin: 144px 88px;
}

@keyframes worm1 {
  from {
    animation-timing-function: ease-out;
    stroke-dashoffset: 43.98;
  }
  12.5% {
    animation-timing-function: ease-in-out;
    stroke-dashoffset: -131.95;
  }
  25% {
    animation-timing-function: ease-in;
    stroke-dashoffset: 0;
  }
  37.5%,
  50% {
    animation-timing-function: ease-out;
    stroke-dashoffset: -175.93;
  }
  62.5% {
    animation-timing-function: ease-in-out;
    stroke-dashoffset: 0;
  }
  75% {
    animation-timing-function: ease-in;
    stroke-dashoffset: -131.95;
  }
  87.5%,
  to {
    stroke-dashoffset: 43.98;
  }
}
@keyframes worm2 {
  from,
  35.5% {
    animation-timing-function: linear;
    stroke-dasharray: 0 40 0 44;
    visibility: hidden;
    transform: translate(0, 0) rotate(0);
  }
  37.5% {
    animation-timing-function: ease-out;
    stroke-dasharray: 0 40 44 0;
    visibility: visible;
    transform: translate(0, 0) rotate(0);
  }
  47.5% {
    animation-timing-function: ease-in;
    stroke-dasharray: 0 4 40 40;
    visibility: visible;
    transform: translate(0, -80px) rotate(360deg);
  }
  50% {
    animation-timing-function: linear;
    stroke-dasharray: 0 4 40 40;
    visibility: visible;
    transform: translate(0, -36px) rotate(360deg);
  }
  52.5%,
  to {
    stroke-dasharray: 0 42 0 42;
    visibility: hidden;
    transform: translate(0, 12px) rotate(360deg);
  }
}
@keyframes worm3 {
  from {
    animation-timing-function: linear;
    stroke-dasharray: 0 4 40 40;
    visibility: visible;
    transform: translate(0, -36px) rotate(0);
  }
  2.5% {
    animation-timing-function: linear;
    stroke-dasharray: 0 42 0 42;
    visibility: hidden;
    transform: translate(0, 12px) rotate(0);
  }
  85.5% {
    animation-timing-function: linear;
    stroke-dasharray: 0 40 0 44;
    visibility: hidden;
    transform: translate(0, 0) rotate(0);
  }
  87.5% {
    animation-timing-function: ease-out;
    stroke-dasharray: 0 40 44 0;
    visibility: visible;
    transform: translate(0, 0) rotate(0);
  }
  97.5% {
    animation-timing-function: ease-in;
    stroke-dasharray: 0 4 40 40;
    visibility: visible;
    transform: translate(0, -80px) rotate(-360deg);
  }
  to {
    stroke-dasharray: 0 4 40 40;
    visibility: visible;
    transform: translate(0, -36px) rotate(-360deg);
  }
}

body {
  background-image: var(--background-image);
  min-width: 1024px;
  font-family: "Raleway", serif;
  background-color: var(--background-color);
  color: var(--text-color);
  overflow-x: hidden;
}

/*Header*/
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1vw;
  background-color: var(--background_hf);
}

header ul {
  display: flex;
  gap: 2vw;
  list-style: none;
  margin: 0;
  padding: 0;
}

header ul li a {
  text-decoration: none;
  font-size: 18px;
  color: var(--text-color);
  text-transform: uppercase;
  transition: all 0.3s ease;
}

header ul li a:hover {
  font-weight: 600;
  border-bottom: 2px solid var(--accent-color);
}

header nav ul li a.active {
  border: 2px solid var(--accent-color);
  background-color: var(--background-button);
  padding: 5px 10px;
  font-weight: 600;
  border-radius: 5px;
}

.settings-icon {
  cursor: pointer;
  margin-left: 20px;
  transition: all 0.3s ease;
  position: relative;
}

.settings-icon:hover {
  rotate: 90deg;
  color: var(--accent-color);
}

h3 {
  font-size: 18px;
  display: flex;
  justify-content: center;
}

.modal {
  display: none;
  position: absolute;
  top: 100px;
  right: 10px;
  z-index: 1;
  width: 300px;
  background-color: var(--background-color);
  border: 1px solid var(--accent-color);
  border-radius: 10px;
  padding: 5px 10px;
  box-shadow: var(--shadow);
}

.modal-content {
  padding: 10px;
}

.high-contrast {
  filter: contrast(2);
}

label {
  font-size: 16px;
}

.parametres {
  margin-top: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
  margin-left: 15px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: darkred;
  transition: all 0.3s ease;
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: all 0.3s ease;
}

input:checked + .slider {
  background-color: rgb(0, 159, 159);
}

input:checked + .slider:before {
  transform: translateX(14px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

button[onclick*="changeFontSize"] {
  height: 5px;
  width: 30px;
  border: rgb(0, 159, 159) 2px solid;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-left: 5px;
}

/*Logo*/
.logo {
  width: 100%;
  position: relative;
  text-align: center;
  font-size: 40px;
  color: #000;
  font-family: "Sedgwick Ave Display";
}

.logo-child {
  border-radius: 50%;
  background-color: aqua;
  width: 128px;
  height: 128px;
  position: absolute;
  top: 30px;
}

.skate-ref {
  position: absolute;
  top: 70px;
  left: 16px;
  line-height: 89.15%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 97px;
  height: 62px;
}

.skate-ref a {
  text-decoration: none;
  color: #2b2a2a;
}

img.damier {
  width: 100%;
  margin: 1vh auto;
  z-index: -6;
}

/*Main section*/
main {
  width: 1080px;
  margin: 5vh auto;
  padding: 5vw;
  background-color: var(--background-color);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

h1 {
  color: var(--text-color);
  font-family: "Bebas Neue", serif;
  font-size: 64px;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
}

h2 {
  color: var(--accent-color);
  font-weight: 800;
  margin-top: 10vh;
}

h2 a {
  text-decoration: none;
  color: var(--accent-color);
}

span {
  color: var(--accent-color);
}

p {
  font-size: 16px;
  text-align: justify;
  margin: 2vh 0;
}

p span {
  color: var(--accent-color);
  font-weight: 800;
}

/*Accueil*/
.image-wrapper {
  min-width: 45%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#star {
  animation: spin 2s linear infinite;
  transform-origin: center;
  width: 20vw;
  z-index: 1;
  position: relative;
}

#magazine_1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(25deg);
  z-index: 2;
  width: 10vw;
  box-shadow: var(--shadow);
  filter: grayscale(80%) sepia(20%);
  transition: all 0.3s ease;
}

.image-wrapper-second {
  min-width: 30%;
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

#art_1,
#art_2 {
  position: absolute;
  left: -240%;
  width: 100%;
  filter: grayscale(80%) sepia(20%);
  transition: all 0.3s ease;
}

#art_1 {
  z-index: 1;
  transform: translateY(50%);
  width: 15vw;
  box-shadow: var(--shadow);
  animation: hello 1s ease-in-out infinite alternate;
}

#art_2 {
  width: 15vw;
  z-index: 2;
  box-shadow: var(--shadow);
  animation: hello2 0.9s ease-in-out infinite alternate;
}

#magazine_2 {
  width: 12vw;
  z-index: 1;
  transform: translateX(40px) translateY(-80px) rotate(-20deg);
  margin: 0 auto;
  box-shadow: var(--shadow);

  filter: grayscale(80%) sepia(20%);
  transition: all 0.3s ease;
}

#magazine_1:hover,
#magazine_2:hover,
#art_1:hover,
#art_2:hover {
  scale: 1.05;
  filter: grayscale(0%) sepia(0%);
}

.first-container,
.third-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 10vh auto;
}

.second-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 10vh auto;
  position: relative;
}

.third-container {
  margin-top: 30vh;
}

.first-home,
.second-home,
.third-home {
  width: 70%;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  min-width: 40vw;
  max-width: 50vw;
}

.slogan_banderole {
  position: relative;
  display: flex;
  justify-content: center;
}

#banderole {
  min-width: 10vw;
}

.slogan {
  position: absolute;
  top: 0;
  left: 25%;
  margin-top: 15px;
  font-size: 14px;
  font-weight: 800;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#bg_deco {
  width: 100%;
  z-index: -10;
  position: absolute;
  top: 135vh;
  left: 0;
}

/*Données*/
div.dt-layout-row {
  padding-top: 30px;
}

div.dt-container .dt-input {
  background-color: var(--background-color) !important;
  border: solid 1.5px var(--accent-color) !important;
}

div.dt-container .dt-paging .dt-paging-button:hover {
  background: var(--background-button);
  border: none;
  color: var(--text-color);
}

div.dt-container .dt-paging .dt-paging-button.disabled,
div.dt-container .dt-paging .dt-paging-button.disabled:hover,
div.dt-container .dt-paging .dt-paging-button.disabled:active {
  color: rgb(112, 112, 112) !important;
}

table.dataTable > thead > tr > th,
table.dataTable > thead > tr > td,
div.dt-container.dt-empty-footer tbody > tr:last-child > * {
  border-bottom: 1px solid var(--accent-color);
}

div.dt-container.dt-empty-footer tbody > tr:last-child > * {
  padding-bottom: 3vh;
}

table.dataTable > tbody > tr:first-child > * {
  padding-top: 3vh;
}

table.dataTable > tbody > tr > * {
  border: 1px solid var(--button-hover-background);
}

p.txt-donnees {
  min-width: 100%;
}

div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current:hover {
  background-color: var(--background-color);
  border-radius: 20%;
  border: 1px solid var(--accent-color);
  box-shadow: var(--shadow) !important;
}

.dt-buttons .dt-button {
  background-color: var(--background-button);
  border: 1px solid var(--accent-color);
  border-radius: 5px;
  padding: 5px 10px;
  margin: 20px 5px;
  transition: all 0.3s ease;
}

.dt-paging-button,
.dt-paging-button:hover {
  border-radius: 10px !important;
  box-shadow: none !important;
}

.dt-buttons .dt-button:hover {
  background-color: var(--background-color);
  border-color: var(--accent-color);
}

.dt-search {
  float: right;
}

.dt-button-info {
  background-color: var(--background-color);
  color: var(--text-color);
  border: none;
  border-radius: 15px;
  padding: 8px 15px;
  margin: 5px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  box-shadow: var(--shadow);
}

table.dataTable tbody tr:hover {
  background-color: var(--background-button);
}

table.dataTable tbody tr {
  transition: all 0.3s ease;
}

/*Contact*/
#ps {
  font-size: 10px;
  font-style: italic;
  margin-top: 20px;
  margin-bottom: 60px;
}

form {
  width: 350px;
  font-family: "Bebas Neue", serif;
  font-size: 20px;
  background-color: #029b9b33;
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin: 0 auto;
}

#en-tete {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

label.form-label {
  display: block;
  margin-top: 10px;
  text-transform: uppercase;
}

input.form-input,
textarea {
  padding: 7px;
}

input.form-input,
textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  background-color: var(--background-color);
  border: 2px solid rgba(0, 255, 255, 0.285);
  border-radius: 5px;
  color: var(--text-color);
  font-family: "Raleway", serif;
  font-size: 14px;
}

input.form-input {
  height: 30px;
}

textarea {
  height: 60px;
  margin-bottom: 20px;
  resize: vertical;
}

input.form-input:focus,
textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 5px var(--accent-color);
  outline: none;
}

input[type="submit"] {
  font-family: "Bebas Neue", serif;
  font-size: 20px;
  background-color: transparent;
  border: 2px solid var(--accent-color);
  color: var(--text-color);
  padding: 8px;
  border-radius: 5px;
  cursor: pointer;
  height: auto;
  width: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

input[type="submit"]:hover {
  font-weight: 500;
  border: 2px solid var(--accent-color);
  background-color: var(--background-button);
  box-shadow: 0 10px 12px rgba(0, 0, 0, 0.5);
}

input[type="radio"] {
  margin-left: 15px;
  appearance: none;
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="radio"]:checked {
  background-color: var(--accent-color);
}

input[type="radio"]:hover {
  box-shadow: 0 0 5px var(--accent-color);
}

::placeholder {
  font-family: "Raleway", serif;
  font-size: 12px;
  font-style: italic;
  color: rgb(197, 197, 197);
  padding: 7px;
}

.popover-success {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  border: 2px solid rgb(0, 255, 89);
  background-color: #2b2a2af8;
  color: var(--text-color);
  text-align: center;
  padding: 20px;
  z-index: 20;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.popover-fail {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  border: 2px solid rgb(216, 21, 3);
  background-color: #2b2a2af8;
  color: var(--text-color);
  text-align: center;
  padding: 20px;
  z-index: 20;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

button {
  margin-top: 10px;
  color: var(--text-color);
  border-radius: 10px;
  padding: 10px;
  border: 2px solid var(--accent-color);
  background-color: #029b9b33;
  box-shadow: 0 10px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

button:hover {
  background-color: rgb(0, 104, 104);
  box-shadow: 0 15px 18px rgba(0, 0, 0, 0.5);
}

/*Galerie*/
.upload-input {
  display: flex;
  justify-content: center;
  padding: 5px 10px;
  font-family: "Raleway", serif;
  font-size: 14px;
  color: var(--text-color);
  background-color: var(--background-button);
  border: 2px solid rgb(9, 116, 116);
  border-radius: 5px;
  cursor: pointer;
  margin: 20px auto;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.masonry-container {
  column-count: 3;
  column-gap: 15px;
  margin-top: 40px;
}
.masonry-item {
  display: inline-block;
  width: 100%;
  padding: 5px 0;
  transition: all 0.3s ease;
}
.masonry-item img {
  display: block;
  width: 100%;
  filter: grayscale(50%);
  filter: contrast(-1.5);
  transition: all 0.7s ease;
}

.masonry-item img:hover {
  transform: scale(1.05);
  filter: grayscale(0%);
  filter: contrast(1);
}

/*Footer*/
footer {
  background-color: var(--background_hf);
}

.footer_first {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 0 10vw;
}

footer h6 {
  font-family: "Sedgwick Ave Display";
  font-size: 24px;
  color: var(--accent-color);
  margin-bottom: 1vh;
}

footer p {
  font-size: 14px;
  line-height: 1.5;
}

footer a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-color);
}

.text_footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1vw 1vw;
  box-sizing: border-box;
  border-top: 1px solid grey;
}

.text_footer p {
  margin: 0;
  color: var(--text-color);
}

i {
  font-size: 30px;
  padding: 20px;
  transition: all 0.3s ease;
}

i:hover {
  scale: 1.3;
}

.text_footer a {
  transition: all 0.3s ease;
}

.text_footer a:hover {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
}

/*Animations*/
h1 {
  animation: vibrate 0.6s ease-in-out infinite alternate;
}

@keyframes vibrate {
  0% {
    transform: translateX(0px) translateY(0px);
  }
  100% {
    transform: translateX(2px) translateY(1px);
  }
}

#star {
  animation: spin 6s linear infinite;
  transform-origin: center;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(45deg);
  }
}

#magazine_1 {
  animation: hello0 1s 0.1s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes hello0 {
  0% {
    transform: translate(-50%, -50%) rotate(25deg) scale(1);
  }
  100% {
    transform: translate(-50%, -50%) rotate(30deg) scale(1.03);
  }
}

.slogan_banderole {
  animation: here 1s ease-in-out infinite alternate;
}

@keyframes here {
  0% {
    transform: translateY(0px) scale(1);
  }
  100% {
    transform: translateY(5px) scale(1.01);
  }
}

@keyframes hello {
  0% {
    transform: translateX(50%) translateY(120%) rotate(-5deg);
  }
  100% {
    transform: translateX(50%) translateY(120%) rotate(0deg);
  }
}

@keyframes hello2 {
  0% {
    transform: translateY(50%) rotate(8deg);
  }
  100% {
    transform: translateY(50%) rotate(4deg);
  }
}

#magazine_2 {
  animation: hello3 0.8s ease-in-out infinite alternate;
  transform: translateX(40px) translateY(-80px) rotate(-20deg);
}

@keyframes hello3 {
  0% {
    transform: translateX(40px) translateY(-80px) rotate(-20deg);
  }
  100% {
    transform: translateX(40px) translateY(-80px) rotate(-15deg);
  }
}

/*Partenaires*/
.partenaire {
  display: inline-block;
  vertical-align: top;
  width: 30%;
  margin: 1%;
  transition: all 0.3s ease;
}

.partenaire .bg-img {
  position: relative;
  width: 100%;
  height: 700px;
  background-size: cover;
  background-position: center;
}

.partenaire .info {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.bg-img {
  background-repeat: no-repeat;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.partenaire-photo {
  width: 233px;
  height: 233px;
  display: block;
  margin: 0 auto;
  padding: 60px 0;
}

.team-name {
  text-align: center;
  margin-top: 1px;
  background-color: #2b2a2a;
  border-radius: 15px;
  padding: 10px;
}

.info {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  width: 100%;
  padding: 10px;
  margin-bottom: 70px;
  box-sizing: border-box;
}

.team-link {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--background-color);
  border-radius: 20px;
  color: var(--accent-color);
  margin: 10px;
}

.partenaire:hover {
  transform: scale(1.1);
  z-index: 10;
}

.pdf-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin: 20px 0;
}

.pdf-item {
  background-color: var(--background-color);
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  flex: 1;
}

.pdf-item h3 {
  font-size: 24px;
  color: var(--accent-color);
  margin: 30px 0;
}

.pdf-item embed {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 10px;
}

.team-subject {
  font-size: 18px;
  display: flex;
  justify-content: center;
}

.button {
  --width: 125px;
  --height: 35px;
  --tooltip-height: 35px;
  --tooltip-width: 90px;
  --gap-between-tooltip-to-button: 18px;
  --button-color: #1163ff;
  --tooltip-color: #fff;
  width: var(--width);
  height: var(--height);
  background: var(--button-color);
  position: relative;
  text-align: center;
  border-radius: 0.45em;
  font-family: "Arial";
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.button::before {
  position: absolute;
  content: attr(data-tooltip);
  width: var(--tooltip-width);
  height: var(--tooltip-height);
  background-color: var(--tooltip-color);
  font-size: 0.9rem;
  color: #111;
  border-radius: 0.25em;
  line-height: var(--tooltip-height);
  bottom: calc(var(--height) + var(--gap-between-tooltip-to-button) + 10px);
  left: calc(50% - var(--tooltip-width) / 2);
}

.button::after {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-top-color: var(--tooltip-color);
  left: calc(50% - 10px);
  bottom: calc(100% + var(--gap-between-tooltip-to-button) - 10px);
}

.button::after,
.button::before {
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s;
}

.text {
  display: flex;
  align-items: center;
  justify-content: center;
}

.button-wrapper,
.text,
.icon {
  overflow: hidden;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  color: #fff;
}

.text {
  top: 0;
}

.text,
.icon {
  transition: top 0.5s;
}

.icon {
  color: #fff;
  top: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon svg {
  width: 24px;
  height: 24px;
}

.button:hover {
  background: #6c18ff;
}

.button:hover .text {
  top: -100%;
}

.button:hover .icon {
  top: 0;
}

.button:hover:before,
.button:hover:after {
  opacity: 1;
  visibility: visible;
}

.button:hover:after {
  bottom: calc(var(--height) + var(--gap-between-tooltip-to-button) - 20px);
}

.button:hover:before {
  bottom: calc(var(--height) + var(--gap-between-tooltip-to-button));
}

/* Crédits */
.credits-content {
  margin-bottom: 20px;
}

.credits-content a {
  font-size: 14px;
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.credits-content a:hover {
  color: var(--text-color);
}
