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

/* Splash & main-app plein écran */
#splash-screen,
#main-app {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Au départ : splash visible */
#splash-screen {
  display: flex;
}
#main-app {
  display: none;
}

/* DESKTOP ------------------------------------------------------ */
@media (min-width: 769px) {

  .splash-svg,
  .main-svg {
    width: 90vmin;
    height: 90vmin;
    max-width: 900px;
    max-height: 900px;
    display: block;
    margin: auto;
  }

  .content-inside-frame {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
  }
}

/* MOBILE ------------------------------------------------------ */
@media (max-width: 768px) {

  .main-svg {
    width: 80vmin;
    height: 80vmin;
  }

  .content-inside-frame {
    width: 80%;
    max-width: 380px;
    top: 52%;
    transform: translate(-50%, -50%);
  }

  body,
  html {
    height: auto;
    overflow-y: auto;
  }

  .button-row {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 260px;
    padding: 8px;
    font-size: 3.8vw;
    margin-top: 6px;
  }
}

/* TITRES ------------------------------------------------------ */
.title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: gold;
  letter-spacing: 0.25em;
}

.tips-title {
  font-size: 1.1rem;
  margin: 10px 0 5px;
}

.tips-label {
  font-size: 0.9rem;
  margin-bottom: 5px;
  display: block;
}

/* INPUTS ------------------------------------------------------ */
input,
.tips-input {
  width: 100%;
  max-width: 360px;
  padding: 10px;
  margin: 6px 0;
  background: transparent;
  border: 2px solid gold;
  color: gold;
  font-size: 0.95rem;
  border-radius: 10px;
  text-align: center;
  box-sizing: border-box;
}

.tips-registration {
  margin-bottom: 10px;
}

.tip-inputs {
  margin-top: 10px;
}

/* Bouton inscription QR perso */
.tips-button-secondary {
  background-color: gold;
  color: #001f59;
  border: none;
  padding: 10px 16px;
  font-size: 0.95rem;
  border-radius: 8px;
  margin-top: 8px;
  cursor: pointer;
  width: 100%;
  max-width: 260px;
  font-weight: bold;
}

/* Message info */
.tips-helper-text {
  font-size: 0.85rem;
  margin-top: 6px;
  color: #d7c48a;
}

/* BOUTONS MAIN ----------------------------------------------- */
.btn {
  background-color: gold;
  color: #001f59;
  border: none;
  padding: 10px 20px;
  font-size: 0.95rem;
  border-radius: 6px;
  margin: 8px;
  cursor: pointer;
  min-width: 120px;
  max-width: 160px;
  font-weight: bold;
}

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

/* QR CODE ----------------------------------------------------- */
#qr-container {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#qr-container canvas {
  width: 200px;
  height: 200px;
}

/* JSON OUTPUT ------------------------------------------------- */
.json-output {
  background: rgba(255, 215, 0, 0.08);
  color: gold;
  padding: 10px;
  border: 1px solid gold;
  border-radius: 8px;
  margin-top: 14px;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 90%;
  overflow-x: auto;
  font-size: 0.8rem;
}

/* TEXTE BAS --------------------------------------------------- */
.subtext {
  font-size: 1rem;
  margin-top: 10px;
}

.footer {
  font-size: 0.85rem;
  margin-top: 4px;
}
