:root {
  --blue: #004aad;
  --blue-deep: #06367b;
  --yellow: #ffe04c;
  --paper: #f7f4ed;
  --paper-soft: rgba(255, 255, 255, 0.88);
  --paper-strong: rgba(255, 255, 255, 0.94);
  --ink: #0f2145;
  --ink-soft: #45618f;
  --line: rgba(15, 33, 69, 0.12);
  --shadow: 0 28px 70px rgba(6, 54, 123, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 224, 76, 0.22), transparent 28%),
    radial-gradient(circle at bottom right, rgba(13, 84, 183, 0.22), transparent 34%),
    linear-gradient(180deg, #eef4ff 0%, #f4f6fb 24%, #f7f4ed 100%);
  padding: 22px;
}

.agenda-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero-banner-wrap {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(6, 54, 123, 0.12), rgba(13, 84, 183, 0.08)),
    var(--paper);
}

.hero-banner {
  position: relative;
  min-height: 360px;
  background:
    url("../images/bandeau.JPG") center 36%/contain no-repeat,
    #004aad;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(247, 244, 237, 0.96));
}

.agenda-content-card {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
  transform: translateY(-36px);
  border-radius: 30px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 50px rgba(15, 33, 69, 0.12);
  padding: 30px;
}

.menu-card,
.agenda-panel,
.agenda-month-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper-strong);
}

.menu-card { padding: 14px; }

.site-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-menu-link,
.agenda-kicker,
.agenda-panel h1,
.agenda-month-header h2,
.agenda-modal-kicker {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.site-menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--blue-deep);
  background: rgba(0, 74, 173, 0.06);
  border: 1px solid rgba(0, 74, 173, 0.08);
  font-size: 1.16rem;
}

.site-menu-link.is-active {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}

.site-menu-link[aria-disabled="true"] { opacity: 0.6; }

.agenda-panel {
  margin-top: 18px;
  padding: 24px;
}

.agenda-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 1.45rem;
  letter-spacing: 0.08em;
}

.agenda-panel h1 {
  margin: 6px 0 14px;
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  line-height: 0.92;
}

.agenda-intro,
.agenda-modal-details dd {
  color: var(--ink-soft);
  line-height: 1.7;
}

.agenda-intro {
  margin: 0;
}

.agenda-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.agenda-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.agenda-player-badge {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(0, 74, 173, 0.08);
  border: 1px solid rgba(0, 74, 173, 0.12);
  color: var(--blue-deep);
  font-weight: 700;
}

.agenda-header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: white;
}

.agenda-header-button-secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  border: 1px solid var(--line);
}

.agenda-months {
  margin-top: 20px;
  position: relative;
}

.agenda-month-card {
  display: none;
  padding: 20px;
}

.agenda-month-card.is-visible {
  display: block;
}

.agenda-month-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.agenda-month-header h2 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 0.95;
  color: var(--blue-deep);
  text-align: center;
}

.agenda-nav-button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 74, 173, 0.08);
  color: var(--blue-deep);
  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.agenda-nav-button:hover,
.agenda-nav-button:focus-visible {
  background: rgba(0, 74, 173, 0.16);
}

.agenda-weekdays,
.agenda-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.agenda-weekdays {
  margin-bottom: 10px;
}

.agenda-weekdays span {
  text-align: center;
  font-weight: 700;
  color: var(--ink-soft);
}

.agenda-day {
  min-height: 148px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(0, 74, 173, 0.05);
  border: 1px solid rgba(0, 74, 173, 0.08);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
}

.agenda-day-weekend {
  background: rgba(0, 74, 173, 0.16);
  border-color: rgba(0, 74, 173, 0.24);
  box-shadow: inset 0 0 0 1px rgba(0, 74, 173, 0.08);
}

.agenda-day-holiday {
  background: rgba(255, 224, 76, 0.18);
  border-color: rgba(255, 224, 76, 0.48);
}

.agenda-day-empty {
  background: rgba(255, 255, 255, 0.45);
  border-style: dashed;
}

.agenda-day-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--blue-deep);
  font-weight: 700;
  justify-self: center;
}

.agenda-day-holiday .agenda-day-number {
  background: rgba(255, 255, 255, 0.96);
  color: #8a5d00;
}

.agenda-day-weekend .agenda-day-number {
  background: rgba(255, 255, 255, 0.96);
  color: var(--blue-deep);
  box-shadow: 0 4px 10px rgba(0, 74, 173, 0.12);
}

.agenda-day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #8a5d00;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.agenda-mobile-calendar {
  display: none;
}

