@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Oswald:wght@200;300;400;500;600&display=swap");

#checkout #checkout-formule-step .content {
  box-shadow: none;
  border: 0;
  background: transparent;
  padding: 0;
}

#checkout #checkout-formule-step .checkout-auth-redesign--desktop {
  max-width: 1180px;
  margin: 0 auto;
}

#checkout #checkout-formule-step .checkout-auth-stepper {
  max-width: 760px;
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

#checkout #checkout-formule-step .checkout-auth-stepper::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: rgba(35, 35, 35, 0.12);
  z-index: 0;
}

#checkout #checkout-formule-step .checkout-auth-stepper__item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#checkout #checkout-formule-step .checkout-auth-stepper__circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(35, 35, 35, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.78rem;
  color: rgba(35, 35, 35, 0.46);
  background: #fdf9f3;
}

#checkout #checkout-formule-step .checkout-auth-stepper__label {
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(35, 35, 35, 0.4);
}

#checkout #checkout-formule-step .checkout-auth-stepper__item--active .checkout-auth-stepper__circle {
  background: #232323;
  color: #f2e9e0;
  border-color: #232323;
}

#checkout #checkout-formule-step .checkout-auth-stepper__item--active .checkout-auth-stepper__label {
  color: #232323;
  font-weight: 500;
}

#checkout #checkout-formule-step .checkout-auth-stepper__item--done .checkout-auth-stepper__circle {
  background: #232323;
  border-color: #232323;
  color: #f2e9e0;
}

#checkout #checkout-formule-step .checkout-auth-stepper__item--done .checkout-auth-stepper__label {
  color: rgba(35, 35, 35, 0.6);
}

#checkout #checkout-formule-step .checkout-auth-stepper__item--done .checkout-auth-stepper__circle svg {
  display: block;
}

#checkout #checkout-formule-step .checkout-auth-layout {
  display: block;
}

#checkout #checkout-formule-step .checkout-formule-main {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

@media (min-width: 992px) {
  #checkout #checkout-formule-step .checkout-formule-main {
    padding-bottom: 96px;
  }
}

#checkout #checkout-formule-step .checkout-auth-hero-m {
  margin-bottom: 48px;
  text-align: center;
}

#checkout #checkout-formule-step .checkout-auth-redesign__kicker {
  font-family: "Oswald", sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 18px;
}

#checkout #checkout-formule-step .checkout-auth-redesign__title {
  margin: 0 0 18px;
  padding: 0;
  font-family: "Libre Baskerville", "Libre Bodoni", Georgia, serif;
  font-size: 2.8rem;
  line-height: 1.15;
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.015em;
  color: #232323;
  text-transform: none;
}

#checkout #checkout-formule-step .checkout-auth-hero-m .checkout-auth-redesign__title em {
  font-style: italic;
}

#checkout #checkout-formule-step .checkout-auth-redesign__subtitle {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(35, 35, 35, 0.58);
  max-width: 560px;
  margin: 0 auto;
}

#checkout #checkout-formule-step .checkout-auth-subtitle-line1-d,
#checkout #checkout-formule-step .checkout-auth-subtitle-line2-d {
  display: inline;
}

#checkout #checkout-formule-step .checkout-formule-engage-switch {
  margin: 0 auto 36px;
  display: inline-flex;
  border: 1px solid rgba(35, 35, 35, 0.14);
}

#checkout #checkout-formule-step .checkout-formule-cta {
  text-align: center;
}

#checkout #checkout-formule-step .checkout-formule-engage-switch button {
  background: transparent;
  border: 0;
  padding: 14px 28px;
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
}

#checkout #checkout-formule-step .checkout-formule-engage-switch button.is-active {
  background: #232323;
  color: #f2e9e0;
  opacity: 1;
}

#checkout #checkout-formule-step .checkout-formule-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

#checkout #checkout-formule-step .checkout-formule-cards[data-mode="mensuel"] {
  grid-template-columns: 1fr;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

#checkout #checkout-formule-step .checkout-formule-card {
  display: none;
  position: relative;
  overflow: visible;
  border: 1px solid rgba(35, 35, 35, 0.12);
  background: #fdf9f3;
  padding: 36px 28px 32px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

