/* ═══════════════════════════════════════════════════════════════════
   inscription.css — Formulaire d'inscription — AECJ Les Mureaux
   Mobile-first · breakpoints : 640px · 1024px
   Exclusivement var(--x) de tokens.css — 0 hex inline
   ═══════════════════════════════════════════════════════════════════ */


/* ──────────────────────────────────────────────────────────────────
   HERO INSCRIPTION
   ────────────────────────────────────────────────────────────────── */
.insc-hero {
  background: var(--green-dark);
  padding-block: 36px 0;
}

.insc-hero-inner {
  text-align: center;
  padding-bottom: 28px;
}

.insc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .10em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.insc-hero-title {
  font-family: var(--font-title);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.insc-hero-desc {
  font-size: 13px;
  color: rgba(255,255,255,.45);
}


/* ──────────────────────────────────────────────────────────────────
   BARRE DE PROGRESSION
   ────────────────────────────────────────────────────────────────── */
.progress-wrapper {
  background: rgba(255,255,255,.04);
  border-top: 1px solid rgba(255,255,255,.07);
}

.progress-steps {
  display: flex;
  list-style: none;
  align-items: stretch;
  max-width: 700px;
  margin: 0 auto;
}

.ps-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px 14px;
  border-bottom: 3px solid transparent;
  transition: border-color .25s;
  position: relative;
}

.ps-item.active {
  border-bottom-color: var(--gold);
}

.ps-item.done {
  border-bottom-color: var(--green-mid);
}

.ps-num {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 5px;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.30);
  transition: background .25s, color .25s;
}

.ps-item.active .ps-num {
  background: var(--gold);
  color: var(--green-dark);
}

.ps-item.done .ps-num {
  background: var(--green-mid);
  color: var(--white);
}

.ps-label {
  font-size: 10px;
  color: rgba(255,255,255,.30);
  text-align: center;
  letter-spacing: .02em;
  transition: color .25s;
  line-height: 1.3;
}

.ps-item.active .ps-label {
  color: rgba(255,255,255,.75);
}

.ps-item.done .ps-label {
  color: rgba(255,255,255,.45);
}


/* ──────────────────────────────────────────────────────────────────
   FORM SHELL
   ────────────────────────────────────────────────────────────────── */
.form-shell {
  max-width: 720px;
  padding-block: 40px 80px;
}


/* ──────────────────────────────────────────────────────────────────
   STEP PANELS
   ────────────────────────────────────────────────────────────────── */
.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
  animation: stepFadeIn .25s ease;
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.step-title {
  font-family: var(--font-title);
  font-size: clamp(20px, 3.5vw, 24px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.step-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}


/* ──────────────────────────────────────────────────────────────────
   ALERTES INLINE
   ────────────────────────────────────────────────────────────────── */
.insc-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 20px;
}

.insc-alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.insc-alert--error {
  background: var(--red-light);
  border: 1px solid var(--red-border);
  color: var(--red);
}

.insc-alert--warning {
  background: var(--orange-light);
  border: 1px solid rgba(212,102,10,.2);
  color: var(--orange-dark);
}

.insc-alert--info {
  background: #eef4ff;
  border: 1px solid #b8d0f8;
  color: #1a5fa8;
}


/* ──────────────────────────────────────────────────────────────────
   CARTES FORMULES
   ────────────────────────────────────────────────────────────────── */
.formule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}

.formule-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
  background: var(--white);
  position: relative;
  outline: none;
}

.formule-card:hover {
  border-color: var(--green-mid);
  background: var(--green-pale);
}

.formule-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(26,107,63,.30);
}

.formule-card[aria-checked="true"],
.formule-card.selected {
  border-color: var(--green);
  background: var(--green-pale);
  box-shadow: 0 0 0 3px rgba(26,107,63,.12);
}

/* Pastille de sélection */
.fc-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-pill);
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.formule-card[aria-checked="true"] .fc-check,
.formule-card.selected .fc-check {
  background: var(--green);
}

.fc-check svg {
  width: 10px;
  height: 10px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2.5;
  opacity: 0;
  transition: opacity .2s;
}

