/* ------------------------------------------------------------------
   Badminton CDQ
   ------------------------------------------------------------------ */

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-400-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  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+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  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+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/plex-mono-400-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  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+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/plex-mono-500-latin-ext.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  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+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --papier: #f1ece1;
  --papier-2: #e8e1d1;
  --encre: #12140f;
  --encre-doux: #3b3d33;
  --gris: #78755f;
  --trait: #d2cab6;
  --vert: #143c2c;
  --vert-clair: #dfe8de;
  --orange: #c9502c;
  --serif: "Instrument Serif", ui-serif, "New York", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--vert);
  color: var(--papier);
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: var(--trait);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--orange);
}

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

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

[hidden] {
  display: none !important;
}

.mono {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gris);
  line-height: 1.5;
}

.wrap {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 30px;
}

/* --- entête ------------------------------------------------------- */

.entete {
  position: relative;
  z-index: 10;
  background: var(--papier);
  border-bottom: 1px solid var(--trait);
}

.entete-grille {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.marque {
  justify-self: start;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.marque em {
  font-style: italic;
  color: var(--vert);
}

.entete-region {
  justify-self: center;
}

.nav {
  justify-self: end;
  display: flex;
  gap: 26px;
}

.nav a {
  position: relative;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--encre-doux);
  white-space: nowrap;
}

.nav a:hover {
  color: var(--orange);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: var(--encre);
}

@media (max-width: 900px) {
  .entete-region {
    display: none;
  }
  .entete-grille {
    grid-template-columns: 1fr auto;
    min-height: 64px;
  }
}

@media (max-width: 620px) {
  .wrap {
    padding: 0 18px;
  }
  .marque {
    font-size: 21px;
  }
  .nav {
    gap: 14px;
  }
  .nav a {
    font-size: 9.5px;
  }
  .nav a:first-child {
    display: none;
  }
}

/* --- ouverture ---------------------------------------------------- */

.ouverture {
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 840px);
  display: flex;
  flex-direction: column;
  color: var(--papier);
  background: #0e2a20;
}

.ouverture-fond {
  position: absolute;
  inset: 0;
  background-image: url("/photos/servir.jpg");
  background-size: cover;
  background-position: 64% 42%;
  filter: grayscale(1) contrast(1.06) brightness(0.92);
  transform: scale(1.03);
}

.ouverture-voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(8, 26, 19, 0.96) 0%,
    rgba(10, 31, 23, 0.9) 38%,
    rgba(11, 35, 26, 0.5) 70%,
    rgba(11, 35, 26, 0.3) 100%
  );
}

.ouverture-corps {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 30px;
  padding-bottom: 34px;
}

