/* Modale langue – fond */
#lang-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Contenu */
#lang-modal {
  background: #fff;
  max-width: 420px;
  width: 90%;
  border-radius: 14px;
  padding: 1.8rem 1.6rem 1.4rem;
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
  text-align: center;
  position: relative;
  font-family: inherit;
}

#lang-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

#lang-modal p {
  margin-bottom: 1.1rem;
  line-height: 1.4;
}

.lang-modal-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.lang-btn {
  border: none;
  cursor: pointer;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 500;
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.lang-btn.fr {
  background: #ffffff;
  border: 1px solid #e3e3e3;
}

.lang-btn.en {
  background: #1f2937;
  color: #fff;
}

.lang-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* bouton fermer (croix) */
#lang-modal-close {
  position: absolute;
  top: 7px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: #999;
}

@media (max-width: 480px) {
  #lang-modal {
    padding: 1.4rem 1.2rem;
  }
  .lang-modal-buttons {
    flex-direction: column;
  }
}
