.charte {
  position: fixed;
  right: 10px;
  bottom: 10px;
  padding: 10px;
  background: rgba(221, 221, 221, 0.5);
  cursor: pointer;
  transition: transform 0.3s, background-color 0.3s;
}
.charte:hover {
  transform: scale(1.05);
  background-color: rgba(245, 245, 245, 0.9);
}
.attribution-button {
  position: fixed;
  left: 10px;
  bottom: 10px;
  outline: none;
  background-color: rgba(255, 255, 255, 0.2);
  color: rgb(0, 0, 0);
  padding: 2px 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  text-decoration: none;
}
.attribution-button:hover {
  background-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}
.attribution-button:focus {
  outline: none;
}
.attribution-text {
  display: none;
  position: fixed;
  bottom: 35px;
  left: 15px;
  background-color: rgba(255, 255, 255, 0.2);
  color: rgb(0, 0, 0);
  padding: 2px;
  border-radius: 5px;
  z-index: 9999;
}
.attribution-text a {
  color: rgb(0, 0, 0);
}
.developer-credit {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 5px 0;
}
.credit-text {
  font-size: 12px;
  color: #f0a400;
  background-color: rgba(0, 0, 0, 0.3); /* Intensité réduite */
  padding: 2px 10px;
  border-radius: 5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Intensité réduite */
}
body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: url('../image_fond_svg_max_qualite.svg') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Roboto', sans-serif;
  outline: none;
}
@media (min-width: 1024px) {
  body,
  html {
    background-position: center 10%;
  }
}
.navbar {
  display: flex;
  justify-content: space-around;
  position: fixed;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 0;
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.2);
  transition: background-color 0.5s ease;
}
.navbar:hover {
  background: rgba(255, 255, 255, 0.4);
}
.navbar div {
  flex: 1;
  text-align: center;
  position: relative;
  margin: 0 10px;
  padding: 20px 0;
  cursor: pointer;
  transition: transform 0.3s, background-color 0.3s;
  background: rgba(255, 255, 255, 0.2);
}
.navbar div:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.525);
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(255, 255, 255, 0.9);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.navbar div:hover .dropdown-content {
  display: block;
  opacity: 1;
}
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s;
}
.dropdown-content a:hover {
  background-color: rgba(232, 232, 232, 0.9);
}
.navbar {
  display: flex;
  justify-content: space-around;
  position: fixed;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  background: rgba(255, 255, 255, 0.3);
  padding: 10px 0;
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.2);
  transition: box-shadow 1s ease;
  color: rgb(0, 0, 0);
  transition: background-color 0.5s ease;
}
.navbar div {
  flex: 1;
  text-align: center;
  position: relative;
  margin: 0 10px;
  padding: 20px 0;
  cursor: pointer;
  transition: transform 0.3s, background-color 0.3s;
  transition: transform 1s ease;
}
.navbar .dropdown {
  position: relative;
  display: inline-block;
}
.navbar .dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(255, 255, 255, 0.2);
  min-width: 160px;
  left: 30px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  padding: 12px 16px;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
  transform: translateY(-20px);
}
.navbar div:hover .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.navbar > div:nth-of-type(2),
.navbar > div:nth-of-type(4) {
  transition: none;
}
.navbar > div:nth-of-type(2),
.navbar > div:nth-of-type(4) {
  position: relative;
}
.navbar > div:nth-of-type(2),
.navbar > div:nth-of-type(4) {
  transition: transform 0.5s ease;
}
.navbar > div:nth-of-type(2):hover,
.navbar > div:nth-of-type(4):hover {
  transform: scale(1.06);
}
div:nth-child(2):hover,
.navbar div:nth-child(4):hover {
  opacity: 0.5;
}
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: opacity 0.5s ease;
  transition: background-color 1s;
}
.navbar .dropdown:hover {
  transform: translateY(-80px);
}
.navbar .dropdown:hover {
  transform: translateY(-120px);
}
.navbar .dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 1s;
  transition: background-color 0.3s;
  font-size: 16px;
}
.navbar .dropdown-content a:hover {
  background-color: rgba(232, 232, 232, 0.9);
}
/* Mobile specific styles */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  body,
  html {
    background: url('../image_mobile_svg_max_qualite.svg') no-repeat center center fixed;
    background-size: cover;
  }
  .mobile-only {
    display: block !important;
    margin-top: 557px; /* Add margin to center vertically */
  }
  .mobile-btn {
    display: block;
    background: rgba(255, 255, 255, 0.8);
    margin: 10px auto;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    width: 80%;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  .mobile-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
  }
  .mobile-dropdown-content {
    display: none;
    background: rgba(255, 255, 255, 0.9);
    margin: 5px auto;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    width: 80%;
  }
  .mobile-dropdown-content a {
    display: block;
    margin: 5px 0;
    padding: 5px;
    background: rgba(200, 200, 200, 0.8);
    border-radius: 3px;
    transition: background-color 0.3s ease;
    color: black;
    text-decoration: none;
  }
  .mobile-dropdown-content a:hover {
    background-color: rgba(200, 200, 200, 1);
  }
  .mobile-btn.active + .mobile-dropdown-content {
    display: block;
  }
}
/* Règle spécifique pour le texte en mobile */
@media only screen and (max-width: 768px) {
  .developer-credit.mobile-only {
    position: fixed;
    bottom: 57px;
    width: 100%;
    text-align: center;
    padding: 5px 0;
  }
}