:root {
  color-scheme: light;
  interpolate-size: allow-keywords;
  --ink: #111;
  --paper: #fff;
  --muted: #3d3d3d;
  --yellow: #ffd23f;
  --blue: #2f5bea;
  --green: #3cb96a;
  --red: #f26b5b;
  --lilac: #a8b8ff;
  --font: "Rubik", system-ui, sans-serif;
  --border: 2px solid var(--ink);
  --radius: 16px;
  --shadow: 4px 4px 0 var(--ink);
  --wrap: 1180px;
  --gutter: clamp(16px, 3vw, 32px);
  --header: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dots: radial-gradient(rgb(17 17 17 / 16%) 1.5px, transparent 1.8px);
  --dots-light: radial-gradient(rgb(255 255 255 / 30%) 2px, transparent 2.4px);
  --meeple: url("../images/meeple.svg");
  --placeholder: rgb(168 184 255 / 25%);
  --piece-de: url("../images/piece-de.svg");
  --piece-sablier: url("../images/piece-sablier.svg");
  --piece-jeton: url("../images/piece-jeton.svg");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

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

a {
  color: inherit;
  text-underline-offset: 3px;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0 0 0.8rem;
}

address {
  margin-bottom: 0.8rem;
  font-style: normal;
}

figure {
  margin: 0;
}

.skip {
  position: absolute;
  left: -9999px;

  &:focus {
    left: var(--gutter);
    top: 1rem;
    z-index: 20;
    padding: 0.5rem 1rem;
    background: var(--ink);
    color: var(--paper);
  }
}

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

.bg-yellow {
  background: var(--yellow);
}

.bg-green {
  background: var(--green);
}

.bg-red {
  background: var(--red);
}

.bg-lilac {
  background: var(--lilac);
}

.bg-blue {
  background: var(--blue);
  color: var(--paper);
}

.card {
  padding: 1.5rem;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background-color: var(--paper);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);

  &.bg-yellow { background-color: var(--yellow); }
  &.bg-green { background-color: var(--green); }
  &.bg-red { background-color: var(--red); }
  &.bg-lilac { background-color: var(--lilac); }
  &.bg-blue { background-color: var(--blue); }

  h3 {
    margin-bottom: 0.7rem;
    font-size: 1.35rem;
  }

  h3.big {
    font-size: clamp(1.5rem, 3vw, 2rem);
  }

  p:last-child {
    margin-bottom: 0;
  }
}

.card-link {
  display: block;
  text-decoration: none;

  h3::after {
    content: " →";
    display: inline-block;
    transition: transform 0.25s var(--ease);
  }

  &:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
  }

  &:hover h3::after {
    transform: translateX(4px);
  }
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.2rem;
  border: var(--border);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;

  &:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--ink);
  }

  &:disabled {
    opacity: 0.45;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
  }

  &:active {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 var(--ink);
  }
}

.btn-blue {
  background: var(--blue);
  color: var(--paper);
}

.btn-small {
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;

  &.is-scrolled {
    border-color: var(--ink);
  }

  .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header);
  }
}

.brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;

  img {
    width: 64px;
    transition: transform 0.4s var(--ease);
  }

  &:hover img {
    transform: rotate(-6deg) scale(1.08);
  }
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 4px 4px 6px;

  a {
    flex: none;
    padding: 0.35rem 0.75rem;
    border: var(--border);
    border-radius: 9px;
    background: var(--paper);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;

    &:hover {
      transform: translate(-1px, -1px);
      box-shadow: 3px 3px 0 var(--ink);
    }

    &[aria-current] {
      box-shadow: 3px 3px 0 var(--ink);
    }
  }

  a[href^="#"]:not(.nav-contact) {
    background: var(--h2, var(--yellow));
  }

  .nav-contact {
    background: var(--ink);
    color: var(--paper);

    &[aria-current] {
      background: var(--blue);
      color: var(--paper);
    }
  }
}

.hero {
  padding-block: 1.5rem 3rem;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  overflow: hidden;
  border: var(--border);
  border-radius: 24px;
  box-shadow: 6px 6px 0 var(--ink);
}

