/* ===============================
   MODAL SYSTEM - Styles communs pour TOUTES les pages
   Fichier unifié pour : table.html, club.html, index.html
   =============================== */

/* Prévenir le scroll du body quand une modale est ouverte */
body[style*="overflow: hidden"] {
  overflow: hidden;
}

/* IMPORTANT: le scroll principal est sur #main-container (pas sur body). */
body[style*="overflow: hidden"] #main-container {
  overflow: hidden;
}

/* ===============================
   MODALE CGU (Conditions d'Utilisation)
   =============================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

#terms-modal.modal-overlay {
  position: absolute;
  inset: 0.5rem;
  width: auto;
  height: auto;
  border-radius: 0.6rem;
}

#terms-modal {
  z-index: 100000;
}

.terms-modal-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--custom-white);
  color: #333;
  border-radius: 0.6rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.terms-modal-content .modal-header {
  flex-shrink: 0;
  padding: 1.5rem;
  border-bottom: 2px solid #333;
  background-color: var(--custom-white);
  border-radius: 8px 8px 0 0;
}

.terms-modal-content .modal-header h2 {
  color: #333;
  margin: 0;
}

.terms-modal-content .modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 0;
  background-color: var(--custom-white);
}

.terms-modal-content iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: white;
}

.terms-scroll-content {
  padding: 1.5rem;
  background-color: var(--custom-white);
  color: #333;
}

.terms-scroll-content section {
  margin-bottom: 2rem;
}

.terms-scroll-content h3 {
  color: var(--custom-green);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.terms-scroll-content p,
.terms-scroll-content li {
  line-height: 1.6;
  margin-bottom: 0.5rem;
  color: #333;
}

.terms-scroll-content ul {
  padding-left: 2rem;
  list-style-type: disc;
}

.terms-scroll-content li {
  list-style-type: disc;
}

.terms-warning {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}

.scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--gradient-green);
  padding: 1.25rem 1rem 0.75rem;
  text-align: center;
  font-weight: bold;
  color: #444;
  pointer-events: none;
  z-index: 2;
}

.terms-modal-content .modal-footer {
  flex-shrink: 0;
  padding: 1rem 1.5rem;
  border-top: 2px solid #333;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

#terms-accept-btn,
#terms-decline-btn {
  flex: 1;
  color: var(--custom-white);
}

#terms-accept-btn:hover,
#terms-decline-btn:hover {
  flex: 1;
  color: var(--custom-white);
  transform: scaleX(0.992) scaleY(0.97);
}

#terms-accept-btn:disabled {
  opacity: 1;
  cursor: not-allowed;
  color: var(--custom-white-hover);
  background-image: var(--gradient-green-hover);
  transform: none;
}

#terms-decline-btn {
  background-color: var(--custom-red);
  background-image: var(--gradient-red);
}

#terms-decline-btn:not(:disabled):hover {
  background-color: var(--custom-red-hover);
  background-image: var(--gradient-red-hover);
}

/* Style pour le bouton qui remplace la checkbox */
.terms-checkbox {
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terms-checkbox .btn-link {
  background: none;
  color: var(--custom-green);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  text-shadow: none;
  gap: 0.35rem;
  /* transition:
    transform 0.15s ease,
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease; */
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  border: none;
  border-radius: 0.35rem;
  letter-spacing: -0.01em;
}

.terms-checkbox .btn-link:hover {
  color: var(--custom-green);
  background: none;
  transform: scale(0.999);
}

#terms-accepted-indicator {
  font-weight: 600;
}

/* ===============================
   LEGAL DOCUMENTS (terms & privacy in iframes)
   =============================== */

