/* ═══════════════════════════════════════════════════════════
   Randozone — A la une (alaune/index-bs5.php)
   Liste des dernières pages ajoutées : cartes larges empilées.
   Dépend des tokens de rz-bs5.css (--rz-*).
   ═══════════════════════════════════════════════════════════ */

/* ── Barre d'actions admin (@mutualisable : design « Proposition 1 — Barre
   accent » du catalogue Randozone-Catalogue-BS5-Blocs-Admin.html) ────────── */
.rz-adm {
  --role: oklch(0.72 0.15 70);          /* ambre — autorité admin */
  --role-dark: oklch(0.5 0.13 70);
  --role-deep: oklch(0.42 0.11 70);
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: color-mix(in oklch, var(--role) 11%, white);
  border: 1px solid color-mix(in oklch, var(--role) 32%, white);
  border-radius: 14px;
  padding: .85rem 1.15rem .85rem 1.45rem;
  overflow: hidden;
}
.rz-adm::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--role), var(--role-dark));
}
.rz-adm-tile {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: color-mix(in oklch, var(--role) 26%, white);
  color: var(--role-deep);
}
.rz-adm-tile .rz-ico { width: 1.25rem; height: 1.25rem; }
.rz-adm-meta { display: flex; flex-direction: column; gap: .22rem; min-width: 0; }
.rz-adm-role {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--role-deep);
}
.rz-adm-role .who {
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
  background: var(--role-dark);
  border-radius: 999px;
  padding: .12rem .5rem;
  font-size: .62rem;
}
.rz-adm-actions {
  margin-left: auto;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.rz-abtn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .83rem;
  font-weight: 600;
  padding: .5rem .9rem;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid color-mix(in oklch, var(--role) 32%, white);
  background: #fff;
  color: var(--role-deep);
  transition: background .15s, border-color .15s, box-shadow .15s, filter .15s;
}
.rz-abtn .rz-ico { width: .95rem; height: .95rem; }
.rz-abtn:hover {
  background: color-mix(in oklch, var(--role) 9%, white);
  border-color: color-mix(in oklch, var(--role) 50%, white);
}
.rz-abtn.primary {
  background: var(--role-dark);
  border-color: var(--role-dark);
  color: #fff;
}
.rz-abtn.primary:hover { filter: brightness(1.07); background: var(--role-dark); }

.al-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* ── Carte large ── */
.al-card {
  display: flex;
  flex-direction: column;
  background: var(--rz-surface);
  border: 1px solid var(--rz-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px -34px rgba(20, 40, 80, .5);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.al-card:hover {
  box-shadow: 0 22px 48px -30px rgba(20, 40, 80, .6);
  border-color: var(--rz-primary-line);
  transform: translateY(-2px);
}

/* ── Zone média ── */
.al-media {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--rz-surface-2);
  overflow: hidden;
}
.al-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder quand aucune image n'est disponible */
.al-media.is-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 120% at 20% 0%,
      var(--rz-primary-bg) 0%, var(--rz-surface-2) 70%);
}
.al-media.is-ph .ph-ico {
  width: 46px;
  height: 46px;
  color: var(--rz-primary);
  opacity: .55;
}

/* Badge type, posé sur le média */
.al-badge {
  position: absolute;
  top: .7rem;
  left: .7rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--rz-primary);
  background: color-mix(in oklch, white 88%, transparent);
  backdrop-filter: blur(4px);
  border: 1px solid var(--rz-primary-line);
  border-radius: 999px;
  padding: .3rem .65rem;
}
.al-badge .rz-ico { width: 15px; height: 15px; }

/* ── Corps texte ── */
.al-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 1.2rem 1.3rem 1.3rem;
  display: flex;
  flex-direction: column;
}
.al-title {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 .5rem;
}
.al-title a { color: var(--rz-ink); text-decoration: none; }
.al-card:hover .al-title a { color: var(--rz-primary); }

.al-intro {
  font-size: .96rem;
  line-height: 1.6;
  color: var(--rz-inksoft);
  margin: 0 0 .9rem;
}

.al-meta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--rz-inksoft);
}
.al-meta .rz-ico { width: 15px; height: 15px; color: var(--rz-primary); }

/* ── Bloc pub inséré dans la liste ── */
.al-pub {
  margin: .2rem 0;
  max-width: 100%;
  overflow: hidden;
}

/* ═══ Desktop : média à gauche, texte à droite ═══ */
@media (min-width: 620px) {
  .al-card { flex-direction: row; }
  .al-media {
    width: 270px;
    aspect-ratio: auto;
    align-self: stretch;
  }
  .al-body { padding: 1.4rem 1.5rem; }
}
