/* Natus · Rendez-vous congrès — design « Lumineux » (le même que Natz Leads), pensé pour le téléphone. */
:root {
  --brand: #6a47e8;
  --brand-dark: #4f2fc9;
  --brand-soft: #eee9fd;
  --brand-softer: #f7f5ff;
  --grad: linear-gradient(135deg, #5a3be0 0%, #8a49e6 60%, #c24fcf 100%);
  --gold: #f2b73d;
  --gold-soft: #fff3d6;
  --ink: #1d1838;
  --muted: #6f6a8c;
  --line: #e7e3f6;
  --bg: #f4f2fd;
  --card: #ffffff;
  --ok: #12a150;
  --ok-soft: #e3f6ec;
  --err: #b42318;
  --err-soft: #fdecea;
  --warn-soft: #fff6e5;
  --warn-ink: #8a4b00;
  --shadow: 0 4px 14px rgba(84, 56, 200, .08);
  --radius: 16px;
  --tap: 48px;
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.45; color: var(--ink); background: var(--bg); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -4px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; text-wrap: balance; }

/* Barre du haut */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-top)) 14px 12px; background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(90, 59, 224, .18); }
.topbar-back { width: 38px; height: 38px; border-radius: 12px; border: 0; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; flex: none; }
.brand { display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; min-width: 0; flex: 1; }
.brand img { width: 30px; height: 30px; border-radius: 9px; flex: none; box-shadow: 0 0 0 2px rgba(242, 183, 61, .85); }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang { display: flex; background: rgba(255,255,255,.16); border-radius: 10px; padding: 2px; flex: none; }
.lang button { border: 0; background: none; color: #fff; font-weight: 700; font-size: 12px; padding: 6px 8px; border-radius: 8px; opacity: .8; }
.lang button.on { background: #fff; color: var(--brand-dark); opacity: 1; }
.banner { padding: 8px 16px; font-size: 13px; background: var(--warn-soft); color: var(--warn-ink); text-align: center; }

.view { max-width: 720px; margin: 0 auto; padding: 16px 16px calc(110px + var(--safe-bottom)); }

/* Accueil */
.hero { padding: 18px 18px 16px; margin: 0 0 6px; border-radius: 22px; background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(90, 59, 224, .22); }
.hero h1 { margin: 0 0 4px; font-size: 22px; }
.hero p { margin: 0; opacity: .85; font-size: 14px; }
.section-title { margin: 20px 4px 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-dark); opacity: .75; font-family: var(--font-body); font-weight: 700; }
.cards { display: grid; gap: 10px; }
.ccard { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.ccard .grow { flex: 1; min-width: 0; }
.ccard b { display: block; font-family: var(--font-display); font-size: 16px; }
.ccard small { display: block; color: var(--muted); }
.ccard .tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.ccard .go { font-size: 12.5px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 3px 9px; border-radius: 8px; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 7px; background: var(--gold-soft); color: #8a5a00; }
details.past { margin-top: 16px; }
details.past summary { cursor: pointer; color: var(--muted); font-weight: 600; padding: 6px 4px; }
.logo { width: 52px; height: 52px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 14px; overflow: hidden; flex: none; }
.logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }

/* Page congrès */
.chead { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.chead .grow { flex: 1; min-width: 0; }
.chead h1 { margin: 0 0 6px; font-size: 21px; }
.chead p { margin: 2px 0; color: var(--muted); font-size: 14px; }
.booth { flex: none; display: grid; justify-items: center; padding: 8px 10px; border-radius: 14px; background: var(--grad); color: #fff; box-shadow: 0 0 0 3px var(--gold-soft); min-width: 64px; }
.booth small { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.booth b { font-family: var(--font-display); font-size: 20px; line-height: 1.1; }
.tabs { display: flex; gap: 4px; margin: 14px 0; padding: 4px; background: #ebe7fa; border-radius: 14px; position: sticky; top: calc(62px + var(--safe-top)); z-index: 10; }
.tabs a { flex: 1; text-align: center; padding: 10px 6px; border-radius: 11px; font-weight: 700; font-size: 14.5px; color: var(--muted); text-decoration: none; }
.tabs a.on { background: #fff; color: var(--brand); box-shadow: 0 2px 6px rgba(84, 56, 200, .12); }
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; }

.team { display: grid; gap: 12px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.person h3 { margin: 0; font-size: 17px; }
.person p { margin: 2px 0; }
.row { display: flex; gap: 12px; align-items: center; }
.row .grow, .grow { min-width: 0; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; flex: none; overflow: hidden; font-family: var(--font-display); }
.avatar.big { width: 58px; height: 58px; font-size: 19px; background: var(--grad); color: #fff; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.deps { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 10px 0 4px !important; }
.deps small { color: var(--muted); font-weight: 600; margin-right: 2px; }
.deps span { font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--brand-softer); color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.contacts { display: grid; gap: 4px; margin: 8px 0 12px; }
.contacts a { text-decoration: none; font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }

.products { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.product { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.pimg { aspect-ratio: 16 / 9; background: #fff; border-bottom: 1px solid var(--line); }
.pimg img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pbody h3 { margin: 0; font-size: 17px; }
.pbody p { margin: 0 0 8px; }
.cat { color: var(--brand); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.pact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

/* Réservation */
.booking .step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.booking .step h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 17px; }
.booking .step h2 span { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.picked { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--brand-softer); border: 1.5px solid var(--brand-soft); }
.picked b, .item b { display: block; }
.picked small, .item small { display: block; color: var(--muted); font-size: 13px; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.item { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: var(--card); text-align: left; color: var(--ink); text-decoration: none; }
.item:last-child { border-bottom: 0; }
.item .grow { flex: 1; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 12px; text-align: center; min-width: 86px; }
.day b { display: block; font-size: 14px; }
.day small { color: var(--muted); font-size: 12px; }
.day.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.time { min-height: 46px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15.5px; }
.time.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(106, 71, 232, .3); }

.field { margin-bottom: 14px; }
.field > label, .field > .label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.req { font-weight: 500; font-size: 11px; color: var(--brand); }
.input { width: 100%; min-height: var(--tap); border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 11px 13px; font-size: 16px; outline: none; }
textarea.input { min-height: 84px; resize: vertical; margin-top: 8px; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .input { margin-top: 8px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 11px; padding: 9px 13px; min-height: 44px; font-weight: 600; font-size: 14.5px; text-align: left; }
.chip.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); box-shadow: 0 2px 8px rgba(106, 71, 232, .16); }
.chips.yn .chip { flex: 1; text-align: center; }
.field .input[hidden] + .error { margin-top: 0; }
.field .chips + .input { margin-top: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .two { grid-template-columns: 1fr; } }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.error { display: none; color: var(--err); font-size: 13px; margin-top: 5px; }
.invalid .error { display: block; }
.invalid .error:empty::before { content: "⚠"; }
.invalid .input, .invalid .chips, .invalid .picked, .invalid .times, .invalid .check { outline: 2px solid var(--err-soft); outline-offset: 2px; border-radius: 12px; }
.invalid > h2 { color: var(--err); }
details.field summary { cursor: pointer; font-weight: 600; color: var(--brand); padding: 4px 0; }
.legal-note { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sticky { position: sticky; bottom: calc(12px + var(--safe-bottom)); z-index: 5; padding-top: 10px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 11px 18px; border-radius: 12px; border: 0; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: 15.5px; text-decoration: none; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(106, 71, 232, .28); }
.sticky .btn.primary { min-height: 56px; font-size: 17px; }
.btn.small { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--brand-dark); }
.btn.on { background: var(--ok-soft); color: #0b6b35; }
.btn.danger { background: var(--err-soft); color: var(--err); }
.btn.ghost.danger { background: transparent; border-color: var(--err-soft); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .7; }
.link { border: 0; background: none; color: var(--brand); text-decoration: underline; padding: 6px 0; font-size: 14px; }
.link.danger { color: var(--err); }
.actions { display: grid; gap: 10px; margin: 12px 0; }

/* Mon rendez-vous */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px; }
.card.center, .center { text-align: center; }
.appt h2 { margin: 10px 0 4px; font-size: 21px; }
.appt p { margin: 4px 0; }
.appt .picked { margin-top: 12px; }
.appt.off { opacity: .65; }
.badge { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 8px; }
.badge.ok { background: var(--ok-soft); color: #0b6b35; }
.badge.grey { background: #eeedf3; color: var(--muted); }
.keep h3 { margin: 0 0 4px; font-size: 16px; }
.linkbox { display: flex; gap: 8px; margin: 10px 0; }
.linkbox .input { min-height: 42px; font-size: 13px; color: var(--muted); }
.success { text-align: center; padding: 8px 10px 14px; }
.success .big { width: 74px; height: 74px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 0 0 6px var(--gold-soft), 0 10px 24px rgba(106, 71, 232, .3); }
.success .big svg { width: 38px; height: 38px; stroke-width: 2.6; }
.success h1 { margin: 12px 0 2px; font-size: 24px; }
.success p { margin: 0; color: var(--muted); }

/* Divers */
.note { padding: 10px 12px; border-radius: 12px; background: var(--brand-softer); color: var(--brand-dark); font-size: 14px; margin-bottom: 10px; }
.note.err { background: var(--err-soft); color: var(--err); }
.note.alt { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.note.alt b { width: 100%; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.empty { text-align: center; color: var(--muted); padding: 34px 16px; }
.legal { margin-top: 28px; text-align: center; font-size: 12px; color: var(--muted); }
.legal p { margin: 3px 0; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
.spinner.light { border-color: rgba(255,255,255,.35); border-top-color: #fff; width: 18px; height: 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-bottom)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14px; max-width: 92vw; z-index: 60; opacity: 0; pointer-events: none; transition: all .2s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.sheet-back { position: fixed; inset: 0; background: rgba(20, 18, 35, .45); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg); width: 100%; max-width: 560px; border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + var(--safe-bottom)); }
.sheet p { font-weight: 600; margin: 0 0 6px; }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } .toast { transition: none; } }