body.legal-doc {
  height: 100%;
  margin: 0;
  padding: 20px;
  overflow-y: auto;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: var(--custom-white, #f5f5f5);
  color: #333;
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.legal-container h1 {
  color: #333;
  border-bottom: 3px solid var(--custom-green, #006400);
  padding-bottom: 10px;
  text-align: center;
  margin-top: 0;
}

.legal-container h2 {
  color: var(--custom-green, #006400);
  margin-top: 1.6rem;
  margin-bottom: 0.7rem;
}

.legal-site-name {
  text-align: center;
  font-weight: bold;
  margin-bottom: 1.6rem;
  color: #666;
}

.legal-container section {
  margin-bottom: 1.4rem;
}

.legal-warning {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1rem;
  margin: 1rem 0;
  font-weight: bold;
  color: #333;
}

.legal-container ul {
  margin: 0.4rem 0 0.4rem 1.25rem;
  padding-left: 1.25rem;
  list-style-type: disc;
}

.legal-container li {
  margin-bottom: 0.35rem;
  list-style-type: disc;
  color: #333;
  line-height: 1.5;
}

.legal-divider {
  margin: 2.4rem 0;
  border: 0;
  border-top: 2px solid #ddd;
}

.legal-subtitle {
  text-align: center;
  font-style: italic;
  color: #666;
  margin-bottom: 1.6rem;
}

/* ===============================
   SYSTÈME DE LABELS FLOTTANTS ET VALIDATION
   Utilisé dans toutes les modales et formulaires
   =============================== */

/* Conteneur pour chaque champ avec label flottant */
.input-content {
  position: relative;
  margin-bottom: 1.2rem;
}

.input-content:first-of-type {
  margin-top: 0.5rem;
}

.input-content input {
  width: 100%;
  padding: clamp(0.5rem, 1dvh, 0.7rem) clamp(0.3rem, 0.8dvw, 0.5rem);
  font-size: clamp(0.9rem, 1.5dvw, 1.1rem);
  font-family: "cooper", Georgia, "Times New Roman", Times, serif;
  font-weight: 600;
  border: 2px solid #333;
  border-radius: 0.4rem;
  background-color: rgb(245, 245, 245);
  color: #000;
  transition: border-color 0.3s ease;
  margin-bottom: 0;
}

.input-content input:focus {
  outline: none;
  border-color: var(--custom-green);
  box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.2);
}

/* Animation invisible pour détecter l'autofill via JavaScript */
@keyframes onAutoFillStart {
  from {
    /**/
  }
  to {
    /**/
  }
}

@keyframes onAutoFillCancel {
  from {
    /**/
  }
  to {
    /**/
  }
}

.input-content input:-webkit-autofill {
  /* Déclenche une animation pour que JS puisse détecter l'autofill */
  animation-name: onAutoFillStart;
  animation-duration: 0.001s;
}

.input-content input:not(:-webkit-autofill) {
  /* Déclenche quand autofill est annulé */
  animation-name: onAutoFillCancel;
  animation-duration: 0.001s;
}

.input-content label {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  font-family: "cooper", Georgia, "Times New Roman", Times, serif;
  font-weight: 600;
  font-size: clamp(0.9rem, 1.5dvw, 1.1rem);
  color: #666;
  pointer-events: none;
  transition: all 0.3s ease;
  background: transparent;
  padding: 0 0.2rem;
  white-space: nowrap;
}

.input-content label.active {
  top: 0;
  left: 0.7rem;
  transform: translateY(-50%);
  max-width: 65%;
  font-size: clamp(0.75rem, 1.2dvw, 0.9rem);
  color: var(--custom-white);
  background: var(--gradient-green);
  padding: 0.1rem 0.4rem;
  border-radius: 0.3rem;
  text-shadow:
    1px 1px 0px black,
    -1px 1px 0px black,
    1px -1px 0px black,
    -1px -1px 0px black;
}

/* Autofill : appliquer le style flottant sans interaction */
.input-content input:-webkit-autofill + label,
.input-content input:-moz-autofill + label,
.input-content input:autofill + label {
  top: 0;
  left: 0.7rem;
  transform: translateY(-50%);
  max-width: 65%;
  font-size: clamp(0.75rem, 1.2dvw, 0.9rem);
  color: var(--custom-white);
  background: var(--gradient-green);
  padding: 0.1rem 0.4rem;
  border-radius: 0.3rem;
  text-shadow:
    1px 1px 0px black,
    -1px 1px 0px black,
    1px -1px 0px black,
    -1px -1px 0px black;
}

/* Messages d'erreur individuels par champ (miroir du label, côté droit) */
.field-error {
  position: absolute;
  top: 0;
  right: 0.7rem;
  transform: translateY(-50%);
  width: fit-content;
  max-width: 45%;
  font-family: "cooper", Georgia, "Times New Roman", Times, serif;
  font-weight: 600;
  font-size: clamp(0.7rem, 1.1dvw, 0.85rem);
  color: var(--custom-white);
  background: var(--gradient-red);
  padding: 0.1rem 0.4rem;
  border-radius: 0.3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  text-shadow:
    1px 1px 0px black,
    -1px 1px 0px black,
    1px -1px 0px black,
    -1px -1px 0px black;
  z-index: 10;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.field-error:not(:empty) {
  opacity: 1;
}

/* Message d'erreur global sous le dernier champ (centré sur bordure basse) */
.form-error-bottom {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  width: fit-content;
  max-width: 90%;
  font-family: "cooper", Georgia, "Times New Roman", Times, serif;
  font-weight: 600;
  font-size: clamp(0.75rem, 1.2dvw, 0.9rem);
  color: var(--custom-white);
  background: var(--gradient-red);
  padding: 0.15rem 0.5rem;
  border-radius: 0.3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  text-shadow:
    1px 1px 0px black,
    -1px 1px 0px black,
    1px -1px 0px black,
    -1px -1px 0px black;
  z-index: 10;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.form-error-bottom:not(:empty) {
  opacity: 1;
}

/* ===============================
   TOASTS - Notifications non-bloquantes
   =============================== */

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  min-width: 250px;
  max-width: 400px;
  padding: 1rem 1.5rem;
  border: 2px solid #000;
  border-radius: 0.5rem;
  color: var(--custom-white);
  font-family: "cooper", Georgia, "Times New Roman", Times, serif;
  font-weight: 600;
  font-size: clamp(0.9rem, 1.5dvw, 1rem);
  box-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.3),
    -2px 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
  text-shadow:
    1px 1px 0px black,
    -1px 1px 0px black,
    1px -1px 0px black,
    -1px -1px 0px black;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-success {
  background: var(--gradient-green);
}

.toast-error {
  background: var(--gradient-red);
}

.toast-info {
  background: var(--gradient-green);
}

/* Mobile responsive */
@media (max-width: 600px) {
  .toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
    min-width: 0;
  }
}

/* ===============================
   BANNIÈRE D'ERREUR RÉSEAU
   =============================== */

.error-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 2rem;
  background: var(--gradient-red);
  color: var(--custom-white);
  font-family: "cooper", Georgia, "Times New Roman", Times, serif;
  font-weight: 600;
  font-size: clamp(0.9rem, 1.5dvw, 1rem);
  border-bottom: 3px solid #000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-shadow:
    1px 1px 0px black,
    -1px 1px 0px black,
    1px -1px 0px black,
    -1px -1px 0px black;
  animation: slideDown 0.3s ease;
}

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

.error-banner-content {
  flex: 1;
}

.error-banner-actions {
  display: flex;
  gap: 0.5rem;
}

.error-banner button {
  padding: 0.4rem 0.8rem;
  background-color: var(--custom-white);
  color: #000;
  border: 2px solid #000;
  border-radius: 0.3rem;
  cursor: pointer;
  font-family: "cooper", Georgia, "Times New Roman", Times, serif;
  font-weight: 600;
  font-size: 0.9rem;
}

.error-banner button:hover {
  background-color: #ddd;
  transform: scale(0.98);
}

.error-banner .btn-close {
  background-color: transparent;
  color: var(--custom-white);
  border: none;
  font-size: 1.5rem;
  padding: 0 0.5rem;
}

/* ===============================
   MODALE D'ERREUR CRITIQUE
   =============================== */

.modal-critical-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

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

.modal-critical {
  background: var(--gradient-red);
  border: 3px solid rgb(100, 0, 0);
  border-radius: 0.5rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  color: var(--custom-white);
  font-family: "cooper", Georgia, "Times New Roman", Times, serif;
  text-align: center;
  box-shadow:
    0 0 30px rgba(100, 0, 0, 0.5),
    inset 0 0 20px rgba(100, 0, 0, 0.2);
}

.modal-critical h2 {
  font-size: clamp(1.3rem, 2.5dvw, 1.8rem);
  font-weight: 700;
  color: rgb(255, 100, 100);
  margin: 0 0 1rem 0;
  text-shadow:
    2px 2px 0px black,
    -2px 2px 0px black,
    2px -2px 0px black,
    -2px -2px 0px black;
}

.modal-critical p {
  font-size: clamp(0.95rem, 1.6dvw, 1.1rem);
  font-weight: 600;
  margin: 0 0 2rem 0;
  line-height: 1.5;
  text-shadow:
    1px 1px 0px black,
    -1px 1px 0px black,
    1px -1px 0px black,
    -1px -1px 0px black;
}

.modal-critical button {
  padding: 0.8rem 2rem;
  background: var(--gradient-red);
  color: var(--custom-white);
  border: 2px solid #000;
  border-radius: 0.3rem;
  cursor: pointer;
  font-family: "cooper", Georgia, "Times New Roman", Times, serif;
  font-weight: 600;
  font-size: clamp(1rem, 1.8dvw, 1.2rem);
  text-shadow:
    1px 1px 0px black,
    -1px 1px 0px black,
    1px -1px 0px black,
    -1px -1px 0px black;
}

.modal-critical button:hover {
  background: var(--gradient-red-hover);
  transform: scale(1.05);
}

/* ===============================
   CONTENEURS MODAUX
   =============================== */

/* Conteneur modal générique */
.form-container {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  width: min(340px, 90dvw);
  transform: translate(-50%, 0);
  background-color: var(--custom-white);
  padding: clamp(0.5rem, 1.2dvh, 0.7rem);
  border: 0.2rem solid #000000;
  border-radius: 0.4rem;
  box-shadow:
    1px 1px 0px rgb(100, 100, 100),
    -1px 1px 0px rgb(100, 100, 100),
    1px -1px 0px rgb(100, 100, 100),
    -1px -1px 0px rgb(100, 100, 100);
  z-index: 1000;
  font-family: "cooper", Georgia, "Times New Roman", Times, serif;
  font-weight: 600;
}

/* Formulaires dans les modals */
form {
  width: 100%;
  border-radius: 0.4rem;
}

form input {
  width: 100%;
  padding: clamp(0.35rem, 0.8dvh, 0.5rem);
  margin-bottom: 0.4rem;
  border: 1px solid grey;
  border-radius: 0.3rem;
  font-family: "cooper", Georgia, "Times New Roman", Times, serif;
  font-weight: 600;
}

form label {
  display: block;
  width: 100%;
  font-family: "cooper", Georgia, "Times New Roman", Times, serif;
  font-weight: 600;
}

form select {
  padding: 0.3rem;
  border: 2px solid black;
  border-radius: 0.3rem;
}

/* Messages d'erreur dans les formulaires */
.form-error {
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
  color: var(--custom-red);
}

.form-error:empty {
  display: none;
  border: 1px solid green;
}

.form-range:empty {
  display: none;
}

/* Rangées de formulaire (plusieurs champs sur une ligne) */
.form-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin-bottom: 10px;
}

/* Quand .input-content est dans .form-row, prendre toute la largeur disponible */
.form-row > .input-content {
  flex: 1;
  margin-bottom: 0;
}

.form-row > .input-content:first-of-type {
  margin-top: 0;
}

/* Groupe label + champ de formulaire */
.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group select,
.form-group input {
  width: 100%;
  margin-bottom: 0;
}

/* Conteneur pour les messages d'erreur sur toute la largeur */
.form-errors-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 5px;
  margin-bottom: 10px;
}