.hero-text {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--dots) 0 0 / 10px 10px, var(--yellow);

  .mark {
    border: var(--border);
    box-shadow: var(--shadow);
    background: var(--paper);
  }

  .lead {
    color: var(--ink);
  }

  .pill {
    margin: 1.2rem 0 0;
  }
}

.pill {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.8rem;
  border: var(--border);
  border-radius: 999px;
  background: var(--green);
  font-size: 0.85rem;
  font-weight: 700;

  sup {
    font-size: 0.65em;
  }
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.6rem);
  font-weight: 900;
  line-height: 1;
}

.mark {
  display: inline-block;
  padding: 0 0.12em;
  border-radius: 14px;
  background: var(--yellow);
  transform: rotate(-2deg);
}

.lead {
  max-width: 30rem;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-panel {
  display: grid;
  align-content: center;
  gap: 1.5rem;
  padding: 2rem;
  border-left: var(--border);
  background: var(--dots-light) 0 0 / 12px 12px, var(--blue);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  --pop: var(--blue);
  --piece: var(--piece-sablier);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 7.5rem;
  padding: 0.7rem 0.8rem;
  overflow: hidden;
  border: var(--border);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  background-color: var(--lilac);
  background-image: var(--dots);
  background-size: 8px 8px;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.2;
  transition: transform 0.2s var(--ease);

  &::before,
  &::after {
    content: "";
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    width: 3.6rem;
    height: 3.6rem;
    mask: var(--piece) center / contain no-repeat;
    transition: transform 0.25s var(--ease);
  }

  &::before {
    background: var(--ink);
    translate: 3px 3px;
  }

  &::after {
    background: var(--pop);
  }

  &:hover {
    transform: rotate(-1.5deg);
  }

  &:hover::before,
  &:hover::after {
    transform: rotate(10deg) translateY(-2px);
  }

  strong {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.1;
  }

  &.bg-yellow { --pop: var(--red); --piece: var(--piece-de); background-color: var(--yellow); }
  &.bg-green { --pop: var(--yellow); --piece: var(--meeple); background-color: var(--green); }
  &.bg-red { --pop: var(--paper); --piece: var(--piece-jeton); background-color: var(--red); }
}

.hero-logo {
  width: 100%;
  max-width: 16rem;
  justify-self: center;
  border: var(--border);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.4s var(--ease);

  &:hover {
    transform: rotate(-6deg) scale(1.08);
  }
}

.section {
  padding-block: 3rem;

  .wrap > * + * {
    margin-top: 1.5rem;
  }

  h2 {
    font-size: clamp(2.2rem, 5vw, 3rem);
  }
}

.sub {
  padding-top: 1rem;
  font-size: 1.6rem;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-2.grid-even {
  align-items: stretch;
}

.grid-even > .stack,
.grid-even > .photos {
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.stack {
  display: grid;
  gap: 1.5rem;
}

.families {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;

  li {
    padding: 0.7rem 1rem;
    border: var(--border);
    border-radius: 12px;
    box-shadow: 3px 3px 0 var(--ink);
    font-weight: 800;
    transition: transform 0.2s var(--ease);

    &:hover {
      transform: rotate(-2deg) scale(1.03);
    }
  }

  li:nth-child(1),
  li:nth-child(8) { background: var(--red); }
  li:nth-child(2),
  li:nth-child(7) { background: var(--yellow); }
  li:nth-child(3),
  li:nth-child(6) { background: var(--green); }
  li:nth-child(4),
  li:nth-child(5) { background: var(--lilac); }
}

.prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 15rem));
  gap: 1.5rem;
  margin: 0;

  div {
    display: flex;
    flex-direction: column;
  }

  dt {
    font-size: 0.85rem;
    font-weight: 700;
  }

  dd {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 3.4rem);
    font-weight: 900;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
  }
}

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

  th,
  td {
    padding: 0.6rem 0.6rem 0.6rem 0;
    border-bottom: 2px dashed rgba(17, 17, 17, 0.15);
    text-align: left;
    vertical-align: baseline;
  }

  tr:last-child > * {
    border-bottom: 0;
  }

  th {
    font-weight: 700;
    white-space: nowrap;
  }

  td {
    color: var(--muted);
  }

  td:last-child {
    padding-right: 0;
    color: var(--ink);
    font-weight: 800;
    white-space: nowrap;
    text-align: right;
  }
}

