/* Calendrier des salons en France (/fr/calendrier/) : styles propres à la page, avec les couleurs du site. */

.cal [hidden] { display: none !important; }

.cal-titre { padding-block: 3rem 1.75rem; }
.cal-titre h1 { max-width: 20ch; }
.cal-titre__note { color: var(--gris); font-size: 0.9375rem; }

.cal { padding-bottom: 4rem; }

/* ---------- Recherche : bandeau figé en haut de l'écran ---------- */

.cal-repere { height: 0; }

.cal-recherche {
  position: sticky;
  z-index: 4;
  top: var(--hauteur-entete, 0px);
  padding: 1.25rem;
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  transition: top 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease;
}
.cal-recherche--colle { box-shadow: var(--ombre-forte); }
.cal-filtres-bouton { display: none; }

/* Ordinateur : les quatre champs sur une ligne, toujours visibles */
@media (min-width: 62rem) {
  .cal-recherche {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
  }
  .cal-recherche__ligne,
  .cal-filtres { display: contents; }
  .entete-cachee .cal-recherche { top: 0; }
}

/* Téléphone et tablette : barre compacte « Où ? » + « Filtres », qui part avec l'en-tête
   quand on descend et revient quand on remonte */
@media (max-width: 61.99rem) {
  .cal-recherche { margin-inline: calc(-0.5 * var(--marge)); padding: 0.75rem; }
  .cal-recherche__ligne { display: flex; align-items: flex-start; gap: 0.5rem; }
  .cal-recherche__ligne > .cal-champ--ou { flex: 1 1 auto; }
  .cal-champ--ou > label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .cal-filtres-bouton {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.75rem;
    padding: 0 0.7rem;
    border: 1px solid #8a9294;
    border-radius: var(--rayon);
    background: var(--blanc);
    color: var(--encre);
    font: 600 0.9375rem var(--police-texte);
    white-space: nowrap;
    cursor: pointer;
  }
  .cal-filtres-bouton svg { width: 1.1rem; height: 1.1rem; }
  .cal-filtres-bouton[aria-expanded="true"] { background: var(--encre); border-color: var(--encre); color: var(--blanc); }
  .cal-filtres {
    display: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--filet);
  }
  .cal-recherche--ouverte .cal-filtres { display: grid; }
  .cal-champ--rayon { grid-column: 1 / -1; }
  .cal-champ--rayon:has(input:disabled) { display: none; }
  .entete-cachee .cal-recherche--colle:not(.cal-recherche--active) {
    transform: translateY(calc(-100% - var(--hauteur-entete, 0px) - 1rem));
  }
  .entete-cachee .cal-recherche--colle.cal-recherche--active { top: 0; }
}
@media (max-width: 29.99rem) {
  .cal-filtres > .cal-champ { grid-column: 1 / -1; }
}

.cal-champ { position: relative; min-width: 0; }
.cal-champ > label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
}
.cal-champ select,
.cal-ou input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid #8a9294;
  border-radius: var(--rayon);
  background: var(--blanc);
  color: var(--encre);
  font: 400 1rem/1.5 var(--police-texte);
}
.cal-champ select:focus-visible,
.cal-ou input:focus-visible { outline: 2px solid var(--encre); outline-offset: 1px; border-color: var(--encre); }

.cal-ou { position: relative; }
.cal-ou input { padding-left: 2.5rem; padding-right: 2.75rem; text-overflow: ellipsis; }
.cal-ou:has(#cal-effacer:not([hidden])) input { padding-right: 5.25rem; }
.cal-ou__icone {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  width: 1.15rem;
  height: 1.15rem;
  transform: translateY(-50%);
  color: var(--or-texte);
  pointer-events: none;
}
.cal-ou__actions {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  display: flex;
  transform: translateY(-50%);
}
.cal-ou__bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 0;
  border-radius: var(--rayon);
  background: transparent;
  color: var(--gris);
  cursor: pointer;
}
.cal-ou__bouton:hover { background: var(--pierre); color: var(--encre); }
.cal-ou__bouton:disabled { opacity: 0.5; cursor: progress; }
.cal-ou__bouton svg { width: 1.15rem; height: 1.15rem; }