#checkout #checkout-formule-step .checkout-formule-cards[data-mode="mensuel"] .checkout-formule-card[data-mode="mensuel"] {
  display: block;
}

#checkout #checkout-formule-step .checkout-formule-cards[data-mode="engagement"] .checkout-formule-card[data-mode="engagement"] {
  display: block;
}

#checkout #checkout-formule-step .checkout-formule-card:hover {
  border-color: rgba(35, 35, 35, 0.3);
}

#checkout #checkout-formule-step .checkout-formule-card.is-selected {
  border-color: #232323;
  background: #f2e9e0;
  box-shadow: 0 12px 40px -18px rgba(35, 35, 35, 0.25);
}

#checkout #checkout-formule-step .checkout-formule-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

#checkout #checkout-formule-step .checkout-formule-card__tag {
  font-family: "Oswald", sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 8px;
}

#checkout #checkout-formule-step .checkout-formule-card__radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(35, 35, 35, 0.25);
  flex-shrink: 0;
}

#checkout #checkout-formule-step .checkout-formule-card.is-selected .checkout-formule-card__radio {
  background: #232323;
  border-color: #232323;
  box-shadow: inset 0 0 0 4px #f2e9e0;
}

#checkout #checkout-formule-step .checkout-formule-card__badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: #232323;
  color: #f2e9e0;
  font-size: 0.52rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 4px 12px;
}

#checkout #checkout-formule-step .checkout-formule-card h3 {
  margin: 0 0 12px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.42rem;
  font-weight: 400;
  line-height: 1.2;
}

#checkout #checkout-formule-step .checkout-formule-card h3 em {
  font-style: italic;
}

#checkout #checkout-formule-step .checkout-formule-card-price {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 18px;
  text-align: left;
}

#checkout #checkout-formule-step .checkout-formule-card-price .cents {
  font-size: 1rem;
  opacity: 0.75;
}

#checkout #checkout-formule-step .checkout-formule-card-price small {
  font-family: "Oswald", sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-left: 6px;
}

#checkout #checkout-formule-step .checkout-formule-card ul {
  margin: 0;
  padding: 20px 0 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(35, 35, 35, 0.1);
}

#checkout #checkout-formule-step .checkout-formule-card li {
  display: flex;
  gap: 10px;
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 300;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(35, 35, 35, 0.65);
}

#checkout #checkout-formule-step .checkout-formule-card li::before {
  content: "—";
  opacity: 0.45;
  flex-shrink: 0;
}

#checkout #checkout-formule-step .checkout-formule-band {
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(35, 35, 35, 0.1);
  background: #f2e9e0;
}

#checkout #checkout-formule-step .checkout-formule-band .cell {
  padding: 24px 20px;
  text-align: center;
}

#checkout #checkout-formule-step .checkout-formule-band .cell + .cell {
  border-left: 1px solid rgba(35, 35, 35, 0.1);
}

#checkout #checkout-formule-step .checkout-formule-band .cell em {
  display: block;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 4px;
}

#checkout #checkout-formule-step .checkout-formule-band .cell div {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.55;
}

#checkout #checkout-formule-step .checkout-formule-recap-mobile {
  display: none;
}

#checkout #checkout-formule-step .checkout-formule-microcopy {
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.45;
  margin: 0 0 40px;
}

#checkout #checkout-formule-step .checkout-formule-cta .btn.btn-primary {
  display: inline-block;
  min-width: 340px;
  border: 1px solid #232323;
  background: #232323;
  color: #f2e9e0;
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 20px 40px;
  border-radius: 0;
  transition: background 0.2s ease;
}

#checkout #checkout-formule-step .checkout-formule-cta .btn.btn-primary:hover,
#checkout #checkout-formule-step .checkout-formule-cta .btn.btn-primary:focus {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #f2e9e0;
}

#checkout #checkout-formule-step .checkout-formule-cta-hint {
  margin-top: 16px;
  font-family: "Oswald", sans-serif;
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #232323;
  opacity: 0.45;
}

#checkout #checkout-formule-step .checkout-formule-trust {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 48px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  font-family: "Oswald", sans-serif;
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #232323;
  opacity: 0.35;
  border-top: 1px solid rgba(35, 35, 35, 0.06);
  box-sizing: border-box;
}