.ral {
  h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  }

  p:not(.pill) {
    max-width: 52rem;
  }
}

.dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0 0 1rem;
  padding: 0.6rem 0 0;
  list-style: none;
}

.date {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 5.6rem;
  padding: 0.5rem 0.6rem;
  border: var(--border);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--yellow);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1;

  strong {
    font-size: 1.7rem;
    font-weight: 900;
  }

  &:nth-child(4n + 1) { background: var(--red); }
  &:nth-child(4n + 2) { background: var(--blue); color: var(--paper); }
  &:nth-child(4n + 3) { background: var(--green); }
  &:nth-child(4n + 4) { background: var(--yellow); }
}

.date[data-badge]::before {
  content: attr(data-badge);
  position: absolute;
  right: -0.2rem;
  bottom: calc(100% - 0.3rem);
  left: -0.2rem;
  width: fit-content;
  margin-inline: auto;
  padding: 0 0.4rem;
  border: var(--border);
  border-radius: 0.6rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.65rem;
  line-height: 1.1;
  text-align: center;
  text-wrap: balance;
}

.summer-note {
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;

  li {
    font-size: 0.92rem;
  }

  span {
    display: inline-block;
    padding: 0 0.5rem;
    border: var(--border);
    border-radius: 999px;
    background: var(--paper);
    font-size: 0.75rem;
    font-weight: 700;
  }

  strong {
    display: block;
    margin: 0.5rem 0 0.3rem;
    font-size: 1.2rem;
    font-weight: 800;
  }
}

.photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;

  figure {
    padding: 0.6rem;
  }

  figure:first-child {
    grid-column: 1 / -1;
  }

  img {
    border-radius: 9px;
  }

  figcaption {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
  }
}

.zoom {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 9px;
  background: var(--placeholder);
  cursor: zoom-in;

  img {
    transition: transform 0.4s var(--ease);
  }

  &:hover img {
    transform: scale(1.04);
  }

  &:has(.photo-mark):hover img {
    transform: none;
  }
}

.photo-mark {
  position: absolute;
  left: 1.5%;
  top: 60%;
  width: 19%;
  height: 36%;
  border: 3px solid var(--yellow);
  border-radius: 8px;
  box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 1px var(--ink);
  pointer-events: none;
}

.photo-mark-label {
  position: absolute;
  bottom: calc(100% + 6px);
  left: -3px;
  padding: 0.1rem 0.5rem;
  border: var(--border);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.lightbox-media {
  position: relative;
  width: fit-content;
  margin: 0 auto;

  .photo-mark-label {
    font-size: 1rem;
  }
}

html:has(.lightbox[open]) {
  overflow: hidden;
}

.lightbox {
  max-width: min(92vw, 1100px);
  max-height: 92vh;
  padding: 0.8rem;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--paper);
  overflow: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.25s ease, transform 0.3s var(--ease), overlay 0.3s allow-discrete, display 0.3s allow-discrete;

  @starting-style {
    opacity: 0;
    transform: scale(0.92);
  }

  &:not([open]) {
    opacity: 0;
    transform: scale(0.92);
  }

  &::backdrop {
    background: rgba(17, 17, 17, 0.75);
    backdrop-filter: blur(3px);
  }

  img {
    max-height: calc(92vh - 5rem);
    width: auto;
    margin: 0 auto;
    border-radius: 9px;
  }

  figcaption {
    margin-top: 0.6rem;
    font-weight: 700;
    text-align: center;
  }

  figcaption:empty {
    display: none;
  }
}

.lightbox-close {
  position: absolute;
  top: -1rem;
  right: -1rem;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: var(--border);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font: 800 1.6rem/1 var(--font);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;

  &:hover {
    transform: rotate(90deg);
  }

  &:active {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 var(--ink);
  }
}

