@font-face {
  font-family: 'centurygothic';
  src: url('/fonts/centurygothic.ttf');
}

@font-face {
  font-family: 'centurygothic_bold';
  src: url('/fonts/centurygothic_bold.ttf');
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  /* empêche le scroll */
}

.image-container {
  position: fixed;
  inset: 0;
  /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  z-index: -1;
}

#image-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

#image-product {
  width: 20%;
  height: auto;
  display: block;
}

.hero {
  position: relative;
  z-index: 2;
  height: 100vh;
  font-family: 'Montserrat', 'sans-serif';
  /* occupe pile 100% de l’écran */
}

.container-md {
  height: 100%;
  /* plus besoin de min-height */
}

.form-container {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 20px 70px;
  height: auto;
  /* laisse respirer, pas 100vh */
  max-height: 100%;
  /* ne dépasse jamais */
  overflow-y: auto;
  /* si zoom >100%, le contenu reste accessible */
}

.form-title {
  text-align: center;
  color: #ffffff;
  font-size: 23px;
  font-family: 'centurygothic', 'Montserrat', 'sans-serif';
  letter-spacing: 1px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.validation-message {
  color: #ffffff;
}

.form-floating>label {
  color: #ffffff;
  padding: .5rem 0 0 0.5rem;
}

.form-floating>.form-control,
.form-floating>.form-control-plaintext,
.form-floating>.form-select {
  border-bottom: 2px solid #ffffff;
  background-color: rgba(0, 0, 0, 0);
  height: calc(2.5rem);
  line-height: 1;
}

.form-floating>.form-control-plaintext~label,
.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label,
.form-floating>.form-select~label {
  opacity: .65;
  transform: scale(.80) translateY(-0.8rem) translateX(0);
}

.form-control {
  background-color: rgba(0, 0, 0, 0);
  border-color: rgba(0, 0, 0, 0);
  color: #ffffff;
}

.form-control:focus {
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0);
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.8);
}

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0px 1000px rgba(0, 0, 0, 0) inset;
  transition: background-color 5000s ease-in-out 0s;
}

.btn-primary {
  --bs-btn-bg: #a4957d;
  --bs-btn-border-color: #000000;
  --bs-btn-hover-bg: #1f8169;
  --bs-btn-hover-border-color: #000000;
  --bs-btn-active-bg: #a4957d;
  --bs-btn-active-border-color: #ffffff;
}

.form-validation-button {
  padding: 10px;
  margin-top: 10px;
  font-size: 19px;
  font-weight: 600;
  font-family: 'Montserrat', 'sans-serif';
}

.form-check-input:checked {
  background-color: rgba(0, 0, 0, 0);
  border-color: #ffffff;
}

.form-check-input {
  background-color: rgba(0, 0, 0, 0);
  border-color: #ffffff;
  width: 23px;
  height: 23px;
}

.form-check-label {
  margin-top: 4px;
  margin-left: 5px;
  color: white;
}

.baseline {
  font-size: 10px;
  color: #969696;
  line-height: normal;
  font-family: 'Montserrat', 'sans-serif';

}

.optin+label {
  font-size: 13px;
}

.optin+label a {
  color: #ffffff;
}

.form-control.is-invalid:focus,
.was-validated .form-control:invalid:focus {
  border-color: #dc3545;
  box-shadow: none;
}

.modal-body a {
  color: #000000;
}

#conditions span,
#realization {
  text-decoration: underline;
}

#realization {
  font-family: 'Montserrat', sans-serif;
}

#address,
#zipcode,
#city {
  color: #fff;
}

.form-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;

}

.validation-message {
  font-family: 'centurygothic', 'Montserrat', 'sans-serif';
}

@media screen and (max-width:1023px) {

  html,
  body {
    height: auto;
    overflow: auto;
    background-color: #000;
    /* On réactive le scroll sur mobile */
  }

  .image-container {
    position: relative;
    /* plus de fixed, sinon casse */
    width: 100%;
    height: auto;
    z-index: 1000;
  }

  #image-bg {
    object-fit: cover;
    width: 100%;
    height: auto;
  }

  .hero {
    height: auto;
    /* plus de 100vh sur mobile */
    background-color: #000;
    display: block;
    /* désactive flex si ça gêne */
  }

  .form-container {
    padding: 20px;
    width: 100%;
    max-height: none;
    /* pas de contrainte */
    overflow: visible;
    /* pas de scroll interne forcé */
  }
}