:root {
  color-scheme: light;
  --paper: #f8f4eb;
  --white: #fffdf8;
  --ink: #203e32;
  --muted: #59675b;
  --green: #254838;
  --green-light: #e8efe5;
  --line: #dedbcf;
  --clay: #a44932;
  --clay-dark: #873824;
  --clay-light: #faeae0;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
main:focus { outline: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
svg { flex: none; vertical-align: middle; }
img { display: block; max-width: 100%; object-fit: cover; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.035em; }
h1 { font-size: clamp(2.15rem, 6vw, 3.3rem); }
h2 { font-size: 1.75rem; }
.wrap { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.narrow { width: min(688px, calc(100% - 48px)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; }
.skip { position: absolute; transform: translateY(-150%); z-index: 5; color: white; background: var(--green); padding: 12px; }
.skip:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-header { background: var(--white); border-bottom: 1px solid #e8e0d2; }
.topbar, .topbar nav, .brand, .topbar nav a { display: flex; align-items: center; }
.topbar { min-height: 74px; justify-content: space-between; gap: 12px; }
.brand { gap: 11px; font: 700 1.17rem/1.08 var(--serif); min-width: 0; }
.brand strong { display: block; color: var(--clay); font-weight: inherit; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #f7ead5; flex: none; }
.brand-mark svg { width: 27px; height: 27px; }
.topbar nav { gap: 9px; }
.topbar nav a { gap: 8px; min-height: 44px; font-weight: 650; padding: 5px 14px; border-radius: 9px; white-space: nowrap; }
.topbar nav a[aria-current="page"]:not(.nav-propose), .topbar nav a:not(.nav-propose):hover { background: var(--green-light); }
.topbar nav .nav-propose { background: var(--clay); color: white; }
.topbar nav .nav-propose:hover { background: var(--clay-dark); }
.hero { background: linear-gradient(90deg, rgba(17,36,27,.87), rgba(17,36,27,.52) 42%, rgba(17,36,27,.09) 87%), url('images/pont-vieux.webp') center 49% / cover, var(--green); color: white; }
.hero-inner { padding-block: clamp(50px, 7vw, 88px); }
.hero-location { display: flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 750; letter-spacing: .125em; }
.hero-location { color: #fae3c8; margin-bottom: 16px; }
.hero-location svg { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(3rem, 7.2vw, 5.8rem); line-height: .94; letter-spacing: -.055em; }
.hero h1 em { display: block; color: #f5d2b7; font-weight: 400; }
.hero-copy { margin-top: 21px; color: #fffaf0; font-size: 1.05rem; }
.install-box { margin-top: 14px; color: var(--ink); }
.install-help { width: min(100%, 620px); padding: 14px 16px; margin-top: 9px; border: 1px solid #e1d8c8; border-radius: 10px; background: var(--white); color: var(--ink); font-size: .91rem; line-height: 1.65; box-shadow: 0 6px 18px #13251b1c; }
.install-help p + p { margin-top: 10px; }
.install-help b, .install-help strong { color: var(--green); }
.install-link-hint { color: var(--muted); font-size: .86rem; }
.install-link { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .8rem; overflow-wrap: anywhere; }
.install-link span { flex: 1 1 210px; }
.install-link .button { min-height: 37px; padding: 5px 9px; font-size: .84rem; }
.agenda { padding-block: 31px 56px; }
.agenda-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.agenda-heading h2 { font-size: clamp(2.15rem, 5vw, 3.15rem); }
.period-date { font-size: .94rem; color: var(--muted); padding-bottom: 4px; text-align: right; }
.period-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; padding: 4px; background: #eee9dd; border: 1px solid #e5dfd2; border-radius: 13px; }
.period-switch button, .filter-bar button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; min-height: 44px; }
.period-switch button { border: 0; background: transparent; border-radius: 9px; padding: 6px; }
.period-switch button[aria-pressed="true"] { background: var(--green); color: white; box-shadow: 0 2px 4px #1b36262b; }
.period-switch button[aria-pressed="false"]:hover { background: var(--white); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 14px 15px; }
.filter-bar button { border: 1px solid var(--line); border-radius: 100px; background: var(--white); padding: 4px 15px; font-size: .91rem; }
.filter-bar button svg { width: 17px; height: 17px; }
.filter-bar button:hover, .filter-bar button[aria-pressed="true"] { background: var(--green-light); border-color: var(--green); }
.filter-bar button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--green); }
.result-count { color: var(--muted); font-size: .88rem; min-height: 1.4em; }
.walk-scope { margin: -6px 0 8px; color: var(--muted); font-size: .83rem; }
.day-heading { font: 700 1.28rem/1.2 var(--serif); margin-block: 12px 10px; }
.period-date::first-letter, .day-heading::first-letter { text-transform: uppercase; }
.day-group + .day-group { margin-top: 24px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.event-card > a { height: 100%; min-height: 151px; display: grid; grid-template-columns: minmax(91px, 30%) minmax(0, 1fr) auto; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.event-card > a:hover { border-color: #a7ad98; box-shadow: 0 4px 18px #243b2b12; }
.event-card > a:focus-visible { outline-offset: 1px; }
.event-card img { width: 100%; height: 100%; min-height: 100%; }
.event-art { display: grid; place-items: center; min-height: 100%; color: var(--clay-dark); background: var(--clay-light); }
.event-art svg { width: 31px; height: 31px; }
.event-content { padding: 13px 4px 13px 13px; min-width: 0; }
.event-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; font-size: .75rem; font-weight: 700; line-height: 1.15; }
.category { text-transform: uppercase; letter-spacing: .095em; color: var(--clay-dark); }
.event-card h3 { font: 700 1.28rem/1.06 var(--serif); margin-block: 6px 7px; overflow-wrap: anywhere; }
.event-time, .event-place { display: flex; gap: 5px; align-items: baseline; color: var(--muted); font-size: .86rem; line-height: 1.26; overflow-wrap: anywhere; }
.event-time { color: var(--ink); font-weight: 650; margin-bottom: 4px; }
.event-time svg, .event-place svg { align-self: start; width: 14px; height: 14px; }
.event-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.pill { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 5px; background: #eeeade; color: #514f42; font-size: .77rem; font-weight: 650; line-height: 1.16; overflow-wrap: anywhere; max-width: 100%; }
.pill.green { color: var(--green); background: var(--green-light); }
.pill svg { height: 13px; width: 13px; }
.card-next { align-self: center; padding: 0 9px 0 4px; color: var(--clay); }
.card-next svg { width: 17px; height: 17px; }
.discoveries { margin-top: 18px; padding-top: 23px; border-top: 1px solid var(--line); }
.discoveries h2 { margin-bottom: 12px; }
.discovery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.discovery { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.discovery img { width: 100%; height: clamp(126px, 24vw, 175px); }
.discovery-body { padding: 14px; }
.discovery h3 { font: 700 1.3rem/1.12 var(--serif); }
.discovery p { margin-top: 5px; color: var(--muted); font-size: .94rem; }
.discovery a, .market-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--clay-dark); font-size: .91rem; font-weight: 650; }
.discovery a:hover, .market-link:hover, .photo-credits a:hover { text-decoration: underline; }
.discovery a svg, .market-link svg { width: 16px; height: 16px; }
.discovery-links { display: grid; justify-items: start; margin-top: 7px; }
.section-page { padding-block: 22px 52px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; gap: 5px; font-weight: 650; font-size: .93rem; margin-bottom: 12px; }
.back-link svg { width: 16px; height: 16px; }
.back-link:hover { text-decoration: underline; }
.as-link { border: none; background: transparent; padding: 0; }
.page-heading { margin-bottom: 21px; }
.page-heading h1 { margin-top: 10px; }
.page-heading p { color: var(--muted); margin-top: 8px; max-width: 51ch; }
.feature-icon, .info-icon { display: grid; place-items: center; background: var(--green-light); color: var(--green); border-radius: 12px; width: 45px; height: 45px; flex: none; }
.page-heading .feature-icon { background: var(--clay-light); color: var(--clay-dark); }
.detail, .panel, .empty { background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.detail { overflow: hidden; }
.detail-visual { margin: 0; }
.detail-photo { width: 100%; height: clamp(180px, 46vw, 290px); }
[data-photo="hugo"] { object-position: center 27%; }
.photo-caption { padding: 6px 16px 0; font-size: .75rem; color: var(--muted); }
.detail-body, .panel { padding: clamp(17px, 4vw, 27px); }
.detail h1 { margin-top: 8px; overflow-wrap: anywhere; }
.detail h2 { margin-bottom: 8px; font-size: 1.45rem; }
.event-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 17px; border-block: 1px solid var(--line); padding-block: 16px; margin-block: 20px 19px; }
.info-row { display: flex; align-items: start; gap: 9px; min-width: 0; }
.info-row > div { min-width: 0; }
.info-icon { width: 35px; height: 35px; border-radius: 8px; }
.info-icon svg { width: 17px; height: 17px; }
.info-row dt { color: var(--muted); font-size: .8rem; font-weight: 650; }
.info-row dd { margin: 1px 0 0; overflow-wrap: anywhere; }
.info-row dd span { color: var(--muted); font-size: .88rem; }
.description { white-space: pre-wrap; overflow-wrap: anywhere; }
.discussion { margin-top: 16px; }
.discussion h2 { margin-bottom: 6px; }
.discussion-form { margin-top: 15px; border-block: 1px solid var(--line); padding-block: 16px; }
.discussion-form .field-hint { margin-top: 10px; }
#reply-to { font-weight: 650; margin-bottom: 8px; overflow-wrap: anywhere; }
.discussion-status:empty { display: none; }
.discussion-status, .discussion-messages, #admin-messages { margin-top: 12px; }
.discussion-message { border-top: 1px solid var(--line); padding: 12px 0 4px; }
.discussion-reply { margin: 9px 0 0 12px; padding-left: 12px; border-left: 2px solid var(--line); }
.message-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 8px; margin-bottom: 4px; overflow-wrap: anywhere; }
.discussion-message .button { margin-top: 4px; }
#admin-discussion summary { cursor: pointer; font-weight: 650; padding-block: 8px; }
#admin-message-count { color: var(--muted); font-size: .85rem; }
.detail-actions, .form-actions, .admin-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 9px; padding: 7px 13px; font-weight: 650; text-align: center; }
.button svg { width: 17px; height: 17px; }
.button.primary { color: white; background: var(--clay); }
.button.primary:hover { background: var(--clay-dark); }
.button.secondary { background: var(--green-light); border-color: #ccd9c9; }
.button.secondary:hover { background: #dce7da; }
.button.plain { text-decoration: underline; }
.button.danger { color: var(--clay-dark); border-color: #e5bbad; background: var(--clay-light); }
#manual-share { margin-top: 13px; }
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 25px 15px; margin-top: 10px; }
.empty p, .loading { color: var(--muted); }
.loading { padding-block: 42px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
label { display: block; min-width: 0; font-size: .92rem; font-weight: 650; }
.required { color: var(--clay); }
.optional, .field-hint { color: var(--muted); font-size: .83rem; font-weight: 450; }
.optional { margin-inline-start: 2px; }
.field-hint { display: block; }
.time-hint { margin-top: -8px; }
input:not([type="checkbox"]), select, textarea { display: block; width: 100%; min-width: 0; max-width: 100%; margin-top: 5px; border: 1px solid #c9cec0; background: #fffefa; color: var(--ink); border-radius: 8px; min-height: 46px; padding: 7px 9px; font-size: 1rem; font-weight: 450; }
input[type="file"] { min-height: 54px; padding: 9px; }
.illustration-preview { display: block; width: min(100%, 420px); max-height: 240px; object-fit: cover; margin-top: 10px; border: 1px solid var(--line); border-radius: 9px; }
.form-grid > label > .checkbox-label { margin-top: 8px; font-weight: 500; }
textarea { resize: vertical; }
.checkbox-label { align-self: end; min-height: 46px; display: flex; align-items: center; gap: 8px; }
input[type="checkbox"] { accent-color: var(--green); width: 20px; height: 20px; }
.form-actions .field-hint { flex-basis: 100%; }
.form-error { margin-top: 13px; color: var(--clay-dark); padding: 9px 11px; background: var(--clay-light); border-radius: 8px; }
.confirmation { padding-block: 35px; text-align: center; }
.confirmation .page-heading p, .confirmation .feature-icon { margin-inline: auto; }
.admin-toolbar { margin: 0 0 13px; }
.admin-group + .admin-group { margin-top: 11px; }
.admin-group h2 { font-size: 1.42rem; margin-bottom: 10px; }
.admin-group h2 span { color: var(--muted); font: 650 .85rem 'Segoe UI', sans-serif; }
.admin-group ul { margin: 0; padding: 0; list-style: none; }
.admin-group li + li { border-top: 1px solid var(--line); }
.admin-event { display: flex; align-items: center; justify-content: space-between; gap: 7px; width: 100%; padding: 9px 0; min-height: 46px; border: 0; background: transparent; text-align: left; overflow-wrap: anywhere; }
.admin-event:hover strong { text-decoration: underline; }
.admin-event small { display: block; color: var(--muted); }
.site-footer { border-top: 1px solid #e4ded2; color: var(--muted); font-size: .85rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; padding-block: 10px; }
.footer-inner span, .footer-inner a { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; }
.footer-inner a:hover { text-decoration: underline; }
.footer-inner svg { width: 16px; height: 16px; }
.photo-credits { padding-bottom: 12px; font-size: .8rem; }
.photo-credits a { text-decoration: underline; }
.toast { display: none; position: fixed; z-index: 3; bottom: max(14px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); max-width: calc(100% - 22px); padding: 9px 14px; background: var(--green); color: white; box-shadow: 0 4px 18px #182d2840; border-radius: 9px; }
.toast.visible { display: block; }

@media (max-width: 720px) {
  .wrap, .narrow { width: calc(100% - 36px); }
  .topbar { min-height: 64px; }
  .topbar nav a { padding-inline: 10px; font-size: .88rem; gap: 4px; }
  .topbar nav svg { width: 16px; height: 16px; }
  .nav-extra { display: none; }
  .hero { background-position: 60% 50%; }
  .hero-inner { padding-block: 43px; }
  .hero-location { font-size: .68rem; }
  .hero-copy { margin-top: 15px; font-size: 1rem; }
  .agenda { padding-block: 23px 36px; }
  .cards { grid-template-columns: 1fr; gap: 9px; }
  .period-date { font-size: .83rem; }
}
@media (max-width: 414px) {
  .wrap, .narrow { width: calc(100% - 28px); }
  .topbar nav { gap: 3px; }
  .topbar nav a { padding-inline: 8px; }
  .topbar nav a:not(.nav-propose) svg { display: none; }
  .brand { font-size: 1.03rem; gap: 6px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand-mark svg { width: 22px; height: 22px; }
  .event-card > a { grid-template-columns: minmax(83px, 28%) minmax(0, 1fr) auto; }
  .filter-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .filter-bar button { justify-content: flex-start; padding-inline: 11px; gap: 5px; font-size: .86rem; }
  .period-switch button { font-size: .88rem; padding-inline: 3px; }
  .period-switch button svg { display: none; }
  .discovery-grid { grid-template-columns: 1fr; }
  .form-grid, .event-info { grid-template-columns: 1fr; }
  .detail-actions .primary { flex: 1 0 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

.beta-note{display:flex;align-items:center;gap:10px;margin:16px 0 0;max-width:440px;color:#f8f4eb;font-size:15px;line-height:1.5}.beta-note span{flex:none;padding:6px 9px;border:1px solid #f2bd73;border-radius:999px;color:#f2bd73;font-size:12px;font-weight:800;letter-spacing:.04em}@media(max-width:620px){.beta-note{align-items:flex-start;flex-direction:column;gap:6px;font-size:14px}}
