body {
  background: #fff8f7;
  color: #243247;
}

.welcome-hero {
  z-index: 0;
  background-position: center 45%;
}

.welcome-hero:before {
  background: rgba(92, 20, 26, 0.28);
}

.welcome-hero-txt {
  padding: 150px 0 64px;
}

.welcome-hero-txt h2 {
  max-width: 850px;
  margin: 0 auto 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  text-transform: none;
}

.welcome-hero-txt p {
  font-size: 17px;
}

.registration-main {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
  padding: 32px 0 64px;
}

.registration-intro {
  margin: 0 auto 20px;
  text-align: center;
}

.registration-intro h2 {
  margin: 0 0 8px;
  color: #243247;
  font-size: 28px;
  font-weight: 700;
}

.registration-intro p,
.member-card-header p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
}

#innerHtml {
  display: grid;
  gap: 24px;
}

.member-card {
  scroll-margin-top: 24px;
  overflow: hidden;
  padding: 0 28px 20px;
  border: 1px solid #efd8d6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(31, 50, 81, 0.08);
}

.member-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 0 16px;
  border-bottom: 1px solid #f1dfdd;
}

.member-step {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 50%;
  background: #fbe5e3;
  color: #8a2026;
  font-size: 17px;
  font-weight: 700;
}

.member-card-header h2 {
  margin: 0 0 3px;
  color: #243247;
  font-size: 20px;
  font-weight: 700;
}

.member-card > .container {
  width: 100%;
  padding: 0;
}

.model-search-content {
  position: static;
  bottom: auto;
  top: auto;
  width: 100%;
  padding: 16px 0 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.model-search-content > .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.model-search-content .single-model-search {
  margin: 0 0 16px;
  padding: 0 10px;
}

.member-card label[for="annee-select"] {
  white-space: normal !important;
}

.member-card #annee-select {
  max-width: 100%;
}

.form-field-label {
  display: block;
  margin: 0 0 7px;
  color: #334155;
  font-size: 14px;
  font-weight: 650;
  text-transform: capitalize;
}

.required-marker {
  color: #b42318;
  font-weight: 700;
}

.form-text-box .form-text-control {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  color: #17263c;
  font-size: 16px;
  font-weight: 400;
}

.form-text-box .form-text-control:focus {
  border-color: #a52a32;
  box-shadow: 0 0 0 3px rgba(165, 42, 50, 0.16);
}

.first_service,
.service {
  padding: 24px 0 4px;
}

.first_service h1,
.service h1 {
  margin: 0 0 8px;
  color: #243247;
  font-size: 21px;
  font-weight: 700;
  text-align: left;
  text-transform: none;
}

.member-card .service-content > .row {
  display: flex;
  flex-wrap: wrap;
}

.member-card .service-content > .row > [class*="col-"] {
  margin-bottom: 12px;
}

.member-card .service-content > .formation-grid,
.member-card .service-content > .instrument-grid {
  display: grid;
  align-items: stretch;
  gap: 12px;
  margin: 0;
}

.member-card .formation-grid {
  grid-template-columns: minmax(0, 1fr);
}

.member-card .instrument-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.member-card .formation-grid > div:first-child,
.member-card .instrument-grid > form,
.member-card .instrument-grid > div:first-child {
  display: contents;
}

.member-card .formation-grid > [class*="col-"],
.member-card .instrument-grid > [class*="col-"] {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  float: none;
}

.member-card .service-content > .formation-grid > [class*="col-"],
.member-card .service-content > .instrument-grid > [class*="col-"] {
  margin-bottom: 0;
}

