/* Google reCAPTCHA v2 - M. Duval Couverture
   Widget standard, sur une ligne dédiée, bouton Envoyer toujours dessous. */
.captcha-col{
  position:relative!important;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  flex:0 0 100%!important;
  overflow:visible!important;
  min-width:0!important;
  margin-bottom:18px!important;
  clear:both!important;
}

.duval-recaptcha-wrap{
  display:block!important;
  width:304px!important;
  max-width:100%!important;
  height:78px!important;
  margin:4px 0 0!important;
  overflow:visible!important;
  position:relative!important;
  z-index:2!important;
}

/* Le reCAPTCHA v2 reste en taille Google normale : pas de scale, pas de compact. */
body.duval-site .modern-form-card .g-recaptcha,
body.duval-v6 .modern-form-card .g-recaptcha,
.duval-recaptcha-wrap .g-recaptcha{
  display:block!important;
  width:304px!important;
  height:78px!important;
  max-width:none!important;
  margin:0!important;
  transform:none!important;
  transform-origin:left top!important;
  overflow:visible!important;
}

.duval-recaptcha-wrap .g-recaptcha>div,
.duval-recaptcha-wrap .g-recaptcha iframe{
  display:block!important;
  width:304px!important;
  height:78px!important;
  max-width:none!important;
  transform:none!important;
}

/* Le bouton d'envoi occupe sa propre ligne sous le captcha. */
.duval-submit-row{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  flex:0 0 100%!important;
  clear:both!important;
  margin-top:8px!important;
  position:relative!important;
  z-index:1!important;
}
.duval-submit-row button[type="submit"]{
  position:relative!important;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
}

.form-honeypot{
  position:absolute!important;
  left:-99999px!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}

/* iPhone : évite le zoom automatique des champs, qui perturbe l'affichage Google. */
@media (max-width:767px){
  body.duval-site .modern-form-card input,
  body.duval-site .modern-form-card select,
  body.duval-site .modern-form-card textarea,
  body.duval-v6 .modern-form-card input,
  body.duval-v6 .modern-form-card select,
  body.duval-v6 .modern-form-card textarea{
    font-size:16px!important;
  }

  body.duval-site .modern-form-card,
  body.duval-v6 .modern-form-card,
  body.duval-site .modern-form-card .captcha-col,
  body.duval-v6 .modern-form-card .captcha-col{
    overflow:visible!important;
  }

  .captcha-col{
    padding-bottom:0!important;
    margin-bottom:20px!important;
  }

  .duval-submit-row{
    margin-top:10px!important;
  }
}

/* Très petits écrans : le widget Google fait 304px de large. On centre le formulaire
   sans réduire le captcha pour conserver la fenêtre v2 complète et cliquable. */
@media (max-width:360px){
  .modern-form-card{
    padding-left:14px!important;
    padding-right:14px!important;
  }
}
