@font-face {
  font-family: "Paris2024";
  src: url("../fonts/paris.ttf");
}

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

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes slideFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideFromBottom {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideFromTop {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes glow {
  0% {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
    color: rgb(255, 255, 255);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
    color: rgba(255, 255, 255, 0.9);
  }
  100% {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
    color: rgb(255, 255, 255);
  }
}

.header-link-right {
  animation: slideFromRight 0.7s ease-in-out forwards;
}
.header-link-left {
  animation: slideFromLeft 0.7s ease-in-out forwards;
}

body {
  background-image: url("../images/olympic-illustrations.jpg");
  background-color: rgba(0, 0, 0, 0.5); /* Adjust the opacity here */
  font-size: 16px;
  color: black;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Paris2024";
  background-repeat: no-repeat;
  background-size: cover;
  overflow-x: hidden;
  transition: max-height 0.3s, opacity 0.3s, height 0.3s, min-height 0.3s;
  scroll-behavior: smooth;
  text-align: justify;
  word-break: keep-all;
  transition: height 1s ease;
}

html {
  font-family: "Paris2024";
  font-size: 1rem;
}

.header {
  position: sticky;
  top: 0;
  background-color: #eee;
  display: flex;
  justify-content: space-around;
  width: 100vw;
  align-items: center;
  border-bottom: 2px solid #ccc;
  box-sizing: border-box;
  z-index: 100;
}

.logo {
  width: 45px;
  height: auto;
  margin: 7px 7px;
  animation: bounce 0.5s ease-in-out 2;
}

.container {
  background-color: transparent;
  /* background-image: url("../images/olympic-illustrations.jpg"); */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1vh;
  flex-grow: 1;
  max-width: 100vw;
  margin: 0 auto;
  background-size: cover;
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards;
  position: relative;
  z-index: 1;
}

.container-site {
  flex-direction: column;
  min-width: 30vw;
  flex-grow: 1;
  padding: 20px;
  max-width: 50vw;
  background-color: #d9d9d9;
  margin: 0 auto;
  border-left: 2px solid #ccc;
  border-right: 2px solid #ccc;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3vh;
  transition: height 0.5s ease;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
.text-main {
  text-align: center;
  font-size: 2.3rem;
  color: rgb(0, 0, 0); /* Text color */
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9); /* Text shadow */
  background-color: rgba(0, 0, 0, 0.5); /* Background for better visibility */
  display: inline-block;
  padding: 5px 10px;
  border-radius: 5px;
  animation: glow 2s linear infinite;
}

.container-hero-text {
  font-size: 1.3rem;
  width: 70%;
  margin: 0 auto;
  opacity: 0;
}

.container-bottom-text {
  text-align: center;
  font-size: 2rem;
  color: rgb(0, 0, 0); /* Text color */
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9); /* Text shadow */
  background-color: rgba(0, 0, 0, 0.5); /* Background for better visibility */
  display: inline-block;
  padding: 5px 10px;
  border-radius: 5px;
  animation: glow 2s linear infinite;
}
.header-link {
  text-decoration: none;
  color: black;
  font-size: 1.5rem;
  font-weight: 550;
  display: flex;
  align-items: center;
  transition: transform 0.2s;
  text-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.region2 {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 30px;
  height: 30px;
  background-color: rgba(0, 255, 0, 0.5);
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: #eee;
  border-top: 2px solid #ccc;
  margin: 0 auto;
  padding: 20px;
  margin-top: auto;
  box-sizing: border-box;
  width: 100vw;
}

.footer-body {
  transform: translateY(100%);
  animation: slideFromBottom 0.7s ease-in-out forwards;
  width: 70%;
}

.header-body {
  display: flex;
  justify-content: space-between;
  width: 70%;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
  font-size: large;
}
a {
  text-decoration: none;
  color: black;
}

.footer-socialmedia {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: large;
}

.footer-socialmedia-text {
  font-size: 1.2rem;
  font-weight: bold;
}

.socialmedia {
  width: 20%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.socialmedia-icon {
  width: 35px;
  height: auto;
  z-index: -1;
}

.social-media p {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

.footer-logo {
  width: 3%;
  height: auto;
}

.language-selector {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1vw;
}

.language-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.language-flag {
  width: 2vw;
  height: auto;
}

@media (max-width: 768px) {
  .header {
    background-color: #eee;
    display: flex;
    padding: 10px;
    max-width: 100%;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
  }

  .language-flag {
    width: 35px;
    height: auto;
  }

  .language-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4vw;
  }

  .logo {
    width: 35px;
    height: auto;
    margin: 0 10px;
    transition: all 0.2s;
  }

  .header-body {
    display: flex;
    justify-content: space-around;
    width: 100%;
  }

  .container-text {
    width: 100%;
  }

  h1 {
    font-size: 1.2rem;
  }

  .container-hero-text {
    font-size: 0.9rem;
    width: fit-content;
    margin-bottom: 15px;
    opacity: 0;
  }

  .container-bottom-text {
    text-align: center;
    font-size: 1.1rem;
    color: rgb(0, 0, 0); /* Text color */
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9); /* Text shadow */
    background-color: rgba(0, 0, 0, 0.5); /* Background for better visibility */
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    animation: glow 2s linear infinite;
  }

  .container {
    width: fit-content;
    min-height: 80vh;
  }

  .container-site {
    flex-direction: column;
    flex-grow: 1;
    min-height: 70vh;
    padding: 20px;
    min-width: 65vw;
    background-color: #d9d9d9;
    margin: 0 auto;
    background-size: cover;
    border-left: 2px solid #ccc;
    border-right: 2px solid #ccc;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 3vh;
  }

  .footer-logo {
    width: 13%;
    margin-bottom: 20px;
  }

  .footer-socialmedia-text {
    display: none;
  }

  .footer-socialmedia {
    align-items: center;
    justify-content: center;
    padding-bottom: 20px;
  }

  .footer-main {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 450;
  }

  .footer-main a {
    margin-bottom: 1vh;
  }

  .socialmedia {
    width: 80%;
    justify-content: center;
    justify-content: space-between;
  }

  .socialmedia-icon {
    width: 35px;
    height: auto;
  }

  .header-link {
    font-size: 1rem;
  }

  .language-selector {
    margin-top: 10px;
  }

  .epreuve-ville-text {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
  }

  .img-epreuve {
    width: 35px;
    height: auto;
  }

  .text-epreuve {
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 10px;
  }

  .text-main {
    margin-top: 3vh;
    text-align: center;
    font-size: 1.2rem;
    color: rgb(0, 0, 0); /* Text color */
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9); /* Text shadow */
    background-color: rgba(0, 0, 0, 0.5); /* Background for better visibility */
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    animation: glow 2s linear infinite;
  }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1100px) {
  .footer-body {
    width: 100%;
  }

  .footer-main {
    font-size: 1rem;
  }

  .footer-logo {
    width: 4vw;
  }
}

/* ptite animation oklm */

.footer-a {
  position: relative;
  color: #000;
  text-decoration: none;
}

.footer-a:hover {
  color: #000;
}

.footer-a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.1em;
  background-color: rgb(0, 0, 0);
  opacity: 0;
  transition: opacity 300ms, transform 300ms;
}

.footer-a:hover::after,
.footer-a:focus::after {
  opacity: 1;
  transform: translate3d(0, 0.2em, 0);
}
