/* Moment by Margot : direction « planche-contact », couleurs pickleball. Bleu nuit, texte clair, vert balle. */
@font-face {
  font-family: Archivo;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/fonts/archivo.woff2) format("woff2");
}
@font-face {
  font-family: "Martian Mono";
  font-weight: 100 800;
  font-display: swap;
  src: url(/fonts/martian-mono.woff2) format("woff2");
}
:root {
  --paper: oklch(27% 0.035 245); /* bleu nuit, fond principal */
  --paper-2: oklch(32% 0.04 245);
  --ink: oklch(97% 0.005 245);
  --ink-2: oklch(80% 0.02 245); /* 7:1 sur --paper */
  --rule: oklch(40% 0.035 245);
  --pencil: oklch(90% 0.19 122); /* vert balle : fonds (texte --paper dessus), cercle, contours */
  --pencil-text: var(--pencil); /* texte vert sur --paper (10:1) */
  --pencil-light: var(--pencil);
  --film: oklch(21% 0.03 245);
  --film-text: oklch(80% 0.015 245);
  --danger: oklch(65% 0.19 25);
  --mono: "Martian Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 Archivo, system-ui, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2 {
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0.4em 0 0.3em;
}
h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
h2 small {
  font: 400 0.9rem Archivo, sans-serif;
  letter-spacing: 0;
  color: var(--ink-2);
}
:focus-visible {
  outline: 3px solid var(--pencil);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
}
.skip:focus {
  top: 1rem;
}
.wrap {
  width: min(100% - 2.5rem, 84rem);
  margin-inline: auto;
}
.meta,
.empty,
.hint {
  color: var(--ink-2);
  margin: 0 0 1.25rem;
}
.mono {
  font: 400 0.75rem/1.6 var(--mono);
  letter-spacing: 0.02em;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  margin-top: 0.75rem;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
}
.back:hover {
  color: var(--ink);
}

/* ---------- En-tête et pied de page ---------- */
.site-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  border-bottom: 1px solid var(--ink);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.logo i,
.by {
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  color: var(--ink-2);
}
.site-top nav {
  display: flex;
  gap: clamp(1rem, 3vw, 1.75rem);
}
.site-top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 500 0.72rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.site-top nav a[aria-current] {
  color: var(--pencil-text);
}
.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.6rem 1.4rem;
  border: 1.5px solid var(--pencil);
  border-radius: 0;
  background: var(--pencil);
  color: var(--paper);
  font: 600 1rem Archivo, sans-serif;
  font-stretch: 110%;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
}
.btn.ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn.ghost:hover {
  background: var(--paper-2);
}
.btn.accent {
  background: var(--pencil);
  border-color: var(--pencil);
  color: var(--paper);
}
.btn.small {
  min-height: 40px;
  padding: 0.4rem 1rem;
  font-size: 0.95rem;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- Accueil : titre et planche-contact ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: end;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7.4vw, 7.2rem);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 0.88;
  letter-spacing: -0.035em;
}
.hero h1 .l2 {
  display: block;
}
.hero h1 .by {
  font-weight: 300;
  font-size: 0.5em;
  letter-spacing: -0.01em;
}
.hero .sub {
  margin: 1.1rem 0 0;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 300;
  font-stretch: 62%;
  line-height: 1.05;
  color: var(--ink-2);
}
.hero .lede {
  max-width: 36ch;
  margin: 1.5rem 0 1.75rem;
  font-size: 1.15rem;
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.sheet {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.6rem;
  margin: 0;
  padding: 0.6rem 0.6rem 0;
  background: var(--film);
  aspect-ratio: 4 / 3.4;
}
.frame {
  position: relative;
  min-height: 0;
  margin: 0;
}
.frame.big {
  grid-row: span 2;
}
.frame img {
  position: absolute;
  inset: 0 0 1.9rem;
  width: 100%;
  height: calc(100% - 1.9rem);
  object-fit: cover;
}
.frame figcaption {
  position: absolute;
  inset: auto 0 0;
  height: 1.9rem;
  display: flex;
  align-items: center;
  font: 400 0.62rem var(--mono);
  color: var(--film-text);
}
.frame figcaption b {
  color: var(--pencil-light);
  font-weight: 500;
  margin-right: 0.6em;
}
/* Cercle au crayon gras, comme sur une vraie planche-contact. */
.circle {
  position: absolute;
  inset: -3% -5% auto;
  width: 110%;
  height: calc(100% - 1.9rem + 6%);
  pointer-events: none;
  overflow: visible;
  color: var(--pencil);
}

/* ---------- Accueil : évènements en bandes ---------- */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--ink);
}
.sec-head h2 {
  margin: 0;
}
.events {
  list-style: none;
  margin: 0 0 5rem;
  padding: 0;
}
.event a {
  display: grid;
  grid-template-columns: 9rem 1fr auto;
  gap: 1rem 2rem;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
}
.when {
  color: var(--ink-2);
}
.when b {
  display: block;
  font: 700 1.6rem/1 Archivo, sans-serif;
  font-stretch: 62%;
  color: var(--ink);
  text-transform: uppercase;
}
.event h3 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
  font-weight: 700;
  font-stretch: 108%;
  line-height: 1.1;
}
.event a:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
}
/* Carré : ses photos sont surtout en portrait, une bande basse les coupait trop. */
.strip img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 25%;
  background: var(--paper-2);
  filter: grayscale(0.35);
  transition: filter 0.3s var(--ease);
}
.event a:hover .strip img {
  filter: none;
}
.strip .soon {
  grid-column: 1 / -1;
  min-height: 6rem;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  color: var(--ink-2);
}
.count {
  text-align: right;
  color: var(--ink-2);
}
.count b {
  display: block;
  font: 800 2rem/1 Archivo, sans-serif;
  font-stretch: 62%;
  color: var(--ink);
}