.ouverture-haut {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.ouverture .mono {
  color: rgba(241, 236, 225, 0.55);
}

.ouverture h1 {
  margin: auto 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.6rem, 10vw, 9.2rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
  color: var(--papier);
}

.ouverture h1 span {
  display: block;
  overflow: hidden;
  padding: 0.14em 0 0.18em;
  margin: -0.14em 0 -0.18em;
  animation: monte 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.ouverture h1 span:nth-child(2) {
  animation-delay: 0.14s;
}

.ouverture h1 em {
  font-style: italic;
  color: #e8dfc8;
}

@keyframes monte {
  from {
    transform: translateY(112%);
  }
  to {
    transform: none;
  }
}

.ouverture-bas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 48px;
  align-items: end;
  padding-top: 38px;
}

.ouverture .chapeau {
  margin: 0;
  max-width: 44ch;
  font-size: 19px;
  line-height: 1.45;
  color: rgba(241, 236, 225, 0.82);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.chips a {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid rgba(241, 236, 225, 0.28);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(241, 236, 225, 0.9);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chips a:hover {
  background: var(--papier);
  border-color: var(--papier);
  color: var(--vert);
}

.recherche label {
  display: block;
  margin-bottom: 4px;
}

.recherche input {
  width: 100%;
  padding: 8px 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(241, 236, 225, 0.65);
  border-radius: 0;
  background: transparent;
  color: var(--papier);
  font-family: var(--sans);
  font-size: 18px;
}

.recherche input::placeholder {
  color: rgba(241, 236, 225, 0.4);
}

.recherche input:focus {
  outline: none;
  border-bottom-color: var(--papier);
}

@media (max-width: 860px) {
  .ouverture {
    min-height: 0;
  }
  .ouverture-bas {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .ouverture h1 {
    margin: 44px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ouverture h1 span {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* --- index des municipalités -------------------------------------- */

.index-villes {
  padding: 62px 0 52px;
  border-bottom: 1px solid var(--trait);
}

.section-liste {
  margin-top: 48px;
}

.cadre--ville {
  margin-top: 42px;
}

.index-titre {
  margin: 0 0 0;
}

.index-tete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}

.index-reset {
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid var(--trait);
  background: none;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gris);
  cursor: pointer;
}

.index-reset:hover,
.index-reset.actif {
  border-color: var(--orange);
  color: var(--orange);
}

.index-villes ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.index-villes ul a,
.index-villes ul button {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-top: 1px solid var(--trait);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: padding 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.index-villes ul a:hover,
.index-villes ul button:hover {
  padding-left: 8px;
  color: var(--orange);
}

.index-villes ul button.actif {
  padding-left: 8px;
  border-top-color: var(--orange);
  color: var(--orange);
}

.index-villes ul button.actif em {
  color: var(--orange);
}

.index-villes span {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1;
}

.index-villes em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  color: var(--gris);
}

.index-villes .tout span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gris);
}

@media (max-width: 700px) {
  .index-villes ul {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* --- sections ------------------------------------------------------ */

.section {
  padding: 84px 0 0;
}

.section-tete {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: baseline;
  padding-top: 15px;
  margin-bottom: 34px;
  border-top: 2px solid var(--encre);
}

.section-num {
  color: var(--orange);
}

.section-tete h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
}

.section-note {
  max-width: 34ch;
  text-align: right;
  line-height: 1.55;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 11px;
}

@media (max-width: 760px) {
  .section {
    padding-top: 64px;
  }
  .section-tete {
    grid-template-columns: 40px 1fr;
    gap: 14px;
  }
  .section-note {
    grid-column: 2;
    text-align: left;
  }
}

/* --- carte ---------------------------------------------------------- */

.cadre {
  position: relative;
}

.carte {
  height: 560px;
  border: 1px solid var(--encre);
  background: var(--papier-2);
  z-index: 0;
  overflow: hidden;
}

.repere {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1px solid var(--encre);
  z-index: 2;
  pointer-events: none;
}

.repere--hg {
  top: -7px;
  left: -7px;
  border-right: 0;
  border-bottom: 0;
}
.repere--hd {
  top: -7px;
  right: -7px;
  border-left: 0;
  border-bottom: 0;
}
.repere--bg {
  bottom: -7px;
  left: -7px;
  border-right: 0;
  border-top: 0;
}
.repere--bd {
  bottom: -7px;
  right: -7px;
  border-left: 0;
  border-top: 0;
}

@media (max-width: 760px) {
  .carte {
    height: 380px;
  }
  .repere {
    display: none;
  }
}

.leaflet-container {
  background: #e6e1d3;
  font-family: var(--sans);
}

.leaflet-control-attribution {
  font-size: 10px;
  background: rgba(241, 236, 225, 0.86);
}

.leaflet-popup-content-wrapper {
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
}

.leaflet-popup-content {
  margin: 12px 14px;
}

.carte-pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--papier);
  border-radius: 50%;
  background: var(--vert);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.carte-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  margin-top: -1px;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--vert);
}

.carte-bulle {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
}

.carte-bulle strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
}

.carte-bulle a {
  color: var(--vert);
}

/* --- filtres -------------------------------------------------------- */

.filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 42px;
  margin-bottom: 30px;
}

.groupe-filtre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
}

.groupe-filtre > .mono {
  margin-right: 10px;
}

.pilule {
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--encre-doux);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.pilule:hover {
  border-color: var(--trait);
}

.pilule[aria-pressed="true"] {
  background: var(--encre);
  border-color: var(--encre);
  color: var(--papier);
}

@media (max-width: 780px) {
  .filtres {
    flex-direction: column;
    gap: 12px;
  }
  .groupe-filtre > .mono {
    width: 100%;
    margin: 0 0 4px;
  }
}

/* --- fiches --------------------------------------------------------- */

.grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fiche {
  display: flex;
  flex-direction: column;
  min-height: 296px;
  padding: 22px 22px 18px;
  border: 1px solid var(--trait);
  color: var(--encre);
  text-decoration: none;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.fiche:hover {
  background: var(--vert);
  border-color: var(--vert);
  color: var(--papier);
}

.fiche-haut {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.fiche-num {
  color: var(--orange);
}

.fiche-ville {
  text-align: right;
}

.fiche h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.fiche-resume {
  flex: 1;
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--encre-doux);
}

.fiche-quand {
  margin: 0 0 18px;
}

.fiche-bas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.etiquette {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--trait);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--encre-doux);
  white-space: nowrap;
}

.etiquette--attente {
  border-color: #c9b79a;
  color: #86643a;
}

.etiquette--ok {
  border-color: var(--vert);
  color: var(--vert);
}

.fiche-fleche {
  margin-left: auto;
  font-size: 17px;
  line-height: 1;
  transition: transform 0.35s ease;
}

.fiche:hover .fiche-fleche {
  transform: translate(4px, -4px);
}

.fiche:hover .fiche-resume {
  color: rgba(241, 236, 225, 0.78);
}

.fiche:hover .fiche-ville,
.fiche:hover .fiche-quand {
  color: rgba(241, 236, 225, 0.6);
}

.fiche:hover .fiche-num {
  color: #efa184;
}

.fiche:hover .etiquette {
  border-color: rgba(241, 236, 225, 0.4);
  color: var(--papier);
}

.fiche:hover .etiquette--attente,
.fiche:hover .etiquette--ok {
  border-color: rgba(241, 236, 225, 0.6);
  color: var(--papier);
}

.vide {
  padding: 40px 0;
  margin: 0;
  font-size: 15px;
  color: var(--gris);
}

.lien-ville {
  margin: 24px 0 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lien-ville a {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--trait);
  text-decoration: none;
}

.lien-ville a:hover {
  border-color: var(--orange);
  color: var(--orange);
}

@media (max-width: 1080px) {
  .grille {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .grille {
    grid-template-columns: 1fr;
  }
  .fiche {
    min-height: 0;
  }
}

/* --- avant de partir ------------------------------------------------ */

.savoir {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.savoir li {
  padding-top: 14px;
  border-top: 1px solid var(--trait);
}

.savoir .mono {
  color: var(--orange);
}

.savoir strong {
  display: block;
  margin: 12px 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.04;
}

.savoir p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--encre-doux);
}

@media (max-width: 800px) {
  .savoir {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* --- bande ---------------------------------------------------------- */

.bande {
  position: relative;
  overflow: hidden;
  margin-top: 96px;
  padding: 92px 0;
  color: var(--papier);
  background: #0e2a20;
}

.bande-fond {
  position: absolute;
  inset: 0;
  background-image: url("/photos/volants.jpg");
  background-size: cover;
  background-position: center 58%;
  filter: grayscale(1) brightness(0.55);
}

.bande-voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(8, 25, 18, 0.96) 0%,
    rgba(8, 25, 18, 0.82) 52%,
    rgba(8, 25, 18, 0.5) 100%
  );
}

.bande-corps {
  position: relative;
}

.bande .mono {
  color: rgba(241, 236, 225, 0.55);
}

.bande h2 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--papier);
}

.bande h2 em {
  font-style: italic;
  color: #e8dfc8;
}

.bande-texte {
  max-width: 44ch;
  margin: 20px 0 28px;
  font-size: 16px;
  color: rgba(241, 236, 225, 0.78);
}

@media (max-width: 700px) {
  .bande {
    padding: 64px 0;
    margin-top: 72px;
  }
}

/* --- boutons -------------------------------------------------------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--encre);
  background: var(--encre);
  color: var(--papier);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bouton:hover {
  background: transparent;
  color: var(--encre);
}

.bouton--nu {
  background: transparent;
  color: var(--encre);
}

.bouton--nu:hover {
  background: var(--encre);
  color: var(--papier);
}

.bouton--clair {
  border-color: var(--papier);
  background: var(--papier);
  color: var(--vert);
}

.bouton--clair:hover {
  background: transparent;
  color: var(--papier);
}

.bouton--petit {
  min-height: 34px;
  padding: 0 13px;
  font-size: 9px;
}

.bouton--actif {
  border-color: var(--vert);
  background: var(--vert);
  color: var(--papier);
}

.bouton--actif:hover {
  background: transparent;
  color: var(--vert);
}

/* --- pied de page ---------------------------------------------------- */

