/* Pages publiques (accueil, connexion) : même système visuel que l'application. */
:root {
  --bg: #f6f7f9; --panel: #ffffff; --text: #1d2430; --muted: #6b7280; --line: #e3e6eb;
  --accent: #0b6e99; --a: #5f7d95; --b: #d84a8f; --both: #7b2cbf; --radius: 14px; --shadow: 0 6px 24px rgba(0,0,0,.14);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) { :root { --bg: #0f1419; --panel: #171d25; --text: #e6e9ef; --muted: #98a2b3; --line: #2a323d; --accent: #4cc9f0; --a: #8fb0c9; --b: #f07ab6; --both: #b48ef0; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 48px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand .mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.brand b { font-size: 18px; } .brand small { display: block; font-size: 12px; color: var(--muted); line-height: 1.1; }
.cover { margin: 20px 0 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; max-width: 100%; background: #1b3a4b; outline: none; }
.cover:focus-visible { box-shadow: 0 0 0 3px var(--accent); }
.cover .slides { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.cover .slides::-webkit-scrollbar { display: none; }
.cover .slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; display: block; height: 100%; -webkit-user-drag: none; user-select: none; }
.cover .slide img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.cover-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); display: flex; flex-direction: column; gap: 2px; pointer-events: none; }
.cover-name { font-weight: 700; font-size: 15px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.cover-credit { font-size: 11px; opacity: .85; }
.cover-dots { position: absolute; left: 0; right: 0; top: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.cover-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); transition: transform .15s, background .15s; }
.cover-dots i.on { background: #fff; transform: scale(1.3); }
.cover-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 56px; display: grid; place-items: center; color: #fff; background: none; border: 0; cursor: pointer; opacity: .85; touch-action: manipulation; }
.cover-nav.l { left: 0; } .cover-nav.r { right: 0; }
@media (hover: none) { .cover-nav { display: none; } }
.cover-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 8px 12px; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff; font-size: 12.5px; pointer-events: none; transition: opacity .4s; white-space: nowrap; }
.cover-hint.off { opacity: 0; }
@media (hover: hover) { .cover-hint { display: none; } }
.hero { margin: 20px 0 20px; }
.hero h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.1; margin: 0 0 10px; letter-spacing: -.01em; }
.hero p { font-size: 17px; color: var(--muted); margin: 0; max-width: 56ch; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, var(--bg)); color: var(--accent); font-size: 12.5px; font-weight: 600; margin-bottom: 12px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; background: var(--accent); color: #fff; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.btn.ghost { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 24px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.card h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.card p { margin: 0; font-size: 13.5px; color: var(--muted); }
.card .ic { width: 28px; height: 28px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 14%, var(--bg)); color: var(--accent); display: grid; place-items: center; }
svg.i { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.note { font-size: 13px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; margin: 20px 0; }
footer { margin-top: 32px; font-size: 12.5px; color: var(--muted); }
/* connexion */
.travelers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.traveler { border: 2px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 16px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; font: inherit; color: inherit; }
.traveler .av { width: 56px; height: 56px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 800; }
.traveler.a .av { background: var(--a); } .traveler.b .av { background: var(--b); }
.traveler.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.traveler input { width: 100%; text-align: center; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-weight: 600; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0; }
label.f input, label.f textarea { height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--panel); color: var(--text); font: inherit; font-weight: 400; }
label.f textarea { height: auto; min-height: 64px; padding: 10px 12px; resize: vertical; }
.small { font-size: 12.5px; color: var(--muted); }
.err { color: #c73a3a; font-size: 13px; }
.tabs2 { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); margin: 12px 0 4px; }
.tabs2 button { flex: 1; height: 40px; border-radius: 9px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs2 button.on { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.wslist { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.wsitem { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; font: inherit; color: inherit; }
.wsitem:hover, .wsitem:focus-visible { border-color: var(--accent); }
.wsname { font-weight: 700; font-size: 16px; }
.wscode { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; margin-right: 3px; } .dot.a { background: var(--a); } .dot.b { background: var(--b); }
.row2 { display: flex; gap: 8px; }
.row2 input { height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--bg); color: var(--text); font: inherit; min-width: 0; }
.row2 .btn { min-height: 44px; }
