/* ============================================================
   VARIABLES ET PÉRIMÈTRE DU COMPOSANT
   ============================================================ */

:is(.hs-form-gifteo-fr, .hs-form-card) {
  --hs-step-primary: var(--e-global-color-primary, #e94b35);
  --hs-step-dark: #1b2340;
  --hs-step-muted: #777;
  --hs-step-border: #d9d9d9;
  --hs-step-light: #fff;
  --hs-step-danger: #f2545b;
  --hs-step-radius: 6px;
  --hs-step-bullet-size: 32px;
}

/* ============================================================
   STRUCTURE GÉNÉRALE
   ============================================================ */

/* Change l’ordre du texte légal */
:is(.hs-form-gifteo-fr, .hs-form-card)
fieldset.form-columns-1:has(.legal-consent-container) {
  order: 1;
  margin-top: 10px;
}

:is(.hs-form-gifteo-fr, .hs-form-card) .legal-consent-container {
  font-size: 11px;
}

:is(.hs-form-gifteo-fr, .hs-form-card) form.hs-form {
  display: flex;
  flex-direction: column;
}

/* Champs de saisie */
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-form
.hs-input:not([type="checkbox"]):not([type="radio"]) {
  width: 100% !important;
  min-height: 42px !important;
  box-sizing: border-box !important;
  padding: 0 15px !important;
  border-radius: 5px;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 300 !important;
  line-height: 42px !important;
}

:is(.hs-form-gifteo-fr, .hs-form-card) label.hs-main-font-element {
  font-weight: 700;
}

/* Selects natifs */
:is(.hs-form-gifteo-fr, .hs-form-card) .hs-form select.hs-input {
  padding-right: 35px !important;
  cursor: pointer;
  background-repeat: no-repeat !important;
  background-position: right 15px center !important;
}

/* Espacement entre les champs */
:is(.hs-form-gifteo-fr, .hs-form-card) .hs-form .hs-form-field {
  margin-bottom: 20px !important;
  padding: 0 !important;
}

/* Bloc de soumission */
:is(.hs-form-gifteo-fr, .hs-form-card) .hs-form .hs-submit {
  margin-top: 24px !important;
  text-align: center;
}

/* Fieldsets */
:is(.hs-form-gifteo-fr, .hs-form-card) .hs-form fieldset {
  max-width: 100% !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Labels */
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-form
label:not(.hs-error-msg) {
  display: inline-block;
  width: 100%;
  font-size: 14px;
}

/* Description des champs */
:is(.hs-form-gifteo-fr, .hs-form-card) .hs-form .hs-field-desc {
  margin-bottom: 5px;
  font-size: 13px !important;
  font-style: italic !important;
}

/* Boutons HubSpot */
:is(.hs-form-gifteo-fr, .hs-form-card) .hs-form .hs-button {
  border-width: 1px;
  border-style: solid;
  border-radius: 6px;
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

/* ============================================================
   GRILLE DES CHAMPS
   ============================================================ */

@media (min-width: 768px) {
  :is(.hs-form-gifteo-fr, .hs-form-card)
  .hs-form
  fieldset:not(:has(> .hs-dependent-field)) {
    display: flex !important;
    gap: 20px !important;
  }

  :is(.hs-form-gifteo-fr, .hs-form-card)
  .hs-form
  fieldset
  .hs-form-field {
    flex: 1 !important;
    margin-bottom: 0 !important;
  }
}

/* ============================================================
   FORMULAIRE SUR FOND BLANC
   ============================================================ */

.hs-form-white.hs-form-gifteo-fr
.hs-form
.hs-input:not([type="checkbox"]):not([type="radio"]) {
  color: #333;
  background-color: #fff;
  border: 1px solid #c9c9c9;
}

.hs-form-white.hs-form-gifteo-fr
.hs-form
label:not(.hs-error-msg) {
  color: #1b2340;
}

.hs-form-white.hs-form-gifteo-fr
.hs-form
.hs-error-msg {
  color: #f2545b !important;
  font-size: 12px;
}

.hs-form-white.hs-form-gifteo-fr
.hs-form
.hs-button {
  color: #fff;
  background-color: var(--e-global-color-primary);
  border-color: var(--e-global-color-primary);
}

.hs-form-white.hs-form-gifteo-fr
.hs-form
.hs-button:hover {
  color: var(--e-global-color-primary);
  background-color: transparent;
}

/* ============================================================
   FORMULAIRE SUR FOND ROUGE
   ============================================================ */

.hs-form-red.hs-form-gifteo-fr
.hs-form
label:not(.hs-error-msg),
.hs-form-red.hs-form-gifteo-fr
.legal-consent-container,
.hs-form-red.hs-form-gifteo-fr
.legal-consent-container a {
  color: #fff;
}

.hs-form-red.hs-form-gifteo-fr
.hs-form
.hs-error-msg {
  color: #fff !important;
  font-size: 12px;
}

.hs-form-red.hs-form-gifteo-fr
.hs-form
.hs-button {
  color: #fff;
  background-color: var(--e-global-color-text);
  border-color: var(--e-global-color-text);
}

.hs-form-red.hs-form-gifteo-fr
.hs-form
.hs-button:hover {
  color: #1d1d1b;
  background-color: #fff;
  border-color: #fff;
}

.hs-form-red.hs-form-gifteo-fr
.hs-form
.hs-input:not([type="checkbox"]):not([type="radio"]) {
  background-color: #fff !important;
  border: 0 !important;
}

/* ============================================================
   STRUCTURE MULTI-STEP
   ============================================================ */

:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-form.is-multistep
.hs-multistep__step[hidden] {
  display: none !important;
}

:is(.hs-form-gifteo-fr, .hs-form-card) .hs-multistep__live {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:is(.hs-form-gifteo-fr, .hs-form-card) .hs-multistep__step {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ============================================================
   CHOIX « VOUS ÊTES »
   ============================================================ */

/* Le select reste utilisé par HubSpot mais devient invisible */
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-form
.hs-choice-select__native,
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-form
select[name="role"][data-choice-enhanced="true"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* Grille des choix */
:is(.hs-form-gifteo-fr, .hs-form-card) .hs-choice-select {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

/* Style commun du label « Vous êtes » 
:is(.hs-form-gifteo-fr, .hs-form-card) .hs-choice-select__label,
:is(.hs-form-gifteo-fr, .hs-form-card) .hs-form .hs_role > label,
:is(.hs-form-gifteo-fr, .hs-form-card) .hs-form .hs_role > label.hs-form-field {
  display: inline-block;
  width: 100%;
  margin-bottom: 6px;
  font-size: 16px !important;
  font-weight: 700;
}
*/

/* Formulaire sur fond blanc */
.hs-form-white.hs-form-gifteo-fr .hs-choice-select__label,
.hs-form-white.hs-form-gifteo-fr .hs-form .hs_role > label {
  color: #1b2340;
}

/* Formulaire sur fond rouge */
.hs-form-red.hs-form-gifteo-fr .hs-choice-select__label,
.hs-form-red.hs-form-gifteo-fr .hs-form .hs_role > label {
  color: #fff;
}

/* Choix cliquables */
:is(.hs-form-gifteo-fr, .hs-form-card) .hs-choice-select__option {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 52px;
  align-items: center;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid #c9c9c9;
  border-radius: var(--hs-step-radius);
  color: var(--hs-step-dark);
  background-color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
  cursor: pointer;
  appearance: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* État par défaut sur fond rouge */
.hs-form-red.hs-form-gifteo-fr
.hs-choice-select__option {
  color: var(--hs-step-dark);
  background-color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
}

/* Hover et sélection identiques sur fond blanc et rouge */
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-choice-select__option:hover,
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-choice-select__option.is-selected,
.hs-form-red.hs-form-gifteo-fr
.hs-choice-select__option:hover,
.hs-form-red.hs-form-gifteo-fr
.hs-choice-select__option.is-selected {
  color: var(--hs-step-dark);
  background-color: rgba(239, 239, 239, 1);
  border-color: #a8a8a8;
  outline: none;
  box-shadow: 0 0 0 1px #a8a8a8;
}

/* Aucun fond sur un choix uniquement focusé */
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-choice-select__option:focus:not(.is-selected),
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-choice-select__option:focus-visible:not(.is-selected),
.hs-form-red.hs-form-gifteo-fr
.hs-choice-select__option:focus:not(.is-selected),
.hs-form-red.hs-form-gifteo-fr
.hs-choice-select__option:focus-visible:not(.is-selected) {
  color: var(--hs-step-dark);
  background-color: #fff;
  border-color: #c9c9c9;
  outline: none;
  box-shadow: none;
}

/* Conserve la bordure blanche sur fond rouge */
.hs-form-red.hs-form-gifteo-fr
.hs-choice-select__option:focus:not(.is-selected),
.hs-form-red.hs-form-gifteo-fr
.hs-choice-select__option:focus-visible:not(.is-selected) {
  border-color: rgba(255, 255, 255, 0.8);
}

/* Erreur de validation */
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-choice-select.is-invalid
.hs-choice-select__option {
  border-color: var(--hs-step-danger);
}

/* ============================================================
   PROGRESSION MULTI-STEP
   ============================================================ */

:is(.hs-form-gifteo-fr, .hs-form-card) .hs-multistep__progress {
  display: flex;
  width: 100%;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

:is(.hs-form-gifteo-fr, .hs-form-card) .hs-multistep__progress-item {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

/* Ligne entre les bullets */
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-multistep__progress-item:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 15px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background-color: #d9d9d9;
  content: "";
}

/* Ligne complétée */
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-multistep__progress-item.is-completed::after {
  background-color: var(--e-global-color-primary);
}

/* Bullet */
:is(.hs-form-gifteo-fr, .hs-form-card) .hs-multistep__progress-bullet {
  position: relative;
  z-index: 1;
  display: flex;
  width: var(--hs-step-bullet-size);
  height: var(--hs-step-bullet-size);
  min-width: var(--hs-step-bullet-size);
  min-height: var(--hs-step-bullet-size);
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 2px solid var(--hs-step-border);
  border-radius: 50%;
  color: var(--hs-step-muted);
  background-color: var(--hs-step-light);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  isolation: isolate;
  transform: none !important;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

/*
 * Cercle animé placé derrière la bullet.
 * Le numéro ne subit aucun transform.
 */
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-multistep__progress-bullet::before {
  position: absolute;
  inset: -2px;
  z-index: -1;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: 50%;
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: scale(0.94);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

/* Animation uniquement sur les bullets déverrouillées */
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-multistep__progress-item.is-unlocked
.hs-multistep__progress-bullet:not(:disabled):hover::before {
  opacity: 1;
  transform: scale(1.03);
}

/* Aucun pseudo-élément sur une bullet verrouillée */
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-multistep__progress-bullet:disabled::before {
  display: none;
}

/* Animation sur formulaire blanc */
.hs-form-white.hs-form-gifteo-fr
.hs-multistep__progress-item.is-unlocked
.hs-multistep__progress-bullet:not(:disabled):hover::before {
  background-color: var(--hs-step-primary);
  border-color: var(--hs-step-primary);
  box-shadow: 0 0 0 1px var(--hs-step-primary);
}

.hs-multistep__progress-item.is-unlocked 
.hs-multistep__progress-bullet:hover {
 color: #fff;
}

/* Animation sur formulaire rouge */
.hs-form-red.hs-form-gifteo-fr
.hs-multistep__progress-item.is-unlocked
.hs-multistep__progress-bullet:not(:disabled):hover::before {
  background-color: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 1px #fff;
}

/* Bullet verrouillée */
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-multistep__progress-bullet:disabled,
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-multistep__progress-bullet:disabled:hover,
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-multistep__progress-bullet:disabled:focus,
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-multistep__progress-bullet:disabled:active {
  color: var(--hs-step-muted) !important;
  background-color: var(--hs-step-light) !important;
  border-color: var(--hs-step-border) !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
  transform: none !important;
}

/* Étape active ou terminée */
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-multistep__progress-item.is-active
.hs-multistep__progress-bullet,
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-multistep__progress-item.is-completed
.hs-multistep__progress-bullet {
  color: #fff;
  background-color: var(--e-global-color-primary);
  border-color: var(--e-global-color-primary);
}

/* Labels de progression */
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-multistep__progress-label {
  color: var(--hs-step-muted);
  font-size: 13px;
  font-weight: 500;
}

:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-multistep__progress-item.is-active
.hs-multistep__progress-label {
  color: var(--hs-step-dark);
  font-weight: 700;
}

/* ============================================================
   PROGRESSION SUR FOND ROUGE
   ============================================================ */

.hs-form-red.hs-form-gifteo-fr
.hs-multistep__progress-label {
  color: rgba(255, 255, 255, 0.7);
}

.hs-form-red.hs-form-gifteo-fr
.hs-multistep__progress-item.is-active
.hs-multistep__progress-label,
.hs-form-red.hs-form-gifteo-fr
.hs-multistep__progress-item.is-completed
.hs-multistep__progress-label {
  color: #fff;
}

.hs-form-red.hs-form-gifteo-fr
.hs-multistep__progress-item:not(:last-child)::after {
  background-color: rgba(255, 255, 255, 0.4);
}

.hs-form-red.hs-form-gifteo-fr
.hs-multistep__progress-item.is-completed::after {
  background-color: #fff;
}

/* Toutes les bullets restent blanches sur fond rouge */
.hs-form-red.hs-form-gifteo-fr
.hs-multistep__progress-bullet,
.hs-form-red.hs-form-gifteo-fr
.hs-multistep__progress-item.is-active
.hs-multistep__progress-bullet,
.hs-form-red.hs-form-gifteo-fr
.hs-multistep__progress-item.is-completed
.hs-multistep__progress-bullet {
  color: var(--hs-step-dark);
  background-color: #fff;
  border-color: #fff;
}

.hs-form-red.hs-form-gifteo-fr
.hs-multistep__progress-bullet:disabled,
.hs-form-red.hs-form-gifteo-fr
.hs-multistep__progress-bullet:disabled:hover,
.hs-form-red.hs-form-gifteo-fr
.hs-multistep__progress-bullet:disabled:focus,
.hs-form-red.hs-form-gifteo-fr
.hs-multistep__progress-bullet:disabled:active {
  background-color: #fff !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
}

/* ============================================================
   CHAMPS CONDITIONNELS
   ============================================================ */

/* Masque le champ source « Vous êtes » dans l’étape 2 */
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-form
.hs-multistep__role-source {
  display: none !important;
}

/* Sécurité si HubSpot remplace les classes du champ */
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-form
fieldset.hs-multistep__conditional-row
.hs-form-field:has(select[name="role"]) {
  display: none !important;
}

/* Les champs sont placés verticalement */
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-form
fieldset.hs-multistep__conditional-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: 100% !important;
}

:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-form
fieldset.hs-multistep__conditional-row
.hs-form-field {
  flex: 0 0 auto !important;
  width: 100% !important;
  margin-bottom: 20px !important;
}

:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-form
fieldset.hs-multistep__conditional-row
.hs-dependent-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: 100% !important;
}

/* ============================================================
   NAVIGATION ET BOUTONS
   ============================================================ */

:is(.hs-form-gifteo-fr, .hs-form-card) .hs-multistep__button,
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-multistep__navigation
.hs-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 12px 24px !important;
  border-width: 1px;
  border-style: solid;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    opacity 0.2s ease;
}

:is(.hs-form-gifteo-fr, .hs-form-card) .hs-multistep__navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 24px;
}

:is(.hs-form-gifteo-fr, .hs-form-card) .hs-multistep__next {
  margin-left: auto !important;
}

:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-multistep__navigation
.hs_submit {
  margin-top: 0 !important;
  margin-left: auto !important;
  text-align: initial;
}

:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-multistep__navigation
.hs_submit
.actions {
  margin: 0 !important;
  padding: 0 !important;
}

/* Boutons désactivés */
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-multistep__button:disabled,
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-multistep__navigation
.hs-button:disabled,
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-multistep__navigation
.hs-button.is-loading {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

/* Validation ou envoi en cours */
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-multistep__button.is-validating,
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-multistep__navigation
.hs-button.is-loading {
  cursor: wait;
}

/* ============================================================
   BOUTONS SUR FOND BLANC
   ============================================================ */

.hs-form-white.hs-form-gifteo-fr
.hs-multistep__next {
  color: #fff;
  background-color: var(--e-global-color-primary);
  border-color: var(--e-global-color-primary);
}

.hs-form-white.hs-form-gifteo-fr
.hs-multistep__next:hover {
  color: var(--e-global-color-primary);
  background-color: transparent;
  border-color: var(--e-global-color-primary);
}

.hs-form-white.hs-form-gifteo-fr
.hs-multistep__previous {
  color: #fff;
  background-color: var(--hs-step-dark);
  border-color: var(--hs-step-dark);
}

.hs-form-white.hs-form-gifteo-fr
.hs-multistep__previous:hover {
  color: var(--hs-step-dark);
  background-color: transparent;
  border-color: var(--hs-step-dark);
}

/* ============================================================
   BOUTONS SUR FOND ROUGE
   ============================================================ */

.hs-form-red.hs-form-gifteo-fr
.hs-multistep__next {
  color: #fff;
  background-color: var(--e-global-color-text);
  border-color: var(--e-global-color-text);
}

.hs-form-red.hs-form-gifteo-fr
.hs-multistep__next:hover {
  color: #1d1d1b;
  background-color: #fff;
  border-color: #fff;
}

.hs-form-red.hs-form-gifteo-fr
.hs-multistep__previous {
  color: #fff;
  background-color: transparent;
  border-color: #fff;
}

.hs-form-red.hs-form-gifteo-fr
.hs-multistep__previous:hover {
  color: #1d1d1b;
  background-color: #fff;
  border-color: #fff;
}

/* ============================================================
   FOCUS CLAVIER
   ============================================================ */

:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-multistep__button:focus-visible,
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-multistep__progress-bullet:focus-visible,
:is(.hs-form-gifteo-fr, .hs-form-card)
.hs-multistep__navigation
.hs-button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 767px) {
  :is(.hs-form-gifteo-fr, .hs-form-card) .hs-choice-select {
    grid-template-columns: 1fr;
  }

  :is(.hs-form-gifteo-fr, .hs-form-card) .hs-form .hs-button {
    width: 100% !important;
  }

  :is(.hs-form-gifteo-fr, .hs-form-card)
  .hs-multistep__progress-label {
    font-size: 11px;
  }

  /* « Votre profil » sur deux lignes */
  :is(.hs-form-gifteo-fr, .hs-form-card)
  .hs-multistep__progress-item:first-child
  .hs-multistep__progress-label {
    max-width: 52px;
    line-height: 1.2;
  }

  /* « Informations complémentaires » sur deux lignes */
  :is(.hs-form-gifteo-fr, .hs-form-card)
  .hs-multistep__progress-item:nth-child(2)
  .hs-multistep__progress-label {
    max-width: 92px;
    line-height: 1.2;
  }

  :is(.hs-form-gifteo-fr, .hs-form-card)
  .hs-multistep__progress-bullet {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
  }

  :is(.hs-form-gifteo-fr, .hs-form-card)
  .hs-multistep__progress-item:not(:last-child)::after {
    top: 13px;
    left: calc(50% + 16px);
    width: calc(100% - 32px);
  }

  :is(.hs-form-gifteo-fr, .hs-form-card)
  .hs-multistep__navigation {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  :is(.hs-form-gifteo-fr, .hs-form-card)
  .hs-multistep__button,
  :is(.hs-form-gifteo-fr, .hs-form-card)
  .hs-multistep__navigation
  .hs_submit,
  :is(.hs-form-gifteo-fr, .hs-form-card)
  .hs-multistep__navigation
  .hs-button {
    width: 100% !important;
  }

  :is(.hs-form-gifteo-fr, .hs-form-card)
  .hs-multistep__next,
  :is(.hs-form-gifteo-fr, .hs-form-card)
  .hs-multistep__navigation
  .hs_submit {
    margin-left: 0 !important;
  }
}

/* ============================================================
   RÉDUCTION DES ANIMATIONS
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  :is(.hs-form-gifteo-fr, .hs-form-card)
  .hs-choice-select__option,
  :is(.hs-form-gifteo-fr, .hs-form-card)
  .hs-multistep__progress-bullet,
  :is(.hs-form-gifteo-fr, .hs-form-card)
  .hs-multistep__progress-bullet::before,
  :is(.hs-form-gifteo-fr, .hs-form-card)
  .hs-multistep__button,
  :is(.hs-form-gifteo-fr, .hs-form-card)
  .hs-multistep__navigation
  .hs-button {
    transition: none;
  }
}

/* ============================================================
   FORMULAIRE « CARD » (design Figma — Form Card Window)
   Classe à ajouter sur le conteneur : hs-form-card (seule, sans hs-form-gifteo-fr)
   ============================================================ */

.hs-form-card {
  --hs-card-primary: var(--gifteo-brand-primaire-500, #f43e40);
  --hs-card-primary-hover: #d92f31;
  --hs-card-ink: #130101;
  --hs-card-ink-muted: rgba(19, 1, 1, 0.5);
  --hs-card-line: rgba(19, 1, 1, 0.1);
  --hs-card-track: rgba(19, 1, 1, 0.06);
  font-family: "Lato", sans-serif;
}

/* Carte */
.hs-form-card form.hs-form {
  box-sizing: border-box;
  max-width: 965px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 24px;
  color: var(--hs-card-ink);
  background-color: #fff;
  box-shadow: 0 12px 20px rgba(19, 1, 1, 0.07);
}

/* Entête : « Étape 1 sur 4 » + temps restant */
.hs-form-card .hs-multistep__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.hs-form-card .hs-multistep__step-count {
  color: var(--hs-card-primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hs-form-card .hs-multistep__time {
  color: var(--hs-card-ink-muted);
  font-size: 13px;
}

/* Progression : 4 colonnes, barre de 4px + pastille numérotée + libellé */
.hs-form-card .hs-multistep__progress {
  gap: 16px;
  margin: 0 0 26px;
}

.hs-form-card .hs-multistep__progress-item {
  display: grid;
  flex: 1 1 0;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: 12px 8px;
  text-align: left;
}

/* Barre */
.hs-form-card .hs-multistep__progress-item::before {
  grid-column: 1 / -1;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background-color: var(--hs-card-track);
  content: "";
  transition: background-color 0.2s ease;
}

.hs-form-card .hs-multistep__progress-item.is-active::before,
.hs-form-card .hs-multistep__progress-item.is-completed::before {
  background-color: var(--hs-card-primary);
}

/* La ligne entre bullets du design d'origine n'existe pas ici */
.hs-form-card .hs-multistep__progress-item:not(:last-child)::after,
.hs-form-card .hs-multistep__progress-item.is-completed::after {
  display: none;
}

/* Pastille */
.hs-form-card .hs-multistep__progress-bullet {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  border-width: 1px;
  border-color: var(--hs-card-ink-muted);
  color: var(--hs-card-ink-muted);
  background-color: transparent;
  /* Centrage indépendant du thème (padding, police, interlettrage de <button>) */
  display: grid !important;
  place-items: center;
  padding: 0 !important;
  font-family: "Lato", sans-serif !important;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 0.8px !important;
  letter-spacing: -0.8px !important;
  text-align: center;
  text-indent: 0;
  text-transform: none;
}

.hs-form-card .hs-multistep__progress-bullet::before {
  display: none;
}

.hs-form-card .hs-multistep__progress-item.is-active .hs-multistep__progress-bullet {
  border-color: var(--hs-card-primary);
  color: var(--hs-card-primary);
  background-color: transparent;
}

.hs-form-card .hs-multistep__progress-item.is-completed:not(.is-active) .hs-multistep__progress-bullet {
  border-color: var(--hs-card-primary);
  color: transparent;
  background-color: var(--hs-card-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8' fill='none'%3E%3Cpath d='M1 4l2.6 2.6L9 1' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  font-size: 0;
}

.hs-form-card .hs-multistep__progress-item.is-unlocked .hs-multistep__progress-bullet:not(:disabled):hover {
  border-color: var(--hs-card-primary);
  color: var(--hs-card-primary);
}

.hs-form-card .hs-multistep__progress-item.is-completed:not(.is-active) .hs-multistep__progress-bullet:hover {
  color: transparent;
}

.hs-form-card .hs-multistep__progress-bullet:disabled,
.hs-form-card .hs-multistep__progress-bullet:disabled:hover,
.hs-form-card .hs-multistep__progress-bullet:disabled:focus,
.hs-form-card .hs-multistep__progress-bullet:disabled:active {
  border-color: var(--hs-card-ink-muted) !important;
  color: var(--hs-card-ink-muted) !important;
  background-color: transparent !important;
  opacity: 1;
}

/* Libellé */
.hs-form-card .hs-multistep__progress-label {
  max-width: 100%;
  overflow: hidden;
  color: var(--hs-card-ink-muted);
  font-size: 13px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hs-form-card .hs-multistep__progress-item.is-active .hs-multistep__progress-label {
  color: var(--hs-card-ink);
  font-weight: 700;
}

/* Titre « Vous êtes... » + texte d'introduction */
.hs-form-card .hs-multistep__profile-row,
.hs-form-card .hs-multistep__intro {
  padding-top: 30px;
}

.hs-form-card .hs-multistep__title,
.hs-form-card .hs-choice-select__label {
  display: block;
  margin: 0;
  color: var(--hs-card-ink);
  font-family: "Avant Garde Gothic", "ITC Avant Garde Gothic Std", sans-serif;
  font-size: 32px !important;
  font-weight: 400;
  /* Le site ne charge que les graisses 400 et 700 : le contour simule le 500 du Figma (comme ailleurs sur le site) */
  -webkit-text-stroke-width: 1px;
  line-height: normal;
}

.hs-form-card .hs-multistep__intro-text {
  margin: 0 0 26px;
  color: var(--hs-card-ink-muted);
  font-size: 16px;
  line-height: 24px;
}

/* Cartes de choix */
.hs-form-card .hs-choice-select {
  gap: 16px;
}

.hs-form-card .hs-choice-select__option {
  gap: 16px;
  min-height: 60px;
  padding: 20px;
  border: 1px solid var(--hs-card-line);
  border-radius: 16px;
  color: var(--hs-card-ink);
  background-color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  box-shadow: none;
}

.hs-form-card .hs-choice-select__option:hover {
  border-color: var(--hs-card-primary);
  background-color: #fff;
  box-shadow: none;
}

/* Sélectionné : bordure de 2px sans décalage de mise en page */
.hs-form-card .hs-choice-select__option.is-selected,
.hs-form-card .hs-choice-select__option.is-selected:hover {
  border-color: var(--hs-card-primary);
  background-color: rgba(244, 62, 64, 0.03);
  box-shadow: 0 0 0 1px var(--hs-card-primary);
}

.hs-form-card .hs-choice-select__option:focus-visible {
  outline: 2px solid var(--hs-card-primary);
  outline-offset: 2px;
}

.hs-form-card .hs-choice-select__option:focus:not(.is-selected):not(:hover) {
  border-color: var(--hs-card-line);
  background-color: #fff;
}

.hs-form-card .hs-choice-select.is-invalid .hs-choice-select__option:not(.is-selected) {
  border-color: var(--hs-step-danger);
}

/* Pastille radio (masquée dans les autres designs) */
.hs-choice-select__radio {
  display: none;
}

.hs-form-card .hs-choice-select__radio {
  position: relative;
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 1.5px solid var(--hs-card-line);
  border-radius: 50%;
  background-color: #fff;
}

.hs-form-card .hs-choice-select__radio::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--hs-card-primary);
  content: "";
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hs-form-card .is-selected .hs-choice-select__radio::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.hs-form-card .hs-choice-select__text {
  min-width: 0;
}

/* Champs (design étape 2) */
.hs-form-card .hs-form label:not(.hs-error-msg):not(.hs-choice-select__label) {
  margin-bottom: 10px;
  color: #1c1c1c;
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
}

.hs-form-card .hs-form .hs-form-required {
  color: inherit;
}

.hs-form-card .hs-form .hs-input:not([type="checkbox"]):not([type="radio"]) {
  min-height: 44px !important;
  padding: 0 14px !important;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  color: #1c1c1c;
  background-color: #fff;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 42px !important;
  box-shadow: none;
}

.hs-form-card .hs-form textarea.hs-input {
  padding: 12px 14px !important;
  line-height: 1.4 !important;
}

.hs-form-card .hs-form .hs-input::placeholder {
  color: #9ca3af;
  opacity: 1;
}

.hs-form-card .hs-form .hs-input:not([type="checkbox"]):not([type="radio"]):focus {
  border-color: var(--hs-card-primary);
  outline: none;
  box-shadow: 0 0 0 1px var(--hs-card-primary);
}

/* Select : chevron noir à droite */
.hs-form-card .hs-form select.hs-input {
  padding-right: 40px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px 8px !important;
  appearance: none;
  -webkit-appearance: none;
}

.hs-form-card .hs-form .hs-error-msg {
  color: var(--hs-card-primary) !important;
  font-size: 12px;
}

.hs-form-card .legal-consent-container,
.hs-form-card .legal-consent-container a {
  color: var(--hs-card-ink-muted);
}

/*
 * Grille d'une étape : 2 colonnes, 16px d'écart.
 * Les fieldsets HubSpot sont « aplatis » (display: contents) : les champs se
 * placent deux par deux dans l'ordre du formulaire (prénom / nom, puis
 * e-mail / téléphone). Zones de texte, titres et navigation sur toute la largeur.
 */
.hs-form-card .hs-form .hs-multistep__step {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
}

.hs-form-card .hs-form .hs-multistep__step > * {
  min-width: 0;
}

.hs-form-card .hs-form .hs-multistep__step fieldset,
.hs-form-card .hs-form .hs-multistep__step fieldset.hs-multistep__conditional-row,
.hs-form-card .hs-form .hs-multistep__step fieldset.hs-multistep__conditional-row .hs-dependent-field,
.hs-form-card .hs-form .hs-multistep__step .hs-dependent-field {
  display: contents !important;
}

.hs-form-card .hs-form .hs-multistep__step .hs-form-field,
.hs-form-card .hs-form .hs-multistep__step fieldset.hs-multistep__conditional-row .hs-form-field {
  flex: none !important;
  width: auto !important;
  min-width: 0;
}

.hs-form-card .hs-form .hs-multistep__step > .hs-multistep__intro,
.hs-form-card .hs-form .hs-multistep__step > .hs-multistep__profile-row,
.hs-form-card .hs-form .hs-multistep__step > .hs-multistep__navigation,
.hs-form-card .hs-form .hs-multistep__step > .legal-consent-container,
.hs-form-card .hs-form .hs-multistep__step .hs-form-field:has(textarea),
.hs-form-card .hs-form .hs-multistep__step .hs-richtext,
.hs-form-card .hs-form .hs-multistep__step .hs-form-field.hs-fieldtype-textarea,
.hs-form-card .hs-form .hs-multistep__step .hs-form-field.hs-fieldtype-booleancheckbox {
  grid-column: 1 / -1;
}

/* Texte légal : pleine largeur de la carte (le fieldset n'est pas aplati) */
.hs-form-card .hs-form .hs-multistep__step fieldset:has(.legal-consent-container),
.hs-form-card .hs-form .hs-multistep__step fieldset.form-columns-1:has(.legal-consent-container) {
  display: block !important;
  grid-column: 1 / -1;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.hs-form-card .hs-form .hs-multistep__step fieldset:has(.legal-consent-container) .hs-form-field,
.hs-form-card .hs-form .hs-multistep__step .legal-consent-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

@media (max-width: 767px) {
  .hs-form-card .hs-form .hs-multistep__step {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hs-form-card .hs-form .hs-multistep__step .hs-form-field,
.hs-form-card .hs-form .hs-multistep__step fieldset.hs-multistep__conditional-row .hs-form-field {
  margin-bottom: 0 !important;
}

/* Navigation : boutons alignés à droite */
.hs-form-card .hs-multistep__navigation {
  margin-top: 0;
  padding-top: 12px;
}

.hs-form-card .hs-multistep__button,
.hs-form-card .hs-multistep__navigation .hs-button {
  min-height: 0;
  padding: 15px 25px !important;
  border-width: 4px;
  border-radius: 15px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.hs-form-card .hs-multistep__next,
.hs-form-card .hs-multistep__navigation .hs-button {
  color: #fff;
  background-color: var(--hs-card-primary);
  border-color: rgba(255, 255, 255, 0.3);
}

.hs-form-card .hs-multistep__previous {
  color: #000;
  background-color: #fff;
  border-color: rgba(20, 20, 19, 0.06);
}

/*
 * Survol : la bordure garde ses 4px (Elementor impose border-width: 1px au
 * survol, d'où le « saut »). Seule la couleur de bordure change, comme sur
 * les boutons du site.
 */
.hs-form-card .hs-multistep__button,
.hs-form-card .hs-multistep__button:hover,
.hs-form-card .hs-multistep__button:focus,
.hs-form-card .hs-multistep__button:active,
.hs-form-card .hs-multistep__navigation .hs-button,
.hs-form-card .hs-multistep__navigation .hs-button:hover,
.hs-form-card .hs-multistep__navigation .hs-button:focus,
.hs-form-card .hs-multistep__navigation .hs-button:active {
  border-width: 4px !important;
  border-style: solid !important;
}

.hs-form-card .hs-multistep__next:hover,
.hs-form-card .hs-multistep__next:focus,
.hs-form-card .hs-multistep__navigation .hs-button:hover,
.hs-form-card .hs-multistep__navigation .hs-button:focus {
  color: #fff;
  background-color: var(--hs-card-primary);
  border-color: rgba(255, 255, 255, 0.71);
}

.hs-form-card .hs-multistep__previous:hover,
.hs-form-card .hs-multistep__previous:focus {
  color: var(--hs-card-primary);
  background-color: #fff;
  border-color: rgba(244, 62, 64, 0.64);
}

.hs-form-card .hs-multistep__button:focus-visible,
.hs-form-card .hs-multistep__progress-bullet:focus-visible,
.hs-form-card .hs-multistep__navigation .hs-button:focus-visible {
  outline: 2px solid var(--hs-card-primary);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .hs-form-card form.hs-form {
    padding: 40px 30px;
  }

  .hs-form-card .hs-multistep__meta {
    margin-bottom: 20px;
  }

  /*
   * Progression mobile : une seule piste grise avec un remplissage rouge,
   * 4 points, et uniquement l'étape active nommée dessous.
   */
  .hs-form-card .hs-multistep__progress {
    position: relative;
    display: flex;
    gap: 0;
    margin: 0 0 26px;
    padding-bottom: 34px;
  }

  /* static : pastille et libellé de l'étape active s'ancrent sur la piste */
  .hs-form-card .hs-multistep__progress-item {
    position: static;
    display: block;
    flex: 1 1 0;
    min-width: 0;
  }

  /* Le dernier item n'a pas de largeur : il porte seulement le dernier point */
  .hs-form-card .hs-multistep__progress-item:last-child {
    flex: 0 0 0;
  }

  .hs-form-card .hs-multistep__progress-item::before {
    display: block;
    border-radius: 0;
    background-color: #ddd;
  }

  .hs-form-card .hs-multistep__progress-item:first-child::before {
    border-radius: 2px 0 0 2px;
  }

  .hs-form-card .hs-multistep__progress-item:last-child::before {
    display: none;
  }

  /* Le segment est rouge s'il précède l'étape active */
  .hs-form-card .hs-multistep__progress-item.is-active::before,
  .hs-form-card .hs-multistep__progress-item.is-completed::before {
    background-color: #ddd;
  }

  .hs-form-card .hs-multistep__progress-item:has(~ .hs-multistep__progress-item.is-active)::before {
    background-color: var(--hs-card-primary);
  }

  /* Points */
  .hs-form-card .hs-multistep__progress-item:not(:last-child)::after,
  .hs-form-card .hs-multistep__progress-item::after {
    position: relative;
    z-index: 1;
    top: auto;
    left: auto;
    display: block !important;
    width: 12px;
    height: 12px;
    margin-top: -8px;
    border-radius: 50%;
    background-color: #ddd;
    content: "";
  }

  .hs-form-card .hs-multistep__progress-item:last-child::after {
    margin-top: -4px;
    margin-left: -12px;
  }

  .hs-form-card .hs-multistep__progress-item.is-active::after,
  .hs-form-card .hs-multistep__progress-item:has(~ .hs-multistep__progress-item.is-active)::after {
    background-color: var(--hs-card-primary);
  }

  /* Seule l'étape active affiche pastille + libellé, alignés à gauche de la piste */
  .hs-form-card .hs-multistep__progress-item:not(.is-active) .hs-multistep__progress-bullet,
  .hs-form-card .hs-multistep__progress-item:not(.is-active) .hs-multistep__progress-label {
    display: none !important;
  }

  .hs-form-card .hs-multistep__progress-item.is-active .hs-multistep__progress-bullet {
    position: absolute;
    top: 16px;
    left: 0;
  }

  .hs-form-card .hs-multistep__progress-item.is-active .hs-multistep__progress-label {
    position: absolute;
    top: 17px;
    left: 26px;
    max-width: none !important;
    font-size: 13px;
    line-height: normal;
  }

  .hs-form-card .hs-multistep__title,
  .hs-form-card .hs-choice-select__label {
    font-size: 25px !important;
  }

  .hs-form-card .hs-multistep__intro-text {
    margin-bottom: 26px;
    font-size: 14px;
    line-height: 20px;
  }

  .hs-form-card .hs-choice-select {
    grid-template-columns: 1fr;
  }

  /* Boutons à leur largeur naturelle, alignés comme sur le design */
  .hs-form-card .hs-multistep__navigation {
    flex-direction: row;
    align-items: center;
  }

  .hs-form-card .hs-form .hs-button,
  .hs-form-card .hs-multistep__button,
  .hs-form-card .hs-multistep__navigation .hs_submit,
  .hs-form-card .hs-multistep__navigation .hs-button {
    width: auto !important;
  }
}

/* Titre d'étape sans description : même espacement avant les champs */
.hs-form-card .hs-multistep__intro:not(:has(.hs-multistep__intro-text)) .hs-multistep__title {
  margin-bottom: 26px;
}
