/* Règles de taille par bloc (point 5 de l'audit). Les classes de largeur/hauteur
   sont volontairement séparées : la grille (masonry, colonnes équilibrées)
   vit dans blocks-grid.css, ce fichier ne régit que le bloc lui-même. */

.ulb-block {
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--ulb-block-bg, #fff);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* --- Largeurs --- */
.ulb-w-full { width: 100%; }
.ulb-w-half { width: 100%; } /* la répartition réelle en 2 colonnes est gérée par blocks-grid.css */

/* --- Hauteurs nommées --- */
.ulb-h-compact { height: 56px; }
.ulb-h-standard { height: 180px; }
.ulb-h-large { height: 260px; }
.ulb-h-xl { height: 340px; }
.ulb-h-comfortable { height: 220px; }
.ulb-h-auto { height: auto; }

/* Bannière demi-largeur : carrée, ignore toute hauteur nommée */
.ulb-square { aspect-ratio: 1 / 1; height: auto !important; }

/* --- Lien / Liste : bandeau compact --- */
.ulb-list {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.1s ease;
}
.ulb-list:hover { transform: translateY(-1px); }
.ulb-list__icon { font-size: 1.25rem; flex: none; }
.ulb-list__title { font-weight: 600; font-size: 0.9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Lien / Bannière : image + texte incrusté --- */
.ulb-banner {
  position: relative;
  display: block;
  text-decoration: none;
  color: #fff;
  width: 100%;
  height: 100%;
}
.ulb-banner__bg {
  position: absolute;
  inset: -12% -4%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.ulb-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.05) 60%);
}
.ulb-banner__text {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.875rem 1rem;
}
.ulb-banner__title { font-weight: 700; font-size: 1rem; line-height: 1.2; }
.ulb-banner__subtitle { font-size: 0.8125rem; opacity: 0.85; margin-top: 0.125rem; }

/* --- Don --- */
.ulb-donation {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  height: 100%;
}
.ulb-donation__title { font-weight: 700; font-size: 0.9375rem; }
.ulb-donation__subtitle { font-size: 0.8125rem; color: #6b7280; }
.ulb-donation__amounts { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.ulb-donation__amount { border: 1px solid #d1d5db; border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.8125rem; background: #fff; cursor: pointer; }
.ulb-donation__cta { margin-top: auto; background: #dc2626; color: #fff; border-radius: 0.5rem; padding: 0.5rem; font-weight: 600; font-size: 0.875rem; text-align: center; cursor: pointer; border: none; }
.ulb-donation__recurring { font-size: 0.75rem; display: flex; align-items: center; gap: 0.375rem; color: #6b7280; }

/* --- Newsletter --- */
.ulb-newsletter { padding: 1.25rem; text-align: center; }
.ulb-newsletter__form { display: flex; gap: 0.5rem; margin-top: 0.625rem; }
.ulb-newsletter__input { flex: 1; border: 1px solid #d1d5db; border-radius: 0.5rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; }
.ulb-newsletter__submit { background: #111827; color: #fff; border-radius: 0.5rem; padding: 0.5rem 1rem; font-weight: 600; font-size: 0.875rem; border: none; cursor: pointer; }

/* --- Galerie (carrousel) --- */
.ulb-gallery { display: flex; gap: 0.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.75rem; }
.ulb-gallery__item { flex: 0 0 78%; scroll-snap-align: start; border-radius: 0.5rem; overflow: hidden; aspect-ratio: 4 / 3; }
.ulb-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Promo --- */
.ulb-promo {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #db2777);
}
.ulb-promo__title { font-weight: 800; font-size: 1.0625rem; }
.ulb-promo__countdown { margin-top: 0.375rem; font-size: 0.8125rem; font-variant-numeric: tabular-nums; opacity: 0.9; }