#checkout #checkout-formule-step .checkout-formule-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#checkout #checkout-formule-step .checkout-formule-trust svg {
  opacity: 0.7;
  flex-shrink: 0;
}

/* Garde-fou: masquer tout ancien encart "Votre formule" si cache mixe les versions */
#checkout #checkout-formule-step .checkout-auth-summary,
#checkout #checkout-formule-step .checkout-auth-layout__aside {
  display: none !important;
}

@media (min-width: 992px) {
  #checkout #checkout-formule-step .checkout-auth-mobile-tun {
    display: none !important;
  }

  #content.cms-parcours-checkout--formule #checkout #checkout-formule-step .checkout-auth-redesign--formule-v2,
  #checkout.cms-checkout-auth #checkout-formule-step .checkout-auth-redesign--desktop.checkout-auth-redesign--formule-v2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 48px 0;
    box-sizing: border-box;
  }

  #content.cms-parcours-checkout--formule #checkout #checkout-formule-step .checkout-auth-redesign--formule-v2 .checkout-auth-hero-m,
  #checkout.cms-checkout-auth #checkout-formule-step .checkout-auth-redesign--formule-v2 .checkout-auth-hero-m {
    margin-bottom: 48px;
    text-align: center;
  }

  #content.cms-parcours-checkout--formule #checkout #checkout-formule-step .checkout-auth-redesign--formule-v2 .checkout-auth-redesign__kicker,
  #checkout.cms-checkout-auth #checkout-formule-step .checkout-auth-redesign--formule-v2 .checkout-auth-redesign__kicker {
    margin: 0 0 18px;
    font-family: "Oswald", sans-serif;
    font-weight: 400;
    font-size: 0.68rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    opacity: 0.45;
  }

  #content.cms-parcours-checkout--formule #checkout #checkout-formule-step .checkout-auth-redesign--formule-v2 .checkout-auth-redesign__title,
  #checkout.cms-checkout-auth #checkout-formule-step .checkout-auth-redesign--formule-v2 .checkout-auth-hero-m .checkout-auth-redesign__title,
  #checkout.cms-checkout-auth #checkout-formule-step .checkout-auth-redesign--formule-v2 h1.checkout-auth-redesign__title {
    margin: 0 0 18px;
    padding: 0;
    font-family: "Libre Baskerville", "Libre Bodoni", Georgia, serif;
    font-size: 44.8px;
    font-size: 2.8rem;
    line-height: 1.15;
    font-weight: 400;
    font-style: normal;
    letter-spacing: -0.015em;
    color: #232323;
    text-transform: none;
  }

  #content.cms-parcours-checkout--formule #checkout #checkout-formule-step .checkout-auth-redesign--formule-v2 .checkout-auth-redesign__subtitle,
  #checkout.cms-checkout-auth #checkout-formule-step .checkout-auth-redesign--formule-v2 .checkout-auth-redesign__subtitle {
    margin: 0 auto;
    max-width: none;
    width: 100%;
    font-family: "Libre Baskerville", "Libre Bodoni", Georgia, serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(35, 35, 35, 0.58);
    text-align: center;
  }

  #checkout #checkout-formule-step .checkout-auth-subtitle-mobile {
    display: none !important;
  }

  #content.cms-parcours-checkout--formule #checkout #checkout-formule-step .checkout-auth-subtitle-line1-d,
  #checkout.cms-checkout-auth #checkout-formule-step .checkout-auth-subtitle-line1-d {
    display: block;
    white-space: nowrap !important;
    text-align: center;
  }

  #content.cms-parcours-checkout--formule #checkout #checkout-formule-step .checkout-auth-subtitle-line2-d,
  #checkout.cms-checkout-auth #checkout-formule-step .checkout-auth-subtitle-line2-d {
    display: block;
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
  }
}