/* ---------- Page contact ---------- */
.press-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.press-page {
  padding: clamp(2rem, 5vw, 3.5rem) 0 5rem;
}
.press-page .press-grid {
  grid-template-columns: 1fr 1.2fr;
}
.chosen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chosen li {
  width: 84px;
}
.chosen img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  object-position: 50% 25%;
}
.chosen span {
  display: block;
  padding-top: 0.25rem;
  color: var(--pencil-text);
}
.hp {
  position: absolute;
  left: -9999px;
}

/* ---------- Pages évènement et album ---------- */
.page-head {
  padding-bottom: 0.5rem;
}
.page-head .meta {
  font: 400 0.78rem/1.6 var(--mono);
}
.cards {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
  display: grid;
  gap: 1.5rem 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
.card a {
  display: block;
  text-decoration: none;
}
.card img,
.nocover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-2);
  border: 0.45rem solid var(--film);
}
.nocover {
  display: block;
}
.card-text {
  display: grid;
  padding: 0.6rem 0 0;
}
.card-text strong {
  font-size: 1.3rem;
  font-weight: 700;
  font-stretch: 108%;
  line-height: 1.15;
}
.card a:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.card-text span,
.card-text time {
  color: var(--ink-2);
  font: 400 0.75rem/1.8 var(--mono);
}

/* Grille de photos : la pellicule. Fond film, 3 colonnes serrées sur téléphone. */
.grid {
  list-style: none;
  margin: 0 auto 6rem;
  padding: 2px;
  max-width: 90rem;
  /* Rangées justifiées : chaque photo garde son format, toutes les photos d'une rangée ont la même hauteur. */
  --h: 120px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  background: var(--film);
}
.grid::after {
  content: "";
  flex-grow: 999; /* la dernière rangée garde la hauteur cible au lieu de s'étirer */
}
@media (min-width: 700px) {
  .grid {
    width: min(100% - 2.5rem, 90rem);
    --h: 220px;
    gap: 6px;
    padding: 6px;
  }
}
.grid a,
.grid li {
  position: relative;
  display: block;
}
/* Pas de content-visibility ici : sur iPhone (WebKit), les cases hors écran prenaient une taille fictive,
   les rangées se recomposaient pendant le défilement et la page sautait. Les images restent en lazy. */