.formule-card[aria-checked="true"] .fc-check svg,
.formule-card.selected .fc-check svg {
  opacity: 1;
}

/* Tags */
.fc-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.fc-tag-m  { background: var(--green-light);   color: var(--green); }
.fc-tag-g  { background: var(--blue-light);    color: var(--blue); }
.fc-tag-a  { background: var(--orange-light);  color: var(--orange-dark); }
.fc-tag-f  { background: rgba(192,57,138,.08); color: #c0578a; }
.fc-tag-gold { background: var(--gold-light);  color: var(--gold); }

/* Contenu carte */
.fc-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.4;
}

.fc-meta {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}

.fc-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  margin-top: 10px;
}

.fc-ville {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}

/* ── Filtre ville ── */
.insc-ville-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--surface, #f8f9fb);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
}

.insc-ville-filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

.insc-ville-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.insc-ville-chip {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border, #e5e7eb);
  background: var(--card-bg, #fff);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}

.insc-ville-chip:hover {
  border-color: var(--green);
  color: var(--green);
}

.insc-ville-chip--active,
.insc-ville-chip[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.insc-formule-vide {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 24px 0;
}


/* ──────────────────────────────────────────────────────────────────
   CHAMPS FORMULAIRE
   ────────────────────────────────────────────────────────────────── */
.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group.full,
.fields-grid > .field-group:has(+ :empty) ~ .field-group.full {
  grid-column: 1 / -1;
}

.fields-grid > div:empty {
  display: none;
}

label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
}

label .req {
  color: var(--red);
  margin-left: 2px;
}

input,
select,
textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: none;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--green);
  width: 16px;
  height: 16px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(26,107,63,.10);
}

input.error,
select.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,57,43,.08);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a6455' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.field-error {
  font-size: 11px;
  color: var(--red);
  display: none;
}

.field-error.show {
  display: block;
}


/* ──────────────────────────────────────────────────────────────────
   TOGGLE GARDE ALTERNÉE
   ────────────────────────────────────────────────────────────────── */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--gold-light);
  border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  cursor: pointer;
  outline: none;
}

.toggle-row:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 35%, transparent);
}

.toggle-row-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-row-left strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.toggle-row-left span {
  font-size: 11px;
  color: var(--muted);
}

.toggle-switch {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--border);
  position: relative;
  transition: background .25s;
  flex-shrink: 0;
}

.toggle-switch.on {
  background: var(--green);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transition: left .25s;
}

.toggle-switch.on::after {
  left: 23px;
}

/* Bloc second parent */
.parent2-section {
  animation: stepFadeIn .3s ease;
}

.parent2-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.parent2-divider::before,
.parent2-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.parent2-divider span {
  font-size: 11px;
  font-weight: 600;
  color: var(--soft);
  letter-spacing: .07em;
  white-space: nowrap;
}


/* ──────────────────────────────────────────────────────────────────
   RÈGLEMENT INTÉRIEUR
   ────────────────────────────────────────────────────────────────── */
.reglement-box {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  height: 280px;
  overflow-y: auto;
  padding: 20px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 18px;
  scroll-behavior: smooth;
}

.reglement-box h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  margin-top: 20px;
}

.reglement-box h3:first-child {
  margin-top: 0;
}

.reglement-box p {
  margin-bottom: 8px;
}

.reglement-box ul {
  padding-left: 18px;
  margin-bottom: 8px;
}

.reglement-box li {
  margin-bottom: 4px;
}

.read-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--soft);
  margin-bottom: 20px;
  padding: 8px 14px;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
}

.read-indicator svg {
  width: 14px;
  height: 14px;
  stroke: var(--green-mid);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Checkboxes règlement / RGPD */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  cursor: pointer;
  transition: border-color .2s;
  margin-bottom: 8px;
  outline: none;
}

.checkbox-row:hover {
  border-color: var(--green-mid);
}

.checkbox-row:focus-visible {
  box-shadow: 0 0 0 3px rgba(26,107,63,.20);
}

.checkbox-row[aria-checked="true"] {
  border-color: var(--green);
  background: var(--green-pale);
}

