/* VIP Crossing Calendrier — présentation web uniquement (jamais chargée par l'application Agenda). */
.vpc-web-calendar .vpc-web-box-module {
  margin: 16px 18px 0;
  border: 1px solid #dee7ef;
  background: #f8fafc;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(35, 53, 77, .035);
}
.vpc-web-calendar .vpc-web-box-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
}
.vpc-web-calendar .vpc-web-box-symbol {
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: #fff1e6;
  border: 1px solid #ffd8bb;
  border-radius: 13px;
  color: #c65b1c;
}
.vpc-web-calendar .vpc-web-box-heading { flex: 1; min-width: 180px; }
.vpc-web-calendar .vpc-web-box-overline {
  display: block;
  color: #a56940;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .13em;
}
.vpc-web-calendar .vpc-web-box-heading h3 {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  margin: 1px 0 3px;
  color: #1c304a;
}
.vpc-web-calendar .vpc-web-box-heading p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #63738b;
}
.vpc-web-calendar .vpc-web-box-total {
  background: #eaf3fd;
  border: 1px solid #dce9f8;
  color: #355a83;
  border-radius: 99px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.vpc-web-calendar .vpc-web-box-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}
.vpc-web-calendar .vpc-web-box-toggle,
.vpc-web-calendar .vpc-web-box-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  border-radius: 9px;
  min-height: 40px;
  padding: 9px 13px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
.vpc-web-calendar .vpc-web-box-toggle {
  border: 1px solid #d06d2c;
  color: #fff;
  background: #c75b23;
}
.vpc-web-calendar .vpc-web-box-toggle:hover { background: #ab4a19; }
.vpc-web-calendar .vpc-web-box-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.vpc-web-calendar .vpc-web-box-link {
  border: 1px solid #cfdce9;
  background: #fff;
  color: #284562;
}
.vpc-web-calendar .vpc-web-box-link:hover { background: #eff5fc; }
.vpc-web-calendar #vpc-vip-filter.vpc-web-box-panel {
  display: block;
  margin: 0;
  padding: 16px 18px;
  border: 0;
  border-top: 1px solid #e2e9f2;
  border-radius: 0;
  background: #fff;
  color: #293c56;
}
.vpc-web-calendar #vpc-vip-filter.vpc-web-box-panel[hidden] { display: none; }
.vpc-web-calendar .vpc-web-box-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}
.vpc-web-calendar #vpc-vip-filter [data-vip-total] { display: none !important; }
.vpc-web-calendar .vpc-web-box-panel-head strong {
  font-size: 14px;
  color: #25354b;
  font-weight: 750;
}
.vpc-web-calendar .vpc-web-close {
  display: grid;
  place-items: center;
  height: 31px;
  width: 31px;
  border-radius: 50%;
  border: 1px solid #e3e7ef;
  background: #f6f8fc;
  color: #42566e;
  font-size: 22px;
  line-height: 1;
  padding: 0;
}
.vpc-web-calendar #vpc-vip-filter .vpc-vip-controls {
  color: #52657d;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.vpc-web-calendar #vpc-vip-filter .vpc-vip-controls button {
  color: #b44c1c;
  font-weight: 750;
  padding: 5px 0;
}
.vpc-web-calendar #vpc-vip-filter .vpc-vip-options {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  flex-wrap: wrap;
}
.vpc-web-calendar #vpc-vip-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.vpc-web-calendar #vpc-vip-choices label {
  display: inline-flex;
  position: relative;
  align-items: center;
  gap: 7px;
  border-radius: 99px;
  padding: 8px 13px;
  border: 1px solid #dde5ef;
  background: #f5f8fc;
  color: #324963;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.vpc-web-calendar #vpc-vip-choices label:has(input:checked) {
  background: #fff0e3;
  border-color: #e9a26e;
  color: #9b421b;
  box-shadow: none;
}
.vpc-web-calendar #vpc-vip-choices label:has(input:checked)::before {
  content: "✓";
  font-size: 12px;
  line-height: 1;
}
.vpc-web-calendar #vpc-vip-choices label:focus-within,
.vpc-web-calendar .vpc-web-box-toggle:focus-visible,
.vpc-web-calendar .vpc-web-box-link:focus-visible {
  outline: 2px solid #d9762e;
  outline-offset: 2px;
}
.vpc-web-calendar #vpc-vip-choices label input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  inset: 0;
  cursor: pointer;
}
.vpc-web-calendar #vpc-vip-filter [data-more-vips] {
  background: #eef2fa;
  border: 1px solid #d7e1ef;
  border-radius: 99px;
  color: #425c7a;
  padding: 8px 12px;
  min-height: 35px;
}
.vpc-web-calendar .vpc-web-box-selection {
  padding-top: 10px;
  border-top: 1px solid #eaeef4;
}