.grid li {
  flex: var(--r) 1 calc(var(--r) * var(--h));
  aspect-ratio: var(--r);
}
.grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--film);
}
.grid.selecting a::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: oklch(16% 0.008 60 / 0.35);
}
.grid.selecting a.on img {
  opacity: 0.6;
}
.grid.selecting a.on::after {
  background: var(--pencil) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23192636' stroke-width='3'/%3E%3C/svg%3E") center/18px no-repeat;
  border-color: var(--pencil);
}
/* Case cochée : cercle au crayon autour de la photo, comme une sélection d'éditeur. */
.grid.selecting a.on {
  outline: 3px solid var(--pencil);
  outline-offset: -3px;
}
.grid a:focus-visible {
  outline-offset: -3px;
  z-index: 1;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

/* Barre de sélection collée en bas, à portée de pouce. */
.selbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--ink);
}
.selbar[hidden] {
  display: none;
}
.selbar span {
  flex: 1;
  font-weight: 600;
}
.dl-status {
  position: fixed;
  left: 50%;
  bottom: calc(5.5rem + env(safe-area-inset-bottom));
  z-index: 40;
  translate: -50% 1rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin: 0;
  padding: 0.75rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), translate 0.2s var(--ease);
}
.dl-status .btn {
  background: var(--pencil);
  border-color: var(--pencil);
  color: var(--paper);
}
.dl-status.show {
  opacity: 1;
  translate: -50% 0;
  pointer-events: auto;
}

/* Visionneuse plein écran : reste sombre, la photo d'abord. */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--film);
  color: var(--ink);
}
.lightbox[open] {
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.lightbox::backdrop {
  background: var(--film);
}
.lightbox .btn {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.lightbox .btn.ghost {
  background: transparent;
  color: var(--ink);
}
.lb-top,
.lb-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(0.5rem, env(safe-area-inset-top)) 0.75rem 0.5rem;
  z-index: 2;
}
.lb-bottom {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom));
}
.lb-count {
  margin: 0 0 0 0.5rem;
  font: 400 0.78rem var(--mono);
}
.lb-count b {
  color: var(--pencil-light);
  font-weight: 500;
  margin-right: 0.75em;
}
.lb-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
}
.lb-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center;
  will-change: transform;
}
.lb-full {
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.lb-stage.zoomed {
  cursor: grab;
}
.lb-full.loaded {
  opacity: 1;
}
.lb-close,
.lb-nav {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: oklch(96% 0.01 85 / 0.14);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}
.lb-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  font-size: 2rem;
  line-height: 1;
}
.lb-prev {
  left: 0.75rem;
}
.lb-next {
  right: 0.75rem;
}

/* ---------- Formulaires (presse et admin) ---------- */
.flash {
  margin: 1rem auto;
  width: min(100% - 2.5rem, 84rem);
  padding: 0.8rem 1rem;
  background: oklch(40% 0.08 145);
  border: 1px solid oklch(70% 0.12 145);
}
.flash.err {
  background: oklch(35% 0.08 25);
  border-color: var(--danger);
}
.form {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 2rem;
}
.form.inline {
  grid-template-columns: 1fr auto;
  align-items: end;
}
.form .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: end;
}
label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}
label small {
  font-weight: 400;
  color: var(--ink-2);
}
input:not([type="file"]),
select,
textarea {
  min-height: 48px;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--ink-2);
  border-radius: 0;
  background: var(--film);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
textarea {
  min-height: 7rem;
  resize: vertical;
}
input[type="file"] {
  font: inherit;
  color: var(--ink-2);
}

/* ---------- Admin ---------- */
.admin {
  max-width: 44rem;
  padding-bottom: 4rem;
}
.adminbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
}
details > summary {
  list-style: none;
  width: max-content;
}
details > summary::-webkit-details-marker {
  display: none;
}
.cover-preview {
  width: 10rem;
}
.rows {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.rows li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.rows li > a {
  flex: 1;
  display: grid;
  min-height: 48px;
  align-content: center;
  text-decoration: none;
}
.rows small {
  color: var(--ink-2);
}
.row-actions {
  display: flex;
  gap: 0.25rem;
}
.row-actions form {
  margin: 0;
}
.icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}
.icon.danger {
  color: var(--danger);
}
.icon:disabled {
  opacity: 0.3;
}
.upload {
  margin: 1.5rem 0 2rem;
}
.dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding: 2rem 1rem;
  border: 2px dashed var(--ink-2);
  text-align: center;
  cursor: pointer;
}
.dropzone:focus-within {
  border-color: var(--pencil);
}
.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.dropzone small {
  max-width: 34ch;
}
#progress progress {
  width: 100%;
  height: 14px;
  accent-color: var(--pencil);
}
.admin-grid {
  width: auto;
  margin-bottom: 2rem;
}
.admin-grid .icon {
  position: absolute;
  top: 4px;
  right: 4px;
  background: oklch(16% 0.008 60 / 0.6);
  border-color: transparent;
  color: var(--ink);
}
.requests {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.requests > li {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}
.requests > li.done {
  opacity: 0.55;
}
.requests header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}
.requests p {
  margin: 0;
  white-space: pre-line;
}
.requests .row-actions {
  flex-wrap: wrap;
  gap: 0.5rem;
}
.badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0 0.5rem;
  background: var(--pencil);
  color: var(--paper);
  font: 500 0.75rem/1.6 var(--mono);
}

