/* Ville de Champignac: one stylesheet for every page. */

:root {
  --blue: #1f4e8c;
  --blue-dark: #163a69;
  --blue-deep: #0f2a4d;
  --blue-tint: #edf2f9;
  --blue-line: #c9d6e8;
  --ink: #1b1f24;
  --grey: #56606b;
  --panel: #f5f7fa;
  --rule: #e2e6eb;
  --red: #b3412c;
  --green: #1d6b45;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --wrap: 1180px;
  --gutter: 32px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; }
sup { line-height: 0; font-size: .7em; }

a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 700; margin: 0 0 16px; letter-spacing: -0.025em; }
h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; margin: 0 0 16px; }
h3 { font-size: 19px; font-weight: 650; margin: 0 0 8px; }
p { margin: 0 0 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: #fff; color: var(--blue); padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 600; box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Demo banner */
.demo { background: #fff4d6; color: #4f3b00; font-size: 14px; line-height: 1.45; border-bottom: 1px solid #f0e2b4; }
.demo .wrap { padding-top: 8px; padding-bottom: 8px; display: flex; gap: 6px 16px; flex-wrap: wrap; justify-content: center; text-align: center; }
.demo a { color: inherit; font-weight: 600; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 16px 32px; min-height: 84px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; padding: 12px 0; }
.brand:hover { color: var(--ink); }
.brand svg { width: 40px; height: 48px; flex: none; }
.brand-name { display: block; font-weight: 700; font-size: 20px; line-height: 1.1; letter-spacing: -0.01em; }
.brand-sub { display: block; font-size: 13px; color: var(--grey); margin-top: 3px; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: var(--r-sm);
  color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500;
}
.site-nav a:hover { background: var(--panel); color: var(--blue); }
.site-nav a[aria-current="page"] { color: var(--blue); background: var(--blue-tint); font-weight: 600; }

/* Home hero */
.hero { background: linear-gradient(180deg, var(--blue-tint), #fff 92%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); }
.lead { font-size: 20px; line-height: 1.55; color: #3a434d; max-width: 34em; }
.hero-art { width: 100%; height: auto; display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none;
  background: var(--blue); color: #fff; border: 1px solid var(--blue);
}
.button:hover { background: var(--blue-dark); color: #fff; }
.button.ghost { background: #fff; color: var(--blue); border-color: var(--blue-line); }
.button.ghost:hover { background: var(--blue-tint); color: var(--blue-dark); }

/* Sections */
.section { padding: 56px 0; }
.section.tint { background: var(--panel); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--grey); }

/* Tiles (démarches) */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%;
  background: #fff; border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 24px;
  transition: border-color .15s, box-shadow .15s;
}
.tile:hover { border-color: var(--blue-line); box-shadow: 0 6px 24px rgba(31, 78, 140, .08); }
.tile h3 { margin: 8px 0 0; font-size: 18px; }
.tile h3 a { color: var(--ink); text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.tile h3 a:focus-visible { outline: none; }
.tile:has(a:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.tile p { margin: 0; color: var(--grey); font-size: 15px; line-height: 1.5; }
.tile .more { margin-top: auto; padding-top: 8px; color: var(--blue); font-weight: 600; font-size: 15px; }
.icon {
  width: 48px; height: 48px; border-radius: var(--r-md); background: var(--blue-tint); color: var(--blue);
  display: grid; place-items: center; flex: none;
}
.icon svg { width: 26px; height: 26px; }

/* Info strip on home */
.strip { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.card { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 28px; }
.card.blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.card.blue a { color: #fff; }
.card.blue p { color: #dce6f3; }
.card.soft { background: var(--blue-tint); border-color: var(--blue-tint); }

.hours { width: 100%; border-collapse: collapse; font-size: 16px; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.hours th { font-weight: 600; padding-right: 16px; white-space: nowrap; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.muted { color: var(--grey); }
.small { font-size: 15px; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.news-card { border-top: 3px solid var(--blue); padding-top: 16px; }
.news-card time, .news-item time { color: var(--grey); font-size: 14px; font-weight: 500; }
.news-card h3 { margin: 6px 0 8px; font-size: 19px; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--blue); text-decoration: underline; }
.news-card p { color: var(--grey); font-size: 16px; margin: 0; }
.tag {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--blue);
  background: var(--blue-tint); border-radius: 999px; padding: 2px 10px; margin-right: 8px;
}

/* Page head (inner pages) */
.page-head { background: var(--blue-tint); border-bottom: 1px solid var(--blue-line); }
.page-head .wrap { padding-top: 32px; padding-bottom: 40px; }
.page-head .lead { margin: 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--grey); }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--grey); }
.crumbs a { color: var(--grey); }

/* Two-column article layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 48px; padding-bottom: 72px; align-items: start; }
.prose { max-width: 720px; }
.prose > section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--rule); }
.prose > section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.prose h3 { margin-top: 28px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--blue); }

.aside { position: sticky; top: 24px; display: grid; gap: 16px; }
.aside .card { padding: 24px; }
.aside h2 { font-size: 18px; margin-bottom: 12px; }
.aside ul { list-style: none; padding: 0; margin: 0; }
.aside li { padding: 8px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.aside li:first-child { border-top: 0; padding-top: 0; }
.aside .card.blue h2 { color: #fff; }
.aside .card p:last-child { margin-bottom: 0; }

.toc a { text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--blue); text-decoration: underline; }

/* Key facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; padding: 0; }
.facts div { background: var(--panel); border-radius: var(--r-md); padding: 16px; }
.facts dt { font-size: 14px; color: var(--grey); margin-bottom: 2px; }
.facts dd { margin: 0; font-weight: 650; font-size: 17px; line-height: 1.35; }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; padding: 0 !important; margin: 24px 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 20px 52px; margin: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.steps > li::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--blue-line); }
.steps > li:last-child::after { display: none; }
.steps strong { display: block; font-size: 17px; }

.notice {
  display: flex; gap: 14px; background: var(--blue-tint); border-left: 4px solid var(--blue);
  border-radius: 0 var(--r-md) var(--r-md) 0; padding: 16px 20px; margin: 24px 0;
}
.notice.warn { background: #fdf0ec; border-left-color: var(--red); }
.notice p { margin: 0; }
.notice svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--blue); }
.notice.warn svg { color: var(--red); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--rule); border-radius: var(--r-md); }
table.data { width: 100%; border-collapse: collapse; font-size: 16px; }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--rule); }
table.data thead th { background: var(--panel); font-weight: 600; font-size: 15px; }
table.data tbody tr:last-child td, table.data tbody tr:last-child th { border-bottom: 0; }
table.data tbody th { font-weight: 500; }

/* Waste week */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 24px 0; list-style: none; padding: 0 !important; }
.week li { margin: 0; background: var(--panel); border-radius: var(--r-sm); padding: 10px 6px 12px; text-align: center; font-size: 14px; min-height: 104px; }
.week b { display: block; font-size: 14px; margin-bottom: 8px; }
.bin { display: block; width: 28px; height: 32px; margin: 0 auto 4px; }
.bin-label { display: block; font-size: 12px; line-height: 1.3; color: var(--grey); }

/* People */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; list-style: none; padding: 0 !important; margin: 24px 0; }
.person { display: flex; gap: 16px; align-items: center; background: var(--panel); border-radius: var(--r-lg); padding: 16px; margin: 0 !important; }
.person.lead-person { grid-column: 1 / -1; background: var(--blue-tint); }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 18px; letter-spacing: .02em;
}
.person p { margin: 0; font-size: 15px; color: var(--grey); line-height: 1.4; }
.person strong { display: block; font-size: 17px; color: var(--ink); }

/* Contact */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 48px; }
.ways .card { display: flex; flex-direction: column; gap: 8px; }
.ways h2 { font-size: 21px; margin: 8px 0 0; }
.ways p { margin: 0; }
.big { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.big a { text-decoration: none; }

.map { width: 100%; height: auto; display: block; border-radius: var(--r-lg); border: 1px solid var(--rule); background: #f3f1ea; }

/* News page */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-item { padding: 32px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 32px; }
.news-item:first-child { border-top: 0; padding-top: 0; }
.news-item h2 { font-size: 24px; margin: 0 0 10px; }
.news-item p { margin: 0 0 10px; }
.news-item p:last-child { margin: 0; }

/* Footer */
.site-footer { background: var(--blue-deep); color: #d5dfec; font-size: 15px; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.site-footer h2 { font-size: 16px; color: #fff; margin: 0 0 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }
.site-footer a:hover { color: #fff; text-decoration-color: #fff; }
.site-footer p { margin: 0 0 8px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.footer-brand svg { width: 32px; height: 38px; }
.footer-brand span { color: #fff; font-weight: 700; font-size: 18px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; font-size: 14px; color: #b8c6d9; }
.site-footer :focus-visible { outline-color: #fff; }

/* Room for the chat bubble at the bottom right */
.site-footer .footer-base { padding-bottom: 72px; }

@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .aside .toc { display: none; }
  .aside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

@media (max-width: 860px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; padding-bottom: 32px; }
  .hero-art { max-width: 440px; }
  .lead { font-size: 18px; }
  .strip, .ways, .footer-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .site-header .wrap { min-height: 0; gap: 0 16px; }
  .site-nav { margin-left: 0; width: 100%; border-top: 1px solid var(--rule); padding: 8px 0; }
  .site-nav ul { gap: 2px; }
  .site-nav ul { gap: 0; flex-wrap: nowrap; }
  .site-nav a { padding: 6px 7px; font-size: 14.5px; white-space: nowrap; }
  .site-nav li:first-child a { margin-left: -7px; }
}

@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { flex-direction: row; flex-wrap: wrap; align-items: flex-start; padding: 18px; gap: 4px 16px; }
  .tile .icon { width: 44px; height: 44px; }
  .tile > div { flex: 1; min-width: 0; }
  .tile h3 { margin: 0 0 4px; }
  .tile .more { display: none; }
  .facts { grid-template-columns: 1fr; }
  .week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
  .week li { padding: 8px 2px; min-height: 92px; }
  .bin { width: 22px; height: 26px; }
  .bin-label { font-size: 11px; }
  .card { padding: 20px; }
  table.data th, table.data td { padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media print {
  .demo, .site-nav, .site-footer, #vilnius-widget-container { display: none; }
}