/* Même breakpoint que le thème (#wrapper @media max-width: 1023px) */
@media (max-width: 1023px) {
  body#cms.cms-id-37 #wrapper,
  body#cms.cms-id-37 section#wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 991px) {
  #checkout #checkout-formule-step .checkout-auth-redesign--formule-v2,
  #checkout #checkout-formule-step .checkout-auth-redesign--desktop.checkout-auth-redesign--formule-v2 {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  #checkout #checkout-formule-step .checkout-auth-mobile-tun {
    display: block !important;
    margin-bottom: 18px;
  }

  #checkout #checkout-formule-step .checkout-auth-stepper {
    display: none;
  }

  #checkout #checkout-formule-step .checkout-auth-stepper-m {
    display: flex;
    gap: 5px;
    margin-bottom: 14px;
  }

  #checkout #checkout-formule-step .checkout-auth-stepper-m__seg {
    flex: 1;
    height: 2px;
    background: rgba(35, 35, 35, 0.12);
  }

  #checkout #checkout-formule-step .checkout-auth-stepper-m__seg--active {
    background: #232323;
  }

  #checkout #checkout-formule-step .checkout-auth-step-labels-m {
    display: flex;
    gap: 5px;
    margin: 0 0 16px;
    font-family: "Oswald", sans-serif;
    font-size: 0.5rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(35, 35, 35, 0.35);
  }

  #checkout #checkout-formule-step .checkout-auth-step-labels-m__item {
    flex: 1;
    white-space: nowrap;
  }

  #checkout #checkout-formule-step .checkout-auth-step-labels-m__item--active {
    color: #232323;
    font-weight: 500;
  }

  #checkout #checkout-formule-step .checkout-auth-layout {
    display: block;
    padding-bottom: 108px;
  }

  #checkout #checkout-formule-step .checkout-auth-hero-m {
    text-align: left;
    margin-bottom: 32px;
  }

  #checkout #checkout-formule-step .checkout-auth-redesign__kicker {
    text-align: left;
    font-family: "Oswald", sans-serif;
    font-weight: 400;
    margin-bottom: 10px;
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    opacity: 0.5;
  }

  #checkout #checkout-formule-step .checkout-auth-redesign__title {
    text-align: left;
    font-family: "Libre Baskerville", Georgia, serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.7rem;
    line-height: 1.2;
    letter-spacing: 0;
    margin-bottom: 10px;
  }

  #checkout #checkout-formule-step .checkout-auth-hero-m .checkout-auth-redesign__title em {
    font-style: italic;
  }

  #checkout #checkout-formule-step .checkout-auth-redesign__subtitle {
    text-align: left;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 0.78rem;
    line-height: 1.65;
    color: rgba(35, 35, 35, 0.55);
    max-width: none;
    margin: 0 0 32px;
  }

  #checkout #checkout-formule-step .checkout-auth-subtitle-desktop {
    display: none !important;
  }

  #checkout #checkout-formule-step .checkout-auth-subtitle-mobile {
    display: block;
  }

  #checkout #checkout-formule-step .checkout-formule-cta {
    text-align: left;
  }

  #checkout #checkout-formule-step .checkout-formule-engage-switch {
    width: 100%;
    display: flex;
    margin: 0 0 18px;
    border: 1px solid rgba(35, 35, 35, 0.12);
  }

  #checkout #checkout-formule-step .checkout-formule-engage-switch button {
    flex: 1;
    min-width: 0;
    padding: 12px;
    font-family: "Oswald", sans-serif;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.5;
    color: #232323;
  }

  #checkout #checkout-formule-step .checkout-formule-engage-switch button.is-active {
    background: #232323;
    color: #f2e9e0;
    opacity: 1;
  }

  #checkout #checkout-formule-step .checkout-formule-cards {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 16px;
  }

  #checkout #checkout-formule-step .checkout-formule-card {
    padding: 18px 16px;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
  }

  #checkout #checkout-formule-step .checkout-formule-cards[data-mode="mensuel"] .checkout-formule-card[data-mode="mensuel"] {
    display: grid;
  }

  #checkout #checkout-formule-step .checkout-formule-cards[data-mode="engagement"] .checkout-formule-card[data-mode="engagement"] {
    display: grid;
  }

  #checkout #checkout-formule-step .checkout-formule-card__head {
    display: contents;
  }

  #checkout #checkout-formule-step .checkout-formule-card__head > div:first-child {
    grid-column: 2;
  }

  #checkout #checkout-formule-step .checkout-formule-card__radio {
    grid-column: 1;
    grid-row: 1;
    width: 14px;
    height: 14px;
    margin-top: 2px;
  }

  #checkout #checkout-formule-step .checkout-formule-card-price {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
    font-size: 1.2rem;
    margin: 0;
  }

  #checkout #checkout-formule-step .checkout-formule-card-price small {
    font-size: 0.55rem;
    letter-spacing: 0.15em;
  }

  #checkout #checkout-formule-step .checkout-formule-card__tag {
    font-size: 0.52rem;
    letter-spacing: 0.22em;
    margin-bottom: 4px;
  }

  #checkout #checkout-formule-step .checkout-formule-card h3 {
    font-size: 0.9rem;
    margin: 0;
  }

  #checkout #checkout-formule-step .checkout-formule-card ul {
    display: none;
  }

  #checkout #checkout-formule-step .checkout-formule-card__badge {
    top: -7px;
    right: 14px;
    left: auto;
    transform: none;
    font-size: 0.48rem;
    padding: 2px 7px;
  }

  #checkout #checkout-formule-step .checkout-formule-microcopy {
    text-align: left;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    margin: 0 0 22px;
  }

  #checkout #checkout-formule-step .checkout-formule-band--desktop {
    display: none;
  }

  /* Garde-fou cache: masque aussi la version sans suffixe */
  #checkout #checkout-formule-step .checkout-formule-band {
    display: none !important;
  }

  #checkout #checkout-formule-step .checkout-formule-recap-mobile {
    display: block;
    border: 1px solid rgba(35, 35, 35, 0.08);
    background: #f2e9e0;
    padding: 18px 16px;
    margin-bottom: 24px;
  }

  #checkout #checkout-formule-step .checkout-formule-recap-mobile h5 {
    margin: 0 0 12px;
    font-family: "Oswald", sans-serif;
    font-size: 0.52rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 400;
    color: rgba(35, 35, 35, 0.55);
  }

  #checkout #checkout-formule-step .checkout-formule-recap-mobile .row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 9px 0;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 0.74rem;
    line-height: 1.35;
  }

  #checkout #checkout-formule-step .checkout-formule-recap-mobile .row:not(:last-child) {
    border-bottom: 1px solid rgba(35, 35, 35, 0.08);
  }

  #checkout #checkout-formule-step .checkout-formule-recap-mobile .lbl {
    color: rgba(35, 35, 35, 0.58);
    font-style: normal;
  }

  #checkout #checkout-formule-step .checkout-formule-recap-mobile .row > span:last-child {
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
  }

  #checkout #checkout-formule-step .checkout-formule-recap-mobile em {
    font-style: italic;
    color: #232323;
  }

  #checkout #checkout-formule-step .checkout-formule-cta--sticky-mobile {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 999 !important;
    margin: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fdf9f3;
    border-top: 1px solid rgba(35, 35, 35, 0.1);
    box-shadow: 0 -6px 18px rgba(35, 35, 35, 0.08);
  }

  #checkout #checkout-formule-step .checkout-formule-cta .btn.btn-primary {
    min-width: 0;
    width: 100%;
    padding: 14px 18px;
    letter-spacing: 0.18em;
  }

  #checkout #checkout-formule-step .checkout-formule-cta-hint {
    margin-top: 8px;
    font-family: "Oswald", sans-serif;
    font-weight: 300;
    font-size: 0.56rem;
    letter-spacing: 0.1em;
    opacity: 0.45;
  }

  #checkout #checkout-formule-step .checkout-formule-trust {
    display: none !important;
  }
}