.lightbox-count {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.lightbox-nav {
  position: absolute;
  z-index: 1;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border: var(--border);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--yellow);
  color: var(--ink);
  cursor: pointer;
  transform: translateY(-50%);

  svg {
    width: 1.4rem;
    height: 1.4rem;
    fill: none;
    stroke: currentcolor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  &:active {
    box-shadow: none;
  }
}

.lightbox-previous {
  left: 0.4rem;
}

.lightbox-next {
  right: 0.4rem;
}

.lightbox-rotate {
  position: absolute;
  z-index: 1;
  top: -1rem;
  left: -1rem;
  display: none;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: var(--border);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--yellow);
  color: var(--ink);
  cursor: pointer;

  svg {
    width: 1.3rem;
    height: 1.3rem;
    fill: none;
    stroke: currentcolor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  &:active {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 var(--ink);
  }
}

.section-intro {
  margin-top: 0.4rem;
  color: var(--muted);
}

.gallery-title {
  margin-top: 2rem;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  align-items: start;
  gap: 1.2rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;

  figure {
    position: relative;
    padding: 0.6rem;
  }

  img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  figcaption {
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    left: 0.6rem;
    display: -webkit-box;
    padding: 0 0.6rem;
    overflow: hidden;
    border-block: 0.35rem solid transparent;
    border-radius: 0 0 9px 9px;
    background: rgb(17 17 17 / 80%);
    color: var(--paper);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.3;
    pointer-events: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

.admin {
  h1 {
    margin-bottom: 1.5rem;
    font-size: clamp(2.2rem, 5vw, 3rem);
  }

  main .wrap > * + *,
  [data-workspace] > * + * {
    margin-top: 1.5rem;
  }

  h2 {
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
  }

  .nav button {
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
  }
}

.field {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 1rem;
  font-weight: 700;

  input {
    width: 100%;
    min-width: 0;
    padding: 0.6rem 0.8rem;
    border: var(--border);
    border-radius: 10px;
    font: inherit;
    font-weight: 400;
  }

  input::file-selector-button {
    margin-right: 0.7rem;
    padding: 0.25rem 0.7rem;
    border: var(--border);
    border-radius: 8px;
    background: var(--yellow);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  small {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 400;
  }
}

.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 1rem;

  input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.2rem;
    accent-color: var(--blue);
  }
}

.admin-login {
  max-width: 28rem;
}

.admin-hint {
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-error {
  margin-top: 1rem;
  color: #b3261e;
  font-weight: 700;
}

.admin-queue {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;

  .is-ok {
    color: #1e7a3e;
  }

  .is-error {
    color: #b3261e;
    font-weight: 700;
  }
}

[data-photos] h3 {
  margin-top: 1.6rem;
}

.admin-status {
  margin: 0.6rem 0 0;
  font-weight: 700;

  &.is-ok {
    color: #1e7a3e;
  }

  &.is-error {
    color: #b3261e;
  }
}

.admin-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;

  .card {
    display: flex;
    flex-direction: column;
    padding: 0.6rem;
  }

  img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    background: var(--placeholder);
  }

  .field {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
  }

  .field input {
    padding: 0.4rem 0.6rem;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 0.7rem 0 0;
  }

  .btn {
    padding-inline: 0.3rem;
    font-size: 0.8rem;
    text-align: center;
  }
}

.photo-clear-date {
  align-self: flex-start;
  margin-top: 0.2rem;
  padding: 0.2rem 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.photo-frame {
  position: relative;
}

.photo-move {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: var(--border);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  cursor: pointer;
  transform: translateY(-50%);

  svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentcolor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  &:disabled {
    display: none;
  }
}

.photo-move-before {
  left: 0.4rem;
}

.photo-move-after {
  right: 0.4rem;
}

.blur-review {
  width: min(94vw, 1000px);
  max-height: 94vh;
  padding: 1.2rem;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--paper);

  &::backdrop {
    background: rgb(17 17 17 / 75%);
  }

  h2 {
    margin-bottom: 0.4rem;
  }
}

.blur-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin: 0;
  font-size: 0.85rem;

  span {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
  }

  span::before {
    content: "";
    width: 1.1rem;
    height: 0.8rem;
    border: 2px dashed var(--ink);
    border-radius: 50%;
  }

  .is-on::before {
    border: 2px solid var(--ink);
    background: var(--yellow);
  }
}

