:root {
  color-scheme: light;
  --pc-brand: #4e4c97;
  --pc-brand-soft: #efeff8;
  --pc-room-salle: #17324d;
  --pc-room-mezzanine: #6e5aa8;
  --pc-room-terrasse: #2e7d63;
  --pc-room-mini-club: #d59a22;
  --pc-ink: #252525;
  --pc-muted: #666963;
  --pc-line: #cfd8d3;
  --pc-paper: #ffffff;
  --pc-soft: #eaefec;
  --pc-neutral: #737b83;
  --pc-danger: #9f2f2f;
  --pc-shadow: 0 12px 34px rgb(50 54 52 / 9%);
  font-family: Archivo, Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 0;
  overflow-x: hidden;
  background: var(--pc-soft);
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--pc-ink);
  background: var(--pc-soft);
  font-family: inherit;
  line-height: 1.5;
}

button, a { font: inherit; }

a { color: var(--pc-brand); }

.pc-skip-link {
  position: fixed;
  z-index: 1000;
  top: .5rem;
  left: .5rem;
  padding: .65rem .9rem;
  border-radius: .25rem;
  color: white;
  background: var(--pc-brand);
  transform: translateY(-180%);
}

.pc-skip-link:focus { transform: translateY(0); }

.pc-hero {
  color: var(--pc-ink);
  background: var(--pc-soft);
}

.pc-hero__content {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.875rem, 5vw, 3.25rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}

.pc-kicker,
.pc-toolbar__eyebrow {
  margin: 0 0 .35rem;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pc-kicker { color: var(--pc-brand); }

.pc-hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--pc-brand);
  font-family: inherit;
  font-size: clamp(2rem, 4.8vw, 3.55rem);
  font-weight: 300;
  line-height: 1.08;
  text-wrap: balance;
}

