/* ==========================================================================
   APE Gony & Plein Soleil
   A school-fair look: sunny yellow, coral, sky blue, pennants and confetti.
   Fredoka for headings, Nunito for text, both self-hosted (SIL OFL), so the
   CSP stays 'self' and nothing loads from a third party.
   ========================================================================== */

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  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: "Fredoka";
  src: url("/fonts/fredoka-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  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: "Nunito";
  src: url("/fonts/nunito-latin-ext.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  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: #fffbf2;
  --surface: #ffffff;
  --sunken: #fff3dc;
  --ink: #2d2340;
  --ink-soft: #5e5470;
  --ink-faint: #8f86a0;
  --line: #f0e3cc;
  --line-strong: #e2cfae;

  --sun: #ffc93c;
  --sun-strong: #e08e00;
  --sun-soft: #fff0c4;
  --coral: #ff6b6b;
  --coral-soft: #ffe1df;
  --sky: #4dabf7;
  --sky-soft: #dcefff;
  --mint: #3fbf6a;
  --mint-soft: #dcf6e4;
  --grape: #9775fa;
  --grape-soft: #ece5ff;

  /* Germaine Gony (maternelle): coral. Plein Soleil (élémentaire): sky. Both: grape. */
  --gony: var(--coral);
  --gony-soft: var(--coral-soft);
  --gony-ink: #c23a3a;
  --plein: var(--sky);
  --plein-soft: var(--sky-soft);
  --plein-ink: #1c6fb3;
  --both: var(--grape);
  --both-soft: var(--grape-soft);
  --both-ink: #6a47d6;

  --ok: #2f9e5a;
  --ok-soft: var(--mint-soft);
  --danger: #d6453a;
  --danger-soft: #fde2df;

  --radius: 20px;
  --radius-small: 12px;
  --shadow: 0 2px 0 rgba(45, 35, 64, 0.06), 0 10px 30px -12px rgba(45, 35, 64, 0.18);
  --shadow-pop: 0 4px 0 rgba(45, 35, 64, 0.9);
  --display: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif;
  --font: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shell: 1160px;
}

/* --- reset ---------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--both-ink);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
}

h2 {
  font-size: 1.45rem;
  margin-top: 1.5em;
}

.card > h2:first-child {
  margin-top: 0;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.2em;
}

/* `hidden` must win over any display set by a class. */
[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--surface);
  padding: 0.5rem 1rem;
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}

/* --- shell ---------------------------------------------------------------- */

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 16px;
}

.page {
  padding-top: 2rem;
  padding-bottom: 4rem;
  min-height: 60vh;
}

.site-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand__logo {
  width: 56px;
  height: 56px;
  flex: none;
  transition: transform 0.4s ease;
}

.brand:hover .brand__logo {
  transform: rotate(-8deg);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
}

.amp {
  color: var(--coral);
}

.brand__text small {
  color: var(--ink-soft);
}

.site-head__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-head__actions form {
  margin: 0;
}

.who {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: right;
  font-weight: 600;
}

.who small {
  font-weight: 400;
  color: var(--ink-soft);
}

.espace-nav {
  border-top: 1px solid var(--line);
}

.espace-nav__inner {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
}

.espace-nav a {
  padding: 0.7rem 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.espace-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--sun);
  font-weight: 600;
}

.site-foot {
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.9rem;
  padding: 1.5rem 0;
}

.site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.site-foot p,
.site-foot form {
  margin: 0;
}

.site-foot a,
.site-foot .link-quiet {
  color: var(--ink-soft);
}

/* --- buttons and links ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:hover {
  background: #ffbe1a;
}

/* The chunky, sticker-like call to action of the public pages. */
.btn--pop {
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow-pop);
}

.btn--pop:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ink);
}

.btn--pop:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--ink);
}

.btn--light {
  background: var(--surface);
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow-pop);
}

.btn--light:hover {
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ink);
}