/* Multi-sélection des catégories : réutilise le filtrage catégories[] du moteur. */
.vpc-web-calendar .vpc-web-category-picker {
  position: relative;
  align-self: end;
  margin: 0;
  border: 1px solid #d6dee9;
  border-radius: 10px;
  background: #fff;
  min-width: 185px;
  z-index: 4;
}
.vpc-web-calendar .vpc-web-category-picker[open] { z-index: 15; }
.vpc-web-calendar .vpc-web-category-picker > summary {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 42px;
  padding: 8px 12px;
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  color: #2c3b51;
}
.vpc-web-calendar .vpc-web-category-picker > summary::-webkit-details-marker { display: none; }
.vpc-web-calendar .vpc-web-category-picker [data-web-category-count] {
  color: #bd5723;
  border-radius: 99px;
  font-size: 11px;
  white-space: nowrap;
  font-weight: 700;
}
.vpc-web-calendar .vpc-web-chevron { color: #8490a0; }
.vpc-web-calendar .vpc-web-category-picker[open] .vpc-web-chevron { transform: rotate(180deg); }
.vpc-web-calendar .vpc-web-category-body {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: min(340px, 90vw);
  max-width: min(340px, 90vw);
  padding: 14px;
  border: 1px solid #dfe6ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 40px #142e4b25;
}
.vpc-web-calendar .vpc-web-category-body p {
  margin: 0 0 11px;
  font-size: 12px;
  color: #62758d;
}
.vpc-web-calendar #vpc-web-category-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.vpc-web-calendar #vpc-web-category-choices label {
  display: flex;
  align-items: center;
  position: relative;
  gap: 8px;
  min-height: 35px;
  padding: 8px 9px;
  border: 1px solid #e5eaf1;
  border-radius: 9px;
  background: #f7f9fc;
  font-size: 12px;
  font-weight: 650;
  color: #344762;
  cursor: pointer;
}
.vpc-web-calendar #vpc-web-category-choices label:has(input:checked) {
  background: #fff0e4;
  color: #a0471b;
  border-color: #f2ba93;
}
.vpc-web-calendar #vpc-web-category-choices input {
  margin: 0;
  accent-color: #c65c22;
  width: 15px;
  height: 15px;
}
.vpc-web-calendar .vpc-web-reset-link {
  display: block;
  margin: 12px 0 0;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #aa4f22;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
@media (max-width: 750px) {
  .vpc-web-calendar .vpc-web-box-head { flex-wrap: wrap; gap: 10px; }
  .vpc-web-calendar .vpc-web-box-heading { flex-basis: calc(100% - 58px); }
  .vpc-web-calendar .vpc-web-box-head-actions { justify-content: flex-start; width: 100%; }
  .vpc-web-calendar .vpc-web-box-total { margin-left: auto; }
  .vpc-web-calendar .vpc-web-box-toggle,
  .vpc-web-calendar .vpc-web-box-link { flex: 1 1 auto; }
}
@media (max-width: 520px) {
  .vpc-web-calendar .vpc-web-box-module { margin: 12px 9px 0; }
  .vpc-web-calendar .vpc-web-category-picker { min-width: 0; }
  .vpc-web-calendar .vpc-web-category-body { left: auto; right: 0; }
  .vpc-web-calendar #vpc-web-category-choices { grid-template-columns: 1fr; }
}

/* V2 — sur le site uniquement : panneau VIP à densité maîtrisée. */
#vip-calendar-v2.vpc-web-calendar .vpc-web-box-module {
  margin-top: 10px;
  border-radius: 13px;
  border-color: #dce4ee;
  background: #fafbfd;
  box-shadow: none;
}
#vip-calendar-v2.vpc-web-calendar .vpc-web-box-head {
  min-height: 64px;
  padding: 10px 15px;
  gap: 12px;
}
#vip-calendar-v2.vpc-web-calendar .vpc-web-box-symbol {
  flex-basis: 35px;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: #fff5ed;
}
#vip-calendar-v2.vpc-web-calendar .vpc-web-box-symbol svg { width: 19px; height: 19px; }
#vip-calendar-v2.vpc-web-calendar .vpc-web-box-overline { font-size: 9px; letter-spacing: .11em; }
#vip-calendar-v2.vpc-web-calendar .vpc-web-box-heading h3 { font-size: 15px; margin: 0; }
#vip-calendar-v2.vpc-web-calendar .vpc-web-box-heading p { margin: 0; font-size: 11px; }
#vip-calendar-v2.vpc-web-calendar .vpc-web-box-toggle,
#vip-calendar-v2.vpc-web-calendar .vpc-web-box-link {
  min-height: 35px;
  padding: 7px 11px;
  font-size: 11px;
  border-radius: 8px;
}
#vip-calendar-v2.vpc-web-calendar .vpc-web-box-toggle { background: #c95b23; color: #fff; }
#vip-calendar-v2.vpc-web-calendar .vpc-web-box-panel {
  padding: 10px 15px 12px;
}
#vip-calendar-v2.vpc-web-calendar #vpc-vip-filter.vpc-web-box-panel {
  padding: 11px 15px 12px;
}
#vip-calendar-v2.vpc-web-calendar .vpc-web-box-panel-head {
  display: flex;
  margin: 0 0 9px;
  gap: 12px;
  align-items: center;
}
#vip-calendar-v2.vpc-web-calendar .vpc-web-box-panel-caption {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: baseline;
  min-width: 0;
  flex: 1 1 auto;
}
#vip-calendar-v2.vpc-web-calendar .vpc-web-box-panel-caption strong {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  color: #20324b;
}
#vip-calendar-v2.vpc-web-calendar .vpc-web-box-panel-caption [data-selected-vips] {
  font-size: 11px;
  color: #7d889b;
  white-space: nowrap;
}
#vip-calendar-v2.vpc-web-calendar .vpc-web-box-panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
#vip-calendar-v2.vpc-web-calendar .vpc-web-box-panel-actions > button:not(.vpc-web-close) {
  background: transparent;
  color: #ac4c1c;
  border: none;
  padding: 5px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
