/* Corps */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-image: url('assets/formulaire.jpg');
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Aplat jaune */
.aplat {
  top: 0;
  left: 50%;
  background-color: #f5c615;
  width: 25%;
  margin: 0 auto;
  padding: 12px 30px;
  font-weight: bold;
  color: white;
  font-size: 18px;
  border-radius: 0 0 15px 15px;
  z-index: 2;
  text-align: center;
}

/* Wrapper */
.wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  height: 100%;
}

/* Formulaire */
.form-container {
  background: white;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}


.form-fields input[type="text"],
.form-fields input[type="email"] {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

/* Case à cocher */
.checkbox-group {
  display: flex;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
  font-size: 16px;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

.checkbox-group label {
  margin: 0;
}

.checkbox-group a {
  color: black;
  text-decoration: underline;
}

/* CTA */
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

button {
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}

.btn-newsletter {
  background-color: #e77e29;
  padding: 16px;
  font-weight: bold;
  color: white;
}

.btn-textonly {
  background: none;
  color: #000000;
  text-decoration: underline;
  padding: 0;
  font-weight: normal;
}

/* Logo en bas */
.logo-footer {
  max-width: 280px;
  width: 30%;
  opacity: 1;
  margin: 0px 0px 25px 0px;
}

/* Image titre */
.titre-image {
  display: block;
  max-width: 315px;
  margin: 0 auto 20px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  body {
    background-image: url('assets/formulaire-mobile.jpg');
    overflow: hidden;
    height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  .wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* centre même si peu de contenu */
    align-items: center;
    padding: 0 5vw;
    box-sizing: border-box;
    gap: 20px;
  }
  .form-container {
    width: 100%;
    padding: 20px;
  }

  .titre-image {
    max-width: 70%;
  }

  .aplat {
    width: 85%;
    font-size: 14px;
    padding: 10px 15px;
    background-color: #f5c615;
    color: white;
    text-align: center;
    font-weight: bold;
    border-radius: 0 0 15px 15px;
  }

  .logo-footer {
    margin: 0px auto 35px auto;
    width: 65%;
    max-width: 280px;
  }
}
