/* =====================================================================
   Afruxia — parcours de commande (catalogue, configuration, paiement)
   Palette du thème : encre #23282C · bleu ciel #40C0E8 · bleu #1A90C4 / #116E99 · gris #F5F5F6
   ===================================================================== */

.ord-page {
  --o-ink: #23282C; --o-muted: #6B7379; --o-faint: #9A9D9F; --o-line: #E6E4DF; --o-line-2: #CFCDC8;
  --o-bg: #F5F5F6; --o-card: #FFFFFF; --o-sky: #40C0E8; --o-blue: #1A90C4; --o-deep: #116E99; --o-soft: #EAF7FC;
  --o-ok: #1A9E5F; --o-bad: #D94A3D;
  background: var(--o-bg);
  color: var(--o-ink);
  padding: clamp(48px, 8vw, 80px) 0 96px;
  min-height: 70vh;
}
.ord-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }

/* ---------- en-tête + étapes ---------- */
.ord-head { text-align: center; margin-bottom: 28px; }
.ord-head h1 { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.12; font-weight: 600; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.ord-head p { color: var(--o-muted); font-size: 17px; max-width: 540px; margin: 10px auto 0; }

.ord-steps { list-style: none; display: flex; justify-content: center; align-items: center; gap: 0; margin: 0 auto 36px; padding: 0; }
.ord-step { display: flex; align-items: center; gap: 10px; color: var(--o-faint); font-weight: 500; font-size: 14.5px; white-space: nowrap; }
.ord-step + .ord-step::before { content: ""; width: clamp(24px, 6vw, 64px); height: 2px; margin-inline: 14px; background: var(--o-line-2); border-radius: 2px; }
.ord-step.is-done + .ord-step::before, .ord-step.is-current::before { background: var(--o-sky); }
.ord-step__dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--o-card); border: 1.5px solid var(--o-line-2); color: var(--o-faint); }
.ord-step.is-current { color: var(--o-ink); }
.ord-step.is-current .ord-step__dot { background: var(--o-ink); border-color: var(--o-ink); color: #fff; }
.ord-step.is-done { color: var(--o-muted); }
.ord-step.is-done .ord-step__dot { background: var(--o-sky); border-color: var(--o-sky); color: #fff; }
@media (max-width: 560px) { .ord-step__label { display: none; } .ord-step.is-current .ord-step__label { display: inline; } .ord-step + .ord-step::before { margin-inline: 8px; width: 18px; } }

/* ---------- cartes ---------- */
.ord-card, .cfg-card, .chk-card { background: var(--o-card); border: 1px solid var(--o-line); border-radius: 16px; padding: 26px; margin-bottom: 18px; }
.cfg-card h3, .chk-card h3, .ord-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 18px; color: var(--o-ink); }

/* ---------- catalogue ---------- */
.opc-page { background: transparent; min-height: 0; padding: 0; }
.opc-cat { margin-bottom: 40px; }
.opc-cat__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.opc-cat__title { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0; white-space: nowrap; }
.opc-cat__line { flex: 1; height: 1px; background: var(--o-line-2); }
.opc-cat__desc { color: var(--o-muted); font-size: 14px; margin: -8px 0 18px; }
.opc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: stretch; }
.opc-card { position: relative; background: var(--o-card); border: 1.5px solid var(--o-line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.opc-card:hover { border-color: var(--o-sky); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(35, 40, 44, .07); }
.opc-card--featured { border-color: var(--o-blue); box-shadow: 0 0 0 1px var(--o-blue); }
.opc-card__badge { position: absolute; top: 18px; right: 18px; background: var(--o-deep); color: #fff; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 99px; }
.opc-card__header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.opc-card__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--o-soft); color: var(--o-deep); display: grid; place-items: center; flex: none; }
.opc-card__name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.opc-card__price { display: flex; align-items: baseline; gap: 5px; margin-bottom: 2px; }
.opc-card__amount { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.opc-card__cur { font-size: 14px; font-weight: 500; color: var(--o-muted); }
.opc-card__period { font-size: 14px; color: var(--o-muted); }
.opc-card__period-label { font-size: 13px; color: var(--o-faint); margin-bottom: 18px; }
.opc-card__divider { height: 1px; background: var(--o-line); margin-bottom: 18px; }
.opc-card__feats { flex: 1; font-size: 14.5px; line-height: 1.5; color: var(--o-ink); margin-bottom: 22px; }
.opc-card__feats ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.opc-card__feats li, .opc-card__feats p, .opc-card__feats h1, .opc-card__feats h2, .opc-card__feats h3, .opc-card__feats h4 { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 0; font-size: 14.5px; line-height: 1.5; font-weight: 400; }
.opc-card__feats li::before, .opc-card__feats p::before, .opc-card__feats h1::before, .opc-card__feats h2::before, .opc-card__feats h3::before, .opc-card__feats h4::before { content: "✓"; color: var(--o-blue); font-weight: 700; flex: none; }
.opc-card__feats li:empty, .opc-card__feats p:empty { display: none; }
.opc-card__cta { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 18px; border-radius: 10px; border: 1.5px solid var(--o-line-2); color: var(--o-ink); background: var(--o-card); font-weight: 500; text-decoration: none; }
.opc-card__cta:hover { border-color: var(--o-ink); }
.opc-card__cta--featured { background: var(--o-ink); border-color: var(--o-ink); color: #fff; }
.opc-card__cta--featured:hover { background: #000; }
.opc-help { text-align: center; margin-top: 12px; color: var(--o-muted); font-size: 14.5px; }
.opc-help a { color: var(--o-deep); font-weight: 500; }
#category-filter-bar { background: var(--o-card) !important; border: 1px solid var(--o-line) !important; border-radius: 12px !important; box-shadow: none !important; }

/* ---------- configuration ---------- */
.cfg-container { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; margin-top: 0; }
.cfg-choice { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; margin-bottom: 10px; border: 1.5px solid var(--o-line); border-radius: 12px; cursor: pointer; background: var(--o-card); transition: border-color .15s, background .15s; }
.cfg-choice:hover { border-color: var(--o-line-2); }
.cfg-choice.is-active { border-color: var(--o-sky); background: var(--o-soft); }
.cfg-choice__left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cfg-choice__radio { width: 18px; height: 18px; accent-color: var(--o-blue); flex: none; }
.cfg-choice__label { font-size: 15px; font-weight: 500; }
.cfg-choice__badge { font-size: 12px; font-weight: 500; background: var(--o-deep); color: #fff; padding: 1px 9px; border-radius: 99px; margin-left: 6px; }
.cfg-choice__price { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cfg-domain-input { display: flex; gap: 10px; margin: 6px 0 16px 4px; max-width: 520px; }
.cfg-domain-field { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 11px 14px; border: 1.5px solid var(--o-line-2); border-radius: 10px; background: #fff; outline: 0; }
.cfg-domain-field:focus { border-color: var(--o-blue); }
.cfg-side { position: sticky; top: 24px; background: var(--o-card); border: 1px solid var(--o-line); border-radius: 16px; padding: 24px; }
.cfg-side h3 { font-size: 17px; font-weight: 600; margin: 0 0 14px; }
.cfg-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--o-muted); padding: 10px 0; border-bottom: 1px solid var(--o-line); }
.cfg-line__price { font-weight: 500; color: var(--o-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cfg-line__price--green { color: var(--o-ok); }
.cfg-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 18px; }
.cfg-total__label { font-weight: 600; }
.cfg-total__val { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ---------- panier et paiement ---------- */
.chk-container { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.chk-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--o-line); margin-bottom: 22px; }
.chk-tab-btn { font: inherit; font-weight: 500; font-size: 15px; color: var(--o-muted); background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 10px 2px; cursor: pointer; }
.chk-tab-btn:hover { color: var(--o-ink); }
.chk-tab-btn.is-active { color: var(--o-ink); border-bottom-color: var(--o-sky); }
.chk-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.chk-group { margin-bottom: 14px; }
.chk-group label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 6px; }
.chk-input { width: 100%; font: inherit; font-size: 15px; padding: 11px 14px; border: 1.5px solid var(--o-line-2); border-radius: 10px; background: #fff; outline: 0; }
.chk-input:focus { border-color: var(--o-blue); }

.chk-gateway-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.chk-gateway-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--o-line); border-radius: 12px; background: var(--o-card); cursor: pointer; transition: border-color .15s, background .15s; }
.chk-gateway-item:hover { border-color: var(--o-line-2); }
.chk-gateway-item.is-active { border-color: var(--o-sky); background: var(--o-soft); }
.chk-gateway-item input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.chk-gateway-radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--o-line-2); background: #fff; flex: none; display: grid; place-items: center; }
.chk-gateway-item.is-active .chk-gateway-radio { border-color: var(--o-blue); }
.chk-gateway-item.is-active .chk-gateway-radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--o-blue); }
.chk-gateway-item img { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; flex: none; }
.chk-gateway-title { font-weight: 500; font-size: 15px; line-height: 1.25; }

.chk-table { width: 100%; border-collapse: collapse; }
.chk-table th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--o-faint); font-weight: 500; padding-bottom: 10px; border-bottom: 1px solid var(--o-line); }
.chk-table td { padding: 14px 0; border-bottom: 1px solid var(--o-line); vertical-align: top; }
.chk-table tr:last-of-type td { border-bottom: 0; }
.chk-table td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chk-item-title { font-weight: 500; }
.chk-item-meta { font-size: 13px; color: var(--o-muted); margin-top: 2px; }
.chk-remove { margin-left: 8px; color: var(--o-faint); text-decoration: none; font-size: 18px; line-height: 1; }
.chk-remove:hover { color: var(--o-bad); }

@media (max-width: 900px) { .cfg-container, .chk-container { grid-template-columns: minmax(0, 1fr); } .cfg-side { position: static; } }
@media (max-width: 560px) { .chk-form-row { grid-template-columns: 1fr; } .cfg-card, .chk-card, .ord-card { padding: 20px; } .cfg-domain-input { margin-left: 0; flex-wrap: wrap; } }