/* Conteneur de boutons dans les formulaires */
.form-btn-container {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.form-btn-container .btn-submit,
.form-btn-container .btn-cancel,
.modal-footer .btn-submit,
.modal-footer .btn-cancel {
  padding: clamp(0.25rem, 0.6dvh, 0.45rem) clamp(0.3rem, 0.8dvw, 0.5rem);
  width: 100%;
  font-family: "cooper", Georgia, "Times New Roman", Times, serif;
  font-weight: 800;
  font-size: clamp(0.9rem, 1.4dvw, 1.2rem);
  letter-spacing: -0.03em;
  text-shadow:
    1px 1px 0px black,
    -1px 1px 0px black,
    1px -1px 0px black,
    -1px -1px 0px black;
  border: 0.05rem solid #222;
  border-radius: 0.4rem;
}

/* Titres dans les modals */
h3 {
  margin: 0.3rem 0 0.6rem;
  font-family: "cooper", Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.1rem, 2.2dvw, 1.5rem);
  font-weight: 700;
  text-align: center;
}

h4 {
  font-size: clamp(0.95rem, 1.6dvw, 1.15rem);
  font-weight: 700;
  margin: 0.4rem 0 0.1rem;
}

/* Boutons dans les modals */
.form-btn-container .btn-submit,
.modal-footer .btn-submit {
  flex: 1;
  color: var(--custom-white);
  background-color: var(--custom-green);
  background-image: var(--gradient-green);
}

