/* Verbier Music — charte en profondeurs de gris, calée sur le logo noir et blanc.
   Le relief vient des écarts de gris (page < carte < élément en relief < survol), pas des bordures.
   Le rouge est réservé à ce qui appartient à l'association : ses activités, son étiquette, le bouton principal. */
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/static/space-grotesk.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/static/space-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --bg: #f3f3f1; --surface: #fff; --raised: #ebebe8; --hover: #e4e4e0;
  --text: #161618; --muted: #66666d; --faint: #8d8d94; --line: #e3e3df;
  --accent: #d52b1e; --accent-text: #fff; --accent-soft: #fbe6e3; --accent-on-soft: #a3221a;
  --ok: #1f7a4a; --warn: #b25a00; --danger: #b3261e;
  --warn-bg: #fff4e5; --flash-bg: #eaf5ee; --radius: 10px;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 1px 1px rgb(0 0 0 / .03);
  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141416; --surface: #1c1c20; --raised: #26262b; --hover: #2d2d33;
    --text: #f2f2f3; --muted: #a1a1a8; --faint: #7c7c84; --line: #2a2a30;
    --accent: #e5483b; --accent-text: #fff; --accent-soft: #3a1d1b; --accent-on-soft: #ff8f84;
    --ok: #5cc98b; --warn: #f0a24a; --danger: #ff6b61;
    --warn-bg: #2b2112; --flash-bg: #14281c;
    --shadow: none;
    color-scheme: dark;
  }
  img[src$="logo.png"] { filter: invert(1); }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
/* Liens : soulignement discret dans la couleur du texte, plein au survol. Jamais de rouge (on le confondait avec une faute). */
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); transition: text-decoration-color .15s, color .15s, background-color .15s; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.015em; }
h1 { font-size: 1.85rem; font-weight: 650; margin: 0 0 1rem; line-height: 1.15; }
h2 { font-size: 1.15rem; font-weight: 600; margin: 0 0 .75rem; }
main { max-width: 900px; margin: 0 auto; padding: 24px 16px 64px; }
main.wide { max-width: 1200px; }

header.top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 16px;
  background: var(--surface); border-bottom: 1px solid var(--line); }