.custom-check {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}

.checkbox-row[aria-checked="true"] .custom-check {
  background: var(--green);
  border-color: var(--green);
}

.custom-check svg {
  width: 10px;
  height: 10px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2.5;
  opacity: 0;
  transition: opacity .2s;
}

.checkbox-row[aria-checked="true"] .custom-check svg {
  opacity: 1;
}

.checkbox-row[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

.checkbox-row[aria-disabled="true"] .custom-check {
  background: var(--bg-subtle, #f4f4f4);
}

.checkbox-text {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.55;
}

.checkbox-text strong {
  font-weight: 600;
}


/* ──────────────────────────────────────────────────────────────────
   RÉCAPITULATIF
   ────────────────────────────────────────────────────────────────── */
.recap-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}

.recap-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--green-pale);
  border-bottom: 1px solid var(--border);
}

.recap-card-head strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.btn-modifier {
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.btn-modifier:hover {
  background: var(--green-pale);
  border-color: var(--green);
}

.recap-formule {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--green-pale);
  border-bottom: 1px solid var(--border);
}

.recap-formule-nom {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.recap-formule-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.recap-formule-price {
  margin-left: auto;
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}

.recap-body {
  padding: 16px 20px;
}

.recap-row {
  display: flex;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 8px;
}

.recap-row:last-child {
  margin-bottom: 0;
}

.recap-label {
  color: var(--soft);
  min-width: 140px;
  flex-shrink: 0;
  font-weight: 500;
}

.recap-value {
  color: var(--ink);
  font-weight: 600;
  word-break: break-word;
}

/* Bloc paiement */
.paiement-box {
  background: var(--gold-light);
  border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.paiement-box-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.paiement-box-text {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.75;
}

.paiement-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.paiement-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
}

.paiement-checklist li svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  stroke: var(--gold);
}


/* ──────────────────────────────────────────────────────────────────
   NAVIGATION BOUTONS
   ────────────────────────────────────────────────────────────────── */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 12px;
}

.btn-prev {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .2s, color .2s;
}

.btn-prev:hover {
  background: var(--green-pale);
  color: var(--green);
}

.btn-prev svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.btn-next {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--white);
  font-weight: 600;
  border: none;
  background: var(--green);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .2s;
  flex: 1;
  justify-content: center;
  max-width: 320px;
}

.btn-next:hover {
  background: var(--green-mid);
}

.btn-next svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Bouton confirmation */
.btn-confirm {
  width: 100%;
  padding: 15px;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: var(--white);
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .2s;
  margin-top: 4px;
}

.btn-confirm:hover {
  background: var(--green-mid);
}

.btn-confirm[aria-busy="true"] {
  opacity: .7;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-confirm svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}


/* ──────────────────────────────────────────────────────────────────
   BANDEAU FORMULE PRÉ-SÉLECTIONNÉE
   ────────────────────────────────────────────────────────────────── */
.presel-banner {
  border: 1.5px solid var(--green-mid);
  border-radius: var(--radius-md);
  background: var(--green-light);
  padding: 0.875rem 1.125rem;
  margin-bottom: 1.5rem;
}

.presel-banner-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.presel-banner-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.presel-banner-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
}

.presel-banner-nom {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.presel-banner-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.presel-banner-change {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  background: var(--white);
  border: 1.5px solid var(--green-mid);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}

.presel-banner-change svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}

.presel-banner-change:hover,
.presel-banner-change:focus-visible {
  background: var(--green);
  color: var(--white);
  outline: none;
  border-color: var(--green);
}

/* ──────────────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .presel-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .presel-banner-change {
    width: 100%;
    justify-content: center;
  }

  .formule-grid {
    grid-template-columns: 1fr;
  }

  .fields-grid {
    grid-template-columns: 1fr;
  }

  .field-group,
  .field-group.full {
    grid-column: unset;
  }

  .form-nav {
    flex-direction: column-reverse;
  }

  .btn-next,
  .btn-prev {
    width: 100%;
    max-width: none;
    justify-content: center;
  }

  .ps-label {
    display: none;
  }
}

