/* Nimba360 Guichet — business website styles. Tokens mirror the Guichet design system (tokens.json). */
:root {
  --surface: #ffffff; --surface-sunken: #f3f5f4; --surface-raised: #ffffff;
  --ink: #071f2c; --ink-muted: #55666f; --line: #dde3e3; --line-strong: #7f8e94;
  --action: #07865e; --action-hover: #056b4b; --on-action: #ffffff; --action-tint: #e3f3ec; --action-text: #05613f;
  --flag-red: #ce1126; --flag-gold: #f2bd00; --flag-green: #007a5e;
  --danger: #b80f22; --danger-tint: #fdecee; --notice: #7a5a00; --notice-tint: #fdf3d1; --focus: #0a5ad6;
  --shadow-sheet: 0 -8px 24px rgba(7,31,44,0.10);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px;
  --radius-sm: 8px; --radius-md: 12px; --radius-pill: 999px;
  --control-height: 52px; --tap-min: 48px; --content-max: 560px;
  --font-display: Manrope, "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --gutter-l: max(var(--space-4), env(safe-area-inset-left, 0px));
  --gutter-r: max(var(--space-4), env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 16px/24px var(--font-body); }
img { max-width: 100%; display: block; }
a { color: var(--action-text); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:where(a, button, input, select, textarea, summary, label.g-photo):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Type */
.g-display { margin: 0; font: 800 32px/38px var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.g-heading { margin: 0; font: 800 24px/30px var(--font-display); letter-spacing: -0.01em; text-wrap: balance; }
.g-heading:focus { outline: none; }
.g-title { margin: 0; font: 700 18px/24px var(--font-display); }
.g-eyebrow { margin: 0; font: 700 13px/16px var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.g-lead { margin: 0; font-size: 18px; line-height: 27px; color: var(--ink-muted); }
.g-body-muted { margin: 0; color: var(--ink-muted); }
.g-hint { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.g-hint:empty { display: none; }
.g-optional { font-weight: 400; color: var(--ink-muted); font-size: 14px; }
.g-optional::before { content: "· "; }
@media (min-width: 768px) { .g-display { font-size: 40px; line-height: 46px; } }

/* Header and page */
.g-stripe { display: flex; height: 4px; }
.g-stripe span { flex: 1; }
.g-stripe span:nth-child(1) { background: var(--flag-red); }
.g-stripe span:nth-child(2) { background: var(--flag-gold); }
.g-stripe span:nth-child(3) { background: var(--flag-green); }
.g-header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.g-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 60px; max-width: 1120px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.g-header__actions { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.g-header__actions [data-user-chip] { max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: var(--tap-min); }
.g-wordmark { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; color: var(--ink); min-height: var(--tap-min); }
.g-wordmark img { height: 40px; width: auto; }
.g-wordmark span { font: 600 14px/20px var(--font-body); color: var(--ink-muted); padding-left: var(--space-2); border-left: 1px solid var(--line); }
.g-main { max-width: var(--content-max); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: var(--space-6) var(--space-12); }
.g-intro { display: flex; flex-direction: column; gap: var(--space-3); padding-bottom: var(--space-8); }
body[data-mode="form"] .g-intro, body[data-mode="form"] .g-demo { display: none; }
body[data-mode="form"] .g-footer { display: none; }
.g-footer { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); justify-content: center; padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: var(--space-6) calc(var(--space-6) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 14px; }
.g-footer a { color: var(--ink-muted); min-height: var(--tap-min); display: inline-flex; align-items: center; }

/* Buttons (g-btn, plus the class names the portal script generates) */
.g-btn, .button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--control-height); padding: 0 var(--space-6); border-radius: var(--radius-md); border: 1.5px solid transparent; font: 600 16px/22px var(--font-body); cursor: pointer; text-decoration: none; text-align: center; background: none; }
.g-btn--primary, .button-primary { background: var(--action); color: var(--on-action); }
.g-btn--primary:hover, .button-primary:hover { background: var(--action-hover); }
.g-btn--secondary, .button-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.g-btn--secondary:hover, .button-secondary:hover { background: var(--surface-sunken); }
.g-btn--text, .text-link { min-height: var(--tap-min); padding: 0 var(--space-2); color: var(--action-text); text-decoration: underline; text-underline-offset: 3px; border: 0; background: none; font: 600 16px/22px var(--font-body); cursor: pointer; }
.g-btn--small { min-height: 40px; padding: 0 var(--space-4); font-size: 15px; }
.g-btn--block { width: 100%; }
.g-btn--inline { align-self: flex-start; padding: 0; }
.g-btn:disabled, .button:disabled { opacity: .6; cursor: progress; }
.g-back { margin-bottom: var(--space-2); padding-left: 0; }

/* Dashboard */
.g-dashboard { display: flex; flex-direction: column; gap: var(--space-4); }
.g-dashboard > h2 { margin: 0; font: 800 24px/30px var(--font-display); }
.g-dashboard > p { margin: 0; }
.g-needs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-md); }
.g-needs li { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line); }
.g-needs li:first-child { border-top: 0; }
.g-needs b { display: block; }
.g-needs span { color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.g-needs__n { flex: none; width: 28px; height: 28px; border-radius: var(--radius-pill); background: var(--action-tint); color: var(--action-text); font: 700 14px/28px var(--font-body); text-align: center; }
.business-status-card { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); background: var(--surface-raised); }
.business-status-card h3 { margin: 0; font: 700 18px/24px var(--font-display); }
.business-status-card p { margin: 0; }
.business-status-card details { width: 100%; }
.business-status-card summary, .g-disclosure summary, .business-search summary { min-height: var(--tap-min); display: flex; align-items: center; gap: var(--space-2); cursor: pointer; font-weight: 600; color: var(--action-text); }
.business-details { margin: 0; display: flex; flex-direction: column; }
.business-details > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1) var(--space-3); padding: var(--space-2) 0; border-top: 1px solid var(--line); }
.business-details dt { color: var(--ink-muted); font-size: 14px; }
.business-details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; text-align: right; }
.summary-photo { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); display: inline-block; margin: var(--space-2) var(--space-2) 0 0; }
.business-search { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface-sunken); }
.business-search h3 { margin: 0; font: 700 18px/24px var(--font-display); }
.business-search p { margin: 0; }
.business-search input, .business-search select, .business-search textarea, .business-status-card input, .business-status-card textarea { width: 100%; min-height: var(--control-height); padding: var(--space-3) var(--space-4); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: 16px; }

/* Badges and notices */
.g-badge, .business-status-badge { display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px var(--space-3); border-radius: var(--radius-pill); font: 600 14px/22px var(--font-body); background: var(--surface-sunken); color: var(--ink-muted); }
.g-badge--verified { background: var(--action-tint); color: var(--action-text); }
.g-badge--pending { background: var(--notice-tint); color: var(--notice); }
.g-badge--refused { background: var(--danger-tint); color: var(--danger); }
.g-notice { display: flex; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-md); }
.g-notice strong { display: block; }
.g-notice--info { background: var(--surface-sunken); }
.g-notice--success { background: var(--action-tint); color: var(--action-text); }
.g-notice--pending { background: var(--notice-tint); color: var(--notice); }

/* Wizard */
.g-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
.g-wizard { display: flex; flex-direction: column; gap: var(--space-6); }
.g-wizard__top { position: sticky; top: calc(65px + env(safe-area-inset-top, 0px)); z-index: 15; display: flex; flex-direction: column; gap: var(--space-2); margin: calc(-1 * var(--space-6)) calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter-l)); padding: var(--space-4) var(--gutter-r) var(--space-3) var(--gutter-l); background: var(--surface); border-bottom: 1px solid var(--line); }
.g-wizard__top .g-back { align-self: flex-start; min-height: 36px; }
/* Stepper: the five steps always visible, done steps tappable. */
.g-stepper ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-stepper li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.g-stepper li::before { content: ""; position: absolute; top: 17px; right: 50%; width: 100%; height: 4px; background: var(--line); }
.g-stepper li:first-child::before { display: none; }
.g-stepper li[data-state="done"]::before, .g-stepper li[data-state="current"]::before { background: var(--action); }
.g-stepper__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: var(--radius-pill); border: 2px solid var(--line-strong); background: var(--surface); color: var(--ink-muted); font: 700 16px/1 var(--font-body); cursor: default; }
.g-stepper li[data-state="current"] .g-stepper__dot { background: var(--action); border-color: var(--action); color: var(--on-action); box-shadow: 0 0 0 5px var(--action-tint); }
.g-stepper li[data-state="done"] .g-stepper__dot { background: var(--action); border-color: var(--action); color: transparent; cursor: pointer; }
.g-stepper li[data-state="done"] .g-stepper__dot::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--on-action); font-size: 18px; }
.g-stepper__name { font: 600 13px/16px var(--font-body); color: var(--ink-muted); white-space: nowrap; }
.g-stepper li[data-state="current"] .g-stepper__name { color: var(--ink); font-weight: 700; }
.g-stepper li[data-state="done"] .g-stepper__name { color: var(--action-text); }
.g-draft:empty { display: none; }
.g-draft { text-align: center; font-size: 13px; line-height: 16px; color: var(--action-text); }
.g-counter { text-align: right; }