.blur-frame {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0.8rem auto;
  line-height: 0;
  cursor: crosshair;

  canvas {
    display: block;
    max-width: 100%;
    max-height: 62vh;
    width: auto;
    height: auto;
  }
}

.blur-zone {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--w);
  height: var(--h);
  padding: 0;
  border: 2px dashed var(--paper);
  border-radius: 50%;
  outline: 1px dashed var(--ink);
  background: none;
  cursor: pointer;

  &::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
  }

  &[aria-pressed="true"] {
    border: 2px solid var(--yellow);
    outline: 1px solid var(--ink);
  }

  &:hover,
  &:focus-visible {
    background: rgb(255 255 255 / 25%);
  }
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;

  [aria-pressed="true"] {
    background: var(--yellow);
  }
}

.admin-panel > * + * {
  margin-top: 1.5rem;
}

[data-agenda-preview] {
  margin-bottom: 0;
}

.calendar {
  max-width: 24rem;
  margin-top: 1rem;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;

  strong {
    font-size: 1.05rem;
    font-weight: 800;
  }

  strong::first-letter {
    text-transform: uppercase;
  }
}

.calendar-nav {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: var(--border);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  cursor: pointer;

  svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentcolor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  &:disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;

  button {
    aspect-ratio: 1;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: none;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
  }

  button:not(:disabled):hover {
    border-color: var(--ink);
  }

  button:disabled {
    color: rgb(17 17 17 / 30%);
    cursor: default;
  }

  .is-friday:not(.is-past) {
    background: var(--yellow);
    color: var(--ink);
  }

  .is-current {
    outline: 2px dashed var(--ink);
    outline-offset: -2px;
  }

  [aria-pressed="true"] {
    border-color: var(--ink);
  }
}

.calendar-weekday {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.calendar-added .calendar-grid [aria-pressed="true"] {
  background: var(--blue);
  color: var(--paper);
}

.calendar-cancelled .calendar-grid [aria-pressed="true"] {
  background: var(--red);
  text-decoration: line-through;
}

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

  li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
  }

  .admin-hint {
    font-weight: 400;
  }
}

.changelog {
  display: grid;
  gap: 1rem;

  summary {
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
  }

  h4 {
    margin: 1rem 0 0.3rem;
  }

  p {
    margin: 0.6rem 0 0;
  }

  ul {
    margin: 0.4rem 0 0;
    padding-left: 1.2rem;
  }
}

.monitoring-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem;
  margin: 0;

  .card {
    padding: 0.9rem 1rem;
  }

  dt {
    font-size: 0.85rem;
    font-weight: 700;
  }

  dd {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
  }
}

.monitoring-chart {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  align-items: end;
  gap: 2px;
  height: 9rem;
  margin: 0 0 0.6rem;
  padding: 0;
  border-bottom: var(--border);
  list-style: none;

  li {
    height: 100%;
    display: flex;
    align-items: flex-end;
  }

  li::before {
    content: "";
    width: 100%;
    height: calc(var(--value, 0) * 100%);
    min-height: 2px;
    border-radius: 4px 4px 0 0;
    background: var(--blue);
  }

  li:hover::before {
    background: var(--ink);
  }
}

details {
  &::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.35s var(--ease), content-visibility 0.35s allow-discrete;
  }

  &[open]::details-content {
    height: auto;
  }
}

