/* ARPOZ Selecta V2.1 — Calendrier des sorties.
 * CSS isolé au template calendrier ; ne modifie pas les templates validés.
 */
body.page-template-page-calendrier-des-sorties-php .site-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.arpoz-calendar-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 63px;
  box-sizing: border-box;
  color: var(--arpoz-text, #f5f5f5);
}
.arpoz-calendar-container *,
.arpoz-calendar-container *::before,
.arpoz-calendar-container *::after { box-sizing: border-box; }
/* Fil d’Ariane : même structure et mêmes couleurs que les templates validés. */
.arpoz-calendar-container > .arpoz-breadcrumb-container {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  color: #666666;
  font-size: 13px;
  line-height: 1.5;
}
.arpoz-calendar-container > .arpoz-breadcrumb-container .arpoz-breadcrumb {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}
.arpoz-calendar-container > .arpoz-breadcrumb-container .arpoz-breadcrumb a {
  color: #666666 !important;
  text-decoration: none;
}
.arpoz-calendar-container > .arpoz-breadcrumb-container .arpoz-breadcrumb a:hover,
.arpoz-calendar-container > .arpoz-breadcrumb-container .arpoz-breadcrumb a:focus,
.arpoz-calendar-container > .arpoz-breadcrumb-container .arpoz-breadcrumb a:focus-visible {
  color: #289dcc !important;
  text-decoration: none;
}
.arpoz-calendar-container > .arpoz-breadcrumb-container .breadcrumb-separator { color: inherit; }
html[data-arpoz-theme="dark"] .arpoz-calendar-container > .arpoz-breadcrumb-container,
body.dark-mode .arpoz-calendar-container > .arpoz-breadcrumb-container,
body.arpoz-dark .arpoz-calendar-container > .arpoz-breadcrumb-container,
html[data-theme="dark"] .arpoz-calendar-container > .arpoz-breadcrumb-container { color: #ffffff !important; }
html[data-arpoz-theme="dark"] .arpoz-calendar-container > .arpoz-breadcrumb-container .arpoz-breadcrumb a,
body.dark-mode .arpoz-calendar-container > .arpoz-breadcrumb-container .arpoz-breadcrumb a,
body.arpoz-dark .arpoz-calendar-container > .arpoz-breadcrumb-container .arpoz-breadcrumb a,
html[data-theme="dark"] .arpoz-calendar-container > .arpoz-breadcrumb-container .arpoz-breadcrumb a { color: #ffffff !important; }
html[data-arpoz-theme="dark"] .arpoz-calendar-container > .arpoz-breadcrumb-container .arpoz-breadcrumb a:hover,
html[data-arpoz-theme="dark"] .arpoz-calendar-container > .arpoz-breadcrumb-container .arpoz-breadcrumb a:focus-visible,
body.dark-mode .arpoz-calendar-container > .arpoz-breadcrumb-container .arpoz-breadcrumb a:hover,
body.dark-mode .arpoz-calendar-container > .arpoz-breadcrumb-container .arpoz-breadcrumb a:focus-visible,
body.arpoz-dark .arpoz-calendar-container > .arpoz-breadcrumb-container .arpoz-breadcrumb a:hover,
body.arpoz-dark .arpoz-calendar-container > .arpoz-breadcrumb-container .arpoz-breadcrumb a:focus-visible,
html[data-theme="dark"] .arpoz-calendar-container > .arpoz-breadcrumb-container .arpoz-breadcrumb a:hover,
html[data-theme="dark"] .arpoz-calendar-container > .arpoz-breadcrumb-container .arpoz-breadcrumb a:focus-visible { color: #289dcc !important; }
html[data-arpoz-theme="dark"] .arpoz-calendar-container > .arpoz-breadcrumb-container .breadcrumb-separator,
body.dark-mode .arpoz-calendar-container > .arpoz-breadcrumb-container .breadcrumb-separator,
body.arpoz-dark .arpoz-calendar-container > .arpoz-breadcrumb-container .breadcrumb-separator,
html[data-theme="dark"] .arpoz-calendar-container > .arpoz-breadcrumb-container .breadcrumb-separator { color: #ffffff !important; }
.arpoz-calendar-header {
  min-height: 108px;
  height: auto;
  margin: 0 0 18px;
  padding: 20px 18px;
  background: transparent;
}
.arpoz-calendar-header .calendar-title {
  margin: 0;
  font-size: clamp(25px, 3.2vw, 48px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.arpoz-calendar-content {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--arpoz-border, #3b3d42);
  border-radius: 8px;
  background: transparent;
  color: var(--arpoz-text, #f5f5f5);
}
.calendar-filter-wrapper { width: 100%; margin: 0 0 20px; }
.calendar-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.calendar-filter .filter-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--arpoz-border, #3b3d42);
  border-radius: 4px;
  background: var(--arpoz-surface, #202124);
  color: var(--arpoz-text, #f5f5f5);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color var(--arpoz-transition, 160ms ease), border-color var(--arpoz-transition, 160ms ease), color var(--arpoz-transition, 160ms ease);
}
.calendar-filter .filter-tag:hover,
.calendar-filter .filter-tag:focus-visible {
  border-color: var(--arpoz-blue, #289dcc);
  color: var(--arpoz-blue, #289dcc);
  text-decoration: none;
}
.calendar-filter .filter-tag.active {
  border-color: var(--arpoz-blue, #289dcc);
  background: var(--arpoz-blue, #289dcc);
  color: #fff;
}
.calendar-filter .filter-tag.disabled { opacity: .42; cursor: default; }
.mobile-filter { display: none; }
.select-wrapper { position: relative; width: 100%; }
.select-wrapper select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 42px 10px 12px;
  appearance: none;
  border: 1px solid var(--arpoz-border, #3b3d42);
  border-radius: 4px;
  background: var(--arpoz-surface, #202124);
  color: var(--arpoz-text, #f5f5f5);
  font: inherit;
}
.select-wrapper .select-arrow {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--arpoz-text, #f5f5f5);
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  margin: 0;
  padding: 0;
}
.album-link {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.album-link:hover,
.album-link:focus-visible { color: inherit; text-decoration: none; }
.album-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--arpoz-border, #3b3d42);
  border-radius: 6px;
  background: var(--arpoz-surface, #202124);
  color: var(--arpoz-text, #f5f5f5);
  transition: border-color var(--arpoz-transition, 160ms ease), transform var(--arpoz-transition, 160ms ease);
}
.album-link:hover .album-card,
.album-link:focus-visible .album-card { border-color: var(--arpoz-blue, #289dcc); transform: translateY(-2px); }
.album-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 100 / 54;
  overflow: hidden;
  background: var(--album-background, #cccccc);
}
.album-thumb > img { display: block; width: 100%; height: 100%; aspect-ratio: 100 / 54; object-fit: cover; }
.album-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.album-svg { display: block; width: 64%; height: 64%; }
.album-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 3px;
  background: rgba(0,0,0,.82);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.album-content { display: flex; flex: 1; flex-direction: column; gap: 7px; padding: 13px; }
.album-content h2 {
  margin: 0;
  padding: 0;
  color: var(--arpoz-text, #f5f5f5);
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.album-content .album-name { margin: 0; color: var(--arpoz-text-muted, #b8b8b8); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.album-date { display: block; margin-top: auto; padding-top: 8px; color: var(--arpoz-text-muted, #b8b8b8); font-size: 11px; line-height: 1.4; }
.calendar-empty-state {
  margin: 0;
  padding: 22px 16px;
  border: 1px dashed var(--arpoz-border, #3b3d42);
  border-radius: 6px;
  color: var(--arpoz-text-muted, #b8b8b8);
  text-align: center;
}
/* Couleurs du calendrier : reprend le système de surfaces des grilles ARPOZ.
   Les sélecteurs explicites et !important neutralisent les styles du thème parent. */
html[data-arpoz-theme="dark"] .arpoz-calendar-container,
body.arpoz-dark .arpoz-calendar-container,
body.dark-mode .arpoz-calendar-container,
html[data-theme="dark"] .arpoz-calendar-container {
  --arpoz-surface: #111111;
  --arpoz-text: #ffffff;
  --arpoz-text-muted: #b8b8b8;
  --arpoz-border: #333333;
  color: #ffffff;
}
html[data-arpoz-theme="light"] .arpoz-calendar-container,
body.arpoz-light .arpoz-calendar-container,
body.light-mode .arpoz-calendar-container,
html[data-theme="light"] .arpoz-calendar-container {
  --arpoz-surface: #f5f5f5;
  --arpoz-text: #161a1d;
  --arpoz-text-muted: #5d666d;
  --arpoz-border: #d5d5d5;
  color: #161a1d;
}
html[data-arpoz-theme="dark"] .arpoz-calendar-container .arpoz-calendar-content,
html[data-arpoz-theme="dark"] .arpoz-calendar-container .album-card,
html[data-arpoz-theme="dark"] .arpoz-calendar-container .album-content,
html[data-arpoz-theme="dark"] .arpoz-calendar-container .calendar-filter .filter-tag,
html[data-arpoz-theme="dark"] .arpoz-calendar-container .select-wrapper select,
body.arpoz-dark .arpoz-calendar-container .arpoz-calendar-content,
body.arpoz-dark .arpoz-calendar-container .album-card,
body.arpoz-dark .arpoz-calendar-container .album-content,
body.arpoz-dark .arpoz-calendar-container .calendar-filter .filter-tag,
body.arpoz-dark .arpoz-calendar-container .select-wrapper select,
body.dark-mode .arpoz-calendar-container .arpoz-calendar-content,
body.dark-mode .arpoz-calendar-container .album-card,
body.dark-mode .arpoz-calendar-container .album-content,
body.dark-mode .arpoz-calendar-container .calendar-filter .filter-tag,
body.dark-mode .arpoz-calendar-container .select-wrapper select,
html[data-theme="dark"] .arpoz-calendar-container .arpoz-calendar-content,
html[data-theme="dark"] .arpoz-calendar-container .album-card,
html[data-theme="dark"] .arpoz-calendar-container .album-content,
html[data-theme="dark"] .arpoz-calendar-container .calendar-filter .filter-tag,
html[data-theme="dark"] .arpoz-calendar-container .select-wrapper select {
  background-color: #111111 !important;
  color: #ffffff !important;
  border-color: #333333 !important;
}
html[data-arpoz-theme="light"] .arpoz-calendar-container .arpoz-calendar-content,
html[data-arpoz-theme="light"] .arpoz-calendar-container .album-card,
html[data-arpoz-theme="light"] .arpoz-calendar-container .album-content,
html[data-arpoz-theme="light"] .arpoz-calendar-container .calendar-filter .filter-tag,
html[data-arpoz-theme="light"] .arpoz-calendar-container .select-wrapper select,
body.arpoz-light .arpoz-calendar-container .arpoz-calendar-content,
body.arpoz-light .arpoz-calendar-container .album-card,
body.arpoz-light .arpoz-calendar-container .album-content,
body.arpoz-light .arpoz-calendar-container .calendar-filter .filter-tag,
body.arpoz-light .arpoz-calendar-container .select-wrapper select,
body.light-mode .arpoz-calendar-container .arpoz-calendar-content,
body.light-mode .arpoz-calendar-container .album-card,
body.light-mode .arpoz-calendar-container .album-content,
body.light-mode .arpoz-calendar-container .calendar-filter .filter-tag,
body.light-mode .arpoz-calendar-container .select-wrapper select,
html[data-theme="light"] .arpoz-calendar-container .arpoz-calendar-content,
html[data-theme="light"] .arpoz-calendar-container .album-card,
html[data-theme="light"] .arpoz-calendar-container .album-content,
html[data-theme="light"] .arpoz-calendar-container .calendar-filter .filter-tag,
html[data-theme="light"] .arpoz-calendar-container .select-wrapper select {
  background-color: #f5f5f5 !important;
  color: #161a1d !important;
  border-color: #d5d5d5 !important;
}
html[data-arpoz-theme="dark"] .arpoz-calendar-container .album-content h2,
html[data-arpoz-theme="dark"] .arpoz-calendar-container .album-content .album-name,
html[data-arpoz-theme="dark"] .arpoz-calendar-container .album-content .album-date,
body.arpoz-dark .arpoz-calendar-container .album-content h2,
body.arpoz-dark .arpoz-calendar-container .album-content .album-name,
body.arpoz-dark .arpoz-calendar-container .album-content .album-date,
body.dark-mode .arpoz-calendar-container .album-content h2,
body.dark-mode .arpoz-calendar-container .album-content .album-name,
body.dark-mode .arpoz-calendar-container .album-content .album-date,
html[data-theme="dark"] .arpoz-calendar-container .album-content h2,
html[data-theme="dark"] .arpoz-calendar-container .album-content .album-name,
html[data-theme="dark"] .arpoz-calendar-container .album-content .album-date { color: #ffffff !important; }
html[data-arpoz-theme="light"] .arpoz-calendar-container .album-content h2,
html[data-arpoz-theme="light"] .arpoz-calendar-container .album-content .album-name,
html[data-arpoz-theme="light"] .arpoz-calendar-container .album-content .album-date,
body.arpoz-light .arpoz-calendar-container .album-content h2,
body.arpoz-light .arpoz-calendar-container .album-content .album-name,
body.arpoz-light .arpoz-calendar-container .album-content .album-date,
body.light-mode .arpoz-calendar-container .album-content h2,
body.light-mode .arpoz-calendar-container .album-content .album-name,
body.light-mode .arpoz-calendar-container .album-content .album-date,
html[data-theme="light"] .arpoz-calendar-container .album-content h2,
html[data-theme="light"] .arpoz-calendar-container .album-content .album-name,
html[data-theme="light"] .arpoz-calendar-container .album-content .album-date { color: #161a1d !important; }
.arpoz-calendar-container .calendar-filter .filter-tag.active,
.arpoz-calendar-container .calendar-filter .filter-tag.active:hover,
.arpoz-calendar-container .calendar-filter .filter-tag.active:focus-visible { background: #289dcc !important; border-color: #289dcc !important; color: #ffffff !important; }
.arpoz-calendar-container .calendar-filter .filter-tag:hover,
.arpoz-calendar-container .calendar-filter .filter-tag:focus-visible { color: #289dcc !important; border-color: #289dcc !important; }
.arpoz-calendar-container .album-badge {
  top: 10px;
  right: 10px;
  bottom: auto;
  padding: 7px 15px;
  border: 0;
  border-radius: 999px;
  background: #289dcc;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 1100px) {
  .album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 900px) {
  .arpoz-calendar-container { padding: 20px; }
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .arpoz-calendar-container { padding: 14px; }
  .arpoz-calendar-content { padding: 12px; }
  .arpoz-calendar-header { min-height: 92px; padding: 16px 12px; }
  .calendar-filter.desktop-filter { display: none; }
  .mobile-filter { display: block; }
  .album-grid { gap: 10px; }
  .album-content { gap: 6px; padding: 10px; }
  .album-content h2 { font-size: 15px; }
  .album-content .album-name { font-size: 12px; }
  .album-date { font-size: 10px; }
  .arpoz-calendar-container .album-badge { top: 6px; right: 6px; bottom: auto; padding: 6px 7px; font-size: 9px; }
}
@media (max-width: 380px) {
  .album-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ARPOZ Calendrier — fond du bloc texte .album-content selon le thème actif.
   Le fond de la pochette reste indépendant et conserve le champ ACF background_color. */
html[data-arpoz-theme="dark"] .arpoz-calendar-container .album-content,
body.arpoz-dark .arpoz-calendar-container .album-content,
body.dark-mode .arpoz-calendar-container .album-content,
html[data-theme="dark"] .arpoz-calendar-container .album-content {
  background: #111111 !important;
}

html[data-arpoz-theme="light"] .arpoz-calendar-container .album-content,
body.arpoz-light .arpoz-calendar-container .album-content,
body.light-mode .arpoz-calendar-container .album-content,
html[data-theme="light"] .arpoz-calendar-container .album-content {
  background: #ffffff !important;
}
