* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --ink: #14181c;
    --muted: #6b7280;
    --line: #e7e5df;
    --paper: #fbfaf6;
    --bg: #f2efe6;
    --cobalt: #2b438d;
    --periwinkle: #94adff;
    --lime: #e8fd94;
    --accent: var(--cobalt);
    --accent-ink: #ffffff;
    --velo: var(--cobalt);
    --velo-bg: #e4e9f7;
    --course: var(--cobalt);
    --course-bg: #e6ecff;
    --autre: var(--cobalt);
    --autre-bg: #f5fbd9;
    --in: #ffffff;
    --in-bg: var(--cobalt);
    --maybe: #6b7280;
    --maybe-bg: #eceef4;
    --out: #6b5c05;
    --out-bg: var(--lime);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(120% 90% at 50% -10%, #3a5bb5 0%, #1c2f66 55%, #14204a 100%);
    color: var(--ink);
    display: flex;
    justify-content: center;
    padding: 28px 16px 60px;
    line-height: 1.5;
    min-height: 100vh;
}

.wrap { width: 100%; max-width: 400px; }

.card {
    background: var(--paper);
    border-radius: 20px;
    border: 1px solid var(--line);
    padding: 24px;
    box-shadow: 0 1px 2px rgba(20, 24, 28, 0.04), 0 10px 30px -12px rgba(20, 24, 28, 0.12);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
}

.logo-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 55%, transparent);
    display: inline-block;
}

.tagline { font-size: 14px; color: #b9c6f0; margin-bottom: 20px; font-weight: 500; }

.lang-link {
    font-size: 12px;
    font-weight: 700;
    color: #cfd9fa;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 5px 10px;
    text-transform: uppercase;
    background: transparent;
}

.type-row { display: flex; gap: 8px; margin-bottom: 18px; }

.type-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 12px 4px 10px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    color: var(--muted);
    transition: border-color .15s, background .15s, color .15s, transform .1s;
}

.type-option:active { transform: scale(0.97); }
.type-option input { display: none; }
.type-icon { width: 22px; height: 22px; }

.type-option.type-velo.active { background: var(--velo-bg); border-color: var(--periwinkle); color: var(--velo); }
.type-option.type-course.active { background: var(--course-bg); border-color: var(--cobalt); color: var(--course); }
.type-option.type-autre.active { background: var(--autre-bg); border-color: var(--lime); color: var(--autre); }

label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 5px;
    margin-top: 14px;
}

input[type=text], input[type=date], input[type=time] {
    width: 100%;
    padding: 11px 13px;
    border-radius: 10px;
    border: 1.5px solid var(--line);
    font-size: 15px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
}

input[type=text]:focus, input[type=date]:focus, input[type=time]:focus {
    outline: none;
    border-color: var(--accent);
}

.row2 { display: flex; gap: 10px; }
.row2 > div { flex: 1; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

button, .btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: var(--accent);
    background: linear-gradient(135deg, var(--cobalt), #3d5bb0);
    color: var(--accent-ink);
    font-size: 15.5px;
    font-weight: 700;
    margin-top: 22px;
    cursor: pointer;
    text-align: center;
    display: block;
    text-decoration: none;
    box-shadow: 0 6px 16px -6px rgba(43, 67, 141, 0.5);
}

button:active, .btn:active { transform: scale(0.98); }

.jam-header { margin-bottom: 16px; }
.jam-title { font-size: 18px; font-weight: 700; margin: 8px 0 4px; letter-spacing: -0.01em; }
.jam-meta { font-size: 13px; color: var(--muted); font-weight: 500; }

.type-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 4px 10px;
    border-radius: 20px;
}
.type-badge.type-velo { background: var(--velo-bg); color: var(--velo); box-shadow: inset 0 0 0 1px var(--periwinkle); }
.type-badge.type-course { background: var(--course-bg); color: var(--course); box-shadow: inset 0 0 0 1px var(--cobalt); }
.type-badge.type-autre { background: var(--autre-bg); color: var(--autre); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lime) 70%, var(--cobalt)); }

.share-label { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 4px; }

.share-box {
    background: var(--bg);
    border-radius: 10px;
    padding: 12px;
    margin: 16px 0;
    font-size: 13px;
    word-break: break-all;
}

.plist { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 16px 0; }
.prow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #f0efe8;
}
.prow:last-child { border-bottom: none; }

.status-in, .status-maybe, .status-out {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 3px 9px;
    border-radius: 20px;
}
.status-in { color: var(--in); background: var(--in-bg); }
.status-maybe { color: var(--maybe); background: var(--maybe-bg); }
.status-out { color: var(--out); background: var(--out-bg); }

.empty { font-size: 13px; color: #a8a69a; text-align: center; padding: 18px 0; }

.status-row { display: flex; gap: 7px; margin-top: 14px; }
.status-btn {
    flex: 1;
    padding: 12px 4px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.status-btn.in { color: var(--in); background: var(--in-bg); }
.status-btn.in:active { background: #223a7a; }
.status-btn.maybe { color: var(--maybe); background: var(--maybe-bg); border-color: var(--line); }
.status-btn.maybe:active { background: #dfe2ea; }
.status-btn.out { color: var(--out); background: var(--out-bg); }
.status-btn.out:active { background: #dcf07a; }

.toast {
    background: var(--velo-bg);
    color: var(--cobalt);
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
    box-shadow: inset 0 0 0 1px var(--periwinkle);
}