.faq {
  display: grid;
  gap: 0.9rem;

  details {
    --tone: var(--yellow);
    border: var(--border);
    border-left-width: 12px;
    border-left-color: var(--tone);
    border-radius: 12px;
    background: var(--paper);
    transition: box-shadow 0.2s ease, background-color 0.2s ease;

    &[open] {
      background: color-mix(in srgb, var(--tone) 35%, var(--paper));
      box-shadow: var(--shadow);
    }
  }

  details:nth-child(5n + 2) { --tone: var(--lilac); }
  details:nth-child(5n + 3) { --tone: var(--green); }
  details:nth-child(5n + 4) { --tone: var(--red); }
  details:nth-child(5n + 5) { --tone: var(--blue); }

  summary {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    padding: 0.9rem 1.1rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;

    &::-webkit-details-marker {
      display: none;
    }

    &::before {
      content: "";
      flex: none;
      width: 0;
      height: 0;
      border-block: 5px solid transparent;
      border-left: 8px solid currentColor;
      transition: transform 0.3s var(--ease);
    }
  }

  details[open] > summary::before {
    transform: rotate(90deg);
  }

  p {
    padding: 0 1.1rem 0 2.6rem;
    color: var(--muted);
  }

  details > p:last-child {
    padding-bottom: 1rem;
    margin-bottom: 0;
  }
}

.site-footer {
  margin-top: 3rem;
  padding-block: 3rem;
  background: var(--ink);
  color: var(--paper);

  .wrap {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    align-items: center;
  }

  blockquote {
    margin: 0;
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
    font-weight: 800;
    line-height: 1.25;
  }

  .contact {
    display: grid;
    gap: 0.9rem;
    margin: 0;
    padding: 0;
    list-style: none;

    span {
      display: block;
      color: #b9b9b9;
      font-size: 0.78rem;
    }

    a {
      color: var(--yellow);
      font-weight: 700;
    }
  }
}

a[target="_blank"]:not(.card-link)::after {
  content: "\2009\2197";
  content: "\2009\2197" / " (nouvel onglet)";
  font-size: 0.85em;
}

.card-link h3::after {
  content: " ↗";
  content: " ↗" / " (nouvel onglet)";
}

.section h2 {
  width: fit-content;
  padding: 0.08em 0.35em;
  border: var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: var(--dots) 0 0 / 8px 8px, var(--h2, var(--yellow));
  transform: rotate(-1deg);
}

