* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: var(--font);
  background: var(--page-bg-order);
}
a { color: var(--silver); text-decoration: none; }
a:hover { color: var(--text-strong); }
button { font-family: inherit; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(8, 12, 18, 0.86);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; gap: 16px; min-height: 64px;
}
.brand { display: flex; align-items: center; line-height: 0; }
.brand img { height: 42px; width: auto; display: block; }
.secure {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 8px;
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--silver); font-size: 0.82rem;
}
.secure i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 10px rgba(61, 207, 142, 0.7);
}
.top-actions { margin-left: auto; display: flex; gap: 8px; }

.steps {
  display: flex; gap: 8px; flex-wrap: wrap; padding: 18px 0 8px;
}
.step {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 0.9rem; font-weight: 600;
}
.step + .step::before {
  content: ""; width: 28px; height: 1px;
  background: var(--line-strong); margin-right: 4px;
}
.step .n {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); font-size: 0.78rem;
}
.step.is-done { color: var(--ok); }
.step.is-done .n { background: rgba(61, 207, 142, 0.15); border-color: var(--ok); }
.step.is-current { color: var(--text-strong); }
.step.is-current .n {
  background: var(--orange); border-color: var(--orange); color: #1a1200; font-weight: 800;
}

.page-head { padding: 18px 0 8px; }
.page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 680; letter-spacing: -0.03em; line-height: 1.15;
}
.page-head p {
  margin: 0; max-width: 58ch; color: var(--silver); line-height: 1.55;
}
.bar {
  width: 72px; height: 4px; border-radius: 2px;
  background: var(--orange); margin-bottom: 14px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px; align-items: start; padding: 18px 0 48px;
}
.stack { display: grid; gap: 16px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
}
.card h2 {
  margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em;
}
.card .hint {
  margin: 0 0 14px; color: var(--muted); font-size: 0.9rem; line-height: 1.45;
}