.form-btn-container .btn-submit:not(:disabled):hover,
.modal-footer .btn-submit:not(:disabled):hover {
  color: var(--custom-white-hover);
  background-image: var(--gradient-green-hover);
  transform: scaleX(0.98) scaleY(0.92) translateY(0px);
}

.form-btn-container .btn-cancel,
.modal-footer .btn-cancel {
  flex: 1;
  color: var(--custom-white);
  background-color: var(--custom-red);
  background-image: var(--gradient-red);
}

.form-btn-container .btn-cancel:not(:disabled):hover,
.modal-footer .btn-cancel:not(:disabled):hover {
  background-color: var(--custom-red-hover);
  background-image: var(--gradient-red-hover);
  transform: scaleX(0.98) scaleY(0.92);
}

/* ===============================
   SYSTÈME DE CONFIRMATION EN 2 ÉTAPES
   =============================== */

.confirmation-step {
  text-align: center;
  padding: 1rem 0.5rem;
}

.confirmation-step h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #000;
}

.warning-message {
  text-align: left;
  padding: 1rem;
  margin: 1rem 0;
  background-color: rgba(255, 200, 100, 0.15);
  border: 2px solid #ff9800;
  border-radius: 0.3rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #000;
}

.warning-message strong {
  font-weight: 700;
  color: #d32f2f;
}

