/* Imaginea banners (design: ai-image-gen/marketing/affi/banners.html). Sizes scale with the banner width (cqw). */

/* ---- Shared by the three imaginea banners ---- */
.imaginea { position: relative; display: block; overflow: hidden; container-type: inline-size;
  font-family: Montserrat, system-ui, sans-serif; color: #fff; text-decoration: none; background: #050505; line-height: normal; }
.imaginea * { box-sizing: border-box; }
.imaginea:hover, .imaginea:focus { color: #fff; text-decoration: none; }
.imaginea img { max-width: none; margin: 0; border: 0; }
.imaginea h3, .imaginea .imaginea-title { color: #fff; font-family: Montserrat, system-ui, sans-serif; padding: 0; }
.imaginea-glow { text-shadow: 0 0 .25em rgba(255,255,255,.55), 0 0 .7em rgba(255,255,255,.35), 0 0 1.4em rgba(170,200,255,.25); }
.imaginea-brand { display: flex; align-items: center; font-weight: 700; }
.imaginea-brand img { border: 1px solid rgba(255,255,255,.18); }
.imaginea-pills { display: flex; flex-wrap: nowrap; }
.imaginea-pills span { border-radius: 99px; font-weight: 600; white-space: nowrap;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); }
/* Animated call to action */
.imaginea-cta { transition: background .18s ease, color .18s ease; }
.imaginea-cta svg, .imaginea-cta > span { transition: transform .18s ease; }
.imaginea:hover .imaginea-cta, .imaginea:focus-visible .imaginea-cta { background: #5BB8FF; color: #050505; }
.imaginea:hover .imaginea-cta svg, .imaginea:hover .imaginea-cta > span { transform: translateX(3px); }
.imaginea:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---- 1. Large banner (1690:970) ---- */
.imaginea-banner { width: 100%; max-width: 1100px; aspect-ratio: 1690 / 970; border-radius: 28px;
  border: 1px solid rgba(120,170,220,.35); }
.imaginea-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.imaginea-banner::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,5,5,.85) 0%, rgba(5,5,5,.4) 38%, transparent 55%); }
.imaginea-banner .imaginea-copy { position: absolute; z-index: 1; left: 5.82cqw; top: 50%; transform: translateY(-50%); max-width: 47.3cqw; }
.imaginea-banner .imaginea-brand { gap: 1.27cqw; font-size: 2cqw; letter-spacing: -.01em; }
.imaginea-banner .imaginea-brand img { width: 4cqw; height: 4cqw; border-radius: .91cqw; }
.imaginea-banner h3, .imaginea-banner .imaginea-title { margin: 2cqw 0 1.09cqw; font-size: 3.45cqw; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.imaginea-banner p { margin: 0 0 2cqw; font-size: 1.64cqw; color: rgba(255,255,255,.62); }
.imaginea-banner .imaginea-pills { gap: .91cqw; margin-bottom: 2.73cqw; }
.imaginea-banner .imaginea-pills span { padding: .82cqw 1.45cqw; font-size: 1.27cqw; }
.imaginea-banner .imaginea-cta { display: inline-flex; align-items: center; gap: 1.09cqw; padding: 1.64cqw 2.73cqw;
  border-radius: 1.27cqw; background: #fff; color: #050505; font-weight: 700; font-size: 1.73cqw; }

/* ---- 2. Tool card thumbnail (16:10) ---- */
.imaginea-thumb { width: 100%; max-width: 800px; aspect-ratio: 16 / 10; border-radius: 6px; }
.imaginea-thumb > img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 20%; display: block; }
.imaginea-thumb .imaginea-copy { position: absolute; left: 7cqw; top: 50%; transform: translateY(-50%); }
.imaginea-thumb .imaginea-brand { gap: 2.4cqw; font-size: 4.6cqw; }
.imaginea-thumb .imaginea-brand img { width: 8cqw; height: 8cqw; border-radius: 1.8cqw; }
.imaginea-thumb h3, .imaginea-thumb .imaginea-title { margin: 4cqw 0 0; font-size: 5.6cqw; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.imaginea-thumb .imaginea-pills { gap: 1.1cqw; margin-top: 3.6cqw; }
.imaginea-thumb .imaginea-pills span { padding: .9cqw 1.7cqw; font-size: 1.75cqw; backdrop-filter: blur(6px); }

/* ---- 3. Wide strip (1081:191) ---- */
.imaginea-strip { width: 100%; max-width: 1081px; aspect-ratio: 1081 / 191; border-radius: 22px;
  border: 1px solid rgba(120,170,220,.35); }
.imaginea-strip .imaginea-visual { position: absolute; top: 0; right: 0; bottom: 0; width: 52%; }
.imaginea-strip .imaginea-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 33%; display: block; }
.imaginea-strip .imaginea-visual::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #050505 0%, rgba(5,5,5,.85) 14%, rgba(5,5,5,0) 38%); }
.imaginea-strip .imaginea-copy { position: absolute; left: 2.31cqw; top: 1.94cqw; }
.imaginea-strip .imaginea-brand { gap: .93cqw; font-size: 1.39cqw; }
.imaginea-strip .imaginea-brand img { width: 2.78cqw; height: 2.78cqw; border-radius: .65cqw; }
.imaginea-strip h3, .imaginea-strip .imaginea-title { margin: 1.2cqw 0 .65cqw; font-size: 1.94cqw; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.imaginea-strip p { margin: 0 0 1.48cqw; font-size: 1.25cqw; color: rgba(255,255,255,.6); }
.imaginea-strip .imaginea-cta { display: inline-flex; align-items: center; gap: .93cqw; height: 3.89cqw; padding: 0 1.76cqw;
  border-radius: 1.02cqw; background: #fff; color: #050505; font-weight: 700; font-size: 1.34cqw; }
.imaginea-strip .imaginea-cta svg { width: .83cqw; height: 1.3cqw; }

/* ---- Site integration ---- */
/* The strip needs width: below 768px the large banner is shown instead. */
@media (max-width: 767px) { .imaginea-desk { display: none !important; } }
@media (min-width: 768px) { .imaginea-mob { display: none !important; } }
/* Home mosaic: the banner fills the tall cell (the mosaic is a single column below 1340px: there the banner keeps
   its own ratio, a height of 100% would collapse it). */
@media (min-width: 1340px) { .aie-mosaique .imaginea-banner { height: 100%; aspect-ratio: auto; max-width: none; } }
/* The Elementor widget holding the banner is a flex item: without a width it is measured at 0 and the portrait banner
   (aspect-ratio) overflows onto the next block on phones. */
.aie-carte-higgsfield { width: 100% !important; }
/* Phones: the large banner turns portrait, text under the face. */
@media (max-width: 767px) {
  .imaginea-banner { aspect-ratio: 4 / 5; border-radius: 22px; }
  .imaginea-banner > img { height: 72%; object-position: 72% top; }
  .imaginea-banner::after { background: linear-gradient(180deg, transparent 38%, rgba(5,5,5,.92) 64%, #050505 76%); }
  .imaginea-banner .imaginea-copy { top: auto; bottom: 6cqw; left: 6cqw; right: 6cqw; transform: none; max-width: none; }
  .imaginea-banner .imaginea-brand { gap: 2.6cqw; font-size: 4.6cqw; }
  .imaginea-banner .imaginea-brand img { width: 8.5cqw; height: 8.5cqw; border-radius: 2cqw; }
  .imaginea-banner h3, .imaginea-banner .imaginea-title { margin: 3.5cqw 0 2cqw; font-size: 8.4cqw; }
  .imaginea-banner p { margin: 0 0 4cqw; font-size: 4cqw; }
  .imaginea-banner .imaginea-pills { gap: 1.8cqw; margin-bottom: 5cqw; }
  .imaginea-banner .imaginea-pills span { padding: 1.6cqw 2.6cqw; font-size: 3.1cqw; }
  .imaginea-banner .imaginea-cta { display: flex; justify-content: center; padding: 3.6cqw 5cqw; border-radius: 3cqw; font-size: 4.4cqw; }
}
/* Inside Elementor image widgets (tool cards), the widget's img rules must not resize the banner images. */
.elementor-widget-image .imaginea-thumb > img { width: 100% !important; height: 100% !important; max-width: none !important; border-radius: 0 !important; object-fit: cover !important; }
.elementor-widget-image .imaginea-thumb .imaginea-brand img { width: 8cqw !important; height: 8cqw !important; max-width: none !important; border-radius: 1.8cqw !important; }
.elementor-widget-image .imaginea-thumb { text-align: left; }
/* Inside article text, the article typography (p, h3 sizes and margins) must not apply to the banners. */
.imaginea.imaginea-strip h3, .imaginea.imaginea-strip .imaginea-title { margin: 1.2cqw 0 .65cqw !important; font-size: 1.94cqw !important; line-height: 1.2 !important; }
.imaginea.imaginea-strip p { margin: 0 0 1.48cqw !important; font-size: 1.25cqw !important; line-height: 1.3 !important; }
.imaginea.imaginea-strip .imaginea-brand { font-size: 1.39cqw !important; line-height: 1.2 !important; }
.imaginea.imaginea-banner h3, .imaginea.imaginea-banner .imaginea-title { margin: 2cqw 0 1.09cqw !important; font-size: 3.45cqw !important; line-height: 1.12 !important; }
.imaginea.imaginea-banner p { margin: 0 0 2cqw !important; font-size: 1.64cqw !important; line-height: 1.3 !important; }
.imaginea.imaginea-thumb h3, .imaginea.imaginea-thumb .imaginea-title { margin: 4cqw 0 0 !important; font-size: 5.6cqw !important; line-height: 1.1 !important; }
@media (max-width: 767px) {
  .imaginea.imaginea-banner h3, .imaginea.imaginea-banner .imaginea-title { margin: 3.5cqw 0 2cqw !important; font-size: 8.4cqw !important; }
  .imaginea.imaginea-banner p { margin: 0 0 4cqw !important; font-size: 4cqw !important; }
}
a.imaginea, a.imaginea:hover, a.imaginea:focus, a.imaginea:visited { color: #fff !important; text-decoration: none !important; }
