body {
  margin: 0;
  padding: 0;
  background-color: #001f59;
  font-family: 'Colonna MT', serif;
  color: gold;
  text-align: center;
}

#splash-screen, #main-app {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.splash-svg, .main-svg {
  width: 100vmin;
  height: 100vmin;
  display: block;
  margin: auto;
}

.container {
  position: relative;
  width: 100%;
  height: 100%;
}

.content-inside-frame {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title {
  font-size: 2em;
  margin-bottom: 20px;
  color: gold;
  text-align: center;
}

input {
  width: 90%;
  max-width: 350px;
  padding: 10px;
  margin: 10px 0;
  background: transparent;
  border: 2px solid gold;
  color: gold;
  font-size: 1em;
  border-radius: 10px;
  text-align: center;
}

.btn {
  background-color: gold;
  color: #001f59;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
  margin: 10px;
  cursor: pointer;
  width: auto;
  min-width: 120px;
  max-width: 200px;
  font-weight: bold;
}

.button-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  max-width: 400px;
  margin-top: 10px;
}

#qr-container {
  margin-top: 20px;
}

.json-output {
  background: rgba(255, 215, 0, 0.1);
  color: gold;
  padding: 10px;
  border: 1px solid gold;
  border-radius: 8px;
  margin-top: 20px;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 90%;
  overflow-x: auto;
}

.subtext {
  font-size: 1em;
  margin-top: 20px;
}

.footer {
  font-size: 0.9em;
  margin-top: 5px;
}
 #registration-section {
  margin-bottom: 20px;
}

#registration-section input,
#registration-section button {
  width: 100%;
  max-width: 90%;
  margin: 10px auto;
}

/* === VERSION MOBILE AJUSTÉE FINALEMENT === */
@media (max-width: 768px) {
  #main-app {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .main-svg {
    width: 100vw;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .content-inside-frame {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    padding: 10px;
    margin-top: -10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .title {
    font-size: 5.5vw;
    margin-top: -12px;     /* 👈 Plus proche du losange */
    margin-bottom: 5px;
  }

  input {
    width: 85%;
    padding: 8px;
    margin: 6px 0;
    font-size: 4vw;
    border: 2px solid gold;
    background-color: transparent;
    color: gold;
    border-radius: 10px;
    text-align: center;
  }
.button-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

  .btn {
    width: 100%;
    padding: 8px;
    font-size: 4.2vw;
    background-color: gold;
    color: #001f59;
    font-weight: bold;
    border-radius: 10px;
    margin-top: 0px;
  }

  #qr-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
  }

  .json-output {
    margin-top: 20px;
    padding: 10px;
    font-size: 3.5vw;
    background: rgba(255, 215, 0, 0.1);
    color: gold;
    border: 1px solid gold;
    border-radius: 8px;
    width: 90%;
    word-wrap: break-word;
  }

  .subtext {
    font-size: 3.5vw;
    margin-top: 20px;
  }

  .footer {
    font-size: 3vw;
    margin-top: 10px;
  }
}
