#mentionsLegales {
  text-align: center;
  margin: 0 auto;
  width:100vw;
}

 footer {
  width: 100%;
  margin-top: 2rem;
}

.navfooter {
  display: flex;
  justify-content: center;
  padding: 1rem;
  border-top: 1px solid rgba(0,0,0,0.15);
}

.navfooter ul {
  list-style: none;
  text-align: center;
  margin: 0;
  padding: 0;
}

/* Au lieu de cibler seulement .navfooter a, on style aussi le bouton */
.navfooter .modalButton {
  appearance: none;
  -webkit-appearance: none;

  background: transparent;
  border: 0;
  padding: 0;

  font: inherit;
  color: inherit;
  font-weight: bold;
  cursor: pointer;
}

.navfooter .modalButton:hover {
  text-decoration: underline;
}

/* Focus clavier visible (accessibilité) */
.navfooter .modalButton:focus-visible {
  outline: 3px solid var(--third-bg-color);
  outline-offset: 4px;
  border-radius: 6px;
}

.move-footer {
  display: none; 
}

/* Back to Top Button – CSP safe */
.returnTop {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 9999;

  display: none;          /* contrôlé par JS */
  width: 40px;
  height: 40px;

  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.returnTop img {
  width: 40px;
  height: 40px;
  display: block;
  max-width: 100%;
  max-height: 100%;
  opacity: 0.5;
}

.returnTop:hover img {
  opacity: 1;
}

.returnTop:focus {
  outline: none; /* évite le vieux focus moche */
}

.returnTop:focus-visible {
  outline: 3px solid var(--third-bg-color);
  outline-offset: 5px;
  border-radius: 10px;
}



 /* https://www.w3schools.com/howto/howto_css_modals.asp */
 #mentionsLegales {
    margin-left: auto;
    margin-right: auto;
    width: 60%;
 }

 .modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  inset: 0;
  z-index: 9000; 
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal.is-open {
  display: block;
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 94%;
}

.modal-content h3 {
  text-align: center;
}

.modal-content ul{
  flex-direction: column;
}

.modal-content ul li {
  display: list-item;
  list-style-type: disc;
  margin-left: 3rem;
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 2rem;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}