#vip-calendar-v2.vpc-web-calendar .vpc-web-box-panel-actions > button:not(.vpc-web-close):hover {
  background: #fff0e7;
}
#vip-calendar-v2.vpc-web-calendar .vpc-web-box-panel-actions > button:disabled {
  opacity: .4;
  cursor: default;
}
#vip-calendar-v2.vpc-web-calendar .vpc-web-close {
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  min-width: 29px;
  min-height: 29px;
  max-width: 29px;
  max-height: 29px;
  border-radius: 50%;
}
#vip-calendar-v2.vpc-web-calendar #vpc-vip-filter .vpc-vip-options {
  margin: 0;
  display: block;
  min-width: 0;
}
#vip-calendar-v2.vpc-web-calendar #vpc-vip-choices {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 1px 1px 5px;
  scrollbar-width: thin;
  scrollbar-color: #d6dfeb transparent;
}
#vip-calendar-v2.vpc-web-calendar #vpc-vip-choices label {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  position: relative;
  background: #f7f9fc;
  border: 1px solid #d9e2ee;
  color: #263a56;
  box-shadow: none;
  padding: 6px 11px;
  min-height: 32px;
  border-radius: 999px;
  line-height: 1.25;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  opacity: 1;
}
#vip-calendar-v2.vpc-web-calendar #vpc-vip-choices label:has(input:checked) {
  background: #fff0e5;
  border-color: #edb18a;
  color: #963d14;
  box-shadow: inset 0 0 0 1px #f7c8aa;
}
#vip-calendar-v2.vpc-web-calendar #vpc-vip-choices label:has(input:checked)::before {
  content: '✓';
  color: #ba531c;
  font-size: 12px;
  font-weight: 900;
}
#vip-calendar-v2.vpc-web-calendar #vpc-vip-choices label:focus-within {
  outline: 2px solid #ce672b;
  outline-offset: 2px;
}
#vip-calendar-v2.vpc-web-calendar #vpc-vip-choices:not(.is-expanded) label:nth-child(n+6) {
  display: inline-flex !important;
}
#vip-calendar-v2.vpc-web-calendar #vpc-vip-filter [data-more-vips] { display: none !important; }
#vip-calendar-v2.vpc-web-calendar .vpc-vip-total.vpc-web-box-total {
  border-color: #e3e9f1;
  background: #fff;
  color: #536b87;
}
@media (max-width: 720px) {
  #vip-calendar-v2.vpc-web-calendar .vpc-web-box-head { gap: 8px; }
  #vip-calendar-v2.vpc-web-calendar .vpc-web-box-panel-head { align-items: flex-start; }
  #vip-calendar-v2.vpc-web-calendar .vpc-web-box-panel-actions { margin-left: auto; }
}

/* V3 — pastilles VIP : pas de double cercle ni de contour coupé en haut.
 * Le scroll horizontal du web conserve assez d'espace pour la bordure. */
#vip-calendar-v2.vpc-web-calendar #vpc-vip-choices {
  box-sizing: border-box;
  padding: 5px 4px 9px;
  overflow-x: auto;
  scrollbar-gutter: stable;
}
#vip-calendar-v2.vpc-web-calendar #vpc-vip-choices label,
#vip-calendar-v2.vpc-web-calendar #vpc-vip-choices label:has(input:checked) {
  box-sizing: border-box;
  border-width: 1px;
  border-style: solid;
  box-shadow: none;
  outline: none;
  border-radius: 999px;
}
#vip-calendar-v2.vpc-web-calendar #vpc-vip-choices label:has(input:checked) {
  border-color: #ce762f;
  background: #fff1e6;
  color: #9d3e16;
}
#vip-calendar-v2.vpc-web-calendar #vpc-vip-choices label:focus-within {
  outline: none;
  box-shadow: none;
}
#vip-calendar-v2.vpc-web-calendar #vpc-vip-choices label:has(input:focus-visible) {
  outline: 2px solid #c45a24;
  outline-offset: -4px;
}

