/* Inscription Espace Pro : chargé uniquement sur le formulaire B2B (hookDisplayHeader). */
:root {
  --phyto-b2b-bg: #f4f2eb;
  --phyto-b2b-ink: #231d1a;
  --phyto-b2b-muted: #5c564e;
  --phyto-b2b-line: #f1f0e9;
  --phyto-b2b-border: #cec9bf;
  --phyto-b2b-yellow: #f2c130;
  --phyto-b2b-gold: #795b01;
  --phyto-b2b-cream: #fff8de;
  --phyto-b2b-ok: #2e7e4e;
  --phyto-b2b-error: #b2271f;
  --phyto-b2b-error-bg: #fff7f6;
}

body,
#wrapper,
#content-wrapper,
#content {
  background: var(--phyto-b2b-bg);
}

.phyto-b2b-register {
  display: grid;
  grid-template-columns: 343px minmax(0, 819px);
  gap: 53px;
  justify-content: center;
  align-items: start;
  margin: 34px auto 90px;
  color: var(--phyto-b2b-ink);
}

/* ---------- Colonne de gauche ---------- */
.phyto-b2b-eyebrow {
  margin: 20px 0 17px;
  color: var(--phyto-b2b-gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.phyto-b2b-title {
  margin: 0 0 20px;
  color: var(--phyto-b2b-ink);
  font-size: 42px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.01em;
  text-transform: none;
  text-align: left;
}

.phyto-b2b-lead {
  margin: 0 0 31px;
  color: #3a3631;
  font-size: 18px;
  line-height: 1.55;
}

.phyto-b2b-steps {
  margin: 0 0 31px;
  padding: 0;
  list-style: none;
  counter-reset: phyto-b2b-step;
}

.phyto-b2b-steps li {
  position: relative;
  margin-bottom: 20px;
  padding-left: 46px;
  counter-increment: phyto-b2b-step;
}

.phyto-b2b-steps li::before {
  content: counter(phyto-b2b-step);
  position: absolute;
  top: 1px;
  left: 0;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--phyto-b2b-ink);
  color: var(--phyto-b2b-yellow);
  font-size: 14px;
  font-weight: 700;
  line-height: 31px;
  text-align: center;
}

.phyto-b2b-steps strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.phyto-b2b-steps span {
  display: block;
  color: var(--phyto-b2b-muted);
  font-size: 14px;
  line-height: 1.45;
}

.phyto-b2b-help {
  padding: 22px 22px 20px;
  border-radius: 14px;
  background: var(--phyto-b2b-ink);
  color: #fff;
  font-size: 15px;
  line-height: 1.55;
}

.phyto-b2b-help p {
  margin: 0;
}

.phyto-b2b-help .phyto-b2b-help-title {
  margin-bottom: 8px;
  color: var(--phyto-b2b-yellow);
  font-size: 17px;
  font-weight: 700;
}

.phyto-b2b-help a {
  color: #fff;
  text-decoration: none;
}

.phyto-b2b-help a:hover {
  text-decoration: underline;
}

/* ---------- Carte formulaire ---------- */
.phyto-b2b-card {
  overflow: hidden;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(35, 29, 26, .04);
}

#customer-form.phyto-b2b-form {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 17px;
}

.phyto-b2b-form-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 22px;
  padding: 25px 34px 22px;
  border-bottom: 1px solid var(--phyto-b2b-line);
  color: var(--phyto-b2b-muted);
  font-size: 14px;
}

.phyto-b2b-form-top p {
  margin: 0;
}

.phyto-b2b-form-top a,
.phyto-b2b-form a {
  color: var(--phyto-b2b-ink);
  text-decoration: underline;
}

.phyto-b2b-step {
  margin: 0;
  padding: 31px 34px 36px;
  border: 0;
  border-bottom: 1px solid var(--phyto-b2b-line);
}