:is(#lieu, .nav a[href="#lieu"]) { --h2: var(--blue); }
:is(#jeux, .nav a[href="#jeux"]) { --h2: var(--green); }
:is(#rejoindre, .nav a[href="#rejoindre"]) { --h2: var(--red); }
:is(#photos, .nav a[href="#photos"]) { --h2: var(--lilac); }
:is(#faq, .nav a[href="#faq"]) { --h2: var(--yellow); }

:is(#lieu h2, .nav a[href="#lieu"]) { color: var(--paper); }

.ral h2 {
  width: auto;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: none;
  transform: none;
}

.prices .card {
  background-image: var(--dots);
  background-size: 9px 9px;
}

.site-footer {
  position: relative;
  margin-top: 4.5rem;

  &::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 56px;
    background: repeating-linear-gradient(90deg, var(--red) 0 56px, var(--blue) 56px 112px, var(--green) 112px 168px, var(--yellow) 168px 224px, var(--ink) 224px 280px);
    mask: var(--meeple) 0 100% / 56px 56px repeat-x;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-text > * {
    animation: rise 0.8s var(--ease) both;
  }

  .hero-text > :nth-child(2) { animation-delay: 0.08s; }
  .hero-text > :nth-child(3) { animation-delay: 0.16s; }
  .hero-text > :nth-child(4) { animation-delay: 0.24s; }

  .mark {
    animation: wiggle 0.9s 0.6s var(--ease) both;
  }

  .tile {
    animation: pop 0.6s var(--ease) both;
  }

  .tile:nth-child(1) { animation-delay: 0.25s; }
  .tile:nth-child(2) { animation-delay: 0.35s; }
  .tile:nth-child(3) { animation-delay: 0.45s; }
  .tile:nth-child(4) { animation-delay: 0.55s; }

  .hero-logo {
    animation: pop 0.7s 0.1s var(--ease) backwards;
  }

  .photo-mark {
    animation: pulse 1.8s ease-in-out infinite;
  }

  @media (scripting: enabled) {
    [data-reveal] > *,
    [data-reveal]:is(h2, blockquote, .card) {
      transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), box-shadow 0.25s var(--ease);
      transition-delay: var(--stagger, 0ms), var(--stagger, 0ms), 0ms;
    }

    [data-reveal]:not(.is-visible) > *,
    [data-reveal]:is(h2, blockquote, .card):not(.is-visible) {
      opacity: 0;
      transform: translateY(24px);
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.5em);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6) rotate(-6deg);
  }
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 2px var(--ink), 0 0 0 7px rgba(255, 210, 63, 0.55);
  }
}

@keyframes wiggle {
  30% {
    transform: rotate(3deg) scale(1.06);
  }

  60% {
    transform: rotate(-4deg);
  }
}

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

  *,
  *::before,
  *::after,
  ::details-content {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 960px) {
  :root {
    --header: 112px;
  }

  .site-header .wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    padding-block: 0.7rem 0.4rem;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    border-left: 0;
    border-top: var(--border);
  }

  .families,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2,
  .grid-3,
  .site-footer .wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 88px;
  }

  .dates {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    padding-top: 0.9rem;
  }

  .date[data-badge]::before {
    padding-inline: 0.25rem;
    font-size: 0.6rem;
  }

  .date {
    min-width: 0;
    padding-inline: 0.2rem;
  }

  .site-header .wrap {
    gap: 0;
    min-height: 0;
    padding-block: 0.3rem 0.1rem;
  }

  .brand {
    height: 32px;
    font-size: 0.95rem;

    img {
      width: 52px;
    }
  }

  .nav {
    flex-wrap: nowrap;
    gap: 0.15rem;
    padding-inline: 0;

    a {
      flex: 1 1 auto;
      padding: 0.3rem 0.1rem;
      border-radius: 7px;
      font-size: clamp(0.5rem, 2.6vw, 0.8rem);
      text-align: center;
      white-space: nowrap;
    }
  }

  .lightbox-nav {
    top: auto;
    bottom: -3.4rem;
    transform: none;
  }

  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .prices {
    grid-template-columns: 1fr;
  }

  .families {
    gap: 0.7rem;
  }

  .families li {
    padding: 0.6rem 0.7rem;
    font-size: 0.9rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 1rem;
    padding: 0.6rem 0;
    border-bottom: 2px dashed rgba(17, 17, 17, 0.15);
  }

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

  .table :is(th, td) {
    padding: 0;
    border: 0;
  }

  .table td:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (pointer: coarse) and (orientation: portrait) {
  .lightbox-rotate {
    display: grid;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .lightbox {
    max-width: calc(100vw - 7.5rem);
    max-height: 100dvh;
    padding: 0.4rem;

    img {
      max-height: calc(100dvh - 3.6rem);
    }

    figcaption {
      margin-top: 0.2rem;
      font-size: 0.85rem;
    }
  }

  .lightbox-count {
    margin: 0;
    font-size: 0.75rem;
  }

  .lightbox-close {
    top: -0.6rem;
    right: -3.2rem;
  }

  .lightbox-previous {
    left: -3.4rem;
  }

  .lightbox-next {
    right: -3.4rem;
  }
}

.lightbox.is-rotated {
  inset: auto;
  top: 50%;
  left: 50%;
  width: 100dvh;
  height: 100vw;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0.4rem 3.6rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: translate(-50%, -50%) rotate(90deg);

  figure {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    margin: 0;
  }

  img {
    max-width: 100%;
    max-height: calc(100vw - 3.6rem);
  }

  figcaption {
    margin-top: 0.2rem;
    font-size: 0.85rem;
  }

  .lightbox-count {
    margin: 0;
    font-size: 0.75rem;
  }

  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
  }

  .lightbox-rotate {
    top: 0.5rem;
    left: 0.5rem;
  }

  .lightbox-nav {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .lightbox-previous {
    left: 0.4rem;
  }

  .lightbox-next {
    right: 0.4rem;
  }
}
