/* Livre blanc : fenêtre de demande du guide (liens #livre-blanc). */
.guide-popin {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(36, 29, 24, .72);
  overflow-y: auto;
}
.guide-popin[hidden] { display: none; }
html.guide-popin-open { overflow: hidden; }

.guide-popin__box {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: auto;
  padding: 32px 32px 28px;
  background: #fcfaf7;
  border-top: 4px solid #e36124;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
  text-align: left;
}
.guide-popin__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: #241d18;
  font-size: 28px;
  line-height: 40px;
  cursor: pointer;
}
.guide-popin__close:hover,
.guide-popin__close:focus-visible { color: #e36124; }

.guide-popin__kick {
  margin: 0 0 8px;
  color: #e36124;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.guide-popin__title {
  margin: 0 0 10px;
  padding-right: 28px;
  color: #241d18;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: none;
}
.guide-popin__intro {
  margin: 0 0 20px;
  color: #241d18;
  font-size: 15px;
  line-height: 1.6;
}

/* Formulaire Gravity Forms dans la fenêtre */
.guide-popin .gform_wrapper { margin: 0; }
.guide-popin .gform_fields { display: block; }
.guide-popin .gfield { margin: 0 0 14px; padding: 0; }
.guide-popin .gfield_label {
  display: block;
  margin: 0 0 6px;
  color: #241d18;
  font-size: 14px;
  font-weight: 700;
}
.guide-popin input[type=text],
.guide-popin input[type=email] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #cfc7bd;
  border-radius: 6px;
  background: #fff;
  color: #241d18;
  font-size: 16px;
}
.guide-popin input[type=text]:focus,
.guide-popin input[type=email]:focus {
  border-color: #e36124;
  outline: 2px solid rgba(227, 97, 36, .25);
}
.guide-popin .gfield_description,
.guide-popin .gfield_consent_description {
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  max-height: none;
  overflow: visible;
  color: #666;
  font-size: 12px;
  line-height: 1.5;
}
.guide-popin .ginput_container_consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.guide-popin .ginput_container_consent input { margin: 3px 0 0; flex: none; }
.guide-popin .ginput_container_consent label {
  color: #241d18;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
}
.guide-popin .gform_footer { margin: 18px 0 0; padding: 0; }
.guide-popin .gform_button {
  width: 100%;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  background: #e36124;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.guide-popin .gform_button:hover,
.guide-popin .gform_button:focus-visible { background: #c9531c; }
.guide-popin .gfield_error input { border-color: #c0392b; }
.guide-popin .validation_message,
.guide-popin .gfield_validation_message {
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #c0392b;
  font-size: 13px;
}
/* Libellé du champ de consentement et légende des champs nécessaires : inutiles ici */
.guide-popin .gfield--type-consent > .gfield_label,
.guide-popin .gform_required_legend { display: none; }

/* Résumé des erreurs en tête de formulaire */
.guide-popin .gform_validation_errors {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #c0392b;
  border-radius: 6px;
  background: #fdf1ef;
  box-shadow: none;
  outline: 0;
}
.guide-popin .gform_validation_errors > h2,
.guide-popin .gform_submission_error {
  margin: 0;
  padding: 0;
  color: #c0392b;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
  text-transform: none;
  outline: 0;
}
.guide-popin .gform_validation_errors .gform-icon { display: none; }

.guide-popin .gform_confirmation_message {
  margin: 0;
  padding: 0;
  color: #241d18;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  text-align: left;
}
.guide-popin .gform_confirmation_message p { margin: 0; font-weight: 400; text-align: left; }
.guide-popin .gform_confirmation_message .guide-popin__ok {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}
.guide-popin.is-sent .guide-popin__title,
.guide-popin.is-sent .guide-popin__intro { display: none; }

@media (max-width: 480px) {
  .guide-popin__box { padding: 28px 20px 22px; }
  .guide-popin__title { font-size: 21px; }
}