.cal-suggestions {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  margin: 0.25rem 0 0;
  padding: 0.25rem 0;
  list-style: none;
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-forte);
  max-height: 20rem;
  overflow-y: auto;
}
.cal-suggestions li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}
.cal-suggestions li:hover,
.cal-suggestions li[aria-selected="true"] { background: var(--or-pale); }
.cal-suggestions__cp { color: var(--gris); font-size: 0.875rem; }

.cal-aide { margin: 0.4rem 0 0; color: var(--gris); font-size: 0.875rem; }
.cal-aide:empty { display: none; }

.cal-champ--rayon output { color: var(--or-texte); }
.cal-champ input[type="range"] {
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  accent-color: var(--or);
  cursor: pointer;
}
.cal-champ input[type="range"]:disabled { opacity: 0.45; cursor: not-allowed; }
.cal-champ--rayon:has(input:disabled) > label { color: var(--gris); }

/* ---------- Barre du nombre de résultats et bascules ---------- */

.cal-barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 1.75rem 0 1.25rem;
}
.cal-compte { min-height: 1.65em; margin: 0; font-weight: 600; } /* place réservée : le texte arrive avec le script */
.cal-boutons { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.cal-bascule {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  background: var(--blanc);
}
.cal-bascule button {
  min-height: 2.25rem;
  padding: 0.35rem 0.95rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--gris);
  font: 600 0.875rem var(--police-texte);
  cursor: pointer;
}
.cal-bascule button:hover { color: var(--encre); }
.cal-bascule button[aria-pressed="true"] { background: var(--encre); color: var(--blanc); }

/* ---------- Agenda ou calendrier à gauche et carte à droite (ordinateur), un seul à la fois (téléphone) ---------- */

@media (min-width: 62rem) {
  .cal-corps {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 2rem;
    align-items: start;
  }
  .cal-carte {
    position: sticky;
    top: calc(var(--hauteur-entete, 0px) + var(--hauteur-recherche, 0px) + 1rem);
    transition: top 0.25s ease;
  }
  .entete-cachee .cal-carte { top: calc(var(--hauteur-recherche, 0px) + 1rem); }
  .cal-vues { display: none !important; }
}

@media (max-width: 61.99rem) {
  .cal-affichages { display: none !important; }
  .cal-corps[data-vue="liste"] .cal-carte,
  .cal-corps[data-vue="carte"] .cal-gauche { display: none; }
  .cal-carte { margin-inline: calc(-1 * var(--marge)); }
  .cal-carte__cadre { border-radius: 0; }
  .cal-source { padding-inline: var(--marge); }

  /* Bascule Agenda / Calendrier / Carte flottante en bas de l'écran */
  .cal-vues {
    position: sticky;
    z-index: 4;
    bottom: 1rem;
    display: flex;
    width: fit-content;
    margin: 1.25rem auto 0;
    box-shadow: var(--ombre-forte);
  }
  .cal-vues button { padding-inline: 0.8rem; }
}

/* ---------- Agenda : une ligne par salon, groupées par mois puis par week-end ---------- */

.cal-mois {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin: 2.25rem 0 0.25rem;
  font-size: 1.625rem;
}
.cal-mois:first-child { margin-top: 0; }
.cal-mois span { color: var(--gris); font: 600 0.875rem var(--police-texte); }

.cal-we {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 0.75rem;
  margin: 1.25rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--filet);
  font: 700 0.9375rem/1.35 var(--police-texte);
}
.cal-we:first-child { margin-top: 0; }
.cal-we span { color: var(--gris); font-size: 0.8125rem; font-weight: 600; }

.cal-ligne {
  margin-bottom: 0.4rem;
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  scroll-margin-top: calc(var(--hauteur-entete, 0px) + var(--hauteur-recherche, 0px) + 1rem);
  transition: box-shadow 0.15s ease;
}
.cal-ligne > summary {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto 0.6rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.85rem 0.45rem 0.45rem;
  border-radius: var(--rayon);
  list-style: none;
  cursor: pointer;
}
.cal-ligne > summary::-webkit-details-marker { display: none; }
.cal-ligne > summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.25rem;
  border-right: 2px solid var(--gris);
  border-bottom: 2px solid var(--gris);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.cal-ligne[open] > summary::after { margin-top: 0.2rem; transform: rotate(-135deg); }
