/* AxoHost Business — Onboarding 9 étapes */

.ob { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }

/* Top bar */
.ob-top {
  display: flex; align-items: center; gap: 22px;
  padding: 18px 28px;
}
.ob-brand { display: flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -.02em; text-decoration: none; color: var(--ink); flex: none; }
.ob-brand img { height: 24px; }
.ob-brand em { font-style: normal; color: var(--ink-4); font-weight: 500; }
.ob-progress { flex: 1; height: 4px; background: var(--paper-3); border-radius: 99px; overflow: hidden; }
.ob-progress-bar {
  height: 100%; width: 0; background: var(--ink); border-radius: 99px;
  transition: width .7s var(--ease);
}
.ob-stepcount { font: 600 .82rem var(--mono); color: var(--ink-4); flex: none; }

/* Steps */
.ob-main { flex: 1; position: relative; overflow: hidden; }
.ob-step {
  position: absolute; inset: 0; overflow-y: auto;
  padding: 44px 24px 60px;
  display: none;
  text-align: center;
}
.ob-step.active { display: block; animation: obIn .55s var(--ease); }
.ob-step.leaving { animation: obOut .3s var(--ease) forwards; }
@keyframes obIn  { from { opacity: 0; transform: translateX(46px); } to { opacity: 1; transform: none; } }
@keyframes obOut { to { opacity: 0; transform: translateX(-40px); } }
.ob-step.back.active { animation-name: obInBack; }
@keyframes obInBack { from { opacity: 0; transform: translateX(-46px); } to { opacity: 1; transform: none; } }

.ob-step h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.03em; }
.ob-sub { color: var(--ink-3); max-width: 470px; margin: 0 auto 30px; }
.ob-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; margin-bottom: 18px;
  border-radius: 17px; background: var(--ink); color: #fff;
  box-shadow: var(--shadow);
  animation: pop .5s var(--spring);
}
.ob-icon .icon { width: 26px; height: 26px; }

.ob-form { max-width: 400px; margin: 0 auto; text-align: left; }
.ob-seo-manual { max-width: 520px; }
.input-xl { font-size: 1.15rem !important; padding: 16px 18px !important; text-align: center; font-weight: 650; letter-spacing: -.01em; }

/* Password meter */
.ob-pwmeter { height: 4px; border-radius: 99px; background: var(--paper-3); margin-top: 8px; overflow: hidden; }
.ob-pwmeter span { display: block; height: 100%; width: 0; background: var(--bad); border-radius: 99px; transition: width .4s var(--ease), background .4s; }

/* Étape 2 — règles */
.ob-rules { max-width: 520px; margin: 0 auto 24px; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.ob-rule {
  display: flex; gap: 14px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); text-align: left;
}
.ob-rule-ic {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; background: var(--paper-2);
}
.ob-rule strong { font-size: .95rem; letter-spacing: -.01em; }
.ob-rule p { margin: 3px 0 0; font-size: .84rem; color: var(--ink-4); }
.ob-accept { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: .92rem; }
.ob-accept input { display: none; }
.ob-checkbox {
  flex: none; width: 22px; height: 22px; border-radius: 7px;
  border: 1.5px solid var(--line-2); background: #fff;
  transition: background .2s, border-color .2s;
  background-position: center; background-repeat: no-repeat; background-size: 13px;
}
.ob-accept input:checked + .ob-checkbox {
  background-color: var(--ink); border-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  animation: pop .3s var(--spring);
}

/* Étape 3 — preview du nom */
.ob-name-preview { margin-top: 26px; animation: fadeUp .5s var(--ease); }
.ob-name-card {
  margin-top: 8px; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius-l);
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em;
  box-shadow: var(--shadow-s);
}