.pied {
  padding: 62px 0 40px;
  border-top: 1px solid var(--trait);
}

.pied-haut {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--trait);
}

.pied-marque {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 6.4vw, 5.2rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
}

.pied-marque em {
  font-style: italic;
  color: var(--vert);
}

.pied-haut nav {
  display: flex;
  gap: 18px;
}

.pied-haut nav a {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
}

.pied-haut nav a:hover {
  color: var(--orange);
}

.pied-bas {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-top: 24px;
}

.pied-bas p {
  max-width: 64ch;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--gris);
}

@media (max-width: 700px) {
  .pied-haut {
    flex-direction: column;
    align-items: flex-start;
  }
  .pied-bas {
    flex-direction: column;
    gap: 14px;
  }
}

/* --- pages intérieures ----------------------------------------------- */

.miettes {
  padding-top: 26px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gris);
}

.miettes a {
  text-decoration: none;
}

.miettes a:hover {
  color: var(--orange);
}

.miettes span {
  margin: 0 8px;
  color: var(--trait);
}

.entete-page {
  position: relative;
  padding-top: 22px;
}

.entete-page .terrain {
  position: absolute;
  top: 26px;
  right: -6px;
  width: 360px;
  max-width: 36vw;
  color: var(--vert);
  opacity: 0.1;
  pointer-events: none;
}

.entete-page h1 {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 10px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.entete-page .chapeau {
  max-width: 46ch;
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--encre-doux);
}

.mentions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 22px;
}

@media (max-width: 900px) {
  .entete-page .terrain {
    display: none;
  }
}

/* --- fiche lieu ------------------------------------------------------- */

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 0 56px;
  margin-top: 46px;
  padding-top: 28px;
  border-top: 2px solid var(--encre);
}

.detail h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
}

.bloc {
  padding-bottom: 42px;
}

.bloc--large {
  grid-column: 1 / -1;
}

dl.faits {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0;
  margin: 0;
}

dl.faits dt {
  padding: 12px 0;
  border-top: 1px solid var(--trait);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gris);
}

dl.faits dd {
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--trait);
  font-size: 15px;
}

dl.faits dd a {
  color: var(--vert);
}

table.horaire {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.horaire th {
  padding: 9px 0;
  border-top: 1px solid var(--trait);
  border-bottom: 1px solid var(--trait);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gris);
  text-align: left;
}

table.horaire td {
  padding: 11px 0;
  border-bottom: 1px solid var(--trait);
  vertical-align: top;
}

table.horaire td:last-child {
  text-align: right;
  white-space: nowrap;
}

table.horaire .jour {
  font-weight: 500;
}

.calendrier-vide {
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--trait);
  border-bottom: 1px solid var(--trait);
  font-size: 14px;
  color: var(--gris);
}

.liste-details {
  margin: 0;
  padding: 0;
  list-style: none;
}

.liste-details li {
  position: relative;
  padding: 10px 0 10px 18px;
  border-top: 1px solid var(--trait);
  font-size: 15px;
}

.liste-details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 5px;
  height: 5px;
  background: var(--orange);
}

.liste-details li:last-child {
  border-bottom: 1px solid var(--trait);
}

.carte-fiche {
  height: 340px;
  border: 1px solid var(--encre);
  z-index: 0;
  overflow: hidden;
}

.note-verif {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--gris);
}

.valider-ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 7px;
}

.valider {
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid var(--trait);
  background: none;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gris);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.valider:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.valider-info {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  color: var(--vert);
}

.signaler {
  margin-top: 8px;
  padding: 22px 0 0;
  border-top: 1px solid var(--trait);
  font-size: 14px;
  color: var(--gris);
}

@media (max-width: 860px) {
  .detail {
    grid-template-columns: 1fr;
    gap: 0;
  }
  dl.faits {
    grid-template-columns: 1fr;
  }
  dl.faits dt {
    padding-bottom: 2px;
  }
  dl.faits dd {
    padding-top: 0;
    border-top: 0;
  }
}

