/* ============================================================
   PAGE SOUSCRIPTION
   ============================================================ */

.souscription {
  padding: 24px 0 180px; /* espace pour le sticky foot */
}

.souscription-header {
  text-align: center;
  margin-bottom: 20px;
}
.souscription-header h1 {
  font-size: clamp(28px, 5vw, 44px);
  margin-bottom: 4px;
}
.souscription-header .lead {
  font-size: 14px;
  color: var(--text-soft);
}

/* ============================================================
   STEPPER (corrigé pour ne plus déborder)
   ============================================================ */
.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 20px;
  padding: 0;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 1;
  min-width: 0;
  color: var(--text-mute);
  transition: color .3s;
}
.step.active { color: var(--navy); }
.step.done { color: var(--ocre); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--line-soft);
  color: var(--text-mute);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  transition: all .3s;
}
.step.active .step-num {
  background: var(--navy);
  color: var(--ivory);
}
.step.done .step-num {
  background: var(--ocre);
  color: var(--white);
}
.step-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.step-sep {
  flex: 0 1 32px;
  min-width: 12px;
  height: 1px;
  background: var(--line);
}

/* Sur mobile, masquer les labels non-actifs pour éviter le débordement */
@media (max-width: 480px) {
  .step:not(.active) .step-label { display: none; }
  .step-sep { flex: 0 1 16px; }
}

/* ============================================================
   STEP PANELS
   ============================================================ */
.step-panel { display: none; animation: fadeUp .4s ease; }
.step-panel.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-head {
  text-align: center;
  margin-bottom: 16px;
}
.panel-head h2 {
  margin: 8px 0 8px;
}
.panel-head p {
  font-size: 14px;
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================================
   FORMULES (étape 1)
   ============================================================ */
.formule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.formule-card {
  background: var(--white);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  cursor: pointer;
  transition: all .25s ease;
  position: relative;
  display: block;
}
.formule-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.formule-card:has(input:checked) {
  border-color: var(--ocre);
  box-shadow: 0 0 0 3px rgba(184, 132, 63, 0.12);
  transform: translateY(-2px);
}
.formule-card:hover { border-color: var(--ocre-pale); }
.formule-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ocre);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 999px;
}
.formule-card h3 { margin-bottom: 4px; }
.formule-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ocre);
  margin-bottom: 20px;
}
.formule-price {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.formule-price sup { font-size: 20px; top: -12px; }
.formule-price span {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-soft);
  margin-left: 4px;
}
.formule-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.formule-card ul li {
  font-size: 13px;
  padding-left: 18px;
  position: relative;
  color: var(--text);
}
.formule-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ocre);
  font-weight: 600;
}

@media (max-width: 900px) {
  .formule-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   OPTIONS (étape 2)
   ============================================================ */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}
.option-row {
  background: var(--white);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition: all .2s ease;
}
.option-row:hover { border-color: var(--ocre-pale); }
.option-row:has(input:checked) {
  border-color: var(--ocre);
  background: linear-gradient(135deg, var(--white) 0%, rgba(184, 132, 63, 0.04) 100%);
}
.option-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--ocre);
  flex-shrink: 0;
  cursor: pointer;
}
.option-info { flex: 1; min-width: 0; }
.option-info h4 {
  font-size: 16px;
  margin-bottom: 4px;
}
.option-info p {
  font-size: 13px;
  margin: 0;
}
.option-row-price {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ocre);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .option-row { padding: 16px 18px; gap: 14px; }
}

/* ============================================================
   FORMULAIRE COMPTE (étape 3)
   ============================================================ */
.account-form {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-hint {
  display: block;
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 4px;
  font-style: italic;
}
.form-consent { margin-top: 8px; }
.checkbox-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-soft);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--ocre);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .account-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER STICKY (total + actions)
   ============================================================ */
.souscription-foot {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ivory-soft);
  border-top: 1px solid var(--line-soft);
  z-index: 40;
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -4px 24px rgba(26, 35, 50, 0.06);
}
.foot-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.foot-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.foot-total-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
}
.foot-total-amount {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--ocre);
  line-height: 1;
}
.foot-total-meta {
  font-size: 12px;
  color: var(--text-soft);
  width: 100%;
}
.foot-actions {
  display: flex;
  gap: 12px;
}
.foot-actions .btn { padding: 12px 24px; }

@media (max-width: 640px) {
  .foot-inner { padding: 0 16px; }
  .foot-total-amount { font-size: 24px; }
  .foot-total-meta { font-size: 11px; }
  .foot-actions .btn { padding: 10px 16px; font-size: 13px; }
  .foot-actions #btn-back { padding: 10px 14px; }
}
