/* Business page experiment (welcome screen). Loaded after guichet.css and home2.css. */

/* ---------- Business welcome screen ---------- */
body[data-signed="in"] .b-stage, body[data-mode="form"] .b-stage { display: none; }
body[data-signed="out"]:has(.b-stage) .g-intro { display: none; }
.b-stage__grid { display: grid; gap: var(--space-6); max-width: 1240px; margin: 0 auto; padding: var(--space-8) var(--gutter-r) var(--space-8) var(--gutter-l); align-items: center; }
.b-pitch { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.b-facts { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; }
.b-facts li { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: var(--radius-pill); background: rgba(47,211,154,.14); color: #d5f5e8; font: 700 14px/1 var(--font-body); }
.b-facts li::before { content: "✓"; color: var(--n-glow); font-weight: 800; }
.b-where { display: flex; flex-direction: column; gap: var(--space-2); font: 700 16px/22px var(--font-body); color: #fff; }
.b-select { width: 100%; max-width: 420px; min-height: var(--control-height); padding: 0 44px 0 var(--space-4); border: 1.5px solid rgba(255,255,255,.35); border-radius: var(--radius-sm); background-color: rgba(255,255,255,.08); color: #fff; font: 600 16px/24px var(--font-body); appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.b-select option { color: var(--ink); background: #fff; }
.b-select:focus-visible { outline: 3px solid var(--n-glow); outline-offset: 2px; }
.b-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.b-go { min-height: 56px; padding: 0 var(--space-6); font-size: 18px; background: var(--n-glow); color: var(--n-night); }
.b-go:hover { background: #5fe6b6; }
.b-stage .b-quiet { color: #fff; }
.b-adlink { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap-min); color: var(--flag-gold); font: 700 16px/1 var(--font-body); text-decoration: none; }
.b-adlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.b-adlink svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.b-stage .n-map { max-width: 560px; width: 100%; margin: 0 auto; }
@media (min-width: 1080px) {
  .b-stage__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; padding: 40px var(--space-8) 48px; }
  .b-stage .n-pitch__title { font-size: clamp(40px, 3.6vw, 54px); line-height: 1.06; }
  .b-stage .n-map { max-width: min(600px, calc((100vh - 300px) * 1.186)); }
}

/* These two dark bands are short: they do not fill the screen like the home page stage. */
.n-stage.b-stage { min-height: 0; display: block; }

/* One piece while signed out: the welcome band carries the old start screen (needs, buttons, compare),
   and the example listing follows on the same dark background. */
body[data-signed="out"][data-mode="dashboard"]:has(.b-stage) .g-main { display: none; }
body[data-signed="out"][data-mode="dashboard"]:has(.b-stage) .g-shell { display: none; }
.b-needs__title { margin: 0 0 var(--space-2); font: 700 13px/16px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--n-mist); }
.b-needs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.b-needs li { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/22px var(--font-body); color: #fff; }
.b-needs i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--n-night); font: 800 13px/1 var(--font-display); font-style: normal; }
.b-links { display: flex; flex-wrap: wrap; gap: 0 var(--space-6); }
.b-adlink--plain { padding: 0; border: 0; background: none; color: #fff; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.b-next { display: none; }
@media (min-width: 1080px) {
  body[data-signed="out"][data-mode="dashboard"]:has(.b-stage) { background: var(--n-night); }
  body[data-signed="out"][data-mode="dashboard"]:has(.b-stage) .g-shell { display: block; max-width: none; margin: 0; padding: var(--space-6) var(--space-8) 72px; background: var(--n-night); }
  body[data-signed="out"][data-mode="dashboard"]:has(.b-stage) .g-aside { position: static; width: 360px; margin: 0 auto; scroll-margin-top: 96px; }
  body[data-signed="out"][data-mode="dashboard"]:has(.b-stage) .g-aside__title { color: #fff; font-size: 26px; line-height: 32px; }
  .b-next { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; margin: 0 auto; padding: 0 var(--space-4) var(--space-6); min-height: var(--tap-min); color: var(--n-mist); font: 700 14px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
  .b-next:hover { color: #fff; }
  .b-next svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; animation: b-nudge 1.8s ease-in-out infinite; }
  .b-stage .b-stage__grid { padding-bottom: var(--space-6); }
}
@keyframes b-nudge { 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .b-next svg { animation: none; } }

/* After sign-in (computer): the dashboard and the registration form keep the same dark backdrop as the welcome
   screen, so signing in does not jump to a different-looking page. The white panel stays white: forms must be easy to read. */
@media (min-width: 1080px) {
  body.g-page:has(.b-stage) { background-color: var(--n-night); background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1.4px); background-size: 26px 26px; }
  body:has(.b-stage) .g-shell { background: none; }
  body:has(.b-stage) .g-shell > .g-main { box-shadow: 0 24px 60px rgba(0,0,0,.45); }
  body:has(.b-stage) .g-aside__title { color: #fff; }
  body:has(.b-stage) .g-aside__note { color: var(--flag-gold); }
  body:has(.b-stage) .g-aside__live { color: #ff8f9a; }
  body:has(.b-stage) .g-aside__live::before { background: #ff4d5e; }
  body:has(.b-stage) .g-aside__trust b { color: #fff; }
  body:has(.b-stage) .g-aside__trust span span { color: var(--n-mist); }
  body:has(.b-stage) .g-footer { background: none; border-top-color: var(--n-hair); }
  body:has(.b-stage) .g-footer a { color: var(--n-mist); }
  body:has(.b-stage) .g-footer a:hover { color: #fff; }
}

/* ---------- Signed-in dashboard: cards blended into the dark page (body.b-dash is set by business2.js) ---------- */
body.b-dash { background-color: var(--n-night); background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1.4px); background-size: 26px 26px; }
body.b-dash .g-main { color: #fff; }
body.b-dash .g-footer { background: none; border-top-color: var(--n-hair); }
body.b-dash .g-footer a { color: var(--n-mist); }
@media (min-width: 1080px) { body.b-dash .g-shell > .g-main { padding: 0; background: none; box-shadow: none; border-radius: 0; } }
body.b-dash .g-planbar, body.b-dash .business-status-card, body.b-dash .business-search, body.b-dash .g-upsell--block {
  border: 1px solid var(--n-hair); border-radius: 20px; background: rgba(255,255,255,.06); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body.b-dash .g-planbar { padding: 14px 14px 14px 20px; }
body.b-dash .g-planbar__label, body.b-dash .g-planbar__note { color: var(--n-mist); }
body.b-dash .g-planbar--pro .g-planbar__plan { color: var(--flag-gold); }
body.b-dash .g-planbar--ending { border: 2px solid var(--flag-gold); }
body.b-dash .g-main .g-btn--pro { background: var(--flag-gold); color: var(--ink); }
body.b-dash .g-main .g-btn--pro:hover { background: #ffd23a; }
body.b-dash .g-dashboard > p, body.b-dash .business-status-card p, body.b-dash .business-search p, body.b-dash .g-main .g-hint { color: var(--n-mist); }
body.b-dash .business-status-card, body.b-dash .business-search, body.b-dash .g-upsell--block { padding: 20px; }
body.b-dash .business-status-card.is-paused { border-style: dashed; background: rgba(255,255,255,.03); }
body.b-dash .business-status-card.is-paused h3 { color: var(--n-mist); }
body.b-dash .g-upsell--block p { color: #fff; }
body.b-dash .business-status-card summary, body.b-dash .business-search summary, body.b-dash .g-applook > summary, body.b-dash .g-main .g-btn--text { color: var(--n-glow); }
body.b-dash .business-details > div { border-top-color: var(--n-hair); }
body.b-dash .business-details dt { color: var(--n-mist); }
body.b-dash .g-applook__note { color: var(--flag-gold); }
body.b-dash .g-main .g-btn--secondary { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
body.b-dash .g-main .g-btn--secondary:hover { background: rgba(255,255,255,.1); }
body.b-dash .g-empty__shadow { background: rgba(0,0,0,.4); }
body.b-dash .g-empty__cta { min-height: 56px; font-size: 18px; background: var(--n-glow); color: var(--n-night); }
body.b-dash .g-empty__cta:hover { background: #5fe6b6; }
body.b-dash .g-main .g-notice { border-radius: 16px; }
body.b-dash .business-search .g-picker, body.b-dash .business-search input, body.b-dash .business-status-card .g-show { color: var(--ink); }

/* Skeleton: same shapes as the real cards, shown in both columns at once. */
.b-skel { display: none; flex-direction: column; gap: var(--space-4); }
.b-skel > span, .b-skel i, body.b-loading .g-aside::before { display: block; border-radius: 20px; background: linear-gradient(100deg, rgba(255,255,255,.06) 30%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.06) 70%); background-size: 220% 100%; animation: b-shimmer 1.3s linear infinite; }
.b-skel__bar { height: 74px; }
.b-skel__line { width: 46%; height: 30px; border-radius: 10px !important; }
.b-skel__card { height: 250px; padding: 20px; display: flex !important; flex-direction: column; gap: 14px; animation: none !important; background: rgba(255,255,255,.05) !important; border: 1px solid var(--n-hair); }
.b-skel i { height: 18px; border-radius: 8px; }
.b-skel i:nth-child(1) { width: 34%; height: 26px; }
.b-skel i:nth-child(2) { width: 62%; }
.b-skel i:nth-child(3) { width: 100%; flex: 1; border-radius: 14px; }
.b-skel__btn { height: 52px; border-radius: 12px !important; }
body.b-loading .b-skel { display: flex; }
body.b-loading #plan-slot, body.b-loading #business-dashboard, body.b-loading .g-main > .g-demo, body.b-loading .g-aside > * { display: none; }
body.b-loading .g-aside::before { content: ""; height: min(620px, calc(100vh - 160px)); border-radius: 24px; }
@keyframes b-shimmer { from { background-position: 120% 0; } to { background-position: -100% 0; } }
.b-in > * { animation: b-fadein .35s ease both; }
@keyframes b-fadein { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .b-skel > span, .b-skel i, body.b-loading .g-aside::before, .b-in > * { animation: none; } }

/* ---------- Préfecture menu (replaces the browser dropdown) ---------- */
.n-stage.b-stage { position: relative; z-index: 2; overflow: visible; }
.b-pick { position: relative; max-width: 420px; }
.b-pick__button { display: flex; align-items: center; text-align: left; }
.b-pick__button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #b9c9cf; font-weight: 400; }
.b-pick__button.is-set span { color: #fff; font-weight: 700; }
.b-pick__button[aria-expanded="true"] { border-color: var(--n-glow); }
.b-pick__panel { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: #0d2a38; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.b-pick__search { margin: 10px 10px 6px; min-height: 44px; padding: 0 14px; border: 1.5px solid rgba(255,255,255,.22); border-radius: 10px; background: rgba(255,255,255,.07); color: #fff; font: 400 16px/24px var(--font-body); }
.b-pick__search::placeholder { color: #8fa5ae; }
.b-pick__search:focus-visible { outline: 2px solid var(--n-glow); outline-offset: 1px; }
.b-pick__list { list-style: none; margin: 0; padding: 0 6px 6px; max-height: 296px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; }
.b-pick__option { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); width: 100%; min-height: 46px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: #fff; font: 600 16px/22px var(--font-body); text-align: left; cursor: pointer; }
.b-pick__option small { color: var(--n-mist); font-size: 13px; font-weight: 400; white-space: nowrap; }
.b-pick__option:hover, .b-pick__option:focus-visible { background: rgba(255,255,255,.09); outline: none; }
.b-pick__option[aria-selected="true"] { background: rgba(47,211,154,.16); color: var(--n-glow); font-weight: 700; }
.b-pick__option[aria-selected="true"] small { color: var(--n-glow); }
.b-pick__none { padding: 14px 12px; color: var(--n-mist); }
@media (max-width: 699px) {
  .b-pick__panel { position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 120; border-radius: 20px 20px 0 0; border-width: 1px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 0 0 100vmax rgba(3,12,18,.6); }
  .b-pick__list { max-height: 52vh; }
  .b-pick__option { min-height: 52px; }
}

/* Plan cards (comparison and plan choice): the free card is built like the Pro one — coloured header, tinted body,
   strong border — in the brand green instead of ink, so the two read as a pair. */
.g-planpick__tab--free, .g-planpick__tab--free.is-static { border-color: var(--action); background: var(--action-tint); }
.g-planpick__tab--free:hover { border-color: var(--action-hover); }
.g-planpick__tab--free .g-planpick__head { background: var(--action); color: #fff; border-bottom-color: var(--action); }
.g-planpick__tab--free .g-planpick__price { color: #d7f0e4; }
.g-planpick__tab--free .g-planpick__tick { border-color: #cdeedd; background: transparent; }
.g-planpick__tab--free .g-planpick__feature.is-off { color: #7f958c; }
.g-planpick__tab--free .g-planpick__feature.is-off .g-planpick__mark { color: #9db3aa; }

/* « Il vous faut » (4 items): two per row, instead of an uneven 3 + 1. */
.b-needs ol { display: grid; grid-template-columns: repeat(2, max-content); gap: var(--space-2) var(--space-6); }
.b-needs li { align-items: flex-start; } .b-needs li i { flex: none; }
/* Phones: the first column takes the room its longest item needs, so « Un numéro ou un e-mail » stays on one line. */
@media (max-width: 699px) { .b-needs ol { grid-template-columns: max-content max-content; gap: var(--space-2) var(--space-3); } .b-needs li { white-space: nowrap; font-size: 14px; gap: 6px; } }
/* Very small phones: « Un numéro ou un e-mail » on its own line, the other three under it (still in order). */
@media (max-width: 360px) { .b-needs ol { grid-template-columns: 1fr 1fr; } .b-needs li:first-child { grid-column: 1 / -1; } }