/* Signed-in state: a solid green pill, plus a toast right after signing in. */
.g-account { position: relative; }
.g-account__chip { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 var(--space-4) 0 6px; border: 0; border-radius: var(--radius-pill); background: var(--action); color: var(--on-action); font: 700 15px/1 var(--font-body); cursor: pointer; }
.g-account__chip::before { content: "✓"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-pill); background: var(--on-action); color: var(--action); font-size: 15px; }
.g-account__menu { position: absolute; right: 0; top: calc(100% + var(--space-2)); z-index: 40; width: min(280px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 12px 32px rgba(7,31,44,.16); }
.g-account__id { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.g-account__id::before { content: "Connecté avec"; display: block; font: 400 14px/20px var(--font-body); color: var(--ink-muted); }
.g-toast { position: fixed; left: 16px; right: 16px; margin: 0 auto; width: fit-content; top: calc(76px + env(safe-area-inset-top, 0px)); z-index: 130; display: flex; align-items: center; gap: var(--space-2); max-width: calc(100% - 32px); padding: var(--space-3) var(--space-6); border-radius: var(--radius-pill); background: var(--ink); color: var(--surface); font: 700 16px/22px var(--font-body); box-shadow: 0 12px 32px rgba(7,31,44,.25); }
.g-toast::before { content: "✓"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--radius-pill); background: var(--action); color: var(--on-action); font-size: 14px; }
.g-progress { display: flex; flex-direction: column; gap: var(--space-2); }
.g-progress__track { height: 6px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.g-progress__fill { height: 100%; width: 20%; border-radius: var(--radius-pill); background: var(--action); transition: width .2s ease; }
.g-draft { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.g-step { display: flex; flex-direction: column; gap: var(--space-6); }
.g-field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.g-field > label, .g-label, .g-fieldset legend { font: 600 16px/22px var(--font-body); }
.g-fieldset { border: 0; margin: 0; padding: 0; }
.g-fieldset legend { padding: 0; margin-bottom: var(--space-2); }
.g-input { width: 100%; min-height: var(--control-height); padding: var(--space-3) var(--space-4); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: 400 16px/24px var(--font-body); }
.g-input:focus { border-color: var(--ink); }
select.g-input { appearance: none; padding-right: 44px; 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='%23071f2c' 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; }
.g-textarea { min-height: 128px; resize: vertical; }
.g-field[data-invalid] .g-input, .g-field[data-invalid] .g-photo { border-color: var(--danger); }
.g-error { margin: 0; font: 600 14px/20px var(--font-body); color: var(--danger); }
.g-choice { display: flex; align-items: center; gap: var(--space-3); min-height: var(--control-height); padding: var(--space-3) var(--space-4); border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); cursor: pointer; margin-top: var(--space-2); }
.g-choice input { width: 20px; height: 20px; accent-color: var(--action); flex: none; margin: 0; }
.g-choice:has(input:checked) { border-color: var(--action); background: var(--action-tint); color: var(--action-text); font-weight: 600; }
.g-check { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) 0; cursor: pointer; }
.g-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--action); flex: none; }
.g-check[data-invalid] span { color: var(--danger); }
.g-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); padding-top: var(--space-2); }
.g-disclosure { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.g-disclosure[open] { padding-bottom: var(--space-4); }
.g-disclosure > .g-field + .g-field { margin-top: var(--space-4); }
.g-mapblock { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-6); border-top: 1px solid var(--line); }
#business-map { height: 300px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-sunken); }
.g-map-status { margin: 0; font-weight: 600; font-size: 14px; line-height: 20px; }
.g-helpbox { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface-sunken); }
.g-helpbox p { margin: 0; }
.g-stack-tight { display: flex; flex-direction: column; gap: var(--space-4); width: 100%; }
.g-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.g-file-visible { font-size: 14px; max-width: 100%; }
.g-photo { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; max-width: 100%; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--surface-sunken); overflow: hidden; cursor: pointer; }
.g-photo img { width: 100%; height: 100%; object-fit: cover; }
.g-photo__empty { font-weight: 600; color: var(--action-text); padding: var(--space-4); text-align: center; }
.g-photo:has(img:not([hidden])) { border-style: solid; }
.g-field:has(.g-file:focus-visible) .g-photo { outline: 3px solid var(--focus); outline-offset: 2px; }
.g-gallery { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.g-gallery img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius-sm); }
.g-gallery:empty { display: none; }
.g-logo-preview { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.g-card { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); overflow: hidden; }
.g-listing__cover { aspect-ratio: 16 / 9; width: 100%; height: auto; object-fit: cover; background: var(--surface-sunken); }
.g-listing__body { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4); }
.g-listing__meta { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.g-listing__contacts { display: flex; gap: var(--space-2); margin-top: var(--space-2); }
.g-listing__contacts span { flex: 1; text-align: center; padding: var(--space-2); border-radius: var(--radius-sm); background: var(--surface-sunken); font-weight: 600; font-size: 14px; }
.g-review { display: flex; flex-direction: column; gap: var(--space-4); }
.g-review section { display: flex; flex-direction: column; gap: var(--space-2); }
.g-review header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.g-review dl { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-md); }
.g-review dl > div { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line); }
.g-review dl > div:first-child { border-top: 0; }
.g-review dt { color: var(--ink-muted); font-size: 14px; flex: none; }
.g-review dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.g-review dd[data-missing] { color: var(--danger); }
.g-feedback { margin: 0; font-weight: 600; }
.g-feedback:empty { display: none; }
.g-feedback[data-kind="error"] { color: var(--danger); }
.g-actionbar { position: sticky; bottom: 0; z-index: 10; display: flex; gap: var(--space-3); margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter-l)); padding: var(--space-3) var(--gutter-r) calc(var(--space-3) + env(safe-area-inset-bottom, 0px)) var(--gutter-l); background: var(--surface); box-shadow: var(--shadow-sheet); }
.g-actionbar .g-btn--primary { flex: 1; }
@media (min-width: 600px) { .g-actionbar { margin: 0; border-radius: var(--radius-md) var(--radius-md) 0 0; } }

/* Home page (index.html): business-first, short, mobile-first. */
.g-header__bar--wide { max-width: 1120px; }
.g-wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.g-band { padding-block: var(--space-8); }
.g-band--sunken { background: var(--surface-sunken); }
.g-band--ink { background: var(--ink); color: var(--surface); }
.g-band--ink .g-heading { color: var(--surface); }
.g-band .g-heading + * { margin-top: var(--space-4); }
.g-display--xl { font-size: 36px; line-height: 40px; }
.g-hero { display: grid; gap: var(--space-8); align-items: center; }
.g-hero__copy { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.g-hero__actions { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-2); margin-top: var(--space-2); }
.g-cta { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.g-btn--block-sm { width: 100%; }
.g-home .g-footer { justify-content: center; }
@media (min-width: 768px) {
  .g-band { padding-block: var(--space-12); }
  .g-display--xl { font-size: 52px; line-height: 56px; }
  .g-hero { grid-template-columns: 1.1fr 0.9fr; }
  .g-hero__actions { flex-direction: row; align-items: center; }
  .g-cta { flex-direction: row; justify-content: space-between; align-items: center; }
  .g-btn--block-sm { width: auto; }
}

/* Site tabs: the public app page and the business space. */
.g-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-1); padding: 4px; border-radius: var(--radius-pill); background: var(--surface-sunken); }
.g-tabs__tab { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 var(--space-4); border-radius: var(--radius-pill); color: var(--ink-muted); font: 700 15px/1 var(--font-body); text-decoration: none; white-space: nowrap; }
.g-tabs__tab[aria-current="page"] { background: var(--ink); color: var(--surface); }
.g-tabs__tab:not([aria-current]):hover { color: var(--ink); }
.g-header__bar--tabs { flex-wrap: wrap; row-gap: 0; }
.g-header__tabsrow { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter-r) var(--space-3) var(--gutter-l); }
@media (max-width: 380px) { .g-tabs__tab { padding: 0 var(--space-3); font-size: 14px; } }

/* Home (consumer app) */
.g-soon { display: inline-flex; align-items: center; gap: var(--space-2); align-self: flex-start; margin: var(--space-2) 0 0; padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); background: var(--notice-tint); color: var(--notice); font-weight: 700; }
.g-soon__dot { width: 10px; height: 10px; border-radius: var(--radius-pill); background: var(--flag-gold); box-shadow: 0 0 0 3px rgba(242,189,0,.25); }
.g-phone { margin: 0 auto; width: min(300px, 82%); padding: 10px; border-radius: 34px; background: var(--ink); box-shadow: 0 24px 48px rgba(7,31,44,.18); }
.g-phone img { width: 100%; height: auto; border-radius: 26px; }
.g-features { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.g-features li { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); }
.g-features svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: var(--radius-pill); background: var(--action-tint); fill: none; stroke: var(--action-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-features p { margin: 2px 0 0; color: var(--ink-muted); }
.g-gmap { display: flex; flex-direction: column; gap: var(--space-4); }
.g-gmap__intro { display: flex; flex-direction: column; gap: var(--space-2); }
.g-gmap__stage { display: grid; gap: var(--space-4); align-items: center; }
.g-gmap__svg { display: block; width: 100%; height: auto; }
.g-gmap__pref { fill: var(--action-tint); stroke: var(--surface); stroke-width: 2.5; stroke-linejoin: round; cursor: pointer; transition: fill .15s ease; }
.g-gmap__pref:hover { fill: #bfe5d3; }
.g-gmap__pref.is-active { fill: var(--action); }
.g-gmap__pref:focus-visible { outline: none; stroke: var(--focus); stroke-width: 5; }
.g-gmap__pin { cursor: pointer; }
.g-gmap__pin circle { fill: var(--flag-red); stroke: var(--surface); stroke-width: 3; }
.g-gmap__pin .g-gmap__pulse { fill: rgba(206,17,38,.18); stroke: none; }
@media (prefers-reduced-motion: no-preference) { .g-gmap__pulse { transform-box: fill-box; transform-origin: center; animation: g-pulse 2s ease-out infinite; } }
@keyframes g-pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.g-gmap__panel { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface-sunken); }
.g-gmap__name { margin: 0; font: 800 28px/34px var(--font-display); }
.g-gmap__stat { margin: 0 0 var(--space-3); font-size: 18px; color: var(--ink-muted); }
.g-gmap__stat b { color: var(--action-text); font: 800 24px/1 var(--font-display); }
.g-credit { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.g-ink-lead { margin: var(--space-2) 0 0; color: #c9d3d6; font-size: 18px; }
.g-btn--light { background: var(--surface); color: var(--ink); }
.g-btn--light:hover { background: var(--action-tint); }
@media (min-width: 768px) {
  .g-features { grid-template-columns: repeat(3, 1fr); }
  .g-gmap__stage { grid-template-columns: 1.6fr 1fr; }
  .g-phone { width: 300px; }
}

/* Option picker (select-sheet.js): a readable bottom sheet instead of the browser dropdown. */
.g-picker__native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.g-picker { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); text-align: left; cursor: pointer; padding-right: 44px; 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='%23071f2c' 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; }
.g-picker__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.g-picker--empty .g-picker__text { font-weight: 400; color: var(--ink-muted); }
.g-picker:disabled { opacity: .6; cursor: not-allowed; }
body.g-sheet-open { overflow: hidden; }
.g-sheet-backdrop { position: fixed; inset: 0; z-index: 110; display: flex; align-items: flex-end; justify-content: center; background: rgba(7,31,44,.55); }
.g-sheet { display: flex; flex-direction: column; gap: var(--space-3); width: min(520px, 100%); max-height: 82vh; background: var(--surface); border-radius: 16px 16px 0 0; padding-top: var(--space-4); padding-bottom: env(safe-area-inset-bottom, 0px); }
.g-sheet:has(.g-sheet__search:not([hidden])) { height: 82vh; }
.g-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.g-sheet__title { margin: 0; font: 800 22px/28px var(--font-display); }
.g-sheet__close { flex: none; width: var(--tap-min); height: var(--tap-min); border: 0; border-radius: var(--radius-pill); background: var(--surface-sunken); font-size: 26px; line-height: 1; cursor: pointer; }
.g-sheet__search { width: auto; margin-left: var(--gutter-l); margin-right: var(--gutter-r); }
.g-sheet__list { list-style: none; margin: 0; padding: 0 0 var(--space-4); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); }
.g-sheet__option { position: relative; display: flex; align-items: center; width: 100%; min-height: 58px; padding: var(--space-3) 56px var(--space-3) var(--gutter-l); border: 0; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 400 18px/24px var(--font-body); text-align: left; cursor: pointer; }
.g-sheet__option:hover { background: var(--surface-sunken); }
.g-sheet__option[aria-selected="true"] { background: var(--action-tint); color: var(--action-text); font-weight: 700; }
.g-sheet__option[aria-selected="true"]::after { content: "✓"; position: absolute; right: var(--gutter-r); display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-pill); background: var(--action); color: var(--on-action); font-size: 15px; }
.g-sheet__option:focus-visible { outline-offset: -3px; }
.g-sheet__empty { padding: var(--space-6) var(--gutter-l); color: var(--ink-muted); }
@media (min-width: 600px) { .g-sheet-backdrop { align-items: center; } .g-sheet { border-radius: var(--radius-md); max-height: 70vh; } }