/* Boîte de confirmation (admin.js) */
.confirm {
  width: min(100% - 2rem, 26rem);
  padding: 1.5rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0.5rem 0.5rem 0 var(--film);
}
.confirm::backdrop {
  background: oklch(16% 0.008 60 / 0.55);
}
.confirm[open] {
  animation: rise 0.25s var(--ease);
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 0.75rem;
  }
}
.confirm p {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}
.btn.danger {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--film);
}

/* Champ date : bouton + calendrier cally (admin.js) */
.datebtn {
  min-height: 48px;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--ink-2);
  background: var(--film);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}
.datebtn::first-letter {
  text-transform: uppercase;
}
.datebtn[aria-expanded="true"] {
  border-color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}
.datefield {
  position: relative;
  display: grid;
}
/* cally impose son display : [hidden] seul ne suffit pas. */
.cal[hidden] {
  display: none;
}
.cal {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 30;
  display: block;
  width: max-content;
  max-width: calc(100vw - 2rem);
  padding: 1rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 0.4rem 0.4rem 0 var(--film);
  font-weight: 400;
  animation: rise 0.2s var(--ease);
}
.cal::part(header) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.cal::part(heading) {
  font-weight: 700;
  font-stretch: 112%;
  text-transform: capitalize;
}
.cal::part(button) {
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
}
.cal calendar-month::part(heading) {
  display: none; /* déjà dans l'en-tête du calendrier */
}
.cal calendar-month::part(th) {
  padding-bottom: 0.4rem;
  font: 500 0.68rem var(--mono);
  text-transform: uppercase;
  color: var(--ink-2);
}
.cal calendar-month::part(button) {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.cal calendar-month::part(button):hover {
  background: var(--paper-2);
}
.cal calendar-month::part(outside) {
  color: var(--ink-2);
  opacity: 0.5;
}
.cal calendar-month::part(today) {
  box-shadow: inset 0 0 0 1.5px var(--pencil);
}
.cal calendar-month::part(selected) {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.cal calendar-month::part(button):focus-visible {
  outline: 3px solid var(--pencil);
  outline-offset: -3px;
}

/* ---------- Téléphone ---------- */
@media (max-width: 760px) {
  .site-top nav a:first-child {
    display: none; /* l'accueil est la liste des évènements */
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 1.25rem;
    gap: 1.75rem;
  }
  .sheet {
    order: -1;
  }
  .hero h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }
  .event a {
    grid-template-columns: 1fr auto;
    gap: 0.75rem 1rem;
  }
  .event .body {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .strip {
    grid-template-columns: repeat(4, 1fr);
  }
  .strip img:nth-child(n + 5) {
    display: none;
  }
  .press-grid,
  .press-page .press-grid,
  .form .two {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
.hint {
  color: var(--ink-2);
  max-width: 52ch;
  margin-top: -0.5rem;
}
details.edit {
  margin-bottom: 2rem;
}
details.edit[open] > summary {
  margin-bottom: 1rem;
}
.albums li > a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.albums li > a > span:nth-child(2) {
  flex: 1;
  display: grid;
}
.albums img,
.albums .nocover {
  width: 56px;
  height: 56px;
  object-fit: cover;
  flex: none;
}
.albums .btn {
  white-space: nowrap;
}
@media (max-width: 560px) {
  .albums li {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .albums li > a {
    flex-basis: 100%;
  }
}