.member-card .single-service-item,
.member-card .single-service-item-click {
  display: flex;
  min-height: 116px;
  height: auto;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 18px 16px;
  border: 1px solid #d5deea;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.member-card .single-service-item,
.member-card .single-service-item-click {
  overflow-wrap: anywhere;
}

.member-card .single-service-item h2,
.member-card .single-service-item-click h2 {
  margin: 0 0 6px;
  color: inherit;
  font-size: 16px;
  font-weight: 700;
}

.member-card .single-service-item p,
.member-card .single-service-item-click p {
  margin: 0;
  padding: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.member-card .single-service-item p:before,
.member-card .single-service-item-click p:before {
  display: none;
}

.member-card .single-service-item:hover {
  border-color: #d68182;
  background: #fff5f4;
  box-shadow: 0 4px 12px rgba(31, 50, 81, 0.08);
}

.member-card .single-service-item-click {
  border-color: #a52a32;
  background: #fff0ef;
  box-shadow: inset 0 0 0 1px #a52a32;
  color: #7b1f24;
}

.member-card .single-service-item-click p {
  color: #7b3d40;
}

.member-card .single-service-item.choice-focus,
.member-card .single-service-item-click.choice-focus,
.member-card .onoff.choice-focus,
.member-card .onoffchecked.choice-focus {
  outline: 3px solid rgba(165, 42, 50, 0.35);
  outline-offset: 2px;
}

.member-card .cours {
  padding: 4px 0 0;
  text-align: left;
}

.member-card .cours form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 10px;
  padding: 12px 14px;
  border: 1px solid #efd0ce;
  border-left: 4px solid #a52a32;
  border-radius: 9px;
  background: #fff5f4;
}

.member-card .cours form .course-title {
  flex: 1 1 180px;
  color: #7b1f24;
  font-size: 15px;
  font-weight: 750;
}

.member-card .onoff,
.member-card .onoffchecked {
  min-width: 68px;
  margin: 0;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.member-card .onoff {
  border-color: #cbd5e1;
  background: #fff;
  color: #475569;
}

.member-card .onoff:hover {
  border-color: #d68182;
  background: #fff5f4;
}

.member-card .onoffchecked {
  border-color: #a52a32;
  background: #a52a32;
  color: #fff;
}

.visually-hidden-control {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

.addMember {
  margin: 22px 0 16px;
  text-align: center;
}

#member-count {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.member-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.change-inscrits {
  min-height: 46px;
  margin: 0;
  padding: 10px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: #334155;
  font-size: 15px;
  font-weight: 600;
}

.change-inscrits-primary {
  border-color: #a52a32;
  background: #a52a32;
  color: #fff;
}

.change-inscrits:hover:not(:disabled) {
  border-color: #7b1f24;
  background: #7b1f24;
  color: #fff;
}

.change-inscrits:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.total-price-section {
  display: flex;
  justify-content: center;
  margin: 16px 0 22px;
}

.total-price-card {
  display: flex;
  width: min(100%, 520px);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid #efd0ce;
  border-radius: 12px;
  background: #fff0ef;
  color: #334155;
  font-size: 16px;
}

.total-price-card strong {
  color: #8a2026;
  font-size: 23px;
}

.charte-sonerion {
  width: min(100%, 700px);
  margin: 0 auto 18px;
  padding: 14px 16px;
  border: 1px solid #efd8d6;
  border-radius: 10px;
  background: #fff;
}

.charte-label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
  cursor: pointer;
}

.charte-label input,
.payment-installments input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 2px 0 0;
  accent-color: #a52a32;
}

.payment-section {
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid #efd8d6;
  border-radius: 12px;
  background: #fff;
}

.payment-installments {
  display: flex;
  max-width: 520px;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.HaPayButton {
  min-height: 48px;
  cursor: pointer;
}

.HaPayButton:focus-visible,
.change-inscrits:focus-visible,
.payment-installments input:focus-visible,
.charte-label input:focus-visible {
  outline: 3px solid rgba(165, 42, 50, 0.4);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .welcome-hero-txt {
    padding: 125px 0 44px;
  }

  .welcome-hero-txt p {
    font-size: 15px;
  }

  .registration-main {
    width: min(100% - 20px, 620px);
    padding-top: 22px;
  }

  .member-card {
    padding: 0 16px 16px;
    border-radius: 12px;
  }

  .model-search-content .single-model-search {
    margin-bottom: 12px;
  }

  .member-card .single-service-item,
  .member-card .single-service-item-click {
    min-height: 92px;
    padding: 14px;
  }

  .member-card .formation-grid,
  .member-card .instrument-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .member-card .service-content > .instrument-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .member-card .instrument-grid > [class*="col-"] {
    flex: 0 0 min(72vw, 240px);
    scroll-snap-align: start;
  }

  .member-actions {
    flex-direction: column;
  }

  .member-actions .change-inscrits {
    width: 100%;
  }

  .payment-section {
    padding: 14px;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .member-card .instrument-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