/* Modal « Gardez votre panier » (sortie étape formule CMS) — maquette .save-cart-d */
.checkout-auth-save-cart {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(35, 35, 35, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  padding: 16px;
  box-sizing: border-box;
}

.checkout-auth-save-cart.checkout-auth-save-cart--open {
  opacity: 1;
  pointer-events: auto;
}

.checkout-auth-save-cart__panel {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  background: #fdf9f3;
  padding: 44px 44px 32px;
  position: relative;
  transform: scale(0.96);
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.checkout-auth-save-cart.checkout-auth-save-cart--open .checkout-auth-save-cart__panel {
  transform: scale(1);
}

.checkout-auth-save-cart__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.2s;
  border: 0;
  background: transparent;
  color: #232323;
  padding: 0;
  pointer-events: auto;
}

.checkout-auth-save-cart__close:hover {
  opacity: 1;
}

.checkout-auth-save-cart__eyebrow {
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.5;
  margin: 0 0 14px;
  color: #232323;
  text-align: left;
}

.checkout-auth-save-cart__title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: #232323;
}

.checkout-auth-save-cart__title em {
  font-style: italic;
}

.checkout-auth-save-cart__desc {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(35, 35, 35, 0.62);
  margin: 0 0 24px;
  text-align: left;
}

.checkout-auth-save-cart__recap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #f2e9e0;
  margin-bottom: 22px;
  font-family: "Oswald", sans-serif;
  font-weight: 300;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: #232323;
}