.btn--big {
  padding: 0.85rem 1.5rem;
  font-size: 1.08rem;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--small {
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

.btn--ghost:hover {
  background: var(--sunken);
}

.btn--danger {
  background: var(--danger);
  color: #fff;
}

.btn--danger:hover {
  background: #a33522;
}

.link-quiet {
  color: var(--ink-soft);
  text-decoration: none;
}

.link-quiet:hover {
  color: var(--ink);
  text-decoration: underline;
}

.link-danger {
  background: none;
  border: 0;
  padding: 0;
  color: var(--danger);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.link-danger:hover {
  text-decoration: underline;
}

/* --- page head, notices, cards -------------------------------------------- */

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.page-head__intro {
  margin: 0;
  color: var(--ink-soft);
  max-width: 62ch;
}

.page-head__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-head__actions form {
  margin: 0;
}

.notice {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-small);
  background: var(--sun-soft);
  margin: 0 0 1rem;
}

.notice--ok {
  background: var(--ok-soft);
  color: #1f7a43;
}

.notice--error {
  background: var(--danger-soft);
  color: #b0342a;
}

.notice--dev {
  background: var(--both-soft);
  border: 1px dashed var(--both);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}

.card--fold > summary {
  cursor: pointer;
  font-weight: 650;
}

.card--fold[open] > summary {
  margin-bottom: 1rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.split .card {
  margin-bottom: 0;
}

.split + h2 {
  margin-top: 2rem;
}

.empty,
.hint {
  color: var(--ink-soft);
}

.empty {
  padding: 1rem 0;
}

.hint {
  font-size: 0.92rem;
  margin-top: 0;
}

/* --- badges ---------------------------------------------------------------- */

.badge,
.status,
.tag,
.role {
  display: inline-block;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: middle;
}

.badge--gony {
  background: var(--gony-soft);
  color: var(--gony-ink);
}

.badge--plein_soleil {
  background: var(--plein-soft);
  color: var(--plein-ink);
}

.badge--both {
  background: var(--both-soft);
  color: var(--both-ink);
}

.badge--kind {
  background: var(--sunken);
  color: var(--ink-soft);
}

.badge--draft {
  background: var(--sunken);
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.badge--live {
  background: var(--ok-soft);
  color: #1f7a43;
}

.badge--board {
  background: var(--danger-soft);
  color: #b0342a;
}

.tag {
  background: var(--sun-soft);
  color: #8a5a00;
  text-decoration: none;
}

.role {
  background: var(--sunken);
  color: var(--ink-soft);
}

.role--president,
.role--co_president {
  background: var(--sun-soft);
  color: #8a5a00;
}

.role--treasurer {
  background: var(--ok-soft);
  color: #1f7a43;
}

.role--secretary {
  background: var(--plein-soft);
  color: var(--plein-ink);
}

.status--to_contact {
  background: var(--sunken);
  color: var(--ink-soft);
}

.status--contacted {
  background: var(--plein-soft);
  color: var(--plein-ink);
}

.status--promised {
  background: var(--sun-soft);
  color: #8a5a00;
}

.status--collected {
  background: var(--ok-soft);
  color: #1f7a43;
}

.status--declined {
  background: var(--danger-soft);
  color: #b0342a;
}

/* --- event cards (members' dashboard) ------------------------------------- */

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.event-card:hover {
  transform: translateY(-2px);
}

.event-card__link {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.event-card__media {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.95);
  background: var(--sun);
}

.event-card__media--gony {
  background: linear-gradient(135deg, var(--gony), #f2a28f);
}

.event-card__media--plein_soleil {
  background: linear-gradient(135deg, var(--plein), #7fbde3);
}

.event-card__media--both {
  background: linear-gradient(135deg, var(--gony), var(--sun) 50%, var(--plein));
}

.event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card__body {
  padding: 1rem 1.1rem 1.2rem;
}

.event-card__body h3 {
  font-size: 1.15rem;
  margin: 0.4rem 0 0.35rem;
}

.event-card__badges {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin: 0;
}

.event-card__when {
  margin: 0;
  font-weight: 600;
}

.event-card__where,

.event-card__price {
  margin: 0.15rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* --- forms ------------------------------------------------------------------ */

.form {
  display: grid;
  gap: 1rem;
}

.form--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.field--grow {
  flex: 1 1 220px;
}

.field__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-small);
  padding: 0.55rem 0.7rem;
  width: 100%;
  min-width: 0;
}

input[type="checkbox"] {
  width: auto;
  accent-color: var(--sun-strong);
}

input[type="file"] {
  border-style: dashed;
  background: var(--sunken);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sun);
  outline: none;
  box-shadow: 0 0 0 3px var(--sun-soft);
}

.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form > .btn {
  justify-self: start;
}

.auth {
  max-width: 440px;
  margin: 2rem auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.code-input {
  font-size: 1.6rem;
  letter-spacing: 0.4em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.danger {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.danger summary {
  color: var(--danger);
  cursor: pointer;
}

.danger form {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* --- tabs ------------------------------------------------------------------- */

.tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.tabs a {
  padding: 0.6rem 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tabs a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--sun);
  font-weight: 650;
}

.tabs__count {
  background: var(--sunken);
  border-radius: 999px;
  padding: 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 650;
}

/* --- tables ----------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card .table-wrap {
  border-radius: var(--radius-small);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  background: var(--sunken);
}

.table tr:last-child td {
  border-bottom: 0;
}

.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.table__actions {
  white-space: nowrap;
}

.table__actions form {
  display: inline;
  margin-left: 0.5rem;
}

.table--lots td {
  min-width: 110px;
}

.table--lots input,
.table--lots select {
  padding: 0.35rem 0.5rem;
  font-size: 0.9rem;
}

.input--money {
  max-width: 7.5rem;
  text-align: right;
}

.status-select {
  font-weight: 650;
  border: 0;
}

.positive {
  color: var(--ok);
}

.negative {
  color: var(--danger);
}

.past {
  margin-top: 1.5rem;
}

.past summary {
  cursor: pointer;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

/* --- lists ------------------------------------------------------------------ */

.stats {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.stats li {
  background: var(--sunken);
  border-radius: var(--radius-small);
  padding: 0.75rem 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.stats strong {
  display: block;
  font-size: 1.35rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stats strong.positive {
  color: var(--ok);
}

.stats strong.negative {
  color: var(--danger);
}

.checklist,
.people,
.docs,
.plain-list,
.timeline,
.member-grid {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.checklist li:last-child {
  border-bottom: 0;
}

.checklist__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checklist .checklist__edit {
  display: block;
}

.checklist__edit .form--inline {
  margin: 0;
}

.picker {
  position: relative;
}

.picker summary {
  cursor: pointer;
  padding: 0.55rem 0.8rem;
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  list-style-position: inside;
}

.picker__list {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.4rem;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  max-height: 14rem;
  overflow-y: auto;
}

.checklist form {
  margin: 0;
}

.tick {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid var(--line-strong);
  background: var(--surface);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.tick:hover {
  border-color: var(--ok);
}

.is-done .tick {
  background: var(--ok);
  border-color: var(--ok);
}

.is-done .checklist__title {
  text-decoration: line-through;
  color: var(--ink-faint);
}

.checklist__meta {
  color: var(--ink-soft);
  font-size: 0.88rem;
  text-align: right;
}

.late {
  color: var(--danger);
  font-weight: 650;
}

.people li,
.docs li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.people li:last-child,
.docs li:last-child {
  border-bottom: 0;
}

.people form,
.docs form {
  margin: 0 0 0 auto;
}

.docs__title {
  font-weight: 650;
}

.docs__meta {
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.plain-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

.plain-list li:last-child {
  border-bottom: 0;
}

.plain-list small,
.timeline small {
  color: var(--ink-soft);
}

.timeline li {
  padding: 0.75rem 0 0.75rem 1rem;
  border-left: 3px solid var(--sun-soft);
  margin-left: 0.25rem;
}

.timeline li div {
  margin-top: 0.25rem;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.member--inactive {
  opacity: 0.6;
}

.member__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.member__email {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  word-break: break-all;
}

.member__projects {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin: 0.75rem 0 0;
}

.member__projects small {
  color: var(--ink-faint);
}

.member details {
  margin-top: 0.75rem;
}

.member summary {
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.member details .form {
  margin-top: 0.75rem;
}

/* --- finances ------------------------------------------------------------------- */

.report-due {
  background: var(--danger-soft);
  border-left: 5px solid var(--danger);
  border-radius: var(--radius-small);
  padding: 0.8rem 1rem;
  margin-bottom: 1.25rem;
}

.stats small {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink-faint);
}

.stats--big strong {
  font-size: 1.7rem;
}

.make-actual {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.make-actual .input--money {
  width: 6.5rem;
  padding: 0.3rem 0.5rem;
}

.table small {
  color: var(--ink-faint);
}

.table tfoot th {
  background: var(--sunken);
  color: var(--ink);
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
}

.balance-cell {
  width: 160px;
}

.balance-bar {
  width: 140px;
  height: 14px;
  display: block;
}

.balance-bar__axis {
  stroke: var(--line-strong);
  stroke-width: 1.5;
}

.balance-bar__plus {
  fill: var(--mint);
}

.balance-bar__minus {
  fill: var(--danger);
}

a.badge {
  text-decoration: none;
}

/* --- meetings and calendar ------------------------------------------------------ */

.card--spaced {
  margin-top: 1.25rem;
}

/* One colour per counterpart, reused by badges, chips and the legend. */
.badge--cp-gony,
.chip--cp-gony {
  background: var(--gony-soft);
  color: var(--gony-ink);
}

.badge--cp-plein_soleil,
.chip--cp-plein_soleil {
  background: var(--plein-soft);
  color: var(--plein-ink);
}

.badge--cp-town_hall,
.chip--cp-town_hall {
  background: var(--both-soft);
  color: var(--both-ink);
}

.badge--cp-internal,
.chip--cp-internal {
  background: var(--sun-soft);
  color: #8a5a00;
}

.badge--cp-other,
.chip--cp-other {
  background: var(--sunken);
  color: var(--ink-soft);
}

.calendar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}

.calendar__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.calendar__head h2 {
  margin: 0;
  min-width: 10ch;
  text-align: center;
}

.calendar__head h2::first-letter {
  text-transform: uppercase;
}

.calendar__grid {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  overflow: hidden;
}

.calendar__row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar__row--names div {
  background: var(--sunken);
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  padding: 0.4rem 0.5rem;
}

.calendar__day {
  min-height: 92px;
  padding: 0.3rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.calendar__day:first-child {
  border-left: 0;
}

.calendar__day.is-outside {
  background: #fffaf0;
}

.calendar__day.is-outside .calendar__num {
  color: var(--ink-faint);
}

.calendar__num {
  font-size: 0.82rem;
  font-weight: 650;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.is-today .calendar__num {
  background: var(--sun);
  color: #3a2500;
}

.chip {
  display: block;
  font-size: 0.75rem;
  line-height: 1.3;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip b {
  font-weight: 700;
}

.chip--event {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--sun);
  border: 1px solid var(--line);
}

.chip--event.chip--gony {
  box-shadow: inset 3px 0 0 var(--gony);
}

.chip--event.chip--plein_soleil {
  box-shadow: inset 3px 0 0 var(--plein);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
}

.legend .chip {
  display: inline-block;
}

.meetings {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.meeting {
  display: grid;
  grid-template-columns: 15rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}

.meeting:last-child {
  border-bottom: 0;
}

.meeting form {
  margin: 0;
}

.meeting__when {
  font-weight: 650;
  font-size: 0.92rem;
}

.meeting__where {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.attendees {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.attendees--none {
  color: var(--ink-faint);
  font-size: 0.88rem;
}

/* ==========================================================================
   Public pages
   ========================================================================== */

/* --- pennants ------------------------------------------------------------------
   One 200px tile: a sagging string and five flags. Repeated across the width. */

.bunting {
  height: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='46' viewBox='0 0 200 46'%3E%3Cpath d='M0 4 Q100 18 200 4' fill='none' stroke='%232d2340' stroke-width='2'/%3E%3Cpath d='M8 5.5 L32 8.5 L18 34z' fill='%23ff6b6b'/%3E%3Cpath d='M46 9.5 L70 11.5 L57 39z' fill='%23ffc93c'/%3E%3Cpath d='M86 11.2 L112 11.2 L99 42z' fill='%234dabf7'/%3E%3Cpath d='M128 11 L152 9 L141 38z' fill='%233fbf6a'/%3E%3Cpath d='M166 8 L190 5 L179 33z' fill='%239775fa'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 200px 46px;
}

.bunting--foot {
  transform: scaleY(-1);
  margin-bottom: -6px;
}

/* --- confetti: scattered dots, all from gradients, no images --------------------- */

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  /* Keep the dots to the edges, away from the text. */
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 30% 50%, transparent 40%, #000 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 30% 50%, transparent 40%, #000 75%);
  background-image:
    radial-gradient(circle, var(--coral) 0 4px, transparent 5px),
    radial-gradient(circle, var(--sky) 0 3.5px, transparent 4.5px),
    radial-gradient(circle, var(--mint) 0 3px, transparent 4px),
    radial-gradient(circle, var(--grape) 0 4px, transparent 5px),
    radial-gradient(circle, #fff 0 3px, transparent 4px);
  background-size: 190px 170px, 230px 210px, 160px 240px, 270px 190px, 140px 130px;
  background-position: 10px 20px, 90px 120px, 40px 80px, 160px 40px, 120px 10px;
}

/* --- header -------------------------------------------------------------------- */

.pub-head {
  background: var(--surface);
  position: relative;
  z-index: 2;
}

.pub-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.9rem;
}

.pub-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.pub-nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.pub-nav a:hover {
  background: var(--sun-soft);
}

.pub-nav .pub-nav__members {
  color: var(--ink-soft);
  font-weight: 700;
  border: 2px solid var(--line-strong);
  margin-left: 0.4rem;
}

.pub-main {
  min-height: 50vh;
}

/* --- hero ------------------------------------------------------------------------ */

.hero {
  position: relative;
  background: linear-gradient(180deg, var(--sun) 0%, #ffd866 100%);
  padding: 3rem 0 6rem;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero__kicker {
  display: inline-block;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-weight: 800;
  font-size: 0.85rem;
  margin: 0 0 1.1rem;
  transform: rotate(-1.5deg);
}

.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
}

.hero__accent {
  color: var(--surface);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--coral);
}

.hero__lead {
  font-size: 1.15rem;
  max-width: 34rem;
  margin: 1rem 0 1.75rem;
}

.hero__actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 70px;
  fill: var(--bg);
}

/* --- the next event, in the hero ---------------------------------------------------- */

.spotlight {
  position: relative;
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 26px;
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
  transform: rotate(1.2deg);
}

.spotlight__kicker {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  margin: 0;
  background: var(--coral);
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  transform: rotate(-3deg);
}

.spotlight__visual {
  height: 190px;
}

.spotlight__body {
  padding: 1.1rem 1.3rem 1.4rem;
}

.spotlight__top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  min-width: 0;
}

.spotlight__top > div {
  min-width: 0;
}

.spotlight__title {
  font-size: 1.6rem;
  margin: 0.35rem 0 0.4rem;
}

.spotlight__title a {
  color: inherit;
  text-decoration: none;
}

.spotlight__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.spotlight--empty {
  padding: 2.5rem 2rem;
  text-align: center;
  font-family: var(--display);
  font-size: 1.3rem;
}

.spotlight__sun {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
}

/* --- visuals: poster, or the kind's illustration on a school-coloured ground ---------- */

.visual {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--sun-soft);
}

.visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual .kind-art {
  width: 62%;
  height: 86%;
}

.visual--gony {
  background: var(--coral-soft);
}

.visual--plein_soleil {
  background: var(--sky-soft);
}

.visual--both {
  background: var(--grape-soft);
}

/* --- date ticket ------------------------------------------------------------------- */

.ticket {
  flex: none;
  width: 4.6rem;
  text-align: center;
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  background: var(--surface);
  overflow: hidden;
  line-height: 1;
  box-shadow: 3px 3px 0 var(--ink);
}

.ticket__weekday {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--grape);
  border-bottom: 2.5px dashed var(--ink);
}

.ticket--gony .ticket__weekday {
  background: var(--coral);
}

.ticket--plein_soleil .ticket__weekday {
  background: var(--sky);
}

.ticket__day {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.9rem;
  padding-top: 0.35rem;
}

.ticket__month {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.15rem 0 0.45rem;
}

.ticket--large {
  width: 5.4rem;
}

.ticket--large .ticket__day {
  font-size: 2.4rem;
}

/* --- tags, countdown, facts ---------------------------------------------------------- */

.tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin: 0;
}

.pill {
  display: inline-block;
  padding: 0.12rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.pill--gony {
  background: var(--coral-soft);
  color: var(--gony-ink);
}

.pill--plein_soleil {
  background: var(--sky-soft);
  color: var(--plein-ink);
}

.pill--both {
  background: var(--grape-soft);
  color: var(--both-ink);
}

.pill--kind {
  background: var(--sunken);
  color: #8a5a00;
}

.countdown {
  display: inline-block;
  background: var(--mint);
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

.facts-line {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  display: grid;
  gap: 0.3rem;
}

.facts-line li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-weight: 600;
}

.facts-line .icon {
  margin-top: 0.2em;
  color: var(--ink-faint);
}

.orders-note {
  font-weight: 800;
  color: var(--ok);
}

.orders-note--closed {
  color: var(--ink-soft);
}

/* --- agenda --------------------------------------------------------------------------- */

.agenda {
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.section-head--center {
  text-align: center;
}

.school-filter {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 1.4rem 0 1rem;
}

.school-filter__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 2.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.school-filter__item:hover {
  border-color: var(--ink);
}

.school-filter__item[aria-current="page"] {
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--sun-soft);
}

.dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: conic-gradient(var(--coral) 0 50%, var(--sky) 50% 100%);
}

.school-filter__item--gony .dot {
  background: var(--coral);
}

.school-filter__item--plein_soleil .dot {
  background: var(--sky);
}

.agenda-month__title {
  display: inline-block;
  font-size: 1.35rem;
  margin: 1.6rem 0 0.8rem;
  padding: 0.1rem 0.8rem;
  background: var(--sun);
  border-radius: 10px;
  transform: rotate(-1deg);
}

.agenda-month__title::first-letter {
  text-transform: uppercase;
}

.agenda-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.agenda-item {
  display: grid;
  grid-template-columns: auto 132px minmax(0, 1fr) auto;
  gap: 1.1rem;
  align-items: center;
  padding: 1rem;
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--grape);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.agenda-item--gony {
  box-shadow: 5px 5px 0 var(--coral);
}

.agenda-item--plein_soleil {
  box-shadow: 5px 5px 0 var(--sky);
}

.agenda-item:hover {
  transform: translate(-2px, -2px);
}

.agenda-item__visual {
  width: 132px;
  height: 100px;
  border-radius: 14px;
}

.agenda-item__body h3 {
  font-size: 1.35rem;
  margin: 0.35rem 0 0;
}

.agenda-item__side {
  display: grid;
  justify-items: end;
  gap: 0.6rem;
}

.agenda-item__more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 900;
  color: var(--both-ink);
}

.agenda-empty {
  text-align: center;
  padding: 3rem 1rem;
  font-family: var(--display);
  font-size: 1.3rem;
}

.agenda-empty__sun {
  width: 88px;
  height: 88px;
  margin: 0 auto 1rem;
}

/* --- join us ------------------------------------------------------------------------- */

.join {
  background: var(--grape-soft);
  padding: 3.5rem 0 4rem;
  position: relative;
}

.join__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2rem;
}

.join-card {
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 6px 6px 0 var(--ink);
}

.join-card:nth-child(1) {
  transform: rotate(-1.2deg);
}

.join-card:nth-child(3) {
  transform: rotate(1.2deg);
}

.join-card__art {
  width: 96px;
  height: 96px;
  margin: 0 auto 0.6rem;
  display: block;
}

.join-card h3 {
  font-size: 1.4rem;
  margin: 0 0 0.4rem;
}

.join-card p {
  margin: 0;
  color: var(--ink-soft);
}

.join-card--sun {
  background: #fff6d6;
}

.join-card--sky {
  background: #e8f4ff;
}

.join-card--coral {
  background: #ffeceb;
}

.join__cta {
  max-width: 34rem;
  margin: 2.5rem auto 0;
  padding: 1rem 1.4rem;
  text-align: center;
  font-family: var(--display);
  font-size: 1.25rem;
  background: var(--surface);
  border: 2.5px dashed var(--ink);
  border-radius: var(--radius);
}

/* --- event page ------------------------------------------------------------------------ */

.preview-banner {
  margin: 0;
  padding: 0.7rem 1rem;
  text-align: center;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.preview-banner a {
  color: var(--sun);
}

.event-hero {
  position: relative;
  overflow: hidden;
  padding: 2rem 0 5.5rem;
  background: var(--grape-soft);
}

.event-hero--gony {
  background: linear-gradient(180deg, #ffd3cf, var(--coral-soft));
}

.event-hero--plein_soleil {
  background: linear-gradient(180deg, #c6e4ff, var(--sky-soft));
}

.event-hero--both {
  background: linear-gradient(180deg, #ddd1ff, var(--grape-soft));
}

.event-hero__inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.event-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  margin: 0.6rem 0 0.3rem;
}

.event-hero__when {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.8rem;
}

.event-hero__when::first-letter {
  text-transform: uppercase;
}

.event-hero__art {
  width: 200px;
  height: 200px;
  flex: none;
  filter: drop-shadow(5px 5px 0 rgba(45, 35, 64, 0.25));
}

.back-link {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.event-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
  padding-top: 1rem;
  padding-bottom: 4rem;
}

.event-poster {
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  margin-bottom: 1.75rem;
  max-height: 640px;
  width: auto;
}

.prose {
  font-size: 1.12rem;
  max-width: 64ch;
}

.prose p:first-child {
  margin-top: 0;
}

.catalogue {
  margin-top: 2rem;
  max-width: 64ch;
}

.catalogue__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
}

.catalogue__list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line);
}

.catalogue__list li:last-child {
  border-bottom: 0;
}

.catalogue__list strong {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.event-question {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  background: var(--sun-soft);
  border-radius: var(--radius-small);
  font-weight: 700;
}

.info-card {
  position: sticky;
  top: 1rem;
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--sun);
  padding: 1.4rem;
  margin-top: -4.5rem;
  z-index: 1;
}

.info-card__title {
  font-size: 1.3rem;
  margin: 0 0 0.6rem;
}

.info-list {
  margin: 0 0 1.3rem;
}

.info-list div {
  padding: 0.7rem 0;
  border-bottom: 2px dashed var(--line);
}

.info-list dt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}

.info-list dd {
  margin: 0.2rem 0 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.info-list dd::first-letter {
  text-transform: uppercase;
}

/* --- footer ------------------------------------------------------------------------- */

.pub-foot {
  background: var(--ink);
  color: #e9e3f5;
  margin-top: 0;
}

.pub-foot .bunting {
  background-color: var(--bg);
}

.pub-foot__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.pub-foot p {
  margin: 0 0 0.4rem;
}

.pub-foot a {
  color: var(--sun);
  font-weight: 700;
}

/* The footer is dark: the logo sits on a white disc, as on a sticker. */
.pub-foot__logo {
  width: 96px;
  height: 96px;
  padding: 4px;
  background: #fff;
  border-radius: 50%;
  margin-bottom: 0.6rem;
}

.pub-foot__name {
  font-family: var(--display);
  font-size: 1.2rem;
  color: #fff;
}

.pub-foot__title {
  font-weight: 900;
  color: #fff;
}

/* The sign-in and 404 boxes sit inside the public layout. */
.is-public .auth {
  margin: 3rem auto 4rem;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--sun);
}

/* --- public, small screens -------------------------------------------------------- */

@media (max-width: 900px) {
  /* minmax(0, 1fr): a column may shrink below its content's natural width,
     otherwise one long button or address pushes the page sideways. */
  .hero__inner,
  .event-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .spotlight {
    transform: none;
  }

  .info-card {
    position: static;
    margin-top: 0;
  }

  .join__grid,
  .pub-foot__inner {
    grid-template-columns: 1fr;
  }

  .join-card:nth-child(n) {
    transform: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 2rem 0 5rem;
  }

  .pub-nav a:not(.pub-nav__members) {
    display: none;
  }

  .agenda-item {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    padding: 0.85rem;
  }

  .agenda-item__body h3 {
    font-size: 1.2rem;
  }

  .btn {
    white-space: normal;
    text-align: center;
  }

  .hero__actions .btn,
  .spotlight__actions .btn {
    flex: 1 1 100%;
  }

  .hero__kicker {
    font-size: 0.78rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .pub-head__inner {
    flex-wrap: nowrap;
  }

  .pub-nav .pub-nav__members {
    white-space: nowrap;
    padding: 0.35rem 0.7rem;
    font-size: 0.9rem;
    margin-left: 0;
  }

  .brand__text small {
    display: none;
  }

  .spotlight {
    box-shadow: 5px 5px 0 var(--ink);
  }

  .spotlight__title {
    font-size: 1.35rem;
  }

  .event-hero h1 {
    font-size: 2rem;
  }

  .agenda-item__visual {
    display: none;
  }

  .agenda-item__side {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .event-hero__art {
    width: 96px;
    height: 96px;
  }

  .spotlight__visual {
    height: 140px;
  }
}

/* --- demo ------------------------------------------------------------------------ */

.demo-banner {
  background: repeating-linear-gradient(-45deg, var(--ink) 0 14px, #3b2f52 14px 28px);
  color: #fff;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
}

.demo-banner a {
  color: var(--sun);
  font-weight: 800;
}

.demo-accounts {
  background: var(--sun-soft);
  border: 2px dashed var(--sun-strong);
  border-radius: var(--radius-small);
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
}

.demo-accounts p {
  margin: 0 0 0.6rem;
}

.demo-accounts__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.demo-accounts__list form {
  margin: 0;
}

/* --- small screens ------------------------------------------------------------ */

/* --- order forms ------------------------------------------------------------ */

.subtabs,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.subtabs a,
.filters a {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--sunken);
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.9rem;
}

.subtabs a[aria-current="page"],
.filters a[aria-current="page"] {
  background: var(--sun);
  color: var(--ink);
}

.filters a {
  font-size: 0.85rem;
  padding: 0.25rem 0.7rem;
}

.import-box {
  background: var(--sunken);
  border-radius: var(--radius-small);
  padding: 1rem 1rem 0.25rem;
  margin-bottom: 1rem;
}

.import-box .form--inline {
  margin-bottom: 0.5rem;
}

.add-order {
  margin-bottom: 1.25rem;
}

.add-order summary {
  display: inline-flex;
  list-style: none;
  cursor: pointer;
}

.add-order summary::-webkit-details-marker {
  display: none;
}

.add-order[open] summary {
  margin-bottom: 1rem;
}

.quantities {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 0.75rem 1rem 1rem;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.5rem 1rem;
}

.quantities legend {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0 0.35rem;
}

.quantities__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.quantities__item input {
  width: 4.5rem;
  flex: none;
  text-align: right;
  padding: 0.35rem 0.5rem;
}

.quantities__item small {
  color: var(--ink-faint);
  white-space: nowrap;
}

.table--orders td {
  vertical-align: top;
}

.table tr.is-flagged td {
  background: #fffaf0;
}

.table tr.is-copy td {
  background: var(--sunken);
  color: var(--ink-faint);
}

.block {
  display: block;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
}

.checks li {
  padding-left: 1.1rem;
  position: relative;
  margin-top: 0.2rem;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.45em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.checks__error {
  color: var(--danger);
}

.checks__error::before {
  background: var(--danger);
}

.checks__warn {
  color: var(--ink-soft);
}

.checks__warn::before {
  background: var(--sun-strong);
}

.privacy {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.privacy summary {
  cursor: pointer;
  color: var(--ink-soft);
  font-weight: 650;
}

.mention {
  margin: 0.5rem 0 1rem;
  padding: 0.75rem 1rem;
  background: var(--sunken);
  border-left: 4px solid var(--sun);
  border-radius: var(--radius-small);
  font-size: 0.92rem;
}

.danger-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.25rem;
}

.distribution {
  margin-top: 1.5rem;
  break-inside: avoid-page;
}

.distribution h3 small {
  color: var(--ink-faint);
  font-weight: 500;
}

/* The distribution list goes to paper: only the lists, in black and white. */
@media print {
  .skip-link,
  .site-head,
  .espace-nav,
  .site-foot,
  .page-head__actions,
  .tabs,
  .subtabs,
  .stats,
  .no-print,
  .notice {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .card {
    box-shadow: none;
    border: 0;
    padding: 0;
  }

  .distribution {
    break-before: page;
  }

  .distribution:first-of-type {
    break-before: auto;
  }

  .tick {
    border: 1.5px solid #000;
  }
}

@media (max-width: 640px) {
  .page {
    padding-top: 1.25rem;
  }

  .who {
    display: none;
  }

  .checklist li {
    grid-template-columns: auto 1fr;
  }

  .checklist__meta {
    grid-column: 2;
    text-align: left;
  }

  .checklist__actions {
    grid-column: 2;
  }

  .auth {
    padding: 1.25rem;
    margin: 1rem auto;
  }

  .meeting {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .calendar {
    padding: 0.5rem;
  }

  .calendar__day {
    min-height: 64px;
    padding: 0.15rem;
  }

  .chip {
    font-size: 0.65rem;
    padding: 0.1rem 0.2rem;
  }

  .chip b {
    display: none;
  }
}

/* --- mentions légales ------------------------------------------------------------------ */

.legal {
  max-width: 46rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.legal h2 {
  margin-top: 2rem;
}

.legal h3 {
  margin: 1.25rem 0 0.4rem;
  font-size: 1.05rem;
}