header.top nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
header.top nav a { padding: 6px 10px; border-radius: 6px; text-decoration: none; color: var(--muted); }
header.top nav a:hover { color: var(--text); background: var(--hover); }
header.top nav a[aria-current] { color: var(--text); background: var(--raised); }
.brand img { display: block; height: 35px; width: auto; }
.who { display: flex; gap: 12px; align-items: center; font-size: .9rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; box-shadow: var(--shadow); }
.narrow { max-width: 420px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.stat .n { font-family: var(--display); font-size: 1.7rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat span:last-child { color: var(--muted); font-size: .85rem; }
.stat.accent { border-color: var(--accent); }
.criteria { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; margin-bottom: 12px; }
label small { color: var(--muted); font-size: .8rem; }
label.check { flex-direction: row; align-items: center; gap: 8px; }
input, select, textarea, button, .button { font: inherit; }
input, select, textarea { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); min-width: 0; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button, .button { display: inline-block; padding: 8px 16px; border-radius: 8px; font-weight: 550; border: 1px solid var(--text); background: var(--text); color: var(--bg); cursor: pointer; text-decoration: none; white-space: nowrap; }
button.secondary, .button.secondary { background: var(--raised); border-color: var(--raised); color: var(--text); }
button.secondary:hover, .button.secondary:hover { background: var(--hover); border-color: var(--hover); }
button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
button:disabled { opacity: .4; cursor: not-allowed; }
button.linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-decoration-color: var(--line); }
button.linkish.danger { color: var(--danger); background: none; }
form.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
form.inline select { padding: 4px 6px; }
form.inline button { padding: 4px 10px; font-size: .85rem; }

fieldset { border: 0; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); column-gap: 16px; }
legend { font-weight: 650; margin-bottom: 8px; }
.grid-form .span2 { grid-column: span 2; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.inline-form label { margin: 0; }
.span-all { width: 100%; }
fieldset > .span-all { grid-column: 1 / -1; }
.actions { display: flex; gap: 16px; align-items: center; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.filters label { flex-direction: row; align-items: center; margin: 0; gap: 8px; }
.spacer { flex: 1; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
tr.row-alert td { background: var(--warn-bg); }
.card table { border: 0; }

.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .8rem; border: 1px solid var(--line); }
.tag-admis { border-color: var(--ok); color: var(--ok); }
.tag-candidat { border-color: var(--warn); color: var(--warn); }
.tag-radie, .tag-exclu { border-color: var(--danger); color: var(--danger); }
.tag-demissionnaire { color: var(--muted); }

.ok { color: var(--ok); } .warn { color: var(--warn); } .muted { color: var(--muted); } .danger { color: var(--danger); }
.small { font-size: .85rem; }
.pre { white-space: pre-wrap; }
.empty { color: var(--muted); padding: 16px 0; }
.flash { background: var(--flash-bg); border-left: 3px solid var(--ok); padding: 10px 14px; border-radius: 6px; }
.error { background: var(--warn-bg); border-left: 3px solid var(--danger); padding: 10px 14px; border-radius: 6px; margin: 0 0 12px; }
ul.error { padding-left: 32px; }
.warn-box { background: var(--warn-bg); border-left: 3px solid var(--warn); padding: 10px 14px; border-radius: 6px; margin: 0 0 16px; }
.danger-zone { border-color: var(--danger); }
details.card summary { cursor: pointer; color: var(--danger); }
.secret { border-color: var(--accent); }
.password { font: 600 1.4rem ui-monospace, monospace; letter-spacing: .05em; user-select: all; }

body.landing main { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 8px; }
body.landing .logo { width: min(520px, 90vw); height: auto; }
body.landing p { color: var(--muted); }

@media (max-width: 640px) {
  .grid-form .span2 { grid-column: auto; }
  th, td { padding: 6px 8px; }
  header.top { gap: 8px; }
  header.top nav { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
  header.top nav a { flex: none; }
  .who { margin-left: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat .n { font-size: 1.3rem; }
}

/* Phase 3 */
.subnav { display: flex; gap: 4px; flex-wrap: wrap; margin: -4px 0 16px; border-bottom: 1px solid var(--line); }
.subnav a { padding: 6px 10px; text-decoration: none; color: var(--muted); }
.subnav a[aria-current] { color: var(--text); box-shadow: inset 0 -2px 0 var(--text); }
.checks { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 12px; }
.checks label.check { margin: 0; }
.months { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.months li { border: 1px solid var(--line); border-radius: 6px; padding: 6px 2px; text-align: center; font-size: .75rem; color: var(--muted); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.months li b { font-size: .95rem; color: var(--text); min-height: 1.2em; }
.months li.on { border-color: var(--ok); background: var(--flash-bg); }
@media (max-width: 640px) { .months { grid-template-columns: repeat(6, 1fr); } }

/* Phase 2 */
.inline-radio { display: inline-flex; margin: 0 12px 0 0; }
.paper { background: #fff; color: #111; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; max-width: 760px; }
.paper a { color: inherit; }
.paper .paper-logo { filter: none !important; display: block; margin-bottom: 24px; height: auto; }
.paper dl { margin-bottom: 16px; }
.paper dt { color: #555; }
.signatures { display: flex; gap: 48px; margin-top: 48px; flex-wrap: wrap; }
.signature { margin-top: 40px; }
@media print {
  body { background: #fff; }
  header.top, .no-print, .subnav, main > h1, .flash { display: none !important; }
  main { padding: 0; max-width: none; }
  .paper { border: 0; padding: 0; max-width: none; }
}

/* Phase 4 */
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.report { margin-bottom: 20px; }
table.report th, table.report td { padding: 4px 8px; }
table.report tr.total td { font-weight: 650; border-top: 1px solid #999; }
.paper table.report th { color: #555; }
.nowrap { white-space: nowrap; }

/* Phase 5 */
.dossier h3 { margin-top: 28px; border-bottom: 1px solid #ccc; padding-bottom: 4px; }
.dossier h4 { margin: 16px 0 6px; }
@media print { .dossier h3 { break-after: avoid; } .dossier table { break-inside: auto; } .dossier tr { break-inside: avoid; } }

/* Phase 6 : site public */
body.public main { max-width: 960px; }
header.site { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
header.site .brand img { display: block; height: 44px; width: auto; }
header.site nav { display: flex; gap: 4px; flex-wrap: wrap; }
header.site nav a { font-family: var(--display); font-weight: 500; padding: 6px 12px; text-decoration: none; color: var(--muted); border-radius: 6px; }
header.site nav a:hover { color: var(--text); background: var(--hover); }
header.site nav a[aria-current] { color: var(--text); background: var(--raised); }
header.site .lang-switch { font-family: var(--display); font-weight: 600; font-size: .85rem; letter-spacing: .04em; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; }
header.site .lang-switch:hover { color: var(--text); background: var(--hover); }
@media (max-width: 1080px) { header.site nav { order: 3; width: 100%; } header.site .lang-switch { order: 2; margin-left: auto; } }
body.public .button:not(.secondary) { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
body.public .button:not(.secondary):hover { filter: brightness(1.08); }
footer.site { border-top: 1px solid var(--line); padding: 16px; text-align: center; color: var(--muted); font-size: .85rem; }
footer.site p { margin: 4px 0; }
body.public section { margin-bottom: 32px; }
body.public .cols > div { min-width: 0; }
.partners { color: var(--muted); }
/* Champ piège anti-robots : hors écran, jamais rempli par un humain. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Agenda de la région */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.tag-cat-dj, .tag-cat-concert, .tag-cat-festival, .tag-cat-fete { border-color: var(--accent); }
.agenda-table { table-layout: fixed; min-width: 720px; }
.agenda-table td:nth-child(1) { width: 110px; }
.agenda-table td:nth-child(3) { width: 210px; }
.agenda-table td:nth-child(4) { width: 130px; }
.agenda-table td:nth-child(5) { width: 160px; }

/* Pages légales */
.legal { max-width: 760px; }
.legal h2 { margin-top: 28px; }
.legal dt { font-weight: 650; margin-top: 12px; }
.legal dd { margin: 4px 0 0; }
.lead-small { color: var(--muted); max-width: 720px; }
.event-visual { margin: 8px 0 0; }
.event-visual figcaption { font-size: .75rem; color: var(--muted); margin-top: 2px; }
.proposal .visual img { display: block; max-width: 240px; max-height: 240px; border-radius: var(--radius); margin: 8px 0 4px; }

/* Agenda : cartes en relief, date façon billet, couleur sourde par thème */
.events { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.event { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); transition: background-color .15s; }
.event:hover { background: color-mix(in srgb, var(--surface) 70%, var(--hover)); }
.event.ours { border-left: 3px solid var(--accent); }
.events.past .event { opacity: .65; }
.datebox { display: flex; flex-direction: column; align-items: center; align-self: start; background: var(--raised); border-radius: 10px; padding: 7px 2px 6px; text-align: center; }
.datebox b { font: 600 1.4rem/1 var(--display); font-variant-numeric: tabular-nums; }
.datebox span { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.datebox small { font-size: .66rem; color: var(--faint); margin-top: 3px; white-space: nowrap; }
.event-body { min-width: 0; }
.event-title { font: 600 1.02rem/1.3 var(--display); letter-spacing: -.01em; margin: 1px 0 0; }
.event-title a { text-decoration: none; }
.event-title a:hover { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.event-title .ext { color: var(--faint); font-weight: 400; transition: color .15s; }
.event-title a:hover .ext { color: var(--text); }
.event-meta { margin: 4px 0 0; font-size: .86rem; color: var(--muted); }
.event-meta em { font-style: normal; color: var(--warn); }
.event-body > p:not([class]) { margin: 8px 0 0; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cat, var(--faint)); margin-right: 7px; vertical-align: 1px; }
.cat-dj { --cat: #8b7cf6; } .cat-concert { --cat: #5aa9e6; } .cat-festival { --cat: #e0a03a; } .cat-fete { --cat: #d46fa0; }
.cat-famille { --cat: #57b894; } .cat-culture { --cat: #b48ad9; } .cat-sport { --cat: #4fb3a9; } .cat-gastronomie { --cat: #c9a24a; }
.event.ours .dot { --cat: var(--accent); }
.event-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.event-tags:empty { display: none; }
.pill { font-size: .74rem; line-height: 1.6; background: var(--raised); color: var(--muted); border-radius: 6px; padding: 1px 8px; text-decoration: none; }
.pill:hover { background: var(--hover); color: var(--text); }
.pill::after { content: " ↗"; color: var(--faint); }
.tag.tag-ours { font-size: .74rem; line-height: 1.6; background: var(--accent-soft); color: var(--accent-on-soft); border: 0; border-radius: 6px; padding: 1px 8px; }
.event-visual img { display: block; max-width: 100%; max-height: 280px; border-radius: 10px; }
h2.month { font: 600 .76rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 28px 0 10px; }
.chip { font-family: var(--display); font-weight: 500; background: var(--raised); border-radius: 999px; padding: 5px 13px; text-decoration: none; font-size: .85rem; color: var(--muted); }
.chip:hover { background: var(--hover); color: var(--text); }
.chip .n { margin-left: 7px; color: var(--faint); font-variant-numeric: tabular-nums; }
.chip.on { background: var(--text); color: var(--bg); }
.chip.on .n { color: color-mix(in srgb, var(--bg) 65%, var(--text)); }
@media (max-width: 640px) { .event { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 12px; } .datebox b { font-size: 1.2rem; } }

/* Accueil */
body.home main { max-width: 1120px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 40px 0 24px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 16px; }
.hero .logo { width: 100%; max-width: 440px; height: auto; justify-self: center; opacity: .95; }
.kicker { font: 500 .78rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 600px; margin: 0 0 22px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.hero-actions .button { padding: 11px 20px; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; gap: 8px; padding-top: 12px; } .hero .logo { display: none; } }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-head a { font-size: .9rem; color: var(--muted); text-decoration: none; }
.section-head a:hover { color: var(--text); }
/* Bandeau horizontal : défilement au doigt ou au trackpad, arrêt net sur chaque vignette, sans script. */
.strip { list-style: none; margin: 0 -16px; padding: 4px 16px 14px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 260px);
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 16px; scrollbar-width: thin; scrollbar-color: var(--raised) transparent; }
.tile { scroll-snap-align: start; }
.tile > a { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  text-decoration: none; box-shadow: var(--shadow); transition: transform .2s, background-color .2s; }
.tile > a:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--surface) 70%, var(--hover)); }
.tile.ours > a { border-color: var(--accent); }
.tile-img { position: relative; aspect-ratio: 16 / 10; background: color-mix(in srgb, var(--cat, var(--faint)) 22%, var(--raised)); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-ph { position: absolute; inset: auto 12px 12px auto; font: 600 1.1rem/1 var(--display); color: color-mix(in srgb, var(--cat, var(--faint)) 70%, var(--text)); opacity: .8; }
.tile-date { position: absolute; left: 10px; top: 10px; font: 600 .8rem/1 var(--display); background: rgb(15 15 17 / .78); color: #fff; padding: 6px 9px; border-radius: 8px; backdrop-filter: blur(4px); }
.tile.ours .tile-date { background: var(--accent); }
.tile-credit { position: absolute; right: 8px; bottom: 6px; font-size: .62rem; color: rgb(255 255 255 / .85); text-shadow: 0 1px 2px rgb(0 0 0 / .6); }
.tile-body { padding: 12px 14px 14px; }
.tile-body h3 { font: 600 .98rem/1.3 var(--display); margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-body p { margin: 0; font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.feature b { font: 600 .8rem/1 var(--display); color: var(--accent); letter-spacing: .08em; }
.feature h3 { font-size: 1.1rem; margin: 10px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--raised); border-radius: 16px; padding: 26px 28px; }
.cta h2 { font-size: 1.4rem; margin: 0 0 4px; }
.cta p { margin: 0; color: var(--muted); }
.cta .button.secondary { background: var(--surface); border-color: var(--surface); }

/* Agenda : vignette de l'office à droite de la carte */
.event.has-thumb { grid-template-columns: 56px minmax(0, 1fr) 128px; }
.thumb { margin: 0; position: relative; align-self: start; }
.thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; background: var(--raised); }
.thumb figcaption { font-size: .6rem; color: var(--faint); margin-top: 3px; text-align: right; }
@media (max-width: 640px) { .event.has-thumb { grid-template-columns: 48px minmax(0, 1fr) 84px; } }

/* Articles */
.articles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.article-card > a { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s, background-color .2s; }
.article-card > a:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--surface) 70%, var(--hover)); }
.article-img { aspect-ratio: 16 / 9; background: var(--raised); }
.article-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.article-body .kicker { margin: 0; }
.article-body h3 { font-size: 1.2rem; line-height: 1.2; margin: 0; }
.article-body p { margin: 0; color: var(--muted); font-size: .92rem; }
.article-body .more { margin-top: auto; padding-top: 8px; font: 500 .85rem var(--display); color: var(--text); }
.story { max-width: 760px; margin: 0 auto; }
.story h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); line-height: 1.08; letter-spacing: -.03em; }
.story .lead { font-size: 1.15rem; max-width: none; }
.story-img { margin: 24px 0; }
.story-img img { display: block; width: 100%; border-radius: 14px; }
.story-img figcaption { font-size: .75rem; color: var(--faint); margin-top: 6px; text-align: right; }
.story-body { font-size: 1.04rem; line-height: 1.7; }
.story-body h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.story-body p { margin: 0 0 16px; }
.story-back { margin-top: 40px; color: var(--muted); }
.article-preview { max-width: 320px; border-radius: 10px; }

/* Agenda : bascule liste / frise, et frise des six mois */
.view-switch { display: inline-flex; gap: 2px; background: var(--raised); border-radius: 10px; padding: 3px; margin: 4px 0 8px; }
.view-switch a { font: 500 .85rem var(--display); padding: 5px 14px; border-radius: 8px; text-decoration: none; color: var(--muted); }
.view-switch a[aria-current] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.frise-wrap { overflow-x: auto; margin: 8px -16px 24px; padding: 0 16px 8px; scrollbar-width: thin; scrollbar-color: var(--raised) transparent; }
.frise { display: block; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.frise .month-band rect { fill: var(--surface); }
.frise .month-band.odd rect { fill: color-mix(in srgb, var(--surface) 40%, var(--bg)); }
.frise .month-line { stroke: var(--line); stroke-width: 1; }
.frise .month-label { font: 600 12px var(--display); letter-spacing: .1em; text-transform: uppercase; fill: var(--faint); }
.frise .today { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 3; }
.frise .today-label { font-size: 10px; fill: var(--accent); }
.frise .bar { fill: var(--cat, var(--faint)); opacity: .9; }
.frise .ours .bar { fill: var(--accent); }
.frise g text { font-size: 11px; fill: var(--text); dominant-baseline: central; }
.frise a:hover .bar { opacity: 1; stroke: var(--text); stroke-width: 1; }
.frise a:hover text { text-decoration: underline; }
.frise-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 8px 0 4px; }
.frise-bar .view-switch { margin: 0; }
.frise-nav { display: flex; align-items: center; gap: 10px; }
.frise-nav strong { font: 600 1rem var(--display); min-width: 12ch; text-align: center; }
.frise-nav a, .frise-nav span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--raised); text-decoration: none; }
.frise-nav span { opacity: .35; }
.frise-nav a:hover { background: var(--hover); }
.frise-nav a.today-link { width: auto; padding: 0 12px; font: 500 .85rem var(--display); }
.frise .day-col rect { fill: var(--surface); }
.frise .day-col.weekend rect { fill: color-mix(in srgb, var(--surface) 40%, var(--bg)); }
.frise .day-col.is-today rect { fill: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.frise .day-name { font: 500 10px var(--display); letter-spacing: .06em; text-transform: uppercase; fill: var(--faint); }
.frise .day-num { font: 600 13px var(--display); fill: var(--text); }
.frise .day-col.is-today .day-num, .frise .day-col.is-today .day-name { fill: var(--accent); }
.frise g text.inside { fill: #111; font-weight: 500; }
.frise .ours text.inside { fill: #fff; }

/* Contenu repris du site actuel : galerie, partenaires, comité */
.strip.gallery { grid-auto-columns: minmax(260px, 320px); }
.strip.gallery li { scroll-snap-align: start; }
.strip.gallery figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--raised); }
.strip.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.strip.gallery figure:hover img { transform: scale(1.03); }
.strip.gallery figcaption { position: absolute; left: 10px; bottom: 10px; font: 600 .75rem var(--display); color: #fff; background: rgb(15 15 17 / .7); padding: 4px 9px; border-radius: 8px; }
.partner-wall { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.partner-wall a { display: grid; place-items: center; height: 88px; padding: 14px; background: #fff; border-radius: 12px; border: 1px solid var(--line); transition: transform .2s; }
.partner-wall a:hover { transform: translateY(-2px); }
.partner-wall img { max-width: 100%; max-height: 56px; object-fit: contain; }
.team-section { margin-top: 40px; }
.team { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: center; box-shadow: var(--shadow); }
.member img, .member .avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 12px; background: var(--raised); }
.member .avatar { display: grid; place-items: center; font: 600 1.6rem var(--display); color: var(--muted); }
.member h3 { font-size: 1.05rem; margin: 0 0 2px; }
.member h3 a { text-decoration: none; }
.member p { margin: 0; color: var(--muted); font-size: .88rem; }
.fees-info { margin: 0 0 16px; }
.fees-info ul { margin: 0 0 8px; padding-left: 18px; }
.fees-info h2 { font-size: 1.05rem; }
/* Type d'article : seul un projet de l'association porte le rouge */
.tag.kind-projet, .tag.kind-soutien, .tag.kind-region { align-self: flex-start; font-size: .72rem; line-height: 1.6; border: 0; border-radius: 6px; padding: 1px 8px; margin-bottom: 8px; }
.tag.kind-projet { background: var(--accent-soft); color: var(--accent-on-soft); }
.tag.kind-soutien { background: var(--raised); color: var(--text); }
.tag.kind-region { background: var(--raised); color: var(--muted); }
.story > .tag { display: inline-block; }

/* Commerces : grille des 7 jours */
.shop-grid td.day { white-space: nowrap; font-size: .85rem; text-align: center; }
.shop-grid td.open { color: var(--ok); }
.shop-grid td.open.src-google { color: var(--muted); }
.shop-grid td.open.late { font-weight: 600; }
.shop-grid td.closed { color: var(--danger); }
.shop-grid td.closed.src-google { color: var(--faint); }
.shop-grid td.unknown { color: var(--faint); }
.ok-box { background: var(--raised); border-left: 3px solid var(--ok); padding: 10px 14px; border-radius: 6px; margin: 0 0 16px; }
.message-box { width: 100%; font: inherit; font-size: .9rem; }
fieldset.radio-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
fieldset.radio-row legend { width: 100%; margin-bottom: 6px; }
label.check input[type="checkbox"], label.check input[type="radio"] { flex: none; width: 18px; height: 18px; padding: 0; margin: 0; }

/* Nos meilleures publications Instagram */
.insta-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.insta-grid a { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--raised); }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s, filter .3s; }
.insta-grid a:hover img { transform: scale(1.04); filter: brightness(.8); }
.insta-stats { position: absolute; left: 8px; bottom: 8px; font: 600 .75rem var(--display); color: #fff; background: rgb(15 15 17 / .7); padding: 3px 8px; border-radius: 8px; }
.insta-video { position: absolute; right: 8px; top: 8px; color: #fff; font-size: .8rem; text-shadow: 0 1px 3px rgb(0 0 0 / .6); }

/* Profils d'artistes */
.artists { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.artist-card > a { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; box-shadow: var(--shadow); height: 100%; }
.artist-card > a:hover { background: color-mix(in srgb, var(--surface) 70%, var(--hover)); }
.artist-card.pending > a { border-style: dashed; }
.artist-card h3 { font-size: 1rem; margin: 0; }
.artist-card p { margin: 2px 0 4px; color: var(--muted); font-size: .82rem; }
.artist-card .avatar, .artist-profile .avatar { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--raised); font: 600 1.05rem var(--display); color: var(--muted); }
.artist-profile { max-width: 760px; }
.artist-profile header { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.artist-profile header .avatar { width: 88px; height: 88px; font-size: 1.6rem; }
.artist-profile h1 { margin: 0 0 4px; }
.artist-profile header p { margin: 0; }
.member.wide { grid-column: 1 / -1; display: flex; gap: 16px; align-items: center; text-align: left; }
.member.wide .avatar { margin: 0; flex: none; }
textarea.copy { width: 100%; font: .85rem/1.5 ui-monospace, monospace; }
/* Barre du comité sur les pages publiques (seulement connecté) */
.committee-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 6px 16px; background: var(--accent-soft); color: var(--accent-on-soft); font: 500 .8rem var(--display); }
.committee-bar nav { display: flex; gap: 14px; flex-wrap: wrap; }
.committee-bar a { color: inherit; }
.who .to-site { padding: 4px 10px; border-radius: 8px; background: var(--raised); text-decoration: none; }
.who .to-site:hover { background: var(--hover); }
img.avatar { object-fit: cover; border-radius: 50%; }
.artist-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.gigs { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 6px; }
.gigs li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.gigs time { font: 600 .85rem var(--display); font-variant-numeric: tabular-nums; color: var(--muted); }
@media (max-width: 640px) { .gigs li { grid-template-columns: 1fr auto; } .gigs time { grid-column: 1 / -1; } }
.import-preview input { width: 100%; min-width: 90px; padding: 4px 6px; }
.send-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.button.whatsapp { background: #1f9e57; border-color: #1f9e57; color: #fff; }

/* Carte de l'agenda (MapLibre + swisstopo) */
.carte-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 8px 0 4px; }
.carte-bar .view-switch { margin: 0; }
.view-switch button { font: 500 .85rem var(--display); padding: 5px 14px; border-radius: 8px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.view-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.carte { height: min(70vh, 560px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 8px 0; background: var(--raised); }
.carte .maplibregl-popup-content { color: #161618; background: #fff; border-radius: 10px; padding: 12px 14px; font-size: .9rem; }
.carte-popup ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.carte-popup .muted { color: #66666d; }
.carte-popup a { color: #161618; }
.carte-liste h3 { font-size: 1rem; margin: 14px 0 4px; }
.carte-liste ul { margin: 0; padding-left: 18px; }
.carte-soir { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 14px; margin: 8px 0; }
.carte-soir input[type="date"] { width: auto; }
.carte-legende { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; }
.etat { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; border: 1px solid #161618; }
.etat-late { background: #1f9d55; } .etat-open { background: #9ad08c; } .etat-closed { background: #d64545; } .etat-unknown { background: #b0b0b5; }

/* « Ce soir » */
.tonight-form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; }
.tonight-form .span-all { flex-basis: 100%; margin: 0; }
.tonight-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.tonight-item { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.tonight-item p { margin: 2px 0 0; }
.tonight-item .dist { white-space: nowrap; font: 600 .85rem var(--display); color: var(--muted); }
/* Agenda en frise : la carte de la même période à côté, sur grand écran seulement (téléphone et tablette : la vue Carte est à un clic). */
.split-map { display: none; }
@media (min-width: 1280px) {
  body.agenda-wide main { max-width: 1560px; }
  .agenda-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 32%); gap: 24px; align-items: start; }
  .split-main .frise { max-width: 100%; height: auto; }
  .split-map { display: block; position: sticky; top: 16px; }
  .split-map .carte { height: calc(100vh - 150px); min-height: 420px; margin-top: 4px; }
}