.cal-ligne:hover { box-shadow: var(--ombre-forte); }
.cal-ligne[open] { box-shadow: var(--ombre-forte); }
.cal-ligne > summary:focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; }
.cal-ligne--actif { box-shadow: 0 0 0 2px var(--or), var(--ombre-forte); }
.cal-ligne--eclair { animation: cal-eclair 1.4s ease; }
@keyframes cal-eclair {
  0%, 30% { background: var(--or-pale); }
  100% { background: var(--blanc); }
}
.cal-ligne--kristalia { background: var(--or-pale); }
.cal-ligne--kristalia.cal-ligne--eclair { animation: none; }

.cal-ligne__jours {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.2rem 0.1rem;
  border-radius: 4px;
  background: var(--pierre);
  line-height: 1.15;
  text-align: center;
}
.cal-ligne--kristalia .cal-ligne__jours { background: var(--blanc); }
.cal-ligne__num { font-size: 0.9375rem; font-weight: 700; white-space: nowrap; }
.cal-ligne__sous { color: var(--or-texte); font-size: 0.6875rem; font-weight: 700; white-space: nowrap; }

.cal-ligne__texte { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.cal-ligne__ville { font-size: 0.9375rem; font-weight: 700; }
.cal-ligne__dep { color: var(--gris); font-weight: 400; }
.cal-ligne__nom {
  overflow: hidden;
  color: var(--gris);
  font-size: 0.875rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cal-ligne[open] .cal-ligne__nom { white-space: normal; }

.cal-ligne__fin { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; }
.cal-ligne__distance { color: var(--or-texte); font-size: 0.8125rem; font-weight: 700; white-space: nowrap; }

.cal-losange { display: inline-block; width: 0.55rem; height: 0.75rem; margin-right: 0.35rem; vertical-align: -0.05rem; }
.cal-losange path { fill: var(--encre); stroke: var(--or); stroke-width: 1.5; }

.cal-ligne__details {
  padding: 0.1rem 0.85rem 0.85rem calc(0.45rem + 3.4rem + 0.75rem);
  color: var(--gris);
  font-size: 0.875rem;
}
.cal-ligne__details p { max-width: none; margin: 0 0 0.15rem; }
.cal-ligne__dates { color: var(--encre); font-weight: 600; }
.cal-ligne__ref { font-style: italic; }
.cal-ligne__kristalia {
  color: var(--or-texte);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cal-ligne__details .lien-fleche { display: inline-block; margin-top: 0.4rem; color: var(--encre); font-size: 0.9375rem; }

@media (max-width: 30rem) {
  .cal-ligne > summary { grid-template-columns: 3.4rem minmax(0, 1fr) auto; gap: 0.6rem; padding-right: 0.65rem; }
  .cal-ligne > summary::after { display: none; }
  .cal-ligne__details { padding-left: calc(0.45rem + 3.4rem + 0.6rem); }
}

/* Statut de la date : le texte suffit, la bordure aide à repérer */
.cal-statut {
  display: inline-block;
  padding: 0 0.5rem;
  border: 1px solid #8a9294;
  border-radius: 999px;
  background: var(--blanc);
  color: var(--gris);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.55;
  white-space: nowrap;
}
.cal-statut--annonce { border-color: var(--or); background: var(--or-pale); color: var(--encre); }
.cal-statut--estime { border-style: dashed; }
.cal-statut--preciser { border-style: dotted; }
.cal-ligne--kristalia .cal-statut--annonce { background: var(--blanc); }
.cal-ligne .cal-statut { padding: 0 0.4rem; font-size: 0.6875rem; }

/* ---------- Calendrier : grille du mois ---------- */

/* Place réservée à la grille avant que le script la dessine, pour que la page ne saute pas */
.cal-grille:empty { min-height: 25rem; }
.cal-grille {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}
.cal-grille__entete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.cal-grille__titre { margin: 0; font-size: 1.5rem; }
.cal-grille__nav {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  background: var(--blanc);
  color: var(--encre);
  font: 400 1.5rem/1 var(--police-texte);
  cursor: pointer;
}
.cal-grille__nav:hover { background: var(--pierre); }
.cal-grille__nav:disabled { opacity: 0.35; cursor: default; background: var(--blanc); }

.cal-grille__table { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.cal-grille__table th { padding: 0.25rem 0; color: var(--gris); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.cal-grille__table th.cal-grille__we { color: var(--or-texte); }
.cal-grille__table abbr { text-decoration: none; }
.cal-grille__table td { height: 3.5rem; padding: 0; vertical-align: top; }

.cal-jour {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  padding: 0.3rem 0.35rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--gris);
  font: inherit;
  text-align: left;
}
td.cal-grille__we .cal-jour { background: #f7f6f2; }
.cal-jour__num { font-size: 0.8125rem; font-weight: 600; line-height: 1; }
.cal-jour__nb { align-self: flex-end; font-size: 1rem; font-weight: 700; line-height: 1; }
.cal-jour .cal-losange { position: absolute; top: 0.3rem; right: 0.3rem; margin: 0; }

/* Jours avec salons : plus il y en a, plus le doré est soutenu */
button.cal-jour { color: var(--encre); cursor: pointer; }
td .cal-jour--1 { background: var(--or-pale) !important; border-color: #ecdfc4; }
td .cal-jour--2 { background: #ecdcb8 !important; border-color: #e0cb9d; }
td .cal-jour--3 { background: #dfc58c !important; border-color: #d0b273; }
button.cal-jour:hover { border-color: var(--or-texte); }
button.cal-jour[aria-pressed="true"] { background: var(--encre) !important; border-color: var(--encre); color: var(--blanc); }
button.cal-jour:focus-visible { outline: 2px solid var(--encre); outline-offset: 1px; }
td.cal-grille__aujourdhui .cal-jour { box-shadow: inset 0 0 0 2px var(--encre); }
td.cal-grille__aujourdhui .cal-jour__num { color: var(--encre); font-weight: 800; }

.cal-grille__aide { max-width: none; margin: 0.6rem 0 0; color: var(--gris); font-size: 0.8125rem; }

.cal-choix {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}
.cal-choix p { margin: 0; font: 500 1.375rem/1.2 var(--police-titre); }
.cal-choix__bouton {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  background: var(--blanc);
  color: var(--encre);
  font: 600 0.875rem var(--police-texte);
  cursor: pointer;
}
.cal-choix__bouton:hover { background: var(--pierre); }

@media (max-width: 30rem) {
  .cal-grille { padding: 0.75rem 0.5rem; margin-inline: calc(-0.5 * var(--marge)); }
  .cal-grille__table { border-spacing: 2px; }
  .cal-grille__table td { height: 3rem; }
  .cal-jour { padding: 0.25rem; }
  .cal-jour__nb { font-size: 0.9375rem; }
}

.cal-vide {
  padding: 2rem 1.25rem;
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  text-align: center;
}
.cal-vide p { margin: 0 auto 1rem; }
.cal-vide__boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }

/* ---------- Carte ---------- */

.cal-carte__cadre {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1020 / 983;
  max-height: calc(100vh - var(--hauteur-entete, 0px) - var(--hauteur-recherche, 0px) - 4rem);
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}
@media (min-width: 62rem) {
  .entete-cachee .cal-carte__cadre { max-height: calc(100vh - var(--hauteur-recherche, 0px) - 4rem); }
}
#cal-svg { display: block; width: 100%; height: 100%; }

.cal-region {
  fill: #ebe8e1;
  stroke: var(--blanc);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill 0.2s ease;
}
.cal-region:hover { fill: #e2ded3; }
.cal-svg--region .cal-region { fill: #f4f3ef; }
.cal-svg--region .cal-region:hover { fill: #ebe8e1; }
.cal-svg--region .cal-region--choisie,
.cal-svg--region .cal-region--choisie:hover { fill: #ebe8e1; stroke: var(--or); }

.cal-zone {
  fill: rgba(187, 148, 69, 0.09);
  stroke: var(--or-texte);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
  pointer-events: none;
}

.cal-point { cursor: pointer; outline: none; }
.cal-point__forme {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.15s ease;
}
.cal-point circle,
.cal-point path { fill: var(--or); stroke: var(--blanc); stroke-width: 1.5; }
.cal-point text { fill: var(--encre); font: 700 10px var(--police-texte); pointer-events: none; }
.cal-point--kristalia path { fill: var(--encre); stroke: var(--or); stroke-width: 2; }
.cal-point--kristalia text { fill: var(--blanc); }
.cal-point:hover .cal-point__forme,
.cal-point:focus-visible .cal-point__forme,
.cal-point--survol .cal-point__forme,
.cal-point--choisi .cal-point__forme { transform: scale(1.45); }
.cal-point:focus-visible circle,
.cal-point:focus-visible path,
.cal-point--choisi circle,
.cal-point--choisi path { stroke: var(--encre); stroke-width: 2; }
.cal-point--kristalia.cal-point--choisi path { stroke: var(--or); }

.cal-moi { pointer-events: none; }
.cal-moi__halo { fill: rgba(43, 47, 51, 0.14); }
.cal-moi__point { fill: #2f6db5; stroke: var(--blanc); stroke-width: 2.5; }

.cal-france {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  background: var(--blanc);
  color: var(--encre);
  font: 600 0.875rem var(--police-texte);
  box-shadow: var(--ombre);
  cursor: pointer;
}
.cal-france:hover { background: var(--pierre); }

/* Salons de la ville choisie sur la carte */
.cal-info {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  max-height: 55%;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-forte);
}
.cal-info__entete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cal-info__ville { margin: 0; font: 500 1.25rem/1.2 var(--police-titre); }
.cal-info__fermer {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: var(--rayon);
  background: transparent;
  color: var(--gris);
  font: 400 1.5rem/1 var(--police-texte);
  cursor: pointer;
}
.cal-info__fermer:hover { background: var(--pierre); color: var(--encre); }
.cal-info__liste { margin: 0.35rem 0 0; padding: 0; list-style: none; }
.cal-info__liste button {
  display: block;
  width: 100%;
  padding: 0.5rem 0;
  border: 0;
  border-top: 1px solid var(--filet);
  background: transparent;
  color: var(--encre);
  font: 400 0.9375rem/1.4 var(--police-texte);
  text-align: left;
  cursor: pointer;
}
.cal-info__liste button:hover .cal-info__nom { text-decoration: underline; text-decoration-color: var(--or); }
.cal-info__date { color: var(--or-texte); font-weight: 700; }
.cal-info__liste button[aria-expanded="true"] .cal-info__nom { font-weight: 600; }
.cal-info__details { padding: 0 0 0.75rem; color: var(--gris); font-size: 0.875rem; }
.cal-info__details p { max-width: none; margin: 0 0 0.15rem; }
.cal-info__details .lien-fleche { display: inline-block; margin-top: 0.4rem; color: var(--encre); font-size: 0.9375rem; }

/* Téléphone : le panneau de la ville passe sous la carte au lieu de la recouvrir */
@media (max-width: 61.99rem) {
  .cal-carte__cadre { aspect-ratio: auto; overflow: visible; max-height: none; }
  #cal-svg { height: auto; aspect-ratio: 1020 / 983; }
  .cal-info {
    position: static;
    max-height: none;
    margin: 0;
    border-top: 1px solid var(--filet);
    border-radius: 0;
    box-shadow: none;
    padding: 0.85rem var(--marge) 1rem;
    scroll-margin-bottom: 5rem;
  }
}

.cal-source { margin: 0.5rem 0 0; max-width: none; color: var(--gris); font-size: 0.75rem; }

.cal-legende { margin-top: 2.5rem; color: var(--gris); font-size: 0.875rem; }
.cal-legende p { max-width: none; }
.cal-legende .cal-statut { margin-right: 0.15rem; }

/* ---------- Pages régions et liens par région (16 octobre 2026) ---------- */

.cal--region .cal-liste { max-width: 48rem; }
.cal-region-kristalia {
  max-width: 48rem;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--or-pale);
  border-radius: var(--rayon);
}
.cal-region-kristalia h2 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.cal-region-kristalia ul { margin: 0; padding-left: 1.1rem; }
.cal-region-kristalia a { font-weight: 600; }

.cal-regions { margin-top: 3rem; }
.cal-regions h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.cal-regions ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.4rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cal-regions a { color: var(--encre); text-underline-offset: 0.15em; }
.cal-regions span { color: var(--gris); font-size: 0.875rem; white-space: nowrap; }

/* ---------- Page d'un salon du calendrier (maquette du 16 octobre 2026) ---------- */

.maquette-bandeau p { margin: 1rem 0 0; padding: 0.6rem 0.9rem; background: var(--or-pale); border-radius: var(--rayon); font-size: 0.875rem; max-width: none; }
.fiche-titre h1 { max-width: 24ch; }
.fiche-dates { margin: 0 0 0.35rem; color: var(--or-texte); font-family: var(--police-titre); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); }
.fiche-dates .cal-statut { vertical-align: middle; font-family: var(--police-texte); }
.fiche-lieu { color: var(--gris); }
.fiche-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.fiche-grille { display: grid; gap: 2rem; padding-bottom: 3rem; }
.fiche-bloc { margin-bottom: 2.25rem; }
.fiche-bloc h2 { font-size: 1.5rem; margin-bottom: 0.9rem; }
.fiche-infos { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0.6rem 1rem; margin: 0; padding: 1.1rem 1.25rem; background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); }
.fiche-infos dt { color: var(--gris); font-size: 0.875rem; font-weight: 700; padding-top: 0.1rem; }
.fiche-infos dd { margin: 0; }
.fiche-vide { color: var(--gris); font-style: italic; }
.fiche-adresse { color: var(--encre); text-decoration-color: var(--or); text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.fiche-adresse:hover { text-decoration-color: var(--encre); }
.fiche-liens { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.fiche-note { color: var(--gris); font-size: 0.875rem; }

.fiche-affiche { display: block; width: 100%; max-width: 22rem; height: auto; margin-bottom: 1.5rem; border-radius: var(--rayon); box-shadow: var(--ombre); }
.fiche-affiche-bloc { margin: 0 0 1.5rem; max-width: 22rem; }
.fiche-affiche-bloc .fiche-affiche { margin-bottom: 0.5rem; }
.fiche-affiche-bloc figcaption { font-size: 0.8125rem; color: var(--gris); }
.fiche-organisateur { padding: 1.1rem 1.25rem; background: var(--pierre); border-radius: var(--rayon); }
.fiche-organisateur h2 { font-size: 1.25rem; margin: 0 0 0.5rem; }
.fiche-organisateur p { font-size: 0.9375rem; color: var(--gris); }

.fiche-proches { padding-bottom: 4rem; }
.fiche-proches h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.fiche-proches ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 0.5rem 1rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.fiche-proches li a { display: flex; align-items: center; gap: 0.75rem; height: 100%; padding: 0.5rem 0.75rem 0.5rem 0.5rem; background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); color: var(--encre); text-decoration: none; }
.fiche-proches li a:hover { box-shadow: var(--ombre-forte); }
.fiche-proches .cal-ligne__jours { flex: none; width: 3.6rem; }
.fiche-proches__texte { flex: 1; font-size: 0.875rem; line-height: 1.35; }
.fiche-proches__texte strong { display: block; font-size: 0.9375rem; }
.fiche-proches__km { color: var(--gris); font-size: 0.8125rem; white-space: nowrap; }
.fiche-proches p { margin: 0; }

/* Dates incertaines : invitation à se renseigner (16 octobre 2026) */
.fiche-a-confirmer { max-width: 40rem; margin: 0 0 0.5rem; padding: 0.5rem 0.75rem; border-left: 3px solid var(--or); background: var(--blanc); color: var(--gris); font-size: 0.9375rem; }

/* Bloc « Vous organisez un salon ? » en bas du calendrier et des pages régions */
.cal-publier { max-width: 48rem; margin-top: 3rem; padding: 1.25rem 1.5rem; background: var(--pierre); border-radius: var(--rayon); }
.cal-publier h2 { font-size: 1.375rem; margin: 0 0 0.5rem; }
.cal-publier p { color: var(--gris); }

@media (min-width: 62rem) {
  .fiche-grille { grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .cal-point__forme,
  .cal-region,
  .cal-carte { transition: none; }
  .cal-ligne--eclair { animation: none; }
  .cal-ligne > summary::after { transition: none; }
}