.checkout-auth-save-cart__recap em {
  font-family: "Libre Baskerville", Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
}

.checkout-auth-save-cart__field {
  margin-bottom: 24px;
}

.checkout-auth-save-cart__field label {
  display: block;
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 8px;
  color: #232323;
  text-align: left;
}

.checkout-auth-save-cart__field input {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1rem;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(35, 35, 35, 0.2);
  width: 100%;
  background: transparent;
  transition: border-color 0.2s;
  color: #232323;
  box-sizing: border-box;
}

.checkout-auth-save-cart__field input:focus {
  outline: none;
  border-bottom-color: #232323;
}

.checkout-auth-save-cart__field input::placeholder {
  color: rgba(35, 35, 35, 0.3);
  font-style: italic;
}

.checkout-auth-save-cart__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.checkout-auth-save-cart__actions .btn.btn-primary {
  width: 100%;
  min-width: 0;
  padding: 16px 24px;
  border-radius: 0;
}

.checkout-auth-save-cart__quit {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  font-family: "Oswald", sans-serif;
  font-weight: 300;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.45;
  text-decoration: underline;
  transition: opacity 0.2s;
  color: #232323;
}

.checkout-auth-save-cart__quit:hover {
  opacity: 0.85;
}

.checkout-auth-save-cart__success {
  display: none;
  text-align: center;
  padding: 8px 0;
}

.checkout-auth-save-cart.checkout-auth-save-cart--success .checkout-auth-save-cart__success {
  display: block;
}

.checkout-auth-save-cart.checkout-auth-save-cart--success .checkout-auth-save-cart__eyebrow,
.checkout-auth-save-cart.checkout-auth-save-cart--success .checkout-auth-save-cart__title,
.checkout-auth-save-cart.checkout-auth-save-cart--success .checkout-auth-save-cart__desc,
.checkout-auth-save-cart.checkout-auth-save-cart--success .checkout-auth-save-cart__recap,
.checkout-auth-save-cart.checkout-auth-save-cart--success .checkout-auth-save-cart__field,
.checkout-auth-save-cart.checkout-auth-save-cart--success .checkout-auth-save-cart__actions {
  display: none;
}

.checkout-auth-save-cart__success .checkout-auth-save-cart__ok-ico,
.checkout-auth-save-cart__ok-ico {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #4caf50;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}

.checkout-auth-save-cart__success h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0 0 10px;
  color: #232323;
}

.checkout-auth-save-cart__success p {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(35, 35, 35, 0.6);
  margin: 0 0 24px;
}

.checkout-auth-save-cart__success-close {
  min-width: 220px;
  border-radius: 0;
}

@media (max-width: 600px) {
  .checkout-auth-save-cart__panel {
    padding: 36px 22px 28px;
  }

  .checkout-auth-save-cart__title {
    font-size: 1.55rem;
  }
}