/* Étape 4 — uploads */
.ob-uploads { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; max-width: 640px; margin: 0 auto 20px; }
.ob-upload {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 26px 16px; cursor: pointer;
  border: 1.5px dashed var(--line-2); border-radius: var(--radius-l);
  transition: border-color .2s, background .2s, transform .3s var(--ease);
}
.ob-upload:hover { border-color: var(--ink); transform: translateY(-2px); }
.ob-upload.has-file { border-style: solid; border-color: var(--ink); }
.ob-upload-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; background: var(--paper-2);
}
.ob-upload-preview { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; }
.ob-upload strong { font-size: .9rem; }

/* Étape 5 — DA */
.ob-da-tabs {
  display: inline-flex; gap: 4px; margin: 0 auto 26px; padding: 4px;
  background: var(--paper-2); border-radius: 999px;
}
.ob-da-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink-3);
  font: 650 .88rem var(--font); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s;
}
.ob-da-tab .icon { width: 15px; height: 15px; }
.ob-da-tab.on { background: #fff; color: var(--p); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.ob-da { display: grid; grid-template-columns: 380px 1fr; gap: 34px; max-width: 920px; margin: 0 auto; text-align: left; align-items: start; }
@media (max-width: 860px) { .ob-da { grid-template-columns: 1fr; } }
.ob-da-hint { margin: 0 0 14px; font-size: .84rem; color: var(--ink-4); }
.ob-da-controls .field { margin-bottom: 18px; }
.ob-da-controls .field label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .82rem; font-weight: 650; margin-bottom: 8px; }
.ob-color { display: flex; align-items: center; gap: 12px; }
.ob-color input[type=color] {
  width: 46px; height: 38px; padding: 3px; border: 1px solid var(--line-2);
  border-radius: 9px; background: #fff; cursor: pointer; flex: none;
}
.ob-color-v { font-size: .8rem; color: var(--ink-4); font-weight: 600; letter-spacing: .02em; }
/* segmenté (ambiance) */
.ob-seg { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; padding: 4px; background: var(--paper-2); border-radius: 12px; }
.ob-seg label { cursor: pointer; }
.ob-seg span {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 6px; border-radius: 9px; font-size: .82rem; font-weight: 650;
  color: var(--ink-3); transition: background .2s, color .2s, box-shadow .2s; white-space: nowrap;
}
.ob-seg span .icon { width: 14px; height: 14px; }
.ob-seg input:checked + span { background: #fff; color: var(--p); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
/* cartes de thèmes officiels */
.ob-themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 860px) { .ob-themes { grid-template-columns: repeat(3, 1fr); } }
.ob-theme {
  border: 2px solid var(--line); border-radius: 14px; padding: 0; background: #fff;
  cursor: pointer; overflow: hidden; text-align: left; font: inherit;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.ob-theme:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ob-theme.on { border-color: var(--p); box-shadow: 0 0 0 3px rgba(10,10,10,.08); }
.ob-theme .swatch { position: relative; height: 52px; display: flex; }
.ob-theme .swatch .sw-side { width: 26%; }
.ob-theme .swatch .sw-bg { flex: 1; position: relative; }
.ob-theme .swatch .sw-dot {
  position: absolute; right: 8px; bottom: 8px; width: 14px; height: 14px;
  border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.75);
}
.ob-theme .swatch .sw-lines { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; gap: 4px; }
.ob-theme .swatch .sw-lines i { display: block; width: 34px; height: 4px; border-radius: 99px; opacity: .28; background: currentColor; }
.ob-theme .tname {
  display: flex; align-items: center; justify-content: space-between; gap: 5px;
  padding: 8px 9px; font-size: .72rem; font-weight: 700; color: var(--p); white-space: nowrap;
}
.ob-theme .tmode { font-size: .56rem; font-weight: 650; color: var(--ink-4); text-transform: uppercase; letter-spacing: .04em; flex: none; }
.choice-sm { padding: 12px 10px !important; text-align: center; }
.choice-sm .choice-title { justify-content: center; font-size: .85rem; }
.choice-sm .icon { width: 16px; height: 16px; }