.agenda-mobile-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.agenda-mobile-weekdays span {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.agenda-mobile-weeks {
  display: grid;
  gap: 10px;
}

.agenda-mobile-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.agenda-mobile-day {
  min-height: 84px;
  padding: 6px 4px;
  border-radius: 16px;
  background: rgba(0, 74, 173, 0.05);
  border: 1px solid rgba(0, 74, 173, 0.08);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 4px;
}

.agenda-mobile-day-empty {
  background: rgba(255, 255, 255, 0.4);
  border-style: dashed;
}

.agenda-mobile-day-weekend {
  background: rgba(0, 74, 173, 0.16);
  border-color: rgba(0, 74, 173, 0.24);
}

.agenda-mobile-day-holiday {
  background: rgba(255, 224, 76, 0.18);
  border-color: rgba(255, 224, 76, 0.48);
}

.agenda-mobile-day-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.agenda-mobile-day-number {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-deep);
  font-size: 0.84rem;
  font-weight: 700;
}

.agenda-mobile-holiday-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b77b00;
}

.agenda-mobile-day-events {
  display: grid;
  align-content: start;
  gap: 3px;
}

.agenda-mobile-event {
  width: 100%;
  border: 0;
  min-height: 18px;
  border-radius: 999px;
  padding: 0;
  text-align: center;
  font: inherit;
  font-size: 0;
  line-height: 1;
  font-weight: 700;
  color: transparent;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.agenda-mobile-event::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 4px 10px rgba(6, 54, 123, 0.22);
}

.agenda-day-events {
  display: grid;
  align-content: start;
  gap: 6px;
}

.agenda-event {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 7px 9px;
  text-align: left;
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.2;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(6, 54, 123, 0.16);
  overflow-wrap: anywhere;
}

.agenda-event:hover,
.agenda-event:focus-visible {
  transform: translateY(-1px);
}

.agenda-modal[hidden] {
  display: none;
}

.agenda-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow-y: auto;
  padding: 18px 0;
}

.agenda-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 33, 69, 0.54);
  backdrop-filter: blur(4px);
}

.agenda-modal-dialog {
  position: relative;
  width: min(880px, calc(100% - 28px));
  margin: 5vh auto;
  max-height: 90vh;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 30px 80px rgba(15, 33, 69, 0.26);
  padding: 22px;
  overflow-y: auto;
}

.agenda-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 74, 173, 0.08);
  color: var(--blue-deep);
  font-size: 1.8rem;
  cursor: pointer;
}

.agenda-modal-content {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}

.agenda-modal-poster-wrap {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(0, 74, 173, 0.06);
  border: 1px solid rgba(0, 74, 173, 0.08);
}

.agenda-modal-poster-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.agenda-modal-kicker {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: var(--blue);
}

.agenda-modal-text h2 {
  margin: 0 0 18px;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 0.95;
  color: var(--blue-deep);
}

.agenda-modal-details {
  margin: 0;
  display: grid;
  gap: 14px;
}

.agenda-modal-details div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(0, 74, 173, 0.05);
}

.agenda-modal-details dt {
  font-weight: 700;
  color: var(--ink);
}

.agenda-modal-details dd {
  margin: 6px 0 0;
}

.agenda-modal-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.agenda-modal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: white;
}

.agenda-modal-button[hidden] {
  display: none !important;
}

.agenda-modal-button-secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  border: 1px solid var(--line);
}

@media (max-width: 920px) {
  .agenda-content-card {
    transform: translateY(-24px);
  }

  .agenda-panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .agenda-header-actions {
    justify-content: flex-start;
  }

  .agenda-weekdays,
  .agenda-grid {
    gap: 8px;
  }

  .agenda-day {
    min-height: 132px;
  }

  .agenda-modal-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body { padding: 14px; }
  .agenda-panel h1 {
    font-size: 2.1rem;
  }
  .agenda-month-header h2,
  .agenda-modal-text h2 {
    font-size: 1.55rem;
  }
  .hero-banner-wrap { border-radius: 24px; }
  .hero-banner { min-height: 300px; }
  .agenda-content-card {
    width: calc(100% - 20px);
    padding: 20px;
    border-radius: 24px;
    transform: translateY(-18px);
  }
  .agenda-panel,
  .agenda-month-card {
    padding: 20px;
    border-radius: 22px;
  }
  .site-menu-link {
    flex: 1 1 calc(50% - 4px);
    width: calc(50% - 4px);
    min-width: 0;
  }
  .agenda-weekdays,
  .agenda-grid {
    display: none;
  }

  .agenda-mobile-calendar {
    display: block;
  }

  .agenda-modal-dialog {
    width: calc(100% - 20px);
    margin: 0 auto;
    max-height: calc(100vh - 20px);
    padding: 18px;
    border-radius: 22px;
  }
}
