/* e-Tijara PRO — parcours de création de boutique */
[hidden] { display: none !important; }
:root {
  --ink: #1b3c45; --ink-2: #2b525d; --text: #24363d; --muted: #5d7077; --line: #dcebe8; --bg: #f3faf8;
  --yellow: #ffc107; --yellow-2: #ffb300; --yellow-soft: #fff4cc; --green: #1fa855; --red: #d93848; --radius: 18px;
  --shadow: 0 18px 50px rgba(27, 60, 69, .12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.onb { margin: 0; min-height: 100vh; font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text);
  background: radial-gradient(900px 500px at 100% 0%, rgba(255, 193, 7, .14), transparent 60%), radial-gradient(800px 500px at 0% 100%, rgba(31, 168, 85, .10), transparent 60%), var(--bg); }
a { color: var(--ink); }
h1 { font-size: clamp(1.45rem, 3.4vw, 1.9rem); line-height: 1.25; color: var(--ink); margin: 0 0 6px; font-weight: 800; }
.muted { color: var(--muted); } .small { font-size: .88rem; } .center { text-align: center; }
.logo { height: 40px; width: auto; display: block; }

/* Mise en page : colonne de marque + carte principale */
.onb-shell { max-width: 1120px; margin: 0 auto; padding: 28px 20px 60px; display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.onb-side { position: sticky; top: 24px; background: var(--ink); color: #dbe9e6; border-radius: 24px; padding: 26px 22px; overflow: hidden;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1.2px, transparent 1.2px), radial-gradient(400px 260px at 100% 0, rgba(255, 193, 7, .25), transparent 70%); background-size: 22px 22px, auto; }
.onb-side .logo { background: #fff; border-radius: 12px; padding: 6px 10px; height: 46px; }
.side-steps { list-style: none; margin: 28px 0 24px; padding: 0; display: grid; gap: 6px; }
.side-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; font-weight: 700; color: #9fc4bd; transition: background .25s, color .25s; }
.side-steps .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(255, 255, 255, .2); font-size: .85rem; flex: none; transition: all .25s; }
.side-steps li.on { background: rgba(255, 255, 255, .08); color: #fff; }
.side-steps li.on .n { background: var(--yellow); border-color: var(--yellow); color: #1a1a1a; }
.side-steps li.done { color: #d7ebe6; }
.side-steps li.done .n { background: var(--green); border-color: var(--green); color: #fff; font-size: 0; }
.side-steps li.done .n::before { content: "\f00c"; font: 900 .8rem 'Font Awesome 6 Free'; }
.gift-card { display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 193, 7, .12); border: 1px solid rgba(255, 193, 7, .35); border-radius: 16px; padding: 14px; }
.gift-card i { color: var(--yellow); font-size: 1.4rem; margin-top: 3px; }
.gift-card strong { display: block; color: #fff; }
.gift-card span { font-size: .9rem; }
.side-help { margin: 18px 0 0; font-size: .9rem; }
.side-help a { color: #cfe6e1; text-decoration: none; }
.side-help i { color: #25d366; }

.onb-main { background: #fff; border-radius: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 26px clamp(18px, 4vw, 40px) 30px; min-height: 560px; position: relative; overflow: hidden; }
.onb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.logo-mobile { display: none; }
.lang-switch { display: flex; gap: 4px; margin-inline-start: auto; background: var(--bg); border-radius: 999px; padding: 3px; }
.lang-switch a { text-decoration: none; font-weight: 800; font-size: .82rem; padding: 4px 11px; border-radius: 999px; color: var(--muted); }
.lang-switch a[aria-current] { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.progress-line { height: 5px; background: #e8f1ef; border-radius: 99px; overflow: hidden; margin-bottom: 14px; }
.progress-line span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--yellow), var(--green)); transition: width .5s ease; }
.verified-pill { display: inline-flex; align-items: center; gap: 6px; background: #e9f8ef; color: #12733a; border-radius: 999px; padding: 4px 12px; font-size: .84rem; font-weight: 700; margin: 0 0 18px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.step { animation: stepIn .35s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Champs */
.field { margin: 18px 0 0; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-size: .95rem; padding: 0; }
input, select { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid #cfe0dc; border-radius: 12px; background: #fbfefd; color: var(--text); transition: border-color .2s, box-shadow .2s; }
select { padding-inline-end: 10px; }
input:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(27, 60, 69, .1); background: #fff; }
input.is-invalid, select.is-invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(217, 56, 72, .1); }
.err { color: var(--red); font-size: .86rem; margin: 5px 0 0; min-height: 0; font-weight: 600; }
.err:empty { display: none; }
.hint { color: var(--muted); font-size: .86rem; margin: 6px 0 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.ro { position: relative; }
.ro input { background: #f1f5f4; color: var(--muted); padding-inline-end: 36px; }
.ro i { position: absolute; top: 50%; right: 13px; transform: translateY(-50%); color: #9db1ad; }

/* Adresse web */
.url-box { margin-top: 14px; background: linear-gradient(135deg, #fffaf0, #f1fbf7); border: 1.5px dashed rgba(255, 179, 0, .6); border-radius: 14px; padding: 12px 14px; }
.url-label { display: block; font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.url-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1rem; }
.url-line > i { color: var(--ink); }
.url-view { word-break: break-all; }
.url-view b { color: var(--ink); }
.url-input { width: auto; flex: 1 1 160px; padding: 6px 10px; font-size: 15px; }
.url-state { font-size: .84rem; font-weight: 700; margin-inline-start: auto; }
.url-state.ok { color: var(--green); } .url-state.ko { color: var(--red); } .url-state.wait { color: var(--muted); }
.link-btn { background: none; border: 0; color: var(--ink); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 2px 4px; font-size: .9rem; }

/* Tuiles secteurs */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile input, .choice input, .chip input { position: absolute; opacity: 0; pointer-events: none; }
.tile span { display: flex; align-items: center; gap: 10px; height: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 700; font-size: .92rem; line-height: 1.3; transition: border-color .2s, background .2s, transform .15s, box-shadow .2s; background: #fff; }
.tile span i { width: 34px; height: 34px; border-radius: 10px; background: var(--bg); color: var(--ink); display: grid; place-items: center; flex: none; transition: background .2s; }
.tile span:hover { border-color: #b8d3cd; transform: translateY(-1px); }
.tile input:checked + span { border-color: var(--yellow-2); background: #fffaf0; box-shadow: 0 0 0 3px rgba(255, 193, 7, .25); }
.tile input:checked + span i { background: var(--yellow); color: #1a1a1a; }
.tile input:focus-visible + span, .choice input:focus-visible + span, .chip input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.tile { position: relative; }

/* Choix (stratégie) */
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { position: relative; }
.choice span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: all .2s; background: #fff; }
.choice span i { color: var(--ink); font-size: 1.1rem; }
.choice strong { color: var(--ink); font-size: .95rem; }
.choice strong em { font-style: normal; font-size: .7rem; background: var(--yellow-soft); color: #6b4f00; padding: 1px 7px; border-radius: 99px; margin-inline-start: 4px; white-space: nowrap; }
.choice small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.choice input:checked + span { border-color: var(--yellow-2); background: #fffaf0; box-shadow: 0 0 0 3px rgba(255, 193, 7, .25); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { position: relative; }
.chip span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 700; cursor: pointer; font-size: .92rem; background: #fff; }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }

details.more { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px 14px; }
details.more summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 10px 0 4px; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "\f078"; font: 900 .75rem 'Font Awesome 6 Free'; float: right; margin-top: 6px; transition: transform .2s; }
[dir="rtl"] details.more summary::after { float: left; }
details.more[open] summary::after { transform: rotate(180deg); }
details.more summary small { color: var(--muted); font-weight: 400; }
.terms { margin-top: 18px; }

/* Mot de passe */
.pw { position: relative; }
.pw input { padding-inline-end: 48px; }
.pw-toggle { position: absolute; top: 50%; inset-inline-end: 6px; transform: translateY(-50%); background: none; border: 0; width: 38px; height: 38px; border-radius: 10px; color: var(--muted); cursor: pointer; }
.pw-meter { height: 5px; background: #eef3f2; border-radius: 99px; margin-top: 8px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; transition: width .3s, background .3s; }
.pw-meter .lvl1 { background: var(--red); } .pw-meter .lvl2 { background: var(--yellow-2); } .pw-meter .lvl3 { background: var(--green); }

/* Boutons */
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px; border-radius: 999px; border: 0; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s; -webkit-tap-highlight-color: transparent; }
.btn-primary { background: var(--yellow); color: #1a1a1a; box-shadow: 0 8px 20px rgba(255, 179, 0, .35); }
.btn-primary:hover { background: var(--yellow-2); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-launch { background: linear-gradient(135deg, #ffc107, #ffb300); padding-inline: 30px; }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }
.btn.is-loading i { animation: spin 1s linear infinite; }
.btn.is-loading i::before { content: "\f110"; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-msg { color: var(--red); font-weight: 700; text-align: center; margin: 12px 0 0; min-height: 1.4em; }

/* Création en direct */
.build { text-align: center; padding-top: 10px; }
.build-visual { display: grid; place-items: center; margin: 4px 0 14px; }
.orbit { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; color: #1a1a1a; background: var(--yellow); position: relative; box-shadow: 0 12px 30px rgba(255, 179, 0, .4); }
.orbit::before, .orbit::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--green); animation: spin 1.2s linear infinite; }
.orbit::after { inset: -22px; border-top-color: transparent; border-bottom-color: rgba(27, 60, 69, .35); animation-duration: 2s; animation-direction: reverse; }
.build-url { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow-soft); color: #6b4f00; border-radius: 999px; padding: 6px 16px; font-weight: 800; margin: 10px 0 18px; }
.build-bar { height: 10px; background: #e8f1ef; border-radius: 99px; overflow: hidden; max-width: 460px; margin: 0 auto 18px; }
.build-bar span { display: block; height: 100%; width: 4%; background: linear-gradient(90deg, var(--yellow), var(--green)); transition: width .6s ease; border-radius: 99px; }
.build-steps { list-style: none; padding: 0; margin: 0 auto; max-width: 420px; text-align: start; display: grid; gap: 4px; }
.build-steps li { display: flex; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 12px; color: #9db1ad; font-weight: 600; transition: all .3s; }
.build-steps li i { width: 20px; text-align: center; }
.build-steps li.done { color: var(--text); } .build-steps li.done i { color: var(--green); }
.build-steps li.active { color: var(--ink); background: var(--bg); font-weight: 800; } .build-steps li.active i { color: var(--yellow-2); }
.build-steps li.todo i { font-size: .45rem; }
.build-fail { margin-top: 20px; background: #fff6f7; border: 1px solid #f5c2c8; border-radius: 16px; padding: 18px; }
.build-fail h2 { font-size: 1.1rem; color: var(--red); margin: 0 0 6px; }
.build-fail .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }

/* Page refusée */
.onb-denied { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.onb-denied .card { background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 34px 28px; max-width: 460px; }
.onb-denied .logo { margin: 0 auto 18px; }
.denied-ico { width: 70px; height: 70px; border-radius: 50%; background: var(--yellow-soft); color: #8a6500; display: grid; place-items: center; font-size: 1.6rem; margin: 0 auto 14px; }

/* Mobile : une seule colonne, formulaire compact */
@media (max-width: 900px) {
  .onb-shell { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .onb-side { display: none; }
  .onb-main { border-radius: 0; border: 0; box-shadow: none; min-height: 100vh; padding: 14px 16px 110px; }
  .logo-mobile { display: block; height: 34px; }
  .choices { grid-template-columns: 1fr; }
  .row3 { grid-template-columns: 1fr; }
  .actions { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); z-index: 20; }
  .actions .btn { flex: 1; padding: 13px 14px; }
  .actions .btn-ghost { flex: 0 0 auto; }
  .form-msg { position: fixed; bottom: 76px; left: 16px; right: 16px; margin: 0; z-index: 21; }
  .form-msg:empty { display: none; }
  .form-msg:not(:empty) { background: #fff; border: 1px solid #f5c2c8; border-radius: 12px; padding: 8px 12px; box-shadow: 0 8px 20px rgba(0, 0, 0, .08); }
}
@media (max-width: 560px) {
  .row2 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile span { padding: 10px; font-size: .86rem; gap: 8px; }
  .tile span i { width: 30px; height: 30px; }
  h1 { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Charte e-tijara.pro : chargement entre les pages (identique au site) ---------- */
:root { --mint: #5fd5b6; --cyan: #79dfff; --bg: #f4fffb; }
.page-loader { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; background: radial-gradient(60% 60% at 50% 45%, rgba(255, 255, 255, .92), rgba(244, 255, 251, .86)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.page-loader.is-active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .25s ease; }
.pl-center { display: grid; justify-items: center; gap: 18px; transform: scale(.92); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.page-loader.is-active .pl-center { transform: none; }
.pl-logo { position: relative; width: 112px; height: 112px; display: grid; place-items: center; }
.pl-logo img { width: 60px; height: 60px; position: relative; z-index: 2; animation: plPulse 1.4s ease-in-out infinite; filter: drop-shadow(0 8px 16px rgba(255, 179, 0, .35)); }
.pl-ring { position: absolute; inset: 0; border-radius: 50%; }
.pl-ring-1 { background: conic-gradient(from 0deg, transparent 0 55%, var(--yellow) 75%, var(--yellow-2) 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); animation: plSpin 1s linear infinite; }
.pl-ring-2 { inset: 12px; background: conic-gradient(from 180deg, transparent 0 60%, var(--mint) 80%, var(--cyan) 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); animation: plSpin 1.5s linear infinite reverse; }
.pl-ring-1::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 193, 7, .18), transparent); }
.pl-dots { display: flex; gap: 7px; }
.pl-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); opacity: .25; animation: plDot 1.2s ease-in-out infinite; }
.pl-dots i:nth-child(2) { animation-delay: .15s; } .pl-dots i:nth-child(3) { animation-delay: .3s; }
.pl-bar { position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--yellow), var(--mint), var(--cyan)); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px rgba(255, 193, 7, .6); }
[dir="rtl"] .pl-bar { transform-origin: right; }
.page-loader.is-active .pl-bar { animation: plBar 6s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes plSpin { to { transform: rotate(360deg); } }
@keyframes plPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes plDot { 0%, 100% { opacity: .2; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-5px); background: var(--yellow-2); } }
@keyframes plBar { 0% { transform: scaleX(0); } 20% { transform: scaleX(.45); } 60% { transform: scaleX(.75); } 100% { transform: scaleX(.92); } }
@media (prefers-reduced-motion: reduce) { .pl-ring, .pl-logo img, .pl-dots i { animation-duration: 3s; } }

/* Boutons : même reflet que le site */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 45%; inset-inline-start: -60%; background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); z-index: -1; }
.btn-primary:hover::after { inset-inline-start: 120%; transition: inset-inline-start .7s ease; }
.btn:active { transform: translateY(0) scale(.98); }
.deny-code { margin-top: 14px; font-size: .78rem; letter-spacing: .04em; opacity: .75; }

.lang-switch a { display: inline-flex; align-items: center; gap: 5px; }
.lang-switch img { width: 18px; height: 12px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