.phyto-b2b-step legend {
  float: left;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0 0 25px;
  padding: 0;
  color: var(--phyto-b2b-ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.phyto-b2b-step legend span {
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--phyto-b2b-ink);
  color: var(--phyto-b2b-yellow);
  font-size: 14px;
  line-height: 31px;
  text-align: center;
}

.phyto-b2b-grid {
  clear: both;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px 17px;
}

.phyto-b2b-cell {
  grid-column: 1 / -1;
  min-width: 0;
}

.phyto-b2b-cell--b2b_id_country,
.phyto-b2b-cell--b2b_business_type,
.phyto-b2b-cell--siret,
.phyto-b2b-cell--b2b_vat_number,
.phyto-b2b-cell--b2b_postcode,
.phyto-b2b-cell--b2b_city,
.phyto-b2b-cell--firstname,
.phyto-b2b-cell--lastname,
.phyto-b2b-cell--phone,
.phyto-b2b-cell--email {
  grid-column: auto;
}

/* ---------- Champs ---------- */
.phyto-b2b-form .form-group {
  margin: 0;
}

.phyto-b2b-form label,
.phyto-b2b-form .label {
  display: block;
  margin: 0 0 8px;
  color: var(--phyto-b2b-ink);
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
}

.phyto-b2b-form label.required::after {
  content: none;
}

.phyto-b2b-form label .text-muted {
  font-weight: 400;
}

.phyto-b2b-form .form-control,
.phyto-b2b-form .custom-select {
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--phyto-b2b-border);
  border-radius: 0;
  background-color: #fff;
  color: var(--phyto-b2b-ink);
  font-size: 17px;
  box-shadow: none;
}

.phyto-b2b-form .custom-select {
  padding-right: 39px;
  /* Le thème dimensionne le chevron en % de la largeur : énorme sur un select pleine largeur. */
  background-position: right 15px center;
  background-size: 14px auto;
}

.phyto-b2b-form .form-control::placeholder {
  color: #8d877e;
}

.phyto-b2b-form .form-control:focus,
.phyto-b2b-form .custom-select:focus {
  border-color: var(--phyto-b2b-ink);
  box-shadow: 0 0 0 4px rgba(242, 193, 48, .35);
}

.phyto-b2b-form .form-control.is-valid {
  border-color: var(--phyto-b2b-ok);
  background-image: none;
}

.phyto-b2b-form .form-control.is-invalid,
.phyto-b2b-form .custom-select.is-invalid {
  border-color: var(--phyto-b2b-error);
  background-color: var(--phyto-b2b-error-bg);
  background-image: none;
}

.phyto-b2b-form .invalid-feedback,
.phyto-b2b-form .help-block,
.phyto-b2b-live-error {
  margin-top: 8px;
  color: var(--phyto-b2b-error);
  font-size: 13px;
  font-weight: 700;
}

/* Cases à cocher / radios : l'erreur n'est pas sœur de l'input .is-invalid, Bootstrap la masquerait. */
.phyto-b2b-form .custom-control ~ .invalid-feedback:not(:empty) {
  display: block;
}

.phyto-b2b-live-error {
  position: relative;
  padding-left: 21px;
}

.phyto-b2b-live-error::before {
  content: "!";
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  line-height: 13px;
  text-align: center;
}

.phyto-b2b-hint,
.phyto-b2b-form .form-text {
  margin: 8px 0 0;
  color: var(--phyto-b2b-muted);
  font-size: 13px;
}

.phyto-b2b-hint a {
  color: var(--phyto-b2b-ink);
}

.js-phyto-b2b-prefill-status:not(:empty)::before {
  content: " · ";
}

/* Les règles de saisie du nom/prénom (thème) ne figurent pas sur la maquette. */
.phyto-b2b-cell--firstname .form-text,
.phyto-b2b-cell--lastname .form-text {
  display: none;
}

