/* Inscription MILELE V6 (resources/views/business/register.blade.php) : formulaire en 3 etapes (64 %)
   et panneau « Votre boutique » (36 %). Charte : bleu nuit, dore MILELE, fond #F3F6FC. */

:root {
  --navy: #101E38; --navy-2: #121A3A; --gold: #F5BD36; --yellow: #FFC400; --blue: #2775E7;
  --bg: #F3F6FC; --white: #FFFFFF; --ink: #17233D; --muted: #687792; --line: #DFE5F0; --ok: #12A886; --err: #D94A5A;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: #1C5BB8; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid rgba(39, 117, 231, .45); outline-offset: 2px; }

/* Decor : Afrique en filigrane, vagues et ville */
.rg-decor { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.rg-decor .africa { position: absolute; left: -40px; top: 150px; width: 230px; opacity: .08; }
.rg-decor .waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 190px; }
.rg-decor .city { position: absolute; right: 0; bottom: 70px; width: 260px; opacity: .35; }

.rg { position: relative; z-index: 1; max-width: 1380px; margin: 0 auto; padding: 18px clamp(14px, 3vw, 40px) 40px; }

/* En-tete */
.rg-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.rg-brand { display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--ink); }
.rg-logo { display: flex; flex-direction: column; align-items: flex-start; }
.rg-logo img { height: 46px; width: auto; display: block; }
.rg-logo small { font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.rg-sep { width: 2px; height: 46px; background: var(--gold); border-radius: 2px; }
.rg-sign { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; max-width: 320px; position: relative; padding-bottom: 8px; }
.rg-sign::after { content: ""; position: absolute; left: 30%; bottom: 0; width: 46%; height: 3px; border-radius: 3px; background: var(--gold); transform: rotate(-1.5deg); }
.rg-login { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; text-decoration: none; color: #1C5BB8; }
.rg-login svg { width: 24px; height: 24px; }
.rg-login:hover span { text-decoration: underline; }

.rg-grid { display: grid; grid-template-columns: 64fr 36fr; gap: clamp(14px, 1.6vw, 22px); align-items: start; }

/* ===================== Carte formulaire ===================== */
.rg-card { background: var(--white); border-radius: 24px; box-shadow: 0 1px 2px rgba(16, 30, 56, .05), 0 24px 50px -28px rgba(16, 30, 56, .3);
  padding: clamp(18px, 2.2vw, 30px) clamp(16px, 2.4vw, 36px) clamp(18px, 2.2vw, 28px); min-width: 0; }

/* Progression */
.steps { display: flex; align-items: center; gap: 0; margin: 0 0 18px; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; flex: 1; }
.steps li:last-child { flex: 0 0 auto; }
.steps button { display: inline-flex; align-items: center; gap: 12px; border: 0; background: none; padding: 4px 0; cursor: pointer; font: inherit;
  font-size: 16px; font-weight: 600; color: #4A5A73; white-space: nowrap; }
.steps .num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 16px;
  background: #EEF2F8; color: var(--ink); border: 2px solid #E3E9F2; transition: background .25s var(--ease), border-color .25s, color .25s, transform .25s var(--ease); }
.steps .num svg { width: 20px; height: 20px; display: none; }
.steps .bar { flex: 1; height: 2px; margin: 0 16px; background: var(--line); border-radius: 2px; position: relative; overflow: hidden; }
.steps .bar::after { content: ""; position: absolute; inset: 0; background: var(--ok); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.steps li.is-on button { color: var(--ink); font-weight: 800; }
.steps li.is-on .num { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: scale(1.05); }
.steps li.is-done .num { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.is-done .num span { display: none; } .steps li.is-done .num svg { display: block; }
.steps li.is-done .bar::after { transform: scaleX(1); }

.panel { display: none; }
.panel.is-on { display: block; animation: slideIn .28s var(--ease); }
.panel.is-on.back { animation-name: slideBack; }
@keyframes slideIn { from { opacity: 0; transform: translateX(18px); } }
@keyframes slideBack { from { opacity: 0; transform: translateX(-18px); } }
.panel h1 { margin: 0; font-size: clamp(24px, 2.1vw, 32px); letter-spacing: -.02em; line-height: 1.15; }
.panel .sub { margin: 4px 0 18px; font-size: 16px; color: #4F5E78; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert.err { background: #FCE8EA; color: #8E1E2B; border: 1px solid #F4C1C7; }

/* Secteurs */
.sectors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.sector { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; min-height: 96px;
  padding: 12px 6px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font: inherit; text-align: center;
  box-shadow: 0 1px 2px rgba(16, 30, 56, .04); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s, background .2s; }
.sector svg { width: 40px; height: 40px; flex: none; }
.sector .lab { display: flex; flex-direction: column; gap: 2px; }
.sector b { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.sector small { font-size: 12px; color: #5A6984; line-height: 1.2; }
.sector:hover { transform: translateY(-2px); border-color: #C9D3E3; box-shadow: 0 10px 18px -12px rgba(16, 30, 56, .35); }
.sector.is-on { border-color: var(--gold); background: #FFF9E6; box-shadow: 0 0 0 3px rgba(245, 189, 54, .25); }
.sector .tick { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--navy);
  display: none; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.sector .tick svg { width: 16px; height: 16px; }
.sector.is-on .tick { display: grid; animation: pop .25s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* Champs (etiquettes visibles) */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.fld { position: relative; margin-bottom: 14px; }
.fld > svg.ico { position: absolute; left: 18px; top: 16px; width: 22px; height: 22px; color: #3A4A66; pointer-events: none; }
.fld label.lbl { position: absolute; left: 58px; top: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink); pointer-events: none; }
.fld label.lbl i { color: var(--err); font-style: normal; }
.fld input, .fld select { width: 100%; height: 54px; padding: 22px 44px 6px 58px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  font: inherit; font-size: 15.5px; font-weight: 500; color: var(--ink); appearance: none; transition: border-color .18s, box-shadow .18s; }
.fld input::placeholder { color: #8A97AD; font-weight: 400; }
.fld input:focus, .fld select:focus { outline: none; border-color: #4A5BD4; box-shadow: 0 0 0 4px rgba(74, 91, 212, .14); }
.fld.no-ico label.lbl { left: 16px; } .fld.no-ico input, .fld.no-ico select { padding-left: 16px; }
.fld .chev { position: absolute; right: 16px; top: 17px; width: 20px; height: 20px; color: #3A4A66; pointer-events: none; }
.fld .act { position: absolute; right: 8px; top: 7px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: #4A5A73;
  cursor: pointer; display: grid; place-items: center; }
.fld .act:hover { background: #EEF2F8; }
.fld .act svg { width: 22px; height: 22px; }
.fld .act .off { display: none; } .fld .act[aria-pressed="true"] .on { display: none; } .fld .act[aria-pressed="true"] .off { display: block; }
.fld .state { position: absolute; right: 14px; top: 18px; font-size: 12.5px; font-weight: 700; }
.fld .state.ok { color: var(--ok); } .fld .state.ko { color: var(--err); } .fld .state.wait { color: var(--muted); }
.fld.has-error input, .fld.has-error select { border-color: var(--err); background: #FFF8F8; }
.fld .msg { display: block; margin: 6px 4px 0; font-size: 13px; color: var(--err); font-weight: 600; }
.fld .hint { display: block; margin: 6px 4px 0; font-size: 12.5px; color: var(--muted); }
.meter { display: flex; gap: 4px; margin: -6px 2px 4px; }
.meter i { flex: 1; height: 5px; border-radius: 5px; background: var(--line); transition: background .25s; }
.meter[data-level="1"] i:nth-child(-n+1) { background: var(--err); }
.meter[data-level="2"] i:nth-child(-n+2) { background: #E9A23B; }
.meter[data-level="3"] i:nth-child(-n+3) { background: #6FBF73; }
.meter[data-level="4"] i { background: var(--ok); }
.meter-txt { display: block; margin: 0 4px 14px; font-size: 12.5px; color: var(--muted); }
.caps { display: none; margin: -6px 4px 12px; font-size: 13px; font-weight: 700; color: #8A5600; } .caps.is-on { display: block; }

/* Logo */
.drop { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; border: 1.5px dashed #C9D3E3; border-radius: 12px; margin-bottom: 14px;
  background: #FBFCFE; transition: border-color .2s, background .2s; }
.drop.is-over { border-color: var(--blue); background: #F2F7FF; }
.drop .ph { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: #EEF2F8; color: #3A4A66; flex: none; overflow: hidden; }
.drop .ph img { width: 100%; height: 100%; object-fit: cover; }
.drop .ph svg { width: 22px; height: 22px; }
.drop .txt { flex: 1; min-width: 0; }
.drop b { display: block; font-size: 14.5px; }
.drop small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop .pick { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 10px; background: #EDF3FD; color: var(--ink);
  font-weight: 700; font-size: 14px; cursor: pointer; border: 0; font-family: inherit; white-space: nowrap; }
.drop .pick svg { width: 20px; height: 20px; }
.drop .pick:hover { background: #E1EBFB; }
.drop .rm { border: 0; background: none; color: var(--err); font-weight: 700; cursor: pointer; font: inherit; font-size: 13px; }

/* Parametres avances */
details.adv { border: 1.5px solid var(--line); border-radius: 12px; margin: 0 0 18px; background: #fff; }
details.adv summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 13px 16px 13px 18px; font-weight: 700; font-size: 15px; }
details.adv summary::-webkit-details-marker { display: none; }
details.adv summary svg { width: 22px; height: 22px; color: #3A4A66; flex: none; }
details.adv summary .chev { margin-left: auto; transition: transform .2s var(--ease); }
details.adv[open] summary .chev { transform: rotate(180deg); }
details.adv .inner { padding: 4px 16px 4px; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }

/* Boutons */
.nav { display: flex; gap: 12px; }
.btn-go { flex: 1; height: 58px; border: 0; border-radius: 14px; cursor: pointer; font: inherit; font-size: 18px; font-weight: 800; color: var(--navy);
  background: linear-gradient(180deg, var(--yellow), #F5B300); box-shadow: 0 14px 26px -16px rgba(209, 148, 20, 1);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; transition: transform .2s var(--ease), box-shadow .25s, filter .2s; }
.btn-go:hover { transform: translateY(-2px); filter: saturate(1.08); }
.btn-go:active { transform: translateY(0); }
.btn-go svg { width: 24px; height: 24px; transition: transform .2s var(--ease); }
.btn-go:hover svg { transform: translateX(3px); }
.btn-go[disabled] { cursor: progress; filter: grayscale(.2); transform: none; }
.btn-go .spin { display: none; width: 22px; height: 22px; border: 2.5px solid rgba(16, 30, 56, .25); border-top-color: var(--navy); border-radius: 50%; animation: spin .7s linear infinite; }
.btn-go.is-busy .spin { display: inline-block; } .btn-go.is-busy svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-back { height: 58px; padding: 0 20px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: 16px; font-weight: 700;
  color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.btn-back:hover { border-color: #C9D3E3; }
.btn-back svg { width: 20px; height: 20px; }

/* Recapitulatif */
.recap { border: 1.5px solid var(--line); border-radius: 16px; padding: 4px 18px; margin-bottom: 16px; }
.recap div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.recap div:last-child { border-bottom: 0; }
.recap span { color: var(--muted); } .recap b { text-align: right; overflow-wrap: anywhere; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); margin-bottom: 12px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ok); flex: none; }
.check b { display: block; font-size: 15px; }
.check small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; line-height: 1.45; }
.check.trial { border-color: rgba(245, 189, 54, .7); background: #FFFAEB; }
.check details { margin-top: 6px; } .check details div { max-height: 160px; overflow: auto; font-size: 12.5px; padding: 8px; background: #F6F8FC; border-radius: 8px; }
.check .msg { color: var(--err); font-weight: 600; font-size: 13px; margin-top: 4px; display: block; }

/* ===================== Panneau « Votre boutique » ===================== */
.shop { position: sticky; top: 16px; background: linear-gradient(170deg, #142650, var(--navy) 55%, var(--navy-2)); color: #E3EBF8; border-radius: 24px;
  padding: clamp(18px, 2vw, 28px); box-shadow: 0 24px 50px -26px rgba(16, 30, 56, .6); overflow: hidden; }
.shop h2 { margin: 0 0 14px; display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; letter-spacing: .04em; color: #fff; }
.shop h2 svg { width: 30px; height: 30px; color: var(--gold); }
.shop-art { position: relative; margin: 0 auto 6px; max-width: 360px; }
.shop-art > img { width: 100%; height: auto; display: block; }
.shop-sign { position: absolute; left: 50%; top: 0; transform: translateX(-50%); min-width: 62%; max-width: 92%; padding: 9px 16px; border-radius: 10px; text-align: center;
  background: linear-gradient(180deg, #FFD34D, var(--gold) 60%, #E39E12); color: var(--navy); font-weight: 900; font-size: clamp(16px, 1.5vw, 21px); letter-spacing: .02em;
  text-transform: uppercase; line-height: 1.15; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .55), inset 0 -3px 0 rgba(0, 0, 0, .12); border: 2px solid #FFE38A;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 8px; }
.shop-sign img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; background: #fff; flex: none; }
.shop-sign.pop { animation: signPop .3s var(--ease); }
@keyframes signPop { 50% { transform: translateX(-50%) scale(1.04); } }
.preview { list-style: none; margin: 0 0 16px; padding: 0; font-size: 14px; }
.preview li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, .14); }
.preview span { color: #9FB2D0; } .preview b { color: #fff; text-align: right; overflow-wrap: anywhere; transition: opacity .2s; }
.perks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.perks li { display: flex; align-items: center; gap: 14px; font-size: 15.5px; font-weight: 600; color: #fff; line-height: 1.35; }
.perks svg { width: 30px; height: 30px; color: var(--gold); flex: none; }
.perks small { display: block; font-weight: 500; color: #C9D6EC; font-size: 14px; }
.trial-box { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; border: 1.5px solid rgba(245, 189, 54, .55);
  background: linear-gradient(135deg, rgba(245, 189, 54, .14), rgba(245, 189, 54, .04)); }
.trial-box svg { width: 44px; height: 44px; color: var(--gold); flex: none; }
.trial-box b { display: block; color: var(--gold); font-size: 22px; font-weight: 800; }
.trial-box span { display: block; font-size: 14px; color: #E3EBF8; line-height: 1.4; }

/* ===================== Ecrans ===================== */
@media (max-height: 820px) and (min-width: 1100px) {
  .rg { padding-top: 10px; }
  .rg-header { margin-bottom: 10px; } .rg-logo img { height: 38px; }
  .panel .sub { margin-bottom: 12px; }
  .sector { min-height: 0; padding: 7px 4px; gap: 3px; } .sector svg { width: 28px; height: 28px; } .sector small { display: none; }
  .sectors { gap: 8px; margin-bottom: 12px; }
  .rg-card { padding-top: 16px; padding-bottom: 16px; }
  .steps { margin-bottom: 10px; } .steps .num { width: 34px; height: 34px; }
  .panel h1 { font-size: 24px; } .panel .sub { font-size: 14.5px; }
  details.adv { margin-bottom: 12px; } details.adv summary { padding-top: 10px; padding-bottom: 10px; }
  .fld input, .fld select { height: 50px; } .fld > svg.ico { top: 14px; } .fld .chev { top: 15px; }
  .fld { margin-bottom: 11px; } .drop { padding-top: 8px; padding-bottom: 8px; }
  .btn-go, .btn-back { height: 52px; }
  .perks { gap: 8px; } .perks li { font-size: 14px; } .perks svg { width: 26px; height: 26px; }
  .shop-art { max-width: 300px; }
}
@media (max-width: 1100px) {
  .rg-grid { grid-template-columns: minmax(0, 1fr); }
  .shop { position: static; order: -1; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 20px; align-items: center; }
  .shop h2 { grid-column: 1 / -1; }
  .shop-art { margin: 0; }
  .perks, .trial-box { grid-column: 1 / -1; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-decor .city, .rg-decor .africa { display: none; }
}
@media (max-width: 720px) {
  .rg-sign, .rg-sep { display: none; }
  .steps button .lbl { display: none; }
  .steps li.is-on button .lbl { display: inline; }
  .steps .bar { margin: 0 8px; }
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sector { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 64px; padding: 10px; gap: 10px; }
  .sector svg { width: 30px; height: 30px; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  /* Panneau reduit a un resume compact */
  .shop { grid-template-columns: 90px minmax(0, 1fr); padding: 14px; border-radius: 18px; }
  .shop h2 { font-size: 14px; margin-bottom: 8px; } .shop h2 svg { width: 22px; height: 22px; }
  .shop-sign { font-size: 11px; padding: 4px 6px; min-width: 90%; }
  .shop-sign img { display: none; }
  .perks, .trial-box { display: none; }
  .preview { margin: 0; font-size: 13px; }
  .drop { flex-wrap: wrap; } .drop .pick { width: 100%; justify-content: center; }
  .nav { flex-wrap: wrap; } .btn-back { flex: 0 0 auto; }
  .rg-decor .waves { height: 120px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