/* Preview site (étape 5) */
.ob-da-preview {
  --p: #0a0a0a; --a: #3b82f6; --r: 12px; --pf: var(--font);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); background: #fff; font-family: var(--pf);
  transition: background .4s;
}
.ob-da-preview.dark { background: #101012; }
.dap-nav { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.ob-da-preview.dark .dap-nav { border-color: rgba(255,255,255,.1); }
.dap-logo { font-weight: 800; letter-spacing: -.02em; font-size: .95rem; color: var(--p); }
.ob-da-preview.dark .dap-logo { color: #fff; }
.dap-links { display: flex; gap: 8px; margin-inline: auto; }
.dap-links i { width: 34px; height: 7px; border-radius: 99px; background: var(--paper-3); }
.ob-da-preview.dark .dap-links i { background: rgba(255,255,255,.14); }
.dap-btn {
  padding: 7px 14px; border-radius: var(--r); background: var(--p); color: #fff;
  font-size: .78rem; font-weight: 650; transition: border-radius .3s var(--ease);
}
.dap-hero { padding: 34px 22px 26px; text-align: center; display: flex; flex-direction: column; gap: 9px; align-items: center; }
.dap-hero strong { font-size: 1.3rem; letter-spacing: -.02em; color: var(--p); }
.ob-da-preview.dark .dap-hero strong { color: #fff; }
.dap-sub { font-size: .82rem; color: var(--ink-4); max-width: 280px; }
.dap-btn-hero { background: var(--a); margin-top: 6px; }
.dap-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 0 22px 24px; }
.dap-cards i { height: 54px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper-2); transition: border-radius .3s var(--ease); }
.ob-da-preview.dark .dap-cards i { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }

/* Étape 6 — domaine */
.ob-domain-input { display: flex; align-items: stretch; }
.ob-domain-input .input { border-radius: var(--radius-s) 0 0 var(--radius-s); border-right: 0; text-align: right; }
.ob-domain-suffix {
  display: flex; align-items: center; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: var(--paper-2); font: 500 .95rem var(--mono); color: var(--ink-3); white-space: nowrap;
}
.ob-domain-status { margin-top: 10px; font-size: .88rem; font-weight: 600; min-height: 22px; display: flex; align-items: center; gap: 7px; }
.ob-domain-status.ok  { color: var(--ok); }
.ob-domain-status.bad { color: var(--bad); }
.ob-domain-status.checking { color: var(--ink-4); }

/* Étape 8 — préparation */
.ob-step-center { display: none; }
.ob-step-center.active { display: flex; align-items: center; justify-content: center; }
.ob-build, .ob-success { max-width: 460px; }
.ob-build-ring { position: relative; width: 130px; height: 130px; margin: 0 auto 28px; }
.ob-build-ring svg { width: 100%; height: 100%; }
#ob-ring { transition: stroke-dashoffset .6s var(--ease); }
.ob-build-pct {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font: 700 1.35rem var(--mono); letter-spacing: -.03em;
}
#ob-build-task { min-height: 26px; transition: opacity .3s; }
.ob-tips {
  margin-top: 36px; padding: 20px 22px; text-align: left;
  background: var(--paper-2); border-radius: var(--radius-l);
}
.ob-tips-label { display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 8px; }
.ob-tips-label .icon { width: 14px; height: 14px; }
#ob-tip { margin: 0; font-size: .92rem; transition: opacity .35s; }

/* Étape 9 — succès */
.ob-success-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--ink); color: #fff; margin-bottom: 24px;
  animation: pop .6s var(--spring);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.ob-success-badge .icon { width: 34px; height: 34px; }
.ob-success-url {
  display: inline-block; margin-top: 10px; padding: 12px 22px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper-2); font-weight: 650;
}

/* Footer nav */
.ob-foot {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 18px 28px 26px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
}
.ob-foot.hidden { display: none; }
#ob-prev.hidden { visibility: hidden; }