.pc-hero p:last-child {
  max-width: 68ch;
  margin: 1rem 0 0;
  color: var(--pc-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.pc-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 1.25rem;
  width: min(1180px, calc(100% - 2rem));
  margin: clamp(1rem, 3vw, 2rem) auto 5rem;
  align-items: start;
}

.pc-panel,
.pc-note {
  min-width: 0;
  border: 1px solid var(--pc-line);
  border-radius: .25rem;
  background: var(--pc-paper);
  box-shadow: var(--pc-shadow);
}

.pc-panel { padding: clamp(.8rem, 2vw, 1.4rem); }

.pc-toolbar {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
  gap: .75rem;
  align-items: center;
  text-align: center;
}

.pc-toolbar__eyebrow { color: var(--pc-muted); }

.pc-toolbar h2 {
  margin: 0;
  color: var(--pc-brand);
  font-family: inherit;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
}

.pc-icon-button,
.pc-retry {
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 2px solid var(--pc-brand);
  border-radius: .25rem;
  color: var(--pc-brand);
  background: white;
  box-shadow: 4px 4px 0 var(--pc-brand);
  cursor: pointer;
  font-weight: 700;
  transition: box-shadow .12s ease, transform .12s ease, filter .12s ease;
}

.pc-icon-button:hover,
.pc-retry:hover { filter: brightness(.98); transform: translateY(-1px); }

.pc-icon-button:active,
.pc-retry:active {
  box-shadow: 2px 2px 0 var(--pc-brand);
  transform: translate(2px, 2px);
}

.pc-icon-button:disabled { cursor: wait; opacity: .55; }

.pc-icon-button:focus-visible,
.pc-retry:focus-visible,
.pc-note a:focus-visible,
.pc-list-card__link:focus-visible {
  outline: 3px solid rgb(78 76 151 / 52%);
  outline-offset: 3px;
}

.pc-legend {
  margin: 1.25rem 0 1rem;
  padding: .9rem 1rem;
  border: 1px solid var(--pc-line);
  border-radius: .75rem;
  background: rgb(234 239 236 / 55%);
}

.pc-legend h3 {
  margin: 0 0 .55rem;
  font-size: .9rem;
}

.pc-legend ul {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pc-legend li {
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  font-size: .84rem;
  font-weight: 700;
}

.pc-legend p {
  margin: .6rem 0 0;
  color: var(--pc-muted);
  font-size: .78rem;
}

.pc-swatch {
  width: .85rem;
  height: .85rem;
  flex: 0 0 auto;
  border: 1px solid rgb(0 0 0 / 16%);
  border-radius: 50%;
  background: var(--pc-neutral);
}

[data-room="salle"] { --room-color: var(--pc-room-salle); }
[data-room="mezzanine"] { --room-color: var(--pc-room-mezzanine); }
[data-room="terrasse"] { --room-color: var(--pc-room-terrasse); }
[data-room="mini-club"] { --room-color: var(--pc-room-mini-club); }
.pc-swatch[data-room] { background: var(--room-color); }

.pc-status {
  margin: .75rem 0;
  color: var(--pc-muted);
  font-size: .86rem;
}

.pc-status--success { color: #1f654f; }
.pc-status--warning { color: #754d00; font-weight: 700; }
.pc-status--error { color: var(--pc-danger); font-weight: 700; }
.pc-retry { margin: 0 0 .75rem; padding: .45rem .8rem; }

.pc-calendar {
  width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  table-layout: fixed;
}

.pc-calendar th {
  padding: .55rem .2rem;
  border-bottom: 1px solid #cbd2d8;
  color: var(--pc-muted);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pc-calendar-day {
  height: 8rem;
  min-width: 0;
  padding: .35rem;
  overflow: hidden;
  border-right: 1px solid var(--pc-line);
  border-bottom: 1px solid var(--pc-line);
  vertical-align: top;
}

.pc-calendar-day:first-child { border-left: 1px solid var(--pc-line); }
.pc-calendar-day--outside { background: #f8f8f7; }
.pc-calendar-day--outside .pc-calendar-day__number { color: #89919a; }

.pc-calendar-day__number {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  margin: 0 0 .25rem auto;
  place-items: center;
  border-radius: 50%;
  color: var(--pc-ink);
  font-size: .78rem;
  font-weight: 750;
}

.pc-calendar-day--today .pc-calendar-day__number {
  color: white;
  background: var(--pc-brand);
}

.pc-calendar-day__events {
  display: grid;
  gap: .3rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pc-calendar-event {
  min-width: 0;
  padding: .35rem .4rem;
  overflow: hidden;
  border: 1px solid #d7dce0;
  border-left: 4px solid var(--pc-neutral);
  border-radius: .35rem;
  background: #f5f6f7;
  font-size: .68rem;
  line-height: 1.25;
}

.pc-calendar-event--single { border-left-color: var(--room-color); background: white; }
.pc-calendar-event--neutral { border-left-color: var(--pc-neutral); }
.pc-calendar-event article { min-width: 0; }

.pc-calendar-event__title,
.pc-calendar-event__time {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.pc-calendar-event__title { color: var(--pc-ink); }
.pc-calendar-event__time { margin-top: .12rem; color: var(--pc-muted); }

.pc-room-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem;
  min-width: 0;
  margin-top: .3rem;
}

.pc-room-badge {
  max-width: 100%;
  padding: .12rem .35rem;
  overflow: hidden;
  border-radius: 999px;
  color: white;
  background: var(--room-color, var(--pc-neutral));
  font-size: .62rem;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-room-badge[data-room="mini-club"] { color: #241b04; }

.pc-calendar-error {
  height: 12rem;
  padding: 2rem;
  color: var(--pc-danger);
  text-align: center;
}

.pc-list-view { display: none; }

.pc-note {
  position: sticky;
  top: 1rem;
  padding: 1.15rem;
  border-top: 5px solid var(--pc-brand);
}

.pc-note strong { color: var(--pc-brand); }
.pc-note p { color: var(--pc-muted); font-size: .9rem; }
.pc-note__cta {
  display: inline-flex;
  min-height: 2.75rem;
  padding: .65rem .9rem;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--pc-brand);
  border-radius: .25rem;
  color: var(--pc-brand);
  background: white;
  box-shadow: 4px 4px 0 var(--pc-brand);
  font-weight: 700;
  text-decoration: none;
  transition: box-shadow .12s ease, transform .12s ease, filter .12s ease;
}

.pc-note__cta:hover { filter: brightness(.98); transform: translateY(-1px); }
.pc-note__cta:active { box-shadow: 2px 2px 0 var(--pc-brand); transform: translate(2px, 2px); }

.pc-noscript {
  margin: 1rem auto;
  padding: 1rem;
  color: var(--pc-danger);
  text-align: center;
}

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

@media (max-width: 900px) {
  .pc-shell { grid-template-columns: minmax(0, 1fr); }
  .pc-note { position: static; }
  .pc-note__cta { width: 100%; }
}

@media (max-width: 700px) {
  .pc-hero__content,
  .pc-shell { width: min(100% - 1rem, 42rem); }
  .pc-hero__content { padding-block: 1.375rem 1.125rem; }
  .pc-hero h1 { font-size: clamp(1.72rem, 8vw, 2.15rem); }
  .pc-hero p:last-child { margin-top: .7rem; line-height: 1.42; }
  .pc-shell { margin-top: .5rem; }
  .pc-panel { padding: .75rem; border-radius: .25rem; }
  .pc-month-view { display: none; }
  .pc-list-view { display: block; }
  .pc-list-view h3 { margin: 1rem 0 .6rem; color: var(--pc-brand); font-size: 1rem; }
  .pc-calendar-list { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
  .pc-list-card {
    min-width: 0;
    padding: .85rem;
    border: 1px solid var(--pc-line);
    border-left: 4px solid var(--pc-neutral);
    border-radius: .65rem;
    background: white;
  }
  .pc-list-card__date { margin: 0; color: var(--pc-muted); font-size: .78rem; font-weight: 650; }
  .pc-list-card__title { margin: .2rem 0 .35rem; color: var(--pc-ink); font-size: 1rem; overflow-wrap: anywhere; }
  .pc-list-card__category { display: inline-block; margin: .45rem 0 0; color: var(--pc-brand); font-size: .75rem; font-weight: 750; }
  .pc-list-card__summary,
  .pc-list-card__location { margin: .45rem 0 0; color: var(--pc-muted); font-size: .86rem; overflow-wrap: anywhere; }
  .pc-list-card__link { display: inline-block; margin-top: .65rem; font-weight: 750; }
  .pc-list-card .pc-room-badge { font-size: .7rem; }
  .pc-list-empty { padding: 1rem; border-radius: .6rem; color: var(--pc-muted); background: #f7f8f9; }
  .pc-legend ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-legend li { min-width: 0; }
}

@media (max-width: 380px) {
  .pc-toolbar { grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem; gap: .35rem; }
  .pc-icon-button { min-width: 2.5rem; }
  .pc-legend ul { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