/*
  Page CMS formule (37) — mobile : modal « Gardez votre panier » = bottom sheet
  (Parcours Mobile.html : .save-cart-m / .save-cart-panel).
*/
@media (max-width: 1023px) {
  #content.cms-parcours-checkout--formule .checkout-auth-save-cart {
    align-items: flex-end;
    justify-content: center;
    padding: 0 !important;
    background: rgba(35, 35, 35, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  #content.cms-parcours-checkout--formule .checkout-auth-save-cart__panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 430px;
    width: 100%;
    margin: 0;
    border-radius: 20px 20px 0 0;
    padding: 28px 24px 24px !important;
    transform: translateY(100%) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box;
  }

  #content.cms-parcours-checkout--formule
    .checkout-auth-save-cart.checkout-auth-save-cart--open
    .checkout-auth-save-cart__panel {
    transform: translateY(0) !important;
  }

  #content.cms-parcours-checkout--formule .checkout-auth-save-cart__panel::before {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    background: rgba(35, 35, 35, 0.2);
    border-radius: 2px;
    margin: -8px auto 4px;
    flex-shrink: 0;
  }

  #content.cms-parcours-checkout--formule .checkout-auth-save-cart__close {
    top: 12px;
    right: 12px;
    z-index: 30;
  }

  #content.cms-parcours-checkout--formule .checkout-auth-save-cart__main {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  #content.cms-parcours-checkout--formule .checkout-auth-save-cart__eyebrow {
    margin: 0;
    font-size: 0.55rem;
    letter-spacing: 0.26em;
  }

  #content.cms-parcours-checkout--formule .checkout-auth-save-cart__title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.25;
  }

  #content.cms-parcours-checkout--formule .checkout-auth-save-cart__desc {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(35, 35, 35, 0.65);
  }

  #content.cms-parcours-checkout--formule .checkout-auth-save-cart__recap {
    margin: 4px 0 6px;
    padding: 12px 14px;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
  }

  #content.cms-parcours-checkout--formule .checkout-auth-save-cart__recap em {
    font-size: 0.85rem;
  }

  #content.cms-parcours-checkout--formule .checkout-auth-save-cart__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0;
  }

  #content.cms-parcours-checkout--formule .checkout-auth-save-cart__field label {
    margin-bottom: 0;
    font-size: 0.52rem;
    letter-spacing: 0.22em;
  }

  #content.cms-parcours-checkout--formule .checkout-auth-save-cart__field input {
    font-size: 0.9rem;
    padding: 8px 0;
  }

  #content.cms-parcours-checkout--formule .checkout-auth-save-cart__actions {
    gap: 8px;
    margin-top: 4px;
  }

  #content.cms-parcours-checkout--formule .checkout-auth-save-cart__actions .btn.btn-primary {
    padding: 15px 24px;
  }

  #content.cms-parcours-checkout--formule .checkout-auth-save-cart__quit {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    opacity: 0.55;
    padding: 8px;
  }

  #content.cms-parcours-checkout--formule
    .checkout-auth-save-cart.checkout-auth-save-cart--success
    .checkout-auth-save-cart__main {
    display: none !important;
  }

  #content.cms-parcours-checkout--formule
    .checkout-auth-save-cart.checkout-auth-save-cart--success
    .checkout-auth-save-cart__panel::before {
    display: none;
  }

  #content.cms-parcours-checkout--formule .checkout-auth-save-cart__success {
    padding: 12px 0 8px;
  }

  #content.cms-parcours-checkout--formule .checkout-auth-save-cart__success .checkout-auth-save-cart__ok-ico,
  #content.cms-parcours-checkout--formule .checkout-auth-save-cart__ok-ico {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
  }

  #content.cms-parcours-checkout--formule .checkout-auth-save-cart__success h3 {
    font-size: 1.2rem;
    margin: 0 0 6px;
  }

  #content.cms-parcours-checkout--formule .checkout-auth-save-cart__success p {
    font-size: 0.78rem;
    max-width: 300px;
    margin: 0 auto 10px;
  }

  #content.cms-parcours-checkout--formule .checkout-auth-save-cart__success-close {
    min-width: 0;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }
}

/* Garde-fou desktop : titre héro aligné maquette .head-d h1 (2.8rem / 44.8px) */
@media (min-width: 992px) {
  body.page-cms-37 #content.cms-parcours-checkout--formule #checkout.cms-checkout-auth #checkout-formule-step .checkout-auth-redesign--formule-v2 .checkout-auth-hero-m h1.checkout-auth-redesign__title {
    font-family: "Libre Baskerville", "Libre Bodoni", Georgia, serif !important;
    font-size: 2.8rem !important;
    line-height: 1.15 !important;
    font-weight: 400 !important;
    letter-spacing: -0.015em !important;
    color: #232323 !important;
    text-transform: none !important;
  }

  body.page-cms-37 #content.cms-parcours-checkout--formule #checkout.cms-checkout-auth #checkout-formule-step .checkout-auth-subtitle-line1-d {
    display: block !important;
    white-space: nowrap !important;
    text-align: center !important;
  }
}
