/* ==========================================================================
   Actus datées : bandeau « À l'affiche » de l'accueil, pastilles de date et
   compte à rebours sur les cartes actus (js/app/cards.js : renderAffiche,
   renderNews). Couleurs alignées sur l'agenda de la page Actus :
   Évènement = rouge, Offre = bleu nuit, Actualité = violet.
   Fichier chargé à part (avec ?v=) depuis components/head.php.
   ========================================================================== */
:root {
  --actu-evenement: #e23744;
  --actu-offre: #1f2a44;
  --actu-actualite: #7b2ff7;
}

/* ---------- Cartes actus ---------- */
.news-card__media { position: relative; }
.news-card--evenement .news-card__type { background: var(--actu-evenement); }
.news-card--offre .news-card__type { background: var(--actu-offre); }
.news-card--actualite .news-card__type { background: var(--actu-actualite); }

.news-card__jour {
  position: absolute; top: .8rem; left: .8rem;
  min-width: 62px; padding: .35rem .5rem .4rem;
  display: flex; flex-direction: column; align-items: center;
  background: #fff; color: var(--c-bg);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  font-family: var(--font-display); text-transform: uppercase;
  line-height: 1; text-align: center;
}
.news-card__jour small { font-size: .72rem; letter-spacing: .5px; color: #555; }
.news-card__jour strong { font-size: 1.7rem; font-weight: 700; margin: .1rem 0; }
.news-card--evenement .news-card__jour small:first-child { color: var(--actu-evenement); }
.news-card__jour--fin small:first-child { font-size: .62rem; }

.news-card__rebours {
  display: inline-block;
  margin-bottom: .45rem; padding: .15rem .6rem;
  border-radius: 999px;
  background: var(--actu-actualite); color: #fff;
  font-family: var(--font-display); text-transform: uppercase;
  font-size: .75rem; letter-spacing: .5px;
}
.news-card--evenement .news-card__rebours { background: var(--actu-evenement); }
.news-card--offre .news-card__rebours { background: var(--actu-offre); }

/* ---------- Bandeau « À l'affiche » (bas du hero de l'accueil) ---------- */
.affiche-wrap {
  position: absolute; left: 0; right: 0;
  bottom: 110px;
  z-index: 2;
  display: flex; justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
.affiche-wrap[hidden] { display: none; }
.affiche {
  pointer-events: auto;
  display: flex; align-items: center; gap: 1rem;
  width: min(100%, 760px);
  padding: .7rem 1rem .7rem .7rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-left: 4px solid var(--affiche-c, var(--actu-evenement));
  border-radius: 18px;
  background: rgba(10, 10, 18, .72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff; text-align: left;
  font: inherit; cursor: pointer;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .45);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  animation: affiche-entree .6s ease both .3s;
}
.affiche:hover, .affiche:focus-visible {
  transform: translateY(-3px);
  background: rgba(10, 10, 18, .86);
}
.affiche:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 3px; }
.affiche--offre { --affiche-c: #4f7cff; }
.affiche--actualite { --affiche-c: var(--actu-actualite); }

.affiche__label {
  position: absolute; top: -.75rem; left: 1.1rem;
  padding: .12rem .65rem;
  border-radius: 999px;
  background: var(--affiche-c, var(--actu-evenement));
  font-family: var(--font-display); text-transform: uppercase;
  font-size: .72rem; letter-spacing: 1px;
}
.affiche { position: relative; }

.affiche__date {
  flex: 0 0 auto;
  min-width: 64px; padding: .4rem .5rem;
  display: flex; flex-direction: column; align-items: center;
  border-radius: 12px;
  background: #fff; color: var(--c-bg);
  font-family: var(--font-display); text-transform: uppercase;
  line-height: 1; text-align: center;
}
.affiche__date small { font-size: .72rem; letter-spacing: .5px; color: #555; }
.affiche__date small:first-child { color: var(--affiche-c, var(--actu-evenement)); }
.affiche--offre .affiche__date small:first-child { color: var(--actu-offre); }
.affiche__date strong { font-size: 1.8rem; font-weight: 700; margin: .1rem 0; }
.affiche__date--fin small:first-child { font-size: .6rem; }

.affiche__texte { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.affiche__quand {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: .8rem; letter-spacing: 1px;
  color: var(--c-gold);
}
.affiche__titre {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 1.05rem; line-height: 1.2;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.affiche__cta {
  flex: 0 0 auto;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: var(--c-red);
  font-family: var(--font-display); text-transform: uppercase;
  font-size: .85rem; letter-spacing: .5px; white-space: nowrap;
}
.affiche__cta i { margin-left: .3rem; font-size: .8em; }

@keyframes affiche-entree {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .affiche { animation: none; transition: none; }
}

@media (max-width: 760px) {
  .affiche-wrap { bottom: 104px; }
  .affiche { gap: .7rem; padding: .6rem .7rem; }
  .affiche__cta { display: none; }
  .affiche__titre { font-size: .92rem; }
  .affiche__date { min-width: 54px; }
  .affiche__date strong { font-size: 1.5rem; }
}
