/**
 * @package     demat_desktop
 * Annonces : zones OUI Bannières rendues par le layout demat.annonce (agenda, fiche événement, Court circuit, Actualités),
 * et les cartes « demat-promo » des bannières internes (HTML personnalisé). Chargé par le layout.
 */
/* --- Annonces (zones OUI Bannières « agenda » et « event », layout demat.annonce) ---------------------------
   Une carte de la grille de l'agenda, ou un bloc à côté de la source sur la fiche événement, aussi large que
   « Infos pratiques ». Étiquette « demat » (interne) ou « Publicité » (payante) en haut à droite. */
.agenda-annonce,
.evenement-annonce { display: flex; min-width: 0; }
.agenda-annonce > .oui-banner,
.evenement-annonce > .oui-banner { flex: 1; display: flex; align-items: stretch; width: 100%; min-height: 0; margin: 0; }
.agenda-annonce .oui-zone-label,
.evenement-annonce .oui-zone-label {
  top: 0.95rem; right: 1rem; left: auto;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--blanc-ecume); color: var(--noir-goemon);
}
.agenda-annonce .oui-zone-label--internal,
.evenement-annonce .oui-zone-label--internal { background: rgba(251, 250, 247, 0.14); color: var(--blanc-ecume); }

.evenement-pied { align-items: stretch; row-gap: 0; }
.evenement-annonce { margin: 0 0 1.75rem; }
@media (min-width: 960px) {
  .evenement-annonce { margin-top: 2.5rem; } /* aligned with the source block */
}

/* Bannières internes (HTML personnalisé) : <a class="demat-promo" href="{click}">… */
.demat-promo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
  padding: 1.35rem 1.4rem 1.3rem;
  border-radius: 16px;
  background: var(--noir-goemon);
  color: var(--blanc-ecume);
  text-decoration: none;
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.demat-promo:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0, 30, 38, 0.18); color: var(--blanc-ecume); }
.demat-promo:focus-visible { outline: 3px solid var(--bleu-glaz); outline-offset: 3px; }
.demat-promo-kicker { padding-right: 5rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sable); }
.demat-promo-titre { font-family: var(--police-titres); font-synthesis: none; word-spacing: 0.15em; font-weight: 400; font-size: clamp(1.35rem, 2.1vw, 1.65rem); line-height: 1.1; letter-spacing: -0.006em; }
.demat-promo-texte { font-size: 0.95rem; line-height: 1.5; color: rgba(251, 250, 247, 0.78); }
.demat-promo-cta {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  background: var(--bleu-glaz);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 650;
  transition: background 220ms ease;
}
.demat-promo:hover .demat-promo-cta { background: var(--bleu-glaz-fonce); }
.demat-promo-filigrane {
  position: absolute; z-index: -1; right: -0.04em; bottom: -0.2em;
  font-family: var(--police-titres); font-synthesis: none; word-spacing: 0.15em; font-weight: 400; font-size: 8.5rem; line-height: 1; letter-spacing: -0.013em;
  color: var(--blanc-ecume); opacity: 0.06; pointer-events: none;
}
.demat-promo--glaz { background: var(--bleu-glaz-fonce); }
.demat-promo--glaz .demat-promo-kicker { color: rgba(251, 250, 247, 0.85); }
.demat-promo--glaz .demat-promo-cta { background: var(--noir-goemon); }
.demat-promo--glaz:hover .demat-promo-cta { background: #000; }
@media (prefers-reduced-motion: reduce) { .demat-promo, .demat-promo:hover { transition: none; transform: none; } }

/* Court circuit : carte d'annonce dans les listes de producteurs (<li class="cc-annonce">) */
.cc-annonce { display: flex; min-width: 0; padding: 0; background: none; border: 0; }
.cc-annonce:has(.oui-zone[hidden]) { display: none; }
.cc-annonce > .oui-zone { display: flex; flex: 1; min-width: 0; }
.cc-annonce .oui-banner { flex: 1; display: flex; align-items: stretch; width: 100%; min-height: 0; margin: 0; }
.cc-annonce .oui-zone-label {
  top: 0.95rem; right: 1rem; left: auto; padding: 0.15rem 0.55rem; border-radius: 999px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--blanc-ecume); color: var(--noir-goemon);
}
.cc-annonce .oui-zone-label--internal { background: rgba(251, 250, 247, 0.14); color: var(--blanc-ecume); }
.cc-annonce .demat-promo { padding: 1.1rem; gap: 0.55rem; }
.cc-annonce .demat-promo-titre { font-size: 1.25rem; }

/* Actualités : carte d'annonce dans la grille des articles (zone « actualites », placée au hasard par blog.php) */
.actus-annonce { display: flex; min-width: 0; }
.actus-annonce[hidden], .agenda-annonce[hidden] { display: none; }
.actus-annonce > .oui-banner { flex: 1; display: flex; align-items: stretch; width: 100%; min-height: 0; margin: 0; }
.actus-annonce .oui-zone-label {
  top: 0.95rem; right: 1rem; left: auto; padding: 0.15rem 0.55rem; border-radius: 999px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--blanc-ecume); color: var(--noir-goemon);
}
.actus-annonce .oui-zone-label--internal { background: rgba(251, 250, 247, 0.14); color: var(--blanc-ecume); }
