/* S05 — Image bandeau pleine largeur */
.cds-image-banner {
  width: 100%;
  max-width: none;
  margin: clamp(1.5rem, 3vw, 3rem) 0;
  overflow: hidden;
  position: relative;
  background: var(--cds-color-surface-soft, #f5f5f5);
}

.cds-image-banner.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}


.cds-image-banner--radius-none { border-radius: 0; }
.cds-image-banner--radius-small { border-radius: 8px; }
.cds-image-banner--radius-medium { border-radius: 16px; }
.cds-image-banner--radius-large { border-radius: 24px; }
.cds-image-banner--radius-xlarge { border-radius: 32px; }

.cds-image-banner--shadow {
  box-shadow: 0 14px 36px rgba(36, 67, 74, .14);
}

.cds-image-banner--height-small { height: 180px; }
.cds-image-banner--height-medium { height: 260px; }
.cds-image-banner--height-large { height: 360px; }

.cds-image-banner__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.cds-image-banner--position-top .cds-image-banner__image { object-position: center top; }
.cds-image-banner--position-center .cds-image-banner__image { object-position: center center; }
.cds-image-banner--position-bottom .cds-image-banner__image { object-position: center bottom; }

.cds-image-banner__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 180px;
  border: 2px dashed #a9a9a9;
  color: #555;
  background: #f4f4f4;
  text-align: center;
}

.cds-image-banner__actions {
  position: absolute;
  inset: auto 1rem 1rem auto;
  display: flex;
  gap: .5rem;
  padding: .5rem;
  border-radius: .35rem;
  background: rgba(255,255,255,.94);
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
}

body:not(.block-editor-page) .cds-image-banner__actions { display: none; }

@media (max-width: 781px) {
  .cds-image-banner--height-small { height: 150px; }
  .cds-image-banner--height-medium { height: 210px; }
  .cds-image-banner--height-large { height: 280px; }
}