/* Indicatif + téléphone sur une seule cellule, sous le libellé « Téléphone mobile ». */
.phyto-b2b-cell--phone {
  position: relative;
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  gap: 8px;
  padding-top: 29px;
}

.phyto-b2b-cell--phone label {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
}

.phyto-b2b-cell--phone .form-group:first-child label {
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Mot de passe : bouton « Montrer » dans le champ. */
.phyto-b2b-form .field-password-policy .input-group {
  position: relative;
  display: block;
}

.phyto-b2b-form .field-password-policy .form-control {
  width: 100%;
  padding-right: 112px;
  border-radius: 0;
}

.phyto-b2b-form .field-password-policy .input-group-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
}

.phyto-b2b-form .field-password-policy .input-group-btn .btn {
  height: 39px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: var(--phyto-b2b-bg);
  color: var(--phyto-b2b-ink);
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
}

/* « Pour finir » : Oui / Non en cartes, sans le rond du radio (la carte entière est cliquable). */
.phyto-b2b-cell--b2b_is_reseller .custom-radio {
  display: inline-flex;
  min-width: 98px;
  margin: 0 8px 0 0;
  padding: 0;
  border: 1px solid var(--phyto-b2b-border);
  border-radius: 0;
  background: #fff;
  vertical-align: top;
}

.phyto-b2b-cell--b2b_is_reseller .custom-radio:has(input:checked) {
  border-color: var(--phyto-b2b-ink);
  background: var(--phyto-b2b-cream);
}

.phyto-b2b-cell--b2b_is_reseller .custom-radio:has(input:focus-visible) {
  outline: 2px solid var(--phyto-b2b-ink);
  outline-offset: 2px;
}

