/* Simple reset */
#avp-ageModal {
  font-family: Arial, sans-serif;
}
#avp-captureBtn:disabled {
  background-color: #999 !important;
  cursor: not-allowed !important;
}

body.avp-popup-active {
      overflow: hidden;
    }
    #camera-container, #captureBtn {
  display: none;
	}
    #ageModal {
        position: fixed;
  		top: 0; left: 0; right: 0; bottom: 0;
  		background: rgba(0,0,0,0.4);
  		backdrop-filter: blur(6px);
  		-webkit-backdrop-filter: blur(6px);
  		display: flex;
  		justify-content: center;
  		align-items: center;
  		z-index: 999999;
  		overflow: hidden;
    }
    #tabs {
      display: flex;
      border-bottom: 2px solid #007bff;
      margin-bottom: 1rem;
    }
    #tabs button {
      flex: 1;
      padding: 0.7rem 0;
      font-size: 1.1rem;
      border: none;
      background: none;
      cursor: pointer;
      border-bottom: 3px solid transparent;
      color: #007bff;
      font-weight: bold;
      transition: border-color 0.3s;
    }
    #tabs button.active {
      border-bottom-color: #007bff;
      color: #004a99;
    }
    .tab-content {
      display: none;
    }
    .tab-content.active {
      display: block;
    }
    #camera-container {
      position: relative;
      width: 100%;
    }
    video {
      width: 100%;
      border-radius: 12px;
    }
    #overlay {
      position: absolute;
      border: 3px solid rgba(0, 123, 255, 0.8);
      border-radius: 50% / 60%;
      width: 70%;
      height: 80%;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      pointer-events: none;
      box-sizing: border-box;
    }
    #ageScrollContainer {
  overflow-y: auto;
  max-height: 100%;
  padding-right: 4px; /* pour éviter le chevauchement scrollbar */
	}
	@media (max-width: 600px) {
  #ageContent {
    width: 95vw;
    max-height: 95vh;
  }
}

    #result {
      margin-top: 1rem;
      font-weight: bold;
      font-size: 1.1rem;
      min-height: 1.5em;
      text-align:center;
      color: #222;
    }
    #accessDenied {
      word-break: break-word;
      white-space: normal;
      font-size: 1.2rem;
      line-height: 1.3;
      padding: 0.5rem 1rem;
      box-sizing: border-box;
      color: red;
      text-align:center;
    }
    form#loginForm {
      display: flex;
      flex-direction: column;
    }
    form#loginForm label {
      margin-bottom: 0.3rem;
      font-weight: 600;
    }
    form#loginForm input[type="text"],
    form#loginForm input[type="password"] {
      padding: 0.5rem;
      font-size: 1rem;
      margin-bottom: 1rem;
      border: 1px solid #ccc;
      border-radius: 6px;
    }
    form#loginForm .login-error {
      color: red;
      font-weight: bold;
      margin-bottom: 0.5rem;
      display: none;
    }