/* Web : aligner Nom, Catégories et Membre ou collection sur une rangée. */
#vip-calendar-v2.vpc-web-calendar #vpc-agenda-filters {
  align-items: end;
  column-gap: 10px;
  row-gap: 10px;
  padding-top: 14px;
}
#vip-calendar-v2.vpc-web-calendar #vpc-agenda-filters > .vpc-filter-search,
#vip-calendar-v2.vpc-web-calendar #vpc-agenda-filters > .vpc-web-member-filter {
  position: relative;
  min-width: 0;
  align-self: end;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#vip-calendar-v2.vpc-web-calendar #vpc-agenda-filters .vpc-filter-search > span,
#vip-calendar-v2.vpc-web-calendar #vpc-agenda-filters .vpc-web-member-caption {
  display: block;
  min-height: 16px;
  line-height: 16px;
  color: #5f7186;
  font-size: 12px;
  font-weight: 500;
}
#vip-calendar-v2.vpc-web-calendar #vpc-agenda-filters > .vpc-filter-search > input,
#vip-calendar-v2.vpc-web-calendar #vpc-agenda-filters > .vpc-web-member-filter > input {
  display: block;
  width: 100%;
  height: 38px;
  min-height: 38px;
  margin: 0;
  box-sizing: border-box;
}
#vip-calendar-v2.vpc-web-calendar #vpc-agenda-filters > .vpc-web-category-picker {
  height: 38px;
  min-height: 38px;
  align-self: end;
  margin: 0;
}
#vip-calendar-v2.vpc-web-calendar #vpc-agenda-filters > .vpc-web-category-picker > summary {
  height: 38px;
  min-height: 38px;
  box-sizing: border-box;
}

/* Filtres avancés web : vraie grille à cinq colonnes.
   Le flex-wrap historique décalait le bouton sur une nouvelle ligne. */
#vip-calendar-v2.vpc-web-calendar #vpc-agenda-filters .agenda-filter-box .vpc-agenda-extra-filters {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(140px, .95fr);
  align-items: end;
  column-gap: 12px;
  row-gap: 12px;
  padding-top: 12px;
}
#vip-calendar-v2.vpc-web-calendar #vpc-agenda-filters .agenda-filter-box .vpc-agenda-extra-filters > label {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: none;
  width: 100%;
  min-width: 0;
  gap: 5px;
  margin: 0;
  align-self: end;
}
#vip-calendar-v2.vpc-web-calendar #vpc-agenda-filters .agenda-filter-box .vpc-agenda-extra-filters > label > :is(input, select) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 38px;
  min-height: 38px;
  margin: 0;
}
#vip-calendar-v2.vpc-web-calendar #vpc-agenda-filters .agenda-filter-box .vpc-agenda-extra-filters > button[type="reset"] {
  display: inline-flex;
  box-sizing: border-box;
  flex: none;
  align-items: center;
  justify-content: center;
  align-self: end;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 38px;
  min-height: 38px;
  padding: 0 12px;
  margin: 0;
  border: 1px solid #c6511d;
  border-radius: 9px;
  background: #d75a24;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(155, 67, 27, .12);
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}
#vip-calendar-v2.vpc-web-calendar #vpc-agenda-filters .agenda-filter-box .vpc-agenda-extra-filters > button[type="reset"]:hover {
  background: #b94718;
  border-color: #a74119;
}
#vip-calendar-v2.vpc-web-calendar #vpc-agenda-filters .agenda-filter-box .vpc-agenda-extra-filters > button[type="reset"]:focus-visible {
  outline: 2px solid #9d3f16;
  outline-offset: 3px;
}
@media (max-width: 930px) {
  #vip-calendar-v2.vpc-web-calendar #vpc-agenda-filters .agenda-filter-box .vpc-agenda-extra-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #vip-calendar-v2.vpc-web-calendar #vpc-agenda-filters .agenda-filter-box .vpc-agenda-extra-filters > button[type="reset"] {
    grid-column: 2;
  }
}
@media (max-width: 520px) {
  #vip-calendar-v2.vpc-web-calendar #vpc-agenda-filters .agenda-filter-box .vpc-agenda-extra-filters {
    grid-template-columns: minmax(0, 1fr);
  }
  #vip-calendar-v2.vpc-web-calendar #vpc-agenda-filters .agenda-filter-box .vpc-agenda-extra-filters > button[type="reset"] {
    grid-column: 1;
  }
}