.phyto-b2b-cell--b2b_is_reseller .custom-control-label {
  width: 100%;
  margin: 0;
  padding: 17px 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.phyto-b2b-cell--b2b_is_reseller .custom-control-label::before,
.phyto-b2b-cell--b2b_is_reseller .custom-control-label::after {
  display: none;
}

.phyto-b2b-cell--b2b_is_reseller .label {
  margin-bottom: 14px;
}

/* Cases à cocher (CGV, newsletter, confidentialité). */
.phyto-b2b-form .custom-checkbox .custom-control-label {
  padding-left: 11px;
  color: var(--phyto-b2b-ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.phyto-b2b-form .custom-checkbox .custom-control-label::before,
.phyto-b2b-form .custom-checkbox .custom-control-label::after {
  top: 3px;
  left: -1.5rem;
  width: 20px;
  height: 20px;
  border-radius: 0;
}

.phyto-b2b-form .custom-control-input:checked ~ .custom-control-label::before {
  border-color: var(--phyto-b2b-ink);
  background-color: var(--phyto-b2b-ink);
}

.phyto-b2b-form .custom-checkbox .custom-control-label em,
.phyto-b2b-form .custom-checkbox .custom-control-label p {
  display: inline;
  margin: 0;
  color: var(--phyto-b2b-muted);
  font-size: 14px;
  font-style: normal;
}

.phyto-b2b-form .custom-checkbox .custom-control-label br {
  display: none;
}

.phyto-b2b-form .custom-checkbox .custom-control-label em::before {
  content: " ";
}

.phyto-b2b-form .captcha_register {
  margin: 0;
}

.phyto-b2b-form .captcha_register > label,
.phyto-b2b-form .captcha_register > .form-control-comment {
  display: none;
}

.phyto-b2b-form .captcha_register > .pa-captcha-inf {
  flex: 0 0 100%;
  max-width: 100%;
}

/* ---------- Bouton ---------- */
.phyto-b2b-form .form-footer {
  padding: 6px 34px 31px;
  text-align: center;
}

.phyto-b2b-form .phyto-b2b-submit {
  display: block;
  width: 100%;
  height: 59px;
  border: 0;
  border-radius: 0;
  background: var(--phyto-b2b-yellow);
  color: var(--phyto-b2b-ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.phyto-b2b-form .phyto-b2b-submit:hover,
.phyto-b2b-form .phyto-b2b-submit:focus {
  background: #e5b21f;
  color: var(--phyto-b2b-ink);
}

.phyto-b2b-submit-note {
  margin: 22px 0 0;
  color: var(--phyto-b2b-muted);
  font-size: 13px;
}

/* ---------- Page « Demande reçue » (controllers/front/pending.php) ----------
   Intro de l'inscription + cartes blanche / noire de l'accueil pro non connecté. */
.phyto-b2b-pending {
  max-width: 1160px;
  margin: 34px auto 90px;
  color: var(--phyto-b2b-ink);
}

.phyto-b2b-pending-intro {
  max-width: 760px;
  margin-bottom: 34px;
}

.phyto-b2b-pending-intro .phyto-b2b-lead {
  margin-bottom: 0;
}

.phyto-b2b-pending-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 34px;
  align-items: stretch;
}

.phyto-b2b-pending-card {
  padding: 34px;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(35, 29, 26, .04);
}

.phyto-b2b-pending-card h2 {
  margin: 0 0 25px;
  color: var(--phyto-b2b-ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.phyto-b2b-pending-card .phyto-b2b-steps {
  margin: 0;
}

.phyto-b2b-pending-card .phyto-b2b-steps li:last-child {
  margin-bottom: 0;
}

.phyto-b2b-pending-card--dark {
  display: flex;
  flex-direction: column;
  background: var(--phyto-b2b-ink);
  color: #fff;
}

.phyto-b2b-pending-card-text {
  flex: 1;
  margin-bottom: 25px;
  font-size: 17px;
  line-height: 1.55;
}

.phyto-b2b-pending-card-text p {
  margin: 0;
}

/* L'encadré « Une question ? » est déjà dans une carte noire. */
.phyto-b2b-pending-card--dark .phyto-b2b-help {
  padding: 0;
  border-radius: 0;
  font-size: 17px;
}

.phyto-b2b-pending-card--dark .phyto-b2b-help .phyto-b2b-help-title {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.phyto-b2b-pending .phyto-b2b-pending-cta {
  display: block;
  width: 100%;
  height: 59px;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  background: var(--phyto-b2b-yellow);
  color: var(--phyto-b2b-ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 59px;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}

.phyto-b2b-pending .phyto-b2b-pending-cta:hover,
.phyto-b2b-pending .phyto-b2b-pending-cta:focus {
  background: #e5b21f;
  color: var(--phyto-b2b-ink);
}

/* Étapes avec avancement : 1 faite (coche jaune), 2 en cours, 3 à venir. */
.phyto-b2b-steps--progress li.is-done::before {
  content: "\2713";
  background: var(--phyto-b2b-yellow);
  color: var(--phyto-b2b-ink);
  font-size: 16px;
  font-weight: 900;
}

.phyto-b2b-steps--progress li.is-current::before {
  box-shadow: 0 0 0 4px rgba(242, 193, 48, .35);
}

.phyto-b2b-steps--progress li:not(.is-done):not(.is-current)::before {
  border: 1px solid var(--phyto-b2b-border);
  background: #fff;
  color: var(--phyto-b2b-muted);
  line-height: 29px;
}

.phyto-b2b-steps--progress li:not(.is-done):not(.is-current) strong {
  color: var(--phyto-b2b-muted);
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .phyto-b2b-register {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    margin-top: 11px;
  }

  .phyto-b2b-step,
  .phyto-b2b-form-top,
  .phyto-b2b-form .form-footer {
    padding-right: 22px;
    padding-left: 22px;
  }

  .phyto-b2b-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .phyto-b2b-pending-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .phyto-b2b-pending {
    margin-top: 11px;
  }

  .phyto-b2b-pending .phyto-b2b-title {
    font-size: 30px;
  }

  .phyto-b2b-pending-card {
    padding: 24px 20px;
  }
}