.offer-row {
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
}
.offer-row .name { margin: 0 0 4px; font-weight: 750; font-size: 1.05rem; }
.offer-row .specs { margin: 0; color: var(--silver); font-size: 0.9rem; }
.offer-row .price { margin: 0; font-weight: 780; font-size: 1.35rem; text-align: right; white-space: nowrap; }
.offer-row .price span { color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.linkish {
  background: none; border: none; color: var(--orange-2); cursor: pointer;
  font-weight: 650; font-size: 0.9rem; padding: 0; margin-top: 8px;
}
.linkish:hover { color: var(--text-strong); }

.plans {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.plan {
  position: relative; text-align: left; cursor: pointer; color: inherit;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 34px 12px 14px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.plan:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.plan.is-active {
  border-color: var(--orange);
  background: linear-gradient(180deg, rgba(255, 140, 0, 0.1), transparent 70%), var(--panel-2);
  box-shadow: inset 0 0 0 1px rgba(255, 140, 0, 0.25);
}
.plan .name { font-weight: 750; margin: 0 0 4px; }
.plan .specs { margin: 0; color: var(--silver); font-size: 0.88rem; line-height: 1.4; }
.plan .from { margin-top: 10px; font-weight: 760; font-size: 1.15rem; }
.plan .from span { color: var(--muted); font-size: 0.82rem; font-weight: 500; }
.plan .badge {
  display: inline-block; margin-bottom: 8px; padding: 2px 8px; border-radius: 999px;
  background: rgba(255, 140, 0, 0.16); color: var(--orange-2);
  font-size: 0.72rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase;
}
.plan .check {
  position: absolute; top: 10px; right: 10px; width: 18px; height: 18px;
  border-radius: 50%; border: 1px solid var(--line-strong); opacity: 0;
}
.plan.is-active .check {
  opacity: 1;
  border-color: var(--orange);
  background-color: var(--panel);
  background-image: radial-gradient(circle, var(--orange) 0 38%, transparent 40%);
  box-shadow: none;
}

.choices {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.choices.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice {
  position: relative; text-align: left; cursor: pointer; color: inherit;
  background: rgba(0, 0, 0, 0.18); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice:hover { border-color: var(--line-strong); }
.choice.is-active {
  border-color: rgba(61, 120, 200, 0.85);
  background: rgba(40, 90, 150, 0.18);
  box-shadow: inset 0 0 0 1px rgba(90, 150, 220, 0.25);
}
.choice.is-featured { min-height: 100%; }
.choice .title { display: block; font-weight: 700; margin-bottom: 4px; }
.choice .meta { display: block; color: var(--muted); font-size: 0.86rem; line-height: 1.35; }
.choice-logo {
  display: flex; align-items: flex-start; gap: 12px; min-height: 92px; padding-right: 34px;
}
.choice-icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #eef2f6; border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.choice-icon img { width: 28px; height: 28px; display: block; object-fit: contain; }
.choice-flag {
  flex: 0 0 28px; width: 28px; height: 20px; margin-top: 2px;
  border-radius: 3px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.choice-flag img { width: 100%; height: 100%; display: block; object-fit: cover; }
#location-grid .choice-logo { min-height: 0; align-items: center; }
.choice-text { min-width: 0; flex: 1; }
.choice.is-active .choice-icon {
  border-color: rgba(90, 150, 220, 0.55);
  background: #f7fafc;
}
.choice .price-line { display: block; margin-top: 8px; font-weight: 760; font-size: 1.05rem; }
.choice .save { display: inline-block; margin-top: 6px; color: var(--ok); font-size: 0.8rem; font-weight: 650; }
.choice .pill {
  display: inline-block; margin-bottom: 8px; padding: 2px 8px; border-radius: 999px;
  background: rgba(61, 207, 142, 0.14); color: var(--ok);
  font-size: 0.72rem; font-weight: 750;
}
.choice .check {
  position: absolute; top: 10px; right: 10px; width: 18px; height: 18px;
  border-radius: 50%; border: 1px solid var(--line-strong); opacity: 0;
}
.choice.is-active .check {
  opacity: 1;
  border-color: var(--orange);
  background-color: var(--panel);
  /* Bordure orange + point rempli (clair / sombre via --panel / --orange) */
  background-image: radial-gradient(circle, var(--orange) 0 38%, transparent 40%);
  box-shadow: none;
}

#os-grid, #app-grid, #more-os {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
#more-os { display: none; margin-top: 10px; }
#more-os.is-open { display: grid; }

.more-toggle {
  margin-top: 12px; background: none; border: none; color: var(--silver);
  cursor: pointer; padding: 0; font-size: 0.9rem; font-weight: 650;
  text-decoration: underline; text-underline-offset: 3px;
}
.more-toggle:hover { color: var(--text-strong); }

.note {
  margin-top: 12px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(18, 40, 58, 0.45);
  color: var(--silver); font-size: 0.88rem; line-height: 1.45;
}
.note strong { color: var(--text-strong); }

.summary {
  position: sticky; top: 84px;
  background: linear-gradient(180deg, #172333, #101925);
  border: 1px solid var(--line-strong); border-radius: 18px;
  padding: 18px; box-shadow: var(--shadow);
}
.summary h2 { margin: 0 0 14px; font-size: 1.05rem; }
.summary .product { font-weight: 750; font-size: 1.08rem; margin: 0 0 4px; }
.summary .detail { margin: 0; color: var(--silver); font-size: 0.9rem; line-height: 1.45; }
.summary .specs-line {
  margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.86rem;
}
.total {
  margin: 16px 0 4px; display: flex; justify-content: space-between;
  align-items: baseline; gap: 12px;
}
.total .label { color: var(--silver); font-weight: 650; }
.total .amount { font-size: 1.65rem; font-weight: 780; letter-spacing: -0.02em; }
.total .amount span {
  display: block; text-align: right; font-size: 0.78rem;
  color: var(--muted); font-weight: 500;
}
.vat-note { margin: 0 0 14px; color: var(--muted); font-size: 0.78rem; }

.pay-block { margin: 0 0 14px; }
.pay-title { margin: 0 0 8px; font-weight: 700; font-size: 0.92rem; }
.pay-choices { display: grid; gap: 8px; }
.pay-choice {
  position: relative; display: block; cursor: pointer;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(0,0,0,.18); padding: 12px 34px 12px 12px;
  transition: border-color .15s ease, background .15s ease;
}
.pay-choice:hover { border-color: var(--line-strong); }
.pay-choice.is-active,
.pay-choice:has(input:checked) {
  border-color: rgba(61, 120, 200, 0.85);
  background: rgba(40, 90, 150, 0.18);
  box-shadow: inset 0 0 0 1px rgba(90, 150, 220, 0.25);
}
.pay-choice .check {
  position: absolute; top: 10px; right: 10px; width: 18px; height: 18px;
  border-radius: 50%; border: 1px solid var(--line-strong); opacity: 0;
}
.pay-choice.is-active .check,
.pay-choice:has(input:checked) .check {
  opacity: 1;
  border-color: var(--orange);
  background-color: var(--panel);
  background-image: radial-gradient(circle, var(--orange) 0 38%, transparent 40%);
  box-shadow: none;
}
.pay-choice input { position: absolute; opacity: 0; pointer-events: none; }
.pay-choice-body { display: grid; gap: 2px; }
.pay-choice-name { font-weight: 750; font-size: 0.95rem; }
.pay-choice-meta { color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.pay-icons { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.pay-icons img {
  width: 26px; height: 26px; object-fit: contain;
  padding: 5px; border-radius: 8px;
  background: #eef2f6; border: 1px solid rgba(255,255,255,.35);
}
.pay-hint { margin: 8px 0 0; color: var(--muted); font-size: 0.76rem; line-height: 1.35; }

.checks { display: grid; gap: 10px; margin: 0 0 14px; }
.check-row {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--silver); font-size: 0.86rem; line-height: 1.4;
}
.check-row input {
  margin-top: 3px; accent-color: var(--orange); width: 16px; height: 16px; flex-shrink: 0;
}
.check-row a { text-decoration: underline; text-underline-offset: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 16px; border-radius: 14px; font-weight: 750;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; color: inherit;
}
.btn-orange {
  background: var(--orange); color: #1a1200; width: 100%; border: none; font-size: 0.98rem;
}
.btn-orange:hover { background: var(--orange-2); }
.btn-line { border-color: var(--line); background: transparent; color: var(--text-strong); }
.btn-line:hover { border-color: var(--silver); }
#domain-cta { width: 100%; margin-top: 10px; }
#domain-cta[hidden] { display: none !important; }
.after {
  margin: 12px 0 0; color: var(--muted); font-size: 0.8rem;
  line-height: 1.4; text-align: center;
}

.opt-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 140, 0, 0.16);
  color: var(--orange-2);
  font-size: 0.72rem;
  font-weight: 750;
  vertical-align: middle;
}
.domain-opt-choices {
  display: grid;
  gap: 10px;
}
.domain-buy-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 140, 0, 0.28);
  background: rgba(255, 140, 0, 0.06);
}
.domain-buy-box label {
  display: block;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--text-strong);
}
.domain-buy-row input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0b121b;
  color: var(--text-strong);
  font-size: 1rem;
  outline: none;
}
.domain-buy-row input:focus {
  border-color: rgba(255, 140, 0, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.16);
}

.foot {
  border-top: 1px solid var(--line); padding: 22px 0 36px;
  color: var(--muted); font-size: 0.88rem;
}
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 10px; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .secure { display: none; }
}
@media (max-width: 640px) {
  .plans, .choices, #os-grid, #app-grid, #more-os { grid-template-columns: 1fr; }
  .offer-row { flex-direction: column; }
  .offer-row .price { text-align: left; }
  .step + .step::before { width: 14px; }
}


/* Remises période — prix barré */
.choice .was {
  margin-right: 6px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: line-through;
  font-size: 0.92em;
}
.choice .pill-off {
  background: rgba(61, 207, 142, 0.16);
  color: var(--ok);
}
[data-sum="amount"] .was {
  margin-right: 8px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: line-through;
  font-size: 0.85em;
}