/* Sign-in sheet (markup from auth-ui.js) */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: rgba(7,31,44,.55); }
.auth-modal { position: relative; width: min(480px, 100%); max-height: 92vh; overflow-y: auto; background: var(--surface); border-radius: var(--radius-md) var(--radius-md) 0 0; padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: var(--space-6) calc(var(--space-6) + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: var(--space-4); }
@media (min-width: 600px) { .modal-backdrop { align-items: center; } .auth-modal { border-radius: var(--radius-md); padding: var(--space-8); } }
.auth-modal h2 { margin: 0; padding-right: var(--space-12); font: 800 24px/30px var(--font-display); }
.auth-modal p { margin: 0; }
.auth-modal .eyebrow { font: 700 13px/16px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.auth-modal form, .auth-methods { display: flex; flex-direction: column; gap: var(--space-3); }
.auth-modal label { font-weight: 600; }
.auth-modal input { width: 100%; min-height: var(--control-height); padding: var(--space-3) var(--space-4); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 18px; letter-spacing: .02em; }
.auth-modal [data-explanation] { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.auth-modal [data-feedback] { font-weight: 600; }
.auth-modal [data-feedback]:empty { display: none; }
.drawer-close { position: absolute; top: var(--space-4); right: var(--space-4); width: var(--tap-min); height: var(--tap-min); border: 0; border-radius: var(--radius-pill); background: var(--surface-sunken); font-size: 24px; line-height: 1; cursor: pointer; }
.auth-mode { min-height: var(--tap-min); border: 0; background: none; color: var(--action-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; align-self: flex-start; padding: 0; }
.auth-legal { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.auth-legal a { color: var(--ink-muted); }
#login-recaptcha:empty { display: none; }
.auth-help { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.auth-password { position: relative; }
.auth-password input { padding-right: 96px; }
.auth-password .auth-mode { position: absolute; right: var(--space-3); top: 50%; transform: translateY(-50%); }
.auth-switch { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); color: var(--ink-muted); }
.auth-modal form .auth-mode { align-self: flex-start; }
.g-demo { margin-bottom: var(--space-6); }

/* Tabs row: full width on phones, compact on larger screens; hidden while filling the registration form. */
.g-tabs { max-width: 420px; }
body[data-mode="form"] .g-header__tabsrow { display: none; }
body:not([data-mode="form"]) .g-toast { top: calc(136px + env(safe-area-inset-top, 0px)); }

/* Home hero: store buttons (toast until published) and the live map. */
.g-stores { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.g-store { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 56px; padding: 0 var(--space-6) 0 var(--space-4); border: 0; border-radius: var(--radius-md); background: var(--ink); color: var(--surface); cursor: pointer; text-align: left; font: 700 18px/20px var(--font-body); }
.g-store small { display: block; font: 400 12px/14px var(--font-body); color: #c9d3d6; }
.g-store:hover { background: #12364a; }
.g-store:active { transform: scale(.98); }
.g-home .g-toast::before { display: none; }
.g-live { position: relative; display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.g-live__map svg { display: block; width: 100%; height: auto; overflow: visible; }
.g-live .g-gmap__pref { fill: var(--action-tint); stroke: var(--surface); stroke-width: 2.5; stroke-linejoin: round; cursor: pointer; transition: fill .5s ease; }
.g-live .g-gmap__pref:hover { fill: #c9ead9; }
.g-live .g-gmap__pref.is-lit { fill: #a9dcc4; }
.g-live .g-gmap__pref.is-picked { fill: var(--action); }
.g-live .g-gmap__pref:focus-visible { outline: none; stroke: var(--focus); stroke-width: 5; }
.g-pin { pointer-events: none; transform-box: fill-box; transform-origin: 50% 100%; animation: g-drop .55s cubic-bezier(.2,1.5,.4,1) both; transition: opacity .45s ease; }
.g-pin.is-leaving { opacity: 0; }
.g-pin__ring { fill: none; stroke-width: 4; transform-box: fill-box; transform-origin: center; animation: g-ring 1.6s ease-out .35s both; }
.g-pin__shadow { fill: rgba(7,31,44,.18); }
@keyframes g-drop { from { transform: translateY(-60px) scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes g-ring { from { transform: scale(.5); opacity: .9; } to { transform: scale(3); opacity: 0; } }
.g-live__card { align-self: center; display: flex; min-height: 52px; align-items: center; gap: var(--space-3); padding: 8px var(--space-4) 8px 8px; border-radius: var(--radius-pill); background: var(--ink); color: var(--surface); white-space: nowrap; box-shadow: 0 12px 28px rgba(7,31,44,.25); transition: opacity .3s ease, transform .3s ease; }
.g-live__card.is-out { opacity: 0; transform: translateY(6px); }
.g-live__card b { display: block; font: 700 15px/20px var(--font-body); }
.g-live__card small { display: block; font-size: 13px; line-height: 16px; color: #c9d3d6; }
.g-live__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-pill); color: #fff; }
.g-live__hint { margin: 0; text-align: center; font-weight: 600; color: var(--ink-muted); font-size: 14px; }
.g-live .g-credit { text-align: center; }
@media (prefers-reduced-motion: reduce) { .g-pin, .g-pin__ring { animation: none; } }

@media (min-width: 768px) { .g-band--hero .g-hero { grid-template-columns: 1fr 1.15fr; } }

/* Home hero v2: verified badge, scrolling activity icons, store buttons on one line. */
.g-verified { display: inline-flex; align-items: center; gap: var(--space-2); align-self: flex-start; margin: 0; padding: var(--space-2) var(--space-4) var(--space-2) var(--space-3); border-radius: var(--radius-pill); background: var(--action); color: var(--on-action); font: 700 17px/22px var(--font-body); box-shadow: 0 6px 16px rgba(7,134,94,.25); }
.g-verified svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.g-marquee { overflow: hidden; margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.g-marquee__track { display: flex; gap: var(--space-4); width: max-content; padding: var(--space-2) var(--gutter-r) var(--space-2) var(--gutter-l); animation: g-marquee 22s linear infinite; }
.g-marquee:hover .g-marquee__track { animation-play-state: paused; }
.g-marquee__item { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 72px; font: 600 13px/16px var(--font-body); color: var(--ink-muted); text-align: center; }
.g-marquee__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; box-shadow: 0 6px 14px rgba(7,31,44,.14); }
@keyframes g-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .g-marquee__track { animation: none; flex-wrap: wrap; width: auto; } .g-marquee__item[aria-hidden] { display: none; } }
.g-stores { flex-wrap: nowrap; }
.g-store { flex: 1 1 0; min-width: 0; justify-content: center; gap: var(--space-2); min-height: 52px; padding: 0 var(--space-3); font-size: 16px; white-space: nowrap; }
.g-store__logo { flex: none; display: grid; place-items: center; width: 26px; height: 26px; color: #fff; }
.g-store__logo svg { width: 26px; height: 26px; }
@media (min-width: 768px) { .g-store { flex: 0 0 auto; padding: 0 var(--space-6); } .g-marquee { margin-inline: 0; } .g-marquee__track { padding-inline: 0; } }
.g-band--hero { padding-top: var(--space-6); }
.g-band--hero .g-hero { gap: var(--space-6); }
.g-band--hero .g-hero__copy { gap: var(--space-4); }
.g-live .g-credit { font-size: 10px; line-height: 14px; color: #8a989e; }

/* Phone field with a country picker (Guinée / États-Unis) in front. */
.g-phonefield { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2); }
.g-phonefield .g-picker { width: auto; min-width: 0; padding-left: var(--space-3); padding-right: 36px; background-position: right 10px center; }
.g-phonefield .g-picker__text { font-weight: 700; }
.auth-modal .g-phonefield .g-picker { min-height: var(--control-height); font-size: 16px; }

/* Live map: stronger fill and clear green outlines so the country reads at a glance, even outdoors. */
.g-live__map svg { filter: drop-shadow(0 10px 18px rgba(7,31,44,.16)); }
.g-live .g-gmap__pref { fill: #bfe3d0; stroke: #2f8f69; stroke-width: 1.6; }
.g-live .g-gmap__pref:hover { fill: #a3d8bf; }
.g-live .g-gmap__pref.is-lit { fill: #7fc9a6; }
.g-live .g-gmap__pref.is-picked { fill: var(--action); stroke: #05613f; }

/* ---------- Plans: Gratuit / Pro ---------- */
.g-btn--pro { background: var(--ink); color: #fff; }
.g-btn--pro::before { content: "★"; color: var(--flag-gold); margin-right: 6px; }
.g-btn--pro:hover { background: #0d3346; }
.g-badge--pro { background: var(--ink); color: var(--flag-gold); font-weight: 700; }
.g-badge--soon { background: var(--surface-sunken); color: var(--ink-muted); font-size: 13px; }
.g-plans-intro { display: flex; flex-direction: column; gap: var(--space-1); margin-top: var(--space-6); }
.g-plans-intro h2 { margin: 0; font: 800 24px/30px var(--font-display); }
.g-plans-intro p { margin: 0; color: var(--ink-muted); }
.g-plans { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.g-plans__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.g-plans__table th, .g-plans__table td { padding: var(--space-3) var(--space-2); border-top: 1px solid var(--line); font-size: 16px; line-height: 22px; text-align: center; }
.g-plans__table tbody th { text-align: left; font-weight: 600; padding-left: var(--space-4); }
.g-plans__table thead th { border-top: 0; vertical-align: bottom; }
.g-plans__corner { width: 44%; }
.g-plans__col { padding-block: var(--space-4) var(--space-3) !important; }
.g-plans__name { display: block; font: 800 16px/20px var(--font-display); }
.g-plans__price { display: block; font: 800 20px/26px var(--font-display); margin-top: 2px; white-space: nowrap; }
.g-plans__unit { display: block; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.g-plans__col--pro { background: var(--ink); color: #fff; }
.g-plans__col--pro .g-plans__name::before { content: "★ "; color: var(--flag-gold); }
.g-plans__col--pro .g-plans__unit { color: #bfd0d6; }
.g-plans__pro { background: #f1f6f4; }
.g-plans__yes { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: var(--radius-pill); background: var(--action-tint); color: var(--action-text); font-weight: 800; font-size: 15px; }
.g-plans__pro .g-plans__yes { background: var(--action); color: #fff; }
.g-plans__no { color: #a9b4b8; font-weight: 700; }
@media (max-width: 380px) { .g-plans__table th, .g-plans__table td { font-size: 15px; } .g-plans__price { font-size: 17px; } .g-plans__corner { width: 40%; } }

.g-plancard { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-sunken); }
.g-plancard--pro { background: var(--ink); color: #fff; border-color: var(--ink); }
.g-plancard--pro .g-badge--pro { background: var(--flag-gold); color: var(--ink); }
.g-plancard__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.g-plancard__label { font: 700 13px/16px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.g-plancard--pro .g-plancard__label { color: #bfd0d6; }
.g-plancard__line { margin: 0; font-weight: 600; }
.g-plancard__more summary { min-height: var(--tap-min); display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--action-text); }
.g-plancard__more .g-plans { margin-top: var(--space-2); }

.g-upsell { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); background: var(--notice-tint); color: var(--ink); }
.g-upsell[hidden] { display: none; }

.g-pay__sheet { max-height: 92vh; overflow-y: auto; padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px)); }
.g-pay__body { display: flex; flex-direction: column; gap: var(--space-4); padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.g-pay__summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); padding: var(--space-4); border-radius: var(--radius-md); background: var(--ink); color: #fff; }
.g-pay__amount { font: 800 28px/34px var(--font-display); }
.g-pay__per { color: #bfd0d6; }
.g-pay__perks { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: var(--space-2) 0 0; padding: 0; }
.g-pay__perks li { padding: 2px var(--space-3); border-radius: var(--radius-pill); background: rgba(255,255,255,.12); font-size: 14px; line-height: 22px; }
.g-pay__perks li::before { content: "✓ "; color: var(--flag-gold); font-weight: 700; }
.g-pay__label { margin: 0; font-weight: 700; }
.g-pay__methods { display: flex; flex-direction: column; gap: var(--space-2); }
.g-pay__method, .g-pay__chosen { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 64px; padding: var(--space-2) var(--space-4); border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: 700 18px/24px var(--font-body); text-align: left; cursor: pointer; }
.g-pay__method:hover { border-color: var(--ink); }
.g-pay__method[aria-disabled="true"] { cursor: default; border-style: dashed; color: var(--ink-muted); }
.g-pay__chosen { cursor: default; border-color: var(--ink); }
.g-pay__mname { flex: 1; }
.g-pay__mark { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; font: 800 16px/1 var(--font-display); }
.g-pay__method--orange .g-pay__mark { background: #ff7900; color: #fff; }
.g-pay__method--momo .g-pay__mark { background: #ffcb05; color: #00283c; font-size: 12px; }
.g-pay__method--card .g-pay__mark { background: var(--surface-sunken); color: var(--ink-muted); }
.g-pay__amount-sm { font-size: 15px; color: var(--ink-muted); }
.g-pay__error { margin: 0; color: var(--danger); font-weight: 600; }
.g-pay__error:empty { display: none; }
.g-pay__wait, .g-pay__done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-2); padding: var(--space-6) 0 var(--space-2); }
.g-pay__wait h3, .g-pay__done h3 { margin: var(--space-2) 0 0; font: 800 22px/28px var(--font-display); }
.g-pay__wait p, .g-pay__done p { margin: 0; }
.g-pay__spinner { width: 48px; height: 48px; border-radius: 50%; border: 5px solid var(--action-tint); border-top-color: var(--action); animation: g-spin .9s linear infinite; }
@keyframes g-spin { to { transform: rotate(360deg); } }
.g-pay__check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--action); color: #fff; font-size: 32px; font-weight: 800; }
.g-pay__done .g-btn { margin-top: var(--space-4); }
@media (prefers-reduced-motion: reduce) { .g-pay__spinner { animation-duration: 3s; } }

/* ---------- Plan tabs: first step of /business ---------- */
.g-subhead { margin: var(--space-2) 0 0; font: 800 20px/26px var(--font-display); }
.g-planpick { display: flex; flex-direction: column; gap: var(--space-3); }
.g-planpick__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); align-items: stretch; }
.g-planpick__tab { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; border: 2.5px solid var(--line-strong); border-radius: 16px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; overflow: hidden; transition: transform .12s ease, box-shadow .12s ease; }
.g-planpick__tab:hover { border-color: var(--ink); }
.g-planpick__head { display: flex; flex-direction: column; gap: 2px; padding: var(--space-4) var(--space-3) var(--space-3); background: var(--surface-sunken); border-bottom: 1px solid var(--line); }
.g-planpick__name { font: 800 24px/30px var(--font-display); }
.g-planpick__tab--pro .g-planpick__name::before { content: "★ "; color: var(--flag-gold); }
.g-planpick__price { font: 700 15px/20px var(--font-body); color: var(--ink-muted); }
.g-planpick__tick { position: absolute; top: 12px; right: 10px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); font-size: 15px; font-weight: 800; }
.g-planpick__features { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3); }
.g-planpick__feature { display: flex; align-items: flex-start; gap: var(--space-2); font: 600 15px/20px var(--font-body); }
.g-planpick__mark { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--action); color: #fff; font-size: 11px; font-weight: 800; }
.g-planpick__feature.is-off { color: #9aa6ab; font-weight: 500; }
.g-planpick__feature.is-off .g-planpick__mark { background: transparent; color: #b5bec2; font-size: 14px; }
.g-planpick__tab--pro .g-planpick__head { background: var(--ink); color: #fff; border-bottom-color: var(--ink); }
.g-planpick__tab--pro .g-planpick__price { color: #bfd0d6; }
.g-planpick__tab--pro .g-planpick__mark { background: var(--flag-gold); color: var(--ink); }
.g-planpick__tab--pro .g-planpick__tick { border-color: #5d7480; background: transparent; }
.g-planpick__tab[aria-selected="true"] { box-shadow: 0 8px 24px rgba(7,31,44,.16); }
.g-planpick__tab--free[aria-selected="true"] { border-color: var(--action); background: var(--action-tint); }
.g-planpick__tab--free[aria-selected="true"] .g-planpick__head { background: var(--action); color: #fff; border-bottom-color: var(--action); }
.g-planpick__tab--free[aria-selected="true"] .g-planpick__price { color: #d7f0e4; }
.g-planpick__tab--free[aria-selected="true"] .g-planpick__tick { border-color: #fff; background: #fff; color: var(--action); }
.g-planpick__tab--pro[aria-selected="true"] { border-color: var(--ink); background: #f6f3e6; }
.g-planpick__tab--pro[aria-selected="true"] .g-planpick__tick { border-color: var(--flag-gold); background: var(--flag-gold); color: var(--ink); }
.g-planpick__tabs:has([aria-selected="true"]) .g-planpick__tab[aria-selected="false"] { opacity: .72; }
@media (max-width: 360px) { .g-planpick__name { font-size: 21px; } .g-planpick__feature { font-size: 14px; } .g-planpick__features { padding: var(--space-3) var(--space-2); } }
.g-planpick__prompt { margin: 0; color: var(--ink-muted); text-align: center; font-weight: 600; }
.g-planpick__panel { display: flex; flex-direction: column; gap: var(--space-3); }
.g-planpick__panel:empty { display: none; }
.g-planpick__status { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font: 800 18px/24px var(--font-display); background: var(--action-tint); color: var(--action-text); text-align: center; }
.g-planpick__panel--pro .g-planpick__status { background: var(--ink); color: var(--flag-gold); }
.g-planpick__status--due { background: var(--notice-tint) !important; color: var(--notice) !important; }
.g-planpick__panel--pro .g-btn--pro, .g-planpick__panel--pro .g-btn--primary { background: var(--ink); color: #fff; }

/* Plan pill in the registration form */
.g-wizard__meta { display: flex; align-items: center; justify-content: center; gap: var(--space-3); }
.g-planpill { display: inline-flex; align-items: center; padding: 3px var(--space-3); border-radius: var(--radius-pill); background: var(--action-tint); color: var(--action-text); font: 800 15px/22px var(--font-body); }
.g-planpill[hidden] { display: none; }
.g-planpill--pro { background: var(--ink); color: var(--flag-gold); }

.g-upsell--block { flex-direction: column; align-items: stretch; padding: var(--space-4); gap: var(--space-3); }
.g-upsell--block p { margin: 0; font-weight: 700; }

/* Plan bar (signed in) and static plan cards in the upgrade sheet */
.g-planbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); border-radius: var(--radius-md); border: 1.5px solid var(--line); background: var(--surface-sunken); }
.g-planbar__text { display: flex; align-items: baseline; gap: var(--space-2); }
.g-planbar__label { font: 700 13px/16px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.g-planbar__plan { font: 800 20px/26px var(--font-display); }
.g-planbar--pro { background: var(--ink); border-color: var(--ink); color: #fff; }
.g-planbar--pro .g-planbar__label { color: #bfd0d6; }
.g-planbar--pro .g-planbar__plan { color: var(--flag-gold); }
.g-planbar__note { font-size: 13px; line-height: 18px; color: #bfd0d6; text-align: right; }
.g-planbar .g-btn--small { min-height: 44px; padding-inline: var(--space-4); white-space: nowrap; }
.g-planpick__tab.is-static { cursor: default; box-shadow: none; }
.g-planpick__tab.is-static:hover { border-color: inherit; }
.g-planpick__tab--free.is-static { opacity: 1 !important; border-color: var(--line-strong); background: var(--surface); }
.g-planpick__tab--pro.is-static { border-color: var(--ink); background: #f6f3e6; }
.g-planpick__current { align-self: flex-start; margin-top: var(--space-1); padding: 0 var(--space-2); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); font: 700 12px/20px var(--font-body); }
.g-compare-link { align-self: center; }
.g-center { text-align: center; }
.g-planslot:empty { display: none; }
body[data-mode="form"] .g-planslot { display: none; }
.g-planslot { margin-bottom: var(--space-6); }
.g-planbar__text { flex: none; } .g-planbar__plan { white-space: nowrap; }

/* Pro end date, renewal, paused businesses */
.g-btn--gold { background: var(--flag-gold); color: var(--ink); }
.g-btn--gold:hover { background: #ffd23f; }
.g-planbar--ending { background: var(--ink); border: 2px solid var(--flag-gold); }
.g-planbar--ending .g-planbar__note { color: var(--flag-gold); font-weight: 700; }
.g-planbar { flex-wrap: wrap; }
.g-pay__extend { flex-basis: 100%; color: var(--flag-gold); font-weight: 700; }
.g-lapsed { flex-wrap: wrap; align-items: center; justify-content: space-between; }
.g-badges { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.g-badge--paused { background: #e8ecee; color: var(--ink); font-weight: 700; }
.business-status-card.is-paused { background: var(--surface-sunken); border-style: dashed; }
.business-status-card.is-paused h3 { color: var(--ink-muted); }
.g-demo { flex-wrap: wrap; }
.g-demo__plan { display: flex; flex-wrap: wrap; gap: var(--space-2); flex-basis: 100%; }
.g-demo__btn { min-height: 36px; padding: 0 var(--space-3); border: 1.5px solid currentColor; border-radius: var(--radius-pill); background: transparent; color: inherit; font: 700 13px/1 var(--font-body); cursor: pointer; }

/* ---------- Photo step: main photo + round logo + photo tiles ---------- */
.g-mediafield { gap: var(--space-3); }
.g-media { position: relative; padding-bottom: 44px; }
.g-media .g-photo { width: 100%; aspect-ratio: 16 / 10; }
.g-photo__empty { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); font-size: 17px; }
.g-photo__plus { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--action); color: #fff; font: 400 32px/1 var(--font-body); }
.g-x { position: absolute; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(7,31,44,.78); color: #fff; font: 400 22px/1 var(--font-body); cursor: pointer; }
.g-x[hidden] { display: none; }
.g-media__remove { top: 8px; right: 8px; }
.g-logoslot { position: absolute; left: var(--space-4); bottom: 0; display: flex; align-items: flex-end; gap: var(--space-2); }
.g-logoslot__circle { position: relative; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; border: 4px solid var(--surface); background: var(--surface-sunken); box-shadow: 0 0 0 1.5px var(--line-strong); overflow: hidden; cursor: pointer; }
.g-logoslot__circle img { width: 100%; height: 100%; object-fit: cover; }
.g-logoslot__empty { font: 400 30px/1 var(--font-body); color: var(--action-text); }
.g-logoslot__label { padding-bottom: 6px; font-weight: 700; color: var(--ink-muted); font-size: 15px; }
.g-logoslot__remove { left: 62px; top: -4px; width: 28px; height: 28px; font-size: 18px; }
.g-mediafield:has(#businessLogo:focus-visible) .g-logoslot__circle { outline: 3px solid var(--focus); outline-offset: 2px; }
.g-slots__head { display: flex; align-items: baseline; justify-content: space-between; margin-top: var(--space-2); }
.g-slots__count { font-weight: 700; color: var(--ink-muted); font-size: 15px; }
.g-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.g-slot { position: relative; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; }
.g-slot img { width: 100%; height: 100%; object-fit: cover; }
.g-slot .g-x { top: 6px; right: 6px; width: 28px; height: 28px; font-size: 18px; }
.g-slot.is-over { opacity: .45; }
.g-slot__add { width: 100%; height: 100%; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--surface-sunken); color: var(--action-text); font: 400 34px/1 var(--font-body); cursor: pointer; }
.g-slot__add:hover { border-color: var(--action); background: var(--action-tint); }
@media (min-width: 480px) { .g-slots { grid-template-columns: repeat(4, 1fr); } }

/* ---------- "Aperçu dans l'application": phone frame with the app's business page ---------- */
.g-applook { width: 100%; }
.g-applook > summary { min-height: var(--tap-min); display: flex; align-items: center; cursor: pointer; font-weight: 700; color: var(--action-text); }
.g-applook__note { margin: 0 0 var(--space-3) !important; font-size: 14px; color: var(--notice); font-weight: 600; }
.g-phone { position: relative; width: min(320px, 100%); margin: 0 auto; padding: 10px; border-radius: 40px; background: #0b1a22; box-shadow: 0 18px 40px rgba(7,31,44,.25); }
.g-phone__notch { position: absolute; top: 10px; left: 50%; z-index: 2; width: 96px; height: 22px; transform: translateX(-50%); border-radius: 0 0 14px 14px; background: #0b1a22; }
.g-phone__screen { height: 600px; overflow-y: auto; overscroll-behavior: contain; border-radius: 30px; background: #fff; color: #0b2430; font-family: var(--font-body); scrollbar-width: none; }
.g-phone__screen::-webkit-scrollbar { display: none; }
.g-app__bar { display: flex; align-items: center; justify-content: space-between; padding: 30px 14px 8px; font-size: 16px; }
.g-app__back { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.g-app__icons { display: inline-flex; gap: 14px; }
.g-app__gallery { position: relative; height: 190px; display: grid; place-items: center; background: #eef2f1; }
.g-app__gallery img { width: 100%; height: 100%; object-fit: cover; }
.g-app__nophoto { color: #69777d; font-size: 14px; }
.g-app__dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.g-app__dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.6); }
.g-app__dots span.is-on { background: #fff; width: 16px; border-radius: 4px; }
.g-app__body { padding: 0 16px; }
.g-app__id { display: flex; align-items: flex-end; gap: 12px; margin-top: -30px; }
.g-app__logo { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; background: #f3f6f3; overflow: hidden; color: #08794e; font: 800 30px/1 var(--font-display); position: relative; }
.g-app__logo img { width: 100%; height: 100%; object-fit: cover; }
.g-app__name { margin: 0 0 4px; font: 800 19px/24px var(--font-display); }
.g-app__cat { margin: 10px 0 0; font-size: 14px; color: #59616b; }
.g-app__actions { display: flex; justify-content: space-around; margin: 16px 0 6px; }
.g-app__action { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; }
.g-app__circle { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; }
.g-app__action--green .g-app__circle { background: rgba(7,151,92,.12); color: #07975c; }
.g-app__action--wa .g-app__circle { background: rgba(34,181,101,.12); color: #22b565; }
.g-app__action--blue .g-app__circle { background: rgba(33,100,173,.12); color: #2164ad; }
.g-app__tabs { display: flex; gap: 2px; margin-top: 10px; padding: 0 6px; border-bottom: 1px solid #e3e7e5; overflow-x: auto; scrollbar-width: none; }
.g-app__tabs button { flex: none; padding: 10px 10px 8px; border: 0; border-bottom: 3px solid transparent; background: none; color: #515965; font: 400 14px/18px var(--font-body); cursor: pointer; }
.g-app__tabs button.is-on { color: #ce1831; font-weight: 700; border-bottom-color: #ce1831; }
.g-app__panel { padding: 14px 16px 24px; }
.g-app__panel h5 { margin: 0 0 6px; font: 700 17px/22px var(--font-display); }
.g-app__text { margin: 0 0 14px; font-size: 14px; line-height: 1.45; white-space: pre-line; }
.g-app__empty { margin: 12px 0; color: #69777d; font-size: 14px; text-align: center; }
.g-app__place { display: flex; gap: 8px; align-items: flex-start; padding-top: 12px; border-top: 1px solid #e3e7e5; font-size: 14px; white-space: pre-line; }
.g-app__pin { color: #ce1831; flex: none; }
.g-app__map { display: grid; place-items: center; height: 120px; margin-top: 12px; border-radius: 12px; background: linear-gradient(135deg, #e7f6f0 0 50%, #eef2f1 50%); color: #ce1831; }
.g-app__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.g-app__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

/* "Déjà dans l'application ?": a <details> ignores flex gap, so space its children explicitly. */
.business-search > :not(summary) { margin-top: var(--space-3); }
.business-search > summary + p { margin-top: var(--space-1); color: var(--ink-muted); }
.business-search > .g-btn { width: 100%; margin-top: var(--space-4); }
.business-search > .g-picker__native + .g-picker, .business-search > .g-picker { margin-top: var(--space-3); }
.g-dashboard > .g-btn--text.g-btn--inline:last-child { margin-top: var(--space-2); }

/* ===================== Wide screens only (≥1080px) =====================
   Phones and tablets are untouched: the side column is hidden and the layout stays one column. */
.g-aside { display: none; }
@media (min-width: 1080px) {
  body.g-page:has(.g-shell) { background: var(--surface-sunken); }
  .g-shell { display: grid; grid-template-columns: minmax(0, 620px) 360px; justify-content: center; align-items: start; gap: 56px; max-width: 1120px; margin: 0 auto; padding: var(--space-8) var(--space-6) var(--space-12); }
  .g-shell > .g-main { max-width: none; margin: 0; padding: 40px 48px 48px; background: var(--surface); border-radius: 24px; box-shadow: 0 1px 2px rgba(7,31,44,.04), 0 12px 32px rgba(7,31,44,.06); }
  .g-shell > .g-main .g-wizard__top { margin-left: -48px; margin-right: -48px; padding-left: 48px; padding-right: 48px; border-radius: 24px 24px 0 0; margin-top: -40px; }
  .g-shell > .g-main .g-actionbar { margin-left: -48px; margin-right: -48px; margin-bottom: -48px; padding-left: 48px; padding-right: 48px; border-radius: 0 0 24px 24px; }
  .g-aside { display: block; position: sticky; top: 92px; }
  .g-aside__head { margin-bottom: var(--space-4); }
  .g-aside__title { margin: 0; font: 800 20px/26px var(--font-display); text-align: center; }
  .g-aside__live { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 4px; font: 700 12px/16px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--flag-red); }
  .g-aside__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--flag-red); animation: g-pulse 1.6s ease-in-out infinite; }
  .g-aside__note { margin: -8px 0 var(--space-4); text-align: center; font-size: 14px; font-weight: 600; color: var(--notice); }
  .g-aside .g-phone { width: 320px; }
  .g-aside .g-phone__screen { height: clamp(380px, calc(100vh - 400px), 560px); }
  .g-aside__trust { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
  .g-aside__trust li { display: flex; gap: var(--space-3); align-items: flex-start; }
  .g-aside__trust b { display: block; font: 700 15px/20px var(--font-body); }
  .g-aside__trust span span { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
  .g-aside__tick { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--action); color: #fff; font-weight: 800; font-size: 13px; }
  /* The first business is already shown in the side column. */
  .g-applook--primary { display: none; }
  /* One-row header: the Application / Entreprises tabs sit in the bar. */
  .g-header__tabsrow { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 380px; padding: 0; }
  body:not([data-mode="form"]) .g-toast { top: calc(84px + env(safe-area-inset-top, 0px)); }
  .g-footer { background: var(--surface); }
}
@keyframes g-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .g-aside__live::before { animation: none; } }
@media (min-width: 1080px) and (max-height: 880px) {
  .g-aside { top: 84px; }
  .g-aside .g-phone__screen { height: clamp(340px, calc(100vh - 360px), 520px); }
  .g-aside__trust { margin-top: var(--space-4); gap: var(--space-2); }
  .g-aside__trust span span { display: none; }
}

/* ---------- Showcase card: the business shown big, no device frame ---------- */
.g-show { overflow: hidden; border-radius: 24px; background: var(--surface); box-shadow: 0 2px 4px rgba(7,31,44,.04), 0 24px 48px rgba(7,31,44,.14); color: var(--ink); }
.g-show__cover { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; background: linear-gradient(135deg, var(--action), var(--ink)); }
.g-show__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-show__nophoto { color: rgba(255,255,255,.85); font-weight: 700; }
.g-show__badge { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: var(--radius-pill); font: 800 14px/18px var(--font-body); box-shadow: 0 4px 12px rgba(7,31,44,.18); }
.g-show__badge.is-verified { background: #fff; color: var(--action-text); }
.g-show__badge.is-pending { background: var(--notice-tint); color: var(--notice); }
.g-show__body { position: relative; padding: 0 22px 22px; }
.g-show__logo { display: grid; place-items: center; width: 84px; height: 84px; margin-top: -42px; border-radius: 50%; border: 5px solid var(--surface); background: var(--action-tint); color: var(--action-text); overflow: hidden; font: 800 34px/1 var(--font-display); box-shadow: 0 6px 16px rgba(7,31,44,.14); position: relative; }
.g-show__logo img { width: 100%; height: 100%; object-fit: cover; }
.g-show__name { margin: 10px 0 2px; font: 800 26px/32px var(--font-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.g-show__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; color: var(--ink-muted); font-size: 15px; }
.g-show__place { display: inline-flex; align-items: center; gap: 3px; }
.g-show__place svg { color: var(--flag-red); }
.g-show__actions { display: flex; gap: 8px; margin-top: 16px; }
.g-show__action { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: var(--radius-pill); font: 700 14px/1 var(--font-body); white-space: nowrap; }
.g-show__action--call { background: var(--action); color: #fff; }
.g-show__action--wa { background: #e6f7ee; color: #12864a; }
.g-show__action--map { background: #e8f0fa; color: #2164ad; }
.g-show__about { margin: 16px 0 0; font-size: 15px; line-height: 22px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.g-show__strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 16px; }
.g-show__thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-sunken); }
.g-show__thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-show__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7,31,44,.55); color: #fff; font: 800 18px/1 var(--font-display); }
.g-applook .g-show { margin-top: var(--space-2); box-shadow: 0 1px 2px rgba(7,31,44,.06), 0 10px 24px rgba(7,31,44,.10); }
@media (max-width: 380px) { .g-show__action { font-size: 13px; padding: 0 6px; } .g-show__name { font-size: 22px; line-height: 28px; } }
@media (min-width: 1080px) {
  .g-shell { grid-template-columns: minmax(0, 580px) 440px; gap: 48px; }
  .g-aside__title { font-size: 22px; line-height: 28px; }
  .g-aside .g-show__cover { aspect-ratio: auto; height: clamp(200px, calc(100vh - 560px), 280px); }
}
.g-show { container-type: inline-size; }
.g-show__action { min-width: 0; }
@container (max-width: 360px) {
  .g-show__action { font-size: 13px; padding: 0 6px; }
  .g-show__action svg { display: none; }
  .g-show__body { padding: 0 16px 18px; }
  .g-show__name { font-size: 22px; line-height: 28px; }
}

/* Sample restaurant extras: Exemple tag, rating, satellite map */
.g-show__sample { position: absolute; top: 14px; right: 14px; padding: 4px 10px; border-radius: var(--radius-pill); background: rgba(7,31,44,.72); color: #fff; font: 700 12px/16px var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.g-show__rating { margin: 2px 0 4px; font-size: 15px; color: var(--ink-muted); }
.g-show__rating b { color: #9b6500; }
.g-show__map { position: relative; height: 170px; margin-top: 16px; border-radius: 14px; overflow: hidden; background: #dfe7e3; }
.g-show__map.is-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: linear-gradient(135deg, #cfe3d8, #e8efe9); color: var(--ink-muted); font-size: 14px; }
.g-show__mappin { color: var(--flag-red); }
.g-show__maplabel { padding: 0 12px; text-align: center; }
@media (min-width: 1080px) { .g-aside .g-show__map { height: clamp(120px, calc(100vh - 720px), 170px); } }
@media (min-width: 1080px) {
  /* Browsing: the side column scrolls with the page. Filling the form: it stays in view. */
  .g-aside { position: static; }
  body[data-mode="form"] .g-aside { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; }
  .g-aside .g-show__cover { height: 240px; }
  .g-aside .g-show__map { height: 160px; }
}

/* ---------- Card: edit pencils ---------- */
.g-show__row { display: flex; align-items: flex-start; gap: 8px; }
.g-show__row > :first-child { flex: 1; min-width: 0; }
.g-show__row--actions { align-items: center; margin-top: 16px; }
.g-show__row--actions .g-show__actions { margin-top: 0; }
.g-show__row .g-show__about { margin-top: 16px; }
.g-show__row .g-show__edit { margin-top: 12px; }
.g-show__row--actions .g-show__edit { margin-top: 0; }
.g-show__edit { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--action-text); cursor: pointer; box-shadow: 0 2px 6px rgba(7,31,44,.10); }
.g-show__edit:hover { background: var(--action-tint); border-color: var(--action); }
.g-show__edit--cover { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border: 0; }
.g-show__logowrap { position: relative; width: 84px; }
.g-show__edit--logo { position: absolute; right: -6px; bottom: -2px; width: 32px; height: 32px; }
.g-show__mapwrap { position: relative; }
.g-show__edit--map { position: absolute; right: 10px; top: 26px; border: 0; }
.g-show__addphoto { display: grid; place-items: center; border: 1.5px dashed var(--line-strong); background: var(--surface-sunken); color: var(--action-text); font: 400 28px/1 var(--font-body); cursor: pointer; }
.g-show .is-zoomable { cursor: zoom-in; }
.g-show .is-zoomable:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.g-show__thumb.is-zoomable img { transition: transform .2s; }
.g-show__thumb.is-zoomable:hover img { transform: scale(1.06); }
/* Quick edit: no step bar, just this part and Enregistrer. */
body[data-quick] .g-stepper, body[data-quick] #step-label { display: none; }

/* ---------- Full-screen photo viewer ---------- */
.g-lb { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; background: rgba(4,14,20,.94); touch-action: pan-y; }
.g-lb__img { max-width: min(96vw, 1400px); max-height: 84vh; border-radius: 10px; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.g-lb__close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font: 400 30px/1 var(--font-body); cursor: pointer; }
.g-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font: 400 38px/1 var(--font-body); cursor: pointer; }
.g-lb__nav[hidden] { display: none; }
.g-lb__prev { left: 12px; } .g-lb__next { right: 12px; }
.g-lb__close:hover, .g-lb__nav:hover { background: rgba(255,255,255,.26); }
.g-lb__count { position: absolute; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: var(--radius-pill); background: rgba(255,255,255,.14); color: #fff; font: 700 14px/20px var(--font-body); }
@media (max-width: 600px) { .g-lb__nav { top: auto; bottom: 10px; transform: none; width: 48px; height: 48px; } }
.g-show__row .g-show__edit { margin-top: 8px; }
.g-show__row:has(.g-show__about) .g-show__edit { margin-top: 14px; }

/* Plans / payment sheet on computers: wider and roomier (phones unchanged). */
@media (min-width: 900px) {
  .g-pay .g-pay__sheet { width: min(860px, 92vw); max-height: 90vh; padding-top: var(--space-6); padding-bottom: var(--space-8); border-radius: 24px; }
  .g-pay .g-sheet__head { padding: 0 var(--space-8); }
  .g-pay .g-sheet__title { font-size: 30px; line-height: 36px; }
  .g-pay .g-pay__body { padding: 0 var(--space-8); gap: var(--space-6); }
  .g-pay .g-plancards { gap: var(--space-6); }
  .g-pay .g-planpick__head { padding: var(--space-6) var(--space-6) var(--space-4); }
  .g-pay .g-planpick__name { font-size: 30px; line-height: 36px; }
  .g-pay .g-planpick__price { font-size: 18px; line-height: 24px; }
  .g-pay .g-planpick__features { padding: var(--space-6); gap: var(--space-3); }
  .g-pay .g-planpick__feature { font-size: 17px; line-height: 24px; }
  .g-pay .g-planpick__mark { width: 24px; height: 24px; font-size: 13px; }
  .g-pay .g-pay__body > .g-btn { max-width: 420px; align-self: center; width: 100%; min-height: 56px; font-size: 17px; }
  .g-pay .g-pay__summary, .g-pay .g-pay__methods, .g-pay .g-pay__label, .g-pay .g-pay__chosen, .g-pay .g-field, .g-pay .g-pay__wait, .g-pay .g-pay__done { width: 100%; max-width: 560px; align-self: center; }
}
@media (min-width: 1080px) {
  /* Room for the card's shadow inside the scrolling side column (it was clipped at the corners). */
  body[data-mode="form"] .g-aside { padding: 0 28px 48px; margin: 0 -28px; }
}
/* Both columns fade in together once the sign-in state is known (no staggered pop-in). */
@keyframes g-fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.g-enter > * { animation: g-fadein .22s ease-out both; }
@media (prefers-reduced-motion: reduce) { .g-enter > * { animation: none; } }
/* Placeholder while a signed-in owner's businesses load. */
.g-skel { display: flex; flex-direction: column; gap: var(--space-3); }
.g-skel__line, .g-skel__block { display: block; border-radius: var(--radius-md); background: linear-gradient(90deg, #eef1f0 0%, #f6f8f7 50%, #eef1f0 100%); background-size: 200% 100%; animation: g-shimmer 1.2s linear infinite; }
.g-skel__line--title { width: 55%; height: 28px; }
.g-skel__block { height: 120px; }
.g-skel__block--short { height: 56px; }
@keyframes g-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .g-skel__line, .g-skel__block { animation: none; } }

/* Home: category cards (the app's pictures) in the scrolling strip. */
.g-marquee__item--card { width: auto; }
.g-marquee__item--card img { display: block; width: 84px; height: 104px; object-fit: cover; border-radius: 14px; box-shadow: 0 6px 14px rgba(7,31,44,.16); background: var(--surface-sunken); }
@media (min-width: 768px) { .g-marquee__item--card img { width: 96px; height: 118px; } }

/* Signed in: the page title/tagline is not repeated. */
body[data-signed="in"] .g-intro { display: none; }
/* Empty state (signed in, no business yet): a floating shop with a pulsing "+", then the button. */
.g-empty { display: flex; flex-direction: column; align-items: center; padding: var(--space-8) 0 var(--space-2); }
.g-empty__float { position: relative; animation: g-float 2.6s ease-in-out infinite; }
.g-empty__shop { display: grid; place-items: center; width: 120px; height: 120px; border-radius: 32px; background: linear-gradient(145deg, var(--action-tint), #cfeadd); color: var(--action); box-shadow: 0 10px 24px rgba(7,134,94,.18); }
.g-empty__plus { position: absolute; top: -10px; right: -10px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--flag-gold); color: var(--ink); font: 800 26px/1 var(--font-display); box-shadow: 0 6px 14px rgba(7,31,44,.18); animation: g-pop 2.6s ease-in-out infinite; }
.g-empty__shadow { width: 84px; height: 12px; margin-top: 14px; border-radius: 50%; background: rgba(7,31,44,.12); animation: g-shadow 2.6s ease-in-out infinite; }
.g-empty__cta { align-self: stretch; }
@keyframes g-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes g-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.75); opacity: .55; } }
@keyframes g-pop { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.18); } 90% { transform: scale(.95); } }
@media (prefers-reduced-motion: reduce) { .g-empty__float, .g-empty__plus, .g-empty__shadow { animation: none; } }

/* New logo (with tagline): a little larger on computers. */
@media (min-width: 768px) { .g-wordmark img { height: 44px; } }
}

/* Tall photos shown whole over a blurred copy (business card cover and the form's main photo). */
.g-tallbg { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(22px) brightness(.8) saturate(1.1); pointer-events: none; }
.is-tall > img:not(.g-tallbg) { position: relative; z-index: 1; object-fit: contain !important; }
.g-show__cover.is-tall .g-show__coverimg { position: absolute; inset: 0; width: 100%; height: 100%; }
.g-show__cover > .g-show__badge, .g-show__cover > .g-show__sample, .g-show__cover > .g-show__edit { z-index: 2; }
.g-photo.is-tall > img:not(.g-tallbg) { width: 100%; height: 100%; }
.g-show__cover > .g-tallbg, .g-photo > .g-tallbg { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; }

/* =================== Admin console (admin.html) =================== */
.g-btn--danger { background: var(--surface); color: var(--danger); border-color: #e9aab3; }
.g-btn--danger:hover { background: var(--danger-tint); }
.g-wordmark span { white-space: nowrap; }
.g-main.g-admin { max-width: 1040px; }
.g-admin[data-state="allowed"] .g-gate, .g-admin:not([data-state="allowed"]) .g-console { display: none; }
/* Gate */
.g-gate { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); max-width: 420px; margin: var(--space-12) auto; padding: var(--space-8) var(--space-6); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); text-align: center; }
.g-gate__icon { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 24px; background: var(--action-tint); color: var(--action); }
.g-gate__title { margin: var(--space-2) 0 0; font: 800 26px/32px var(--font-display); }
.g-gate__text { margin: 0 0 var(--space-2); color: var(--ink-muted); }
.g-gate .g-btn { align-self: stretch; }
.g-admin[data-state="checking"] .g-gate__icon { animation: g-pulse 1.4s ease-in-out infinite; }
/* Top: tabs + reload */
.g-console__top { position: sticky; top: calc(65px + env(safe-area-inset-top, 0px)); z-index: 12; display: flex; gap: var(--space-2); align-items: center; margin: calc(-1 * var(--space-6)) calc(-1 * var(--gutter-r)) var(--space-4) calc(-1 * var(--gutter-l)); padding: var(--space-3) var(--gutter-r) var(--space-3) var(--gutter-l); background: var(--surface); border-bottom: 1px solid var(--line); }
.g-admintabs { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-1); padding: 4px; border-radius: var(--radius-pill); background: var(--surface-sunken); }
.g-admintabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 var(--space-2); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink-muted); font: 700 15px/1 var(--font-body); cursor: pointer; white-space: nowrap; }
.g-admintabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.g-count:empty { display: none; }
.g-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--flag-red); color: #fff; font: 800 12px/22px var(--font-body); text-align: center; }
.g-iconbtn { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.g-iconbtn:disabled { opacity: .5; }
/* Filters + search */
.g-filters { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter-r)) var(--space-3) calc(-1 * var(--gutter-l)); padding: 2px var(--gutter-r) 2px var(--gutter-l); }
.g-filters::-webkit-scrollbar { display: none; }
.g-chip { flex: none; min-height: 40px; padding: 0 var(--space-4); border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: 700 14px/1 var(--font-body); cursor: pointer; }
.g-chip[aria-pressed="true"] { background: var(--action); border-color: var(--action); color: #fff; }
.g-admin__search { margin-bottom: var(--space-4); }
/* Request list */
.g-reqlist { display: grid; gap: var(--space-2); }
.g-req { display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: var(--space-3); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.g-req:hover { border-color: var(--action); box-shadow: 0 6px 16px rgba(7,31,44,.08); }
.g-req__thumb { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--action-tint); color: var(--action-text); font: 800 26px/1 var(--font-display); }
.g-req__thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-req__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.g-req__name { font: 800 17px/22px var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-req__meta { font-size: 14px; line-height: 20px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-req__side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.g-req__when { font-size: 12px; color: var(--ink-muted); }
@media (max-width: 420px) { .g-req__side .g-badge { font-size: 12px; padding: 0 8px; } }
@media (min-width: 900px) { .g-reqlist { grid-template-columns: 1fr 1fr; } }
.g-adminempty { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding: var(--space-12) 0; color: var(--ink-muted); }
.g-adminempty span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--action-tint); color: var(--action); font: 800 28px/1 var(--font-display); }
.g-adminempty[hidden] { display: none; }
/* Help / reviews cards */
.g-cards { display: grid; gap: var(--space-3); }
@media (min-width: 900px) { .g-cards { grid-template-columns: 1fr 1fr; } }
.g-acard { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.g-acard h3 { margin: 0; font: 800 17px/22px var(--font-display); }
.g-acard__lines { display: grid; gap: 4px; margin: 0; width: 100%; }
.g-acard__lines div { display: grid; grid-template-columns: 96px 1fr; gap: var(--space-2); font-size: 15px; }
.g-acard__lines dt { color: var(--ink-muted); }
.g-acard__lines dd { margin: 0; font-weight: 600; }
.g-acard__actions { display: flex; gap: var(--space-2); margin-top: var(--space-2); }
.g-acard__note { margin: 0; font-size: 13px; color: var(--ink-muted); }
.g-acard__quote { margin: 0; font-size: 15px; }
.g-stars { margin: 0; color: #d99a00; letter-spacing: 2px; font-size: 18px; }
/* Review panel: full screen on phones, side panel on computers */
.g-adrev { position: fixed; inset: 0; z-index: 105; }
.g-adrev[hidden] { display: none; }
.g-adrev__backdrop { position: absolute; inset: 0; background: rgba(7,31,44,.5); }
.g-adrev__panel { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--surface); }
@media (min-width: 900px) { .g-adrev__panel { left: auto; width: 580px; box-shadow: -16px 0 40px rgba(7,31,44,.18); } }
.g-adrev__head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); padding-top: max(var(--space-3), env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
.g-adrev__head > div { flex: 1; min-width: 0; }
.g-adrev__head h2 { margin: 0; font: 800 20px/26px var(--font-display); }
.g-adrev__when { margin: 0; font-size: 13px; color: var(--ink-muted); }
.g-adrev__close { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface-sunken); font-size: 26px; line-height: 1; cursor: pointer; }
.g-adrev__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.g-adrev__card .g-show { box-shadow: 0 1px 2px rgba(7,31,44,.06), 0 10px 24px rgba(7,31,44,.10); }
.g-adrev__links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.g-adrev__links > div { display: contents; }
.g-contact { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--ink); font: 600 14px/1 var(--font-body); text-decoration: none; }
.g-contact[hidden] { display: none; }
.g-adrev__form { display: flex; flex-direction: column; gap: var(--space-3); }
.g-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-3); margin: 0; padding: 0; border: 0; }
.g-checks legend { padding: 0; margin-bottom: var(--space-1); font: 800 16px/22px var(--font-display); }
.g-adrev__edit summary { min-height: var(--tap-min); display: flex; align-items: center; cursor: pointer; font-weight: 700; color: var(--action-text); }
.g-adrev__note { margin: 0; font-weight: 600; }
.g-adrev__note:empty { display: none; }
.g-adrev__note[data-kind="error"] { color: var(--danger); }
.g-adrev__note[data-kind="success"] { color: var(--action-text); }
.g-adrev__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); padding: var(--space-3) var(--space-4); padding-bottom: max(var(--space-3), env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.g-adrev__actions .g-btn--primary { grid-column: 1 / -1; order: -1; }
@media (min-width: 900px) { .g-adrev__actions { grid-template-columns: auto auto 1fr; } .g-adrev__actions .g-btn--primary { grid-column: auto; order: 0; } }
body.g-adrev-open { overflow: hidden; }

/* ---------- Signed-in header: avatar + Se déconnecter ---------- */
.g-me { position: relative; display: flex; align-items: center; gap: var(--space-2); }
.g-me[hidden] { display: none; }
.g-me__avatar { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 2px solid var(--action); border-radius: 50%; background: var(--action-tint); color: var(--action-text); font: 800 18px/1 var(--font-display); cursor: pointer; }
.g-me__avatar img { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); border-radius: 50%; object-fit: cover; }
.g-me__avatar[aria-expanded="true"] { box-shadow: 0 0 0 4px var(--action-tint); }
.g-me__avatar.is-busy { opacity: .55; }
.g-me__dot { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border: 2.5px solid var(--surface); border-radius: 50%; background: var(--action); }
.g-me__out { min-height: 40px; white-space: nowrap; }
.g-me__menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; display: flex; flex-direction: column; min-width: 230px; padding: var(--space-2); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 12px 32px rgba(7,31,44,.16); }
.g-me__menu[hidden] { display: none; }
.g-me__who { display: flex; flex-direction: column; gap: 2px; margin: 0 0 var(--space-1); padding: var(--space-2) var(--space-3) var(--space-3); border-bottom: 1px solid var(--line); }
.g-me__who b { color: var(--action-text); font-size: 14px; }
.g-me__who span { font-weight: 600; overflow-wrap: anywhere; }
.g-me__item { display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-3); border: 0; border-radius: 10px; background: none; color: var(--ink); font: 600 15px/1 var(--font-body); text-align: left; cursor: pointer; }
.g-me__item:hover { background: var(--surface-sunken); }
.g-me__item--muted { color: var(--danger); }
.g-me__menu input.g-file:focus-visible + .g-me__item, .g-me__menu label.g-me__item:focus-within { outline: 3px solid var(--focus); }
@media (max-width: 360px) { .g-me__out { padding: 0 var(--space-3); font-size: 14px; } }

/* Stepper: every step can be opened directly (steps not complete yet stay grey). */
.g-stepper li[data-state="todo"] .g-stepper__dot { cursor: pointer; }
.g-stepper li[data-state="todo"] .g-stepper__dot:hover { border-color: var(--action); color: var(--action-text); }
/* A listing without reviews: five empty stars and "0 avis". */
.g-show__rating--none b { color: #b5c0c4; letter-spacing: 1px; font-weight: 400; }
.g-show__rating--none span { color: var(--ink-muted); }

/* Pro price note, number of businesses, merchant code and the card form in the upgrade sheet. */
.g-planpick__extra { display: block; margin-top: 2px; font: 600 13px/18px var(--font-body); color: var(--ink-muted); }
.g-pay__qty { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-3); }
.g-pay__qtylabel { flex: 1; font-weight: 700; }
.g-pay__qty b { min-width: 24px; text-align: center; font: 800 20px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.g-pay__qtybtn { width: 40px; height: 40px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: 700 22px/1 var(--font-body); cursor: pointer; }
.g-pay__qtybtn:hover:not(:disabled) { border-color: var(--action); color: var(--action-text); }
.g-pay__qtybtn:disabled { opacity: .35; cursor: not-allowed; }
.g-pay__detail { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-muted); }
.g-pay__merchant { position: relative; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); border: 2px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--surface-sunken); }
.g-pay__mlabel { font: 700 13px/16px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.g-pay__mcoderow { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.g-pay__mcode { font: 800 34px/40px var(--font-display); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.g-pay__how { margin: 0; padding-left: 20px; color: var(--ink-muted); font-weight: 600; }
.g-pay__sample { position: absolute; top: 10px; right: 12px; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--notice-tint); color: var(--notice); font: 700 11px/16px var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.g-pay__card { display: flex; flex-direction: column; gap: var(--space-4); }
.g-pay__card .g-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }

/* Admin: number of accounts, refused applications with the number to call, review note. */
/* Admin summary under the tabs: number of users, as a small card. */
.g-console__stats { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-4); }
.g-console__stats:not(:has(.g-accounts:not([hidden]))) { display: none; }
.g-accounts { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 16px 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink-muted); font-weight: 600; white-space: nowrap; }
.g-accounts[hidden] { display: none; }
.g-accounts__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--action-tint); color: var(--action-text); }
.g-accounts b { color: var(--ink); font: 800 24px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.g-accounts__sample { margin-left: 4px; padding: 1px 8px; border-radius: var(--radius-pill); background: var(--notice-tint); color: var(--notice); font: 700 11px/16px var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.g-req-refused { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.g-req-refused > .g-req { border: 0; border-radius: 0; }
.g-callbar { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-4); padding: var(--space-2) var(--space-3); background: var(--danger-tint); border-bottom: 1px solid var(--line); }
.g-callbar__phone { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--ink); font: 800 18px/1 var(--font-display); text-decoration: none; font-variant-numeric: tabular-nums; }
.g-callbar__phone svg { color: var(--action); }
.g-callbar__wa { color: var(--action-text); font-weight: 700; }
.g-callbar__none { color: var(--ink-muted); font-weight: 600; }
.g-callbar .g-btn--danger-text { margin-left: auto; }
.g-btn--danger-text { min-height: 40px; padding: 0 var(--space-3); border: 1.5px solid var(--danger); border-radius: var(--radius-pill); background: var(--surface); color: var(--danger); font-weight: 700; cursor: pointer; }
.g-btn--danger-text:hover { background: var(--danger); color: #fff; }
.g-admin__hint { margin: 0 0 var(--space-3); }

/* Admin: events (home page). */
.g-evhead { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3); }
.g-evhead .g-hint { margin: 0; }
.g-evlist { display: grid; gap: var(--space-2); }
@media (min-width: 900px) { .g-evlist { grid-template-columns: 1fr 1fr; } }
.g-evrow { display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: var(--space-2); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.g-evrow:hover { border-color: var(--line-strong); box-shadow: 0 6px 18px rgba(7,31,44,.08); }
.g-evrow.is-past { opacity: .6; }
.g-evrow__thumb { flex: none; display: grid; place-items: center; width: 88px; height: 60px; overflow: hidden; border-radius: 10px; background: var(--action-tint); color: var(--action-text); font: 800 22px/1 var(--font-display); }
.g-evrow__thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-evrow__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.g-evrow__title { font: 800 16px/21px var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-evrow__meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-evrow .g-badge { flex: none; }
.g-evform { display: flex; flex-direction: column; gap: var(--space-4); }
.g-evphoto { position: relative; display: grid; place-items: center; aspect-ratio: 2 / 1; overflow: hidden; border: 2px dashed var(--line-strong); border-radius: 14px; background: var(--surface-sunken); color: var(--ink-muted); font-weight: 700; cursor: pointer; }
.g-evphoto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-evphoto span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.g-evphoto span span { font-size: 28px; line-height: 1; }
.g-evphoto:has(img:not([hidden])) { border-style: solid; }
.g-evform .g-evphoto + .g-file + .g-hint:empty { display: none; }
.g-evstatus { flex-direction: row; flex-wrap: wrap; gap: var(--space-2); }
.g-evstatus legend { width: 100%; margin-bottom: var(--space-2); }
.g-evactions { display: flex; justify-content: space-between; gap: var(--space-3); }
.g-evactions .g-btn--primary { margin-left: auto; }

/* Admin tabs: four sections (Demandes, Aide & accès, Avis, Événements); two rows of two on narrow phones. */
.g-admintabs { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 520px) { .g-admintabs { grid-template-columns: 1fr 1fr; border-radius: 22px; } }

/* Sign-in window (admin and older pages): the choice screen and the Google / phone screen get the same
   spacing as the forms, with full-width buttons, so they no longer sit tight against each other. */
.auth-modal [data-auth-choice]:not([hidden]), .auth-modal [data-auth-methods]:not([hidden]) { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-4); }
.auth-modal [data-auth-choice] .button, .auth-modal [data-auth-methods] .button { width: 100%; min-height: var(--control-height); }
.auth-modal [data-auth-choice] > p, .auth-modal [data-auth-methods] > p:first-child { margin-bottom: var(--space-1); }
.g-console__top [data-reload] { margin-left: auto; } /* refresh stays on the right now that the count left this bar */

/* Djomy payment (plans.js): one line under the method, the Djomy note, the simulated Djomy page on preview links, a failed payment. */
.g-pay__how1 { margin: 0; color: var(--ink-muted); font-weight: 600; }
.g-pay__djomy { margin: 0; color: var(--ink-muted); font-size: 13px; line-height: 18px; text-align: center; }
.g-djomy { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-sunken); }
.g-djomy__top { display: flex; align-items: center; gap: var(--space-2); padding-right: 92px; }
.g-djomy__brand { font: 800 20px/24px var(--font-display); color: #0b6b4f; }
.g-djomy__lock { color: var(--ink-muted); font: 600 13px/18px var(--font-body); }
.g-djomy__amount { font: 800 32px/38px var(--font-display); font-variant-numeric: tabular-nums; }
.g-djomy__to { margin-top: -8px; color: var(--ink-muted); font-weight: 600; }
.g-djomy__how { margin: 0; color: var(--ink-muted); }
.g-pay__check--fail { background: #b90e24; color: #fff; }

/* Admin → Terrain: handover code shown to the owner, and the field-agent list. */
.g-handover { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); padding: var(--space-6) var(--space-4); border: 2px solid var(--action); border-radius: 16px; background: var(--surface); text-align: center; }
.g-handover__code { margin: 0; font: 800 40px/48px var(--font-display); letter-spacing: 4px; }
.g-agents { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.g-agents h3 { margin: 0 0 var(--space-2); font: 800 17px/22px var(--font-display); }
.g-agents__add { display: flex; gap: var(--space-2); }
.g-agents__add .g-input { flex: 1; min-width: 0; }
.g-agents__list { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.g-agents__list li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }

/* Business page: take over a listing created by Nimba360 (agent code or access request). */
.g-takeover { border-color: var(--action); }
.g-takeover__form { display: flex; flex-wrap: wrap; gap: var(--space-2); width: 100%; }
.g-takeover__input { flex: 1 1 180px; min-width: 0; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }
.g-takeover__form--claim { flex-direction: column; margin-top: var(--space-2); }
.g-takeover__note { flex-basis: 100%; margin: 0; color: var(--danger); }
.g-takeover__note:empty { display: none; }