/* Sections dans les modals settings */
#language-section,
#sound-section {
  margin-bottom: 1rem;
}

#sound-section .form-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

#sound-section input[type="radio"] {
  width: auto;
  margin: 0;
}

#sound-section label {
  display: inline;
  margin-left: 0.3rem;
}

/* ===============================
   MODAL SPECIFIQUES - Table Page
   =============================== */

/* Modal Buy-in */
#buyin-seat-container {
  z-index: 1000;
}

/* Modal Settings */
#table-settings-container {
  z-index: 1000;
}

/* Modal Admin Panel */
#admin-panel-container {
  z-index: 1000;
}

/* Modal Bot Manager */
#bot-manager-container {
  z-index: 1000;
}

/* Modal Quit Game */
#quit-game-container {
  z-index: 1000;
}

/* ===============================
   MODAL SPECIFIQUES - Club Page
   =============================== */

/* Modal Create Table */
#create-table-container {
  z-index: 1000;
}

/* Modal Add Member */
#add-member-container {
  z-index: 1000;
}

/* Modal Modify Bankroll */
#modify-bankroll-container {
  z-index: 1000;
}

/* Modal Remove Player */
#remove-player-container {
  z-index: 1000;
}

/* Modal Delete Table */
#delete-table-container {
  z-index: 1000;
}

/* Modal Delete Club */
#delete-club-container {
  z-index: 1000;
}

/* Modal Create Club */
#create-club-container {
  z-index: 1000;
}

/* ===============================
   MODAL SPECIFIQUES - Index Page
   =============================== */

/* Modal Registration */
#registration-container {
  z-index: 1000;
}

/* Ajouter overlay translucide quand registration est visible */
#registration-container:not(.hidden) {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  bottom: auto;
  left: auto;
  transform: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Le vrai conteneur du formulaire à l'intérieur */
#registration-container:not(.hidden) form {
  position: relative;
  width: min(340px, 90dvw);
  background-color: var(--custom-white);
  padding: clamp(0.5rem, 1.2dvh, 0.7rem);
  border: 0.2rem solid #000000;
  border-radius: 0.4rem;
  box-shadow:
    1px 1px 0px rgb(100, 100, 100),
    -1px 1px 0px rgb(100, 100, 100),
    1px -1px 0px rgb(100, 100, 100),
    -1px -1px 0px rgb(100, 100, 100);
}