/* --- présences -------------------------------------------------------- */

.presences {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--trait);
}

.presences-titre {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gris);
}

.presences ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.presences li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 8px 0;
  font-size: 14px;
}

.presences .bouton {
  min-height: 32px;
  padding: 0 11px;
  font-size: 8.5px;
}

.presences-quand {
  min-width: 118px;
  color: var(--encre-doux);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.presences-compte {
  font-size: 12px;
  color: var(--vert);
}

.presences-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--gris);
}

/* --- bas de page intérieur -------------------------------------------- */

.pied-page {
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--trait);
}

.pied-page h2 {
  font-size: 1.35rem;
}

.pied-page ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.pied-page li {
  padding: 10px 0;
  border-top: 1px solid var(--trait);
  font-size: 15px;
}

.pied-page li a {
  text-decoration: none;
}

.pied-page li a:hover {
  color: var(--orange);
}

.pied-page li span {
  color: var(--gris);
  font-size: 13px;
}

/* --- formulaires ------------------------------------------------------ */

.formulaire {
  max-width: 660px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 2px solid var(--encre);
}

.ajout-deux {
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(0, 300px);
  gap: 64px;
  align-items: start;
}

.aparte {
  margin-top: 62px;
  padding-top: 28px;
  border-top: 1px solid var(--trait);
}

.aparte h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
}

.aparte p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--encre-doux);
}

@media (max-width: 980px) {
  .ajout-deux {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .aparte {
    margin-top: 20px;
  }
}

.champ {
  margin-bottom: 24px;
}

.champ label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gris);
}

.champ .aide {
  display: block;
  margin-top: 5px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gris);
}

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--trait);
  border-radius: 0;
  background: #f8f4ea;
  color: var(--encre);
  font-family: var(--sans);
  font-size: 15px;
}

.champ textarea {
  min-height: 124px;
  resize: vertical;
}

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: 2px solid var(--vert);
  outline-offset: 0;
  border-color: var(--vert);
}

.champ--deux {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 620px) {
  .champ--deux {
    grid-template-columns: 1fr;
  }
}

.pot {
  position: absolute;
  left: -9999px;
}

.message {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--vert);
  background: var(--vert-clair);
  font-size: 14px;
}

.message--erreur {
  border-left-color: var(--orange);
  background: #f3e2da;
}

/* --- demande ---------------------------------------------------------- */

.demande {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  margin-top: 68px;
  padding-top: 30px;
  border-top: 2px solid var(--encre);
}

.demande h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.demande p {
  max-width: 40ch;
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--encre-doux);
}

.compteur {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: 15px;
}

.compteur strong {
  display: block;
  margin-bottom: 4px;
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 760px) {
  .demande {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* --- à venir ---------------------------------------------------------- */

.avenir {
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--encre);
}

.avenir li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 0 26px;
  padding: 28px 0;
  border-bottom: 1px solid var(--trait);
}

.avenir .num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--orange);
  padding-top: 6px;
}

.avenir h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.02;
}

.avenir p {
  max-width: 58ch;
  margin: 0;
  font-size: 15px;
  color: var(--encre-doux);
}

.avenir .etat {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gris);
}

.avenir button {
  align-self: start;
}

@media (max-width: 760px) {
  .avenir li {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .avenir button {
    grid-column: 2;
    margin-top: 14px;
    justify-self: start;
  }
}

/* --- 404 -------------------------------------------------------------- */

.page-vide {
  padding: 110px 0 90px;
}

/* --- apparition -------------------------------------------------------- */

.apparait {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.apparait.vu {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .apparait {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- volant au clic ----------------------------------------------------- */

.volant-clic {
  position: fixed;
  z-index: 9999;
  width: 42px;
  height: 42px;
  pointer-events: none;
  will-change: transform, opacity;
}

.volant-clic svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .volant-clic {
    display: none;
  }
}

/* --- impression --------------------------------------------------------- */

@media print {
  .entete,
  .pied,
  .filtres,
  .recherche,
  .chips,
  .index-villes,
  .bande,
  .cadre,
  .signaler,
  .demande {
    display: none;
  }
  body {
    background: #fff;
  }
}
