/* ===== IA Actualité – Galerie CSS  ===== */
/* ===== VERSION COULEURS MAXIMALES    ===== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;700;800;900&display=swap');

:root {
  --ia-bg:         #04060f;
  --ia-bg-card:    #080d20;
  --ia-blue:       #3bc8ff;
  --ia-violet:     #b44dff;
  --ia-pink:       #ff4fa8;
  --ia-green:      #00f5a0;
  --ia-orange:     #ff7a2f;
  --ia-yellow:     #ffe03a;
  --ia-red:        #ff3d6b;
  --ia-teal:       #00e8d5;
  --ia-lime:       #a3ff2e;
  --ia-indigo:     #818cfb;
  --ia-text:       #f0f4ff;
  --ia-text-muted: rgba(220, 228, 255, 0.72);
  --ia-radius:     14px;

  /* Gradient shorthands */
  --g-blue-violet: linear-gradient(135deg, var(--ia-blue), var(--ia-violet));
  --g-violet-pink: linear-gradient(135deg, var(--ia-violet), var(--ia-pink));
  --g-green-teal:  linear-gradient(135deg, var(--ia-green), var(--ia-teal));
  --g-orange-pink: linear-gradient(135deg, var(--ia-orange), var(--ia-pink));
  --g-rainbow:     linear-gradient(90deg, var(--ia-blue) 0%, var(--ia-violet) 33%, var(--ia-pink) 66%, var(--ia-orange) 100%);
}

.ia-gallery-wrap {
  margin: 44px 0 36px;
  font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  clear: both;
  scrollbar-color: var(--ia-violet) transparent;
}

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.ia-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(56,200,255,0.07) 0%, rgba(180,77,255,0.10) 100%);
  border: 1px solid rgba(180,77,255,0.28);
  border-radius: var(--ia-radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.ia-gallery-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ia-gallery-icon {
  width: 46px;
  height: 46px;
  background: var(--g-rainbow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
  letter-spacing: -0.5px;
  box-shadow:
    0 0 28px rgba(180,77,255,0.65),
    0 0 10px rgba(56,200,255,0.45),
    0 4px 12px rgba(0,0,0,0.4);
}

.ia-gallery-label {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: var(--g-rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(180,77,255,0.4));
}

.ia-gallery-query-badge {
  font-size: 14px;
  font-weight: 600;
  color: var(--ia-teal);
  background: rgba(0,232,213,0.10);
  border: 1px solid rgba(0,232,213,0.35);
  border-radius: 24px;
  padding: 6px 16px;
  font-style: italic;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ══════════════════════════════════════
   LOADING
══════════════════════════════════════ */
.ia-gallery-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px 28px;
  background: rgba(8, 13, 32, 0.75);
  border: 1px solid rgba(180,77,255,0.30);
  border-radius: var(--ia-radius);
}

.ia-gallery-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid rgba(180,77,255,0.15);
  border-top-color: var(--ia-violet);
  border-right-color: var(--ia-pink);
  border-bottom-color: var(--ia-blue);
  border-radius: 50%;
  animation: ia-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes ia-spin { to { transform: rotate(360deg); } }

.ia-gallery-loading-text {
  font-size: 17px;
  font-weight: 700;
  background: var(--g-blue-violet);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

/* ══════════════════════════════════════
   ERROR
══════════════════════════════════════ */
.ia-gallery-error {
  padding: 22px 26px;
  background: rgba(255, 45, 80, 0.10);
  border: 1px solid rgba(255, 60, 100, 0.48);
  border-radius: var(--ia-radius);
  font-size: 16px;
  font-weight: 500;
  color: #ffb3c0;
  line-height: 1.7;
}

/* ══════════════════════════════════════
   GRID
══════════════════════════════════════ */
.ia-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 640px) {
  .ia-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 400px) {
  .ia-gallery-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   CARD
══════════════════════════════════════ */
.ia-gallery-card {
  position: relative;
  border-radius: var(--ia-radius);
  overflow: hidden;
  background: var(--ia-bg-card);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  aspect-ratio: 16 / 10;
}

/* 6-colour rotating gradient borders — vivid! */
.ia-gallery-card:nth-child(6n+1) {
  border-image: linear-gradient(135deg, #3bc8ff, #818cfb) 1;
  box-shadow: 0 0 0 1px rgba(59,200,255,0.15);
}
.ia-gallery-card:nth-child(6n+2) {
  border-image: linear-gradient(135deg, #b44dff, #ff4fa8) 1;
  box-shadow: 0 0 0 1px rgba(180,77,255,0.15);
}
.ia-gallery-card:nth-child(6n+3) {
  border-image: linear-gradient(135deg, #00f5a0, #00e8d5) 1;
  box-shadow: 0 0 0 1px rgba(0,245,160,0.15);
}
.ia-gallery-card:nth-child(6n+4) {
  border-image: linear-gradient(135deg, #ff7a2f, #ffe03a) 1;
  box-shadow: 0 0 0 1px rgba(255,122,47,0.15);
}
.ia-gallery-card:nth-child(6n+5) {
  border-image: linear-gradient(135deg, #ff4fa8, #ff3d6b) 1;
  box-shadow: 0 0 0 1px rgba(255,79,168,0.15);
}
.ia-gallery-card:nth-child(6n+6) {
  border-image: linear-gradient(135deg, #a3ff2e, #00e8d5) 1;
  box-shadow: 0 0 0 1px rgba(163,255,46,0.15);
}

/* Hover glow per colour group */
.ia-gallery-card:hover { transform: translateY(-6px) scale(1.022); }

.ia-gallery-card:nth-child(6n+1):hover { box-shadow: 0 16px 50px rgba(59,200,255,0.35),  0 0 0 2px rgba(59,200,255,0.3); }
.ia-gallery-card:nth-child(6n+2):hover { box-shadow: 0 16px 50px rgba(180,77,255,0.35),  0 0 0 2px rgba(180,77,255,0.3); }
.ia-gallery-card:nth-child(6n+3):hover { box-shadow: 0 16px 50px rgba(0,245,160,0.28),   0 0 0 2px rgba(0,245,160,0.3); }
.ia-gallery-card:nth-child(6n+4):hover { box-shadow: 0 16px 50px rgba(255,122,47,0.30),  0 0 0 2px rgba(255,122,47,0.3); }
.ia-gallery-card:nth-child(6n+5):hover { box-shadow: 0 16px 50px rgba(255,79,168,0.30),  0 0 0 2px rgba(255,79,168,0.3); }
.ia-gallery-card:nth-child(6n+6):hover { box-shadow: 0 16px 50px rgba(163,255,46,0.25),  0 0 0 2px rgba(163,255,46,0.3); }

/* First card: wider */
.ia-gallery-card:first-child {
  grid-column: span 2;
  aspect-ratio: 16 / 8;
}
@media (max-width: 640px) {
  .ia-gallery-card:first-child { grid-column: span 1; aspect-ratio: 16 / 10; }
}

.ia-gallery-card img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: 0; transition: opacity 0.4s ease;
}
.ia-gallery-card img.ia-loaded { opacity: 1; }

.ia-gallery-card-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,22,60,0.95) 0%, rgba(5,8,25,0.95) 100%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.3s;
}
.ia-gallery-card-placeholder svg {
  opacity: 0.35; width: 30px; height: 30px; color: var(--ia-violet);
}

.ia-gallery-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(2,4,18,0.95) 0%, rgba(2,4,18,0.35) 55%, transparent 100%);
  opacity: 0;
  transition: opacity 0.24s ease;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 16px 17px;
  gap: 6px;
}
.ia-gallery-card:hover .ia-gallery-card-overlay { opacity: 1; }

.ia-gallery-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

.ia-gallery-card-source {
  font-size: 13px;
  font-weight: 700;
  opacity: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
a.ia-gallery-card-source {
  text-decoration: none;
  display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: opacity 0.2s;
}
a.ia-gallery-card-source:hover { opacity: 0.8; text-decoration: underline; }

/* Source colour per slot — vivid! */
.ia-gallery-card:nth-child(6n+1) .ia-gallery-card-source,
.ia-gallery-card:nth-child(6n+1) a.ia-gallery-card-source { color: #3bc8ff; }
.ia-gallery-card:nth-child(6n+2) .ia-gallery-card-source,
.ia-gallery-card:nth-child(6n+2) a.ia-gallery-card-source { color: #d580ff; }
.ia-gallery-card:nth-child(6n+3) .ia-gallery-card-source,
.ia-gallery-card:nth-child(6n+3) a.ia-gallery-card-source { color: #00f5a0; }
.ia-gallery-card:nth-child(6n+4) .ia-gallery-card-source,
.ia-gallery-card:nth-child(6n+4) a.ia-gallery-card-source { color: #ffaa5a; }
.ia-gallery-card:nth-child(6n+5) .ia-gallery-card-source,
.ia-gallery-card:nth-child(6n+5) a.ia-gallery-card-source { color: #ff80c0; }
.ia-gallery-card:nth-child(6n+6) .ia-gallery-card-source,
.ia-gallery-card:nth-child(6n+6) a.ia-gallery-card-source { color: #b8ff60; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.ia-gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 10px 14px;
  background: rgba(180,77,255,0.06);
  border: 1px solid rgba(180,77,255,0.18);
  border-radius: 10px;
}

.ia-gallery-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--ia-indigo);
}

.ia-gallery-refresh {
  font-size: 14px;
  font-weight: 700;
  background: var(--g-violet-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  padding: 0;
  font-family: inherit;
  transition: filter 0.2s;
}
.ia-gallery-refresh:hover { filter: brightness(1.25); }

.ia-gallery-refresh svg {
  width: 14px; height: 14px;
  transition: transform 0.5s ease;
  stroke: var(--ia-violet);
}
.ia-gallery-refresh:hover svg { transform: rotate(180deg); }

/* ══════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════ */
.ia-lightbox {
  position: fixed; inset: 0;
  background: rgba(2, 3, 14, 0.97);
  display: flex; align-items: center; justify-content: center;
  z-index: 999999;
  cursor: pointer;
  animation: ia-lb-in 0.2s ease;
}
@keyframes ia-lb-in { from { opacity: 0; } to { opacity: 1; } }

.ia-lightbox-inner {
  max-width: 92vw; max-height: 88vh;
  display: flex; flex-direction: column;
  align-items: center; gap: 18px;
  cursor: default;
}

.ia-lightbox img {
  max-width: 90vw; max-height: 74vh;
  border-radius: var(--ia-radius);
  border: 2px solid rgba(180,77,255,0.45);
  object-fit: contain;
  box-shadow: 0 0 80px rgba(180,77,255,0.25), 0 0 30px rgba(59,200,255,0.15);
}

.ia-lightbox-caption { text-align: center; max-width: 700px; }

.ia-lightbox-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.5;
  margin: 0 0 7px;
  text-shadow: 0 0 20px rgba(180,77,255,0.3);
}

.ia-lightbox-source {
  font-size: 15px;
  font-weight: 700;
  color: var(--ia-green);
}

.ia-lightbox-close {
  position: fixed; top: 22px; right: 26px;
  background: rgba(180,77,255,0.20);
  border: 2px solid rgba(180,77,255,0.50);
  border-radius: 12px;
  color: white;
  font-size: 22px;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; line-height: 1;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.ia-lightbox-close:hover {
  background: rgba(255,63,167,0.30);
  border-color: var(--ia-pink);
  box-shadow: 0 0 16px rgba(255,79,168,0.4);
}

.ia-lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(59,200,255,0.12);
  border: 2px solid rgba(59,200,255,0.30);
  border-radius: 12px;
  color: white;
  font-size: 30px;
  width: 52px; height: 76px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.ia-lightbox-nav:hover {
  background: rgba(180,77,255,0.28);
  border-color: var(--ia-violet);
  box-shadow: 0 0 20px rgba(180,77,255,0.4);
}
.ia-lightbox-nav.prev { left: 18px; }
.ia-lightbox-nav.next { right: 18px; }

/* ══════════════════════════════════════
   v1.1 — GRID MODES
══════════════════════════════════════ */
.ia-grid-uniform .ia-gallery-card:first-child { grid-column: span 1; aspect-ratio: 16 / 10; }
.ia-grid-masonry { grid-template-columns: repeat(3, 1fr); grid-template-rows: masonry; align-items: start; }
@supports not (grid-template-rows: masonry) {
  .ia-grid-masonry .ia-gallery-card { aspect-ratio: 4 / 3; }
}
.ia-masonry-card { aspect-ratio: unset; min-height: 120px; position: relative; overflow: hidden; }
.ia-masonry-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ══════════════════════════════════════
   CAROUSEL
══════════════════════════════════════ */
.ia-carousel {
  position: relative; border-radius: var(--ia-radius); overflow: hidden;
  background: var(--ia-bg-card);
  border: 2px solid rgba(180,77,255,0.35);
  box-shadow: 0 0 30px rgba(180,77,255,0.12);
}
.ia-carousel-track { position: relative; }

.ia-carousel-slide { display: none; position: relative; aspect-ratio: 16 / 7; cursor: pointer; }
.ia-carousel-slide.ia-active { display: block; }
.ia-carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 0.4s; }
.ia-carousel-slide img.ia-loaded { opacity: 1; }

.ia-carousel-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(2,4,18,0.95) 0%, transparent 68%);
  padding: 22px 24px 17px;
  display: flex; flex-direction: column; gap: 7px;
}

.ia-carousel-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.45;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85);
}

.ia-carousel-source {
  font-size: 14px;
  font-weight: 700;
  color: var(--ia-teal);
}

.ia-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  border: 2px solid rgba(255,255,255,0.16);
  color: white;
  width: 46px; height: 74px;
  font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  z-index: 2; border-radius: 0; line-height: 1; padding: 0;
}
.ia-carousel-btn:hover {
  background: rgba(180,77,255,0.35);
  border-color: rgba(180,77,255,0.55);
  box-shadow: 0 0 18px rgba(180,77,255,0.35);
}
.ia-carousel-prev { left: 0; border-radius: 0 10px 10px 0; }
.ia-carousel-next { right: 0; border-radius: 10px 0 0 10px; }

.ia-carousel-dots {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 0 10px;
  background: rgba(0,0,0,0.42);
}

.ia-carousel-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  padding: 0;
}
.ia-carousel-dot.ia-active {
  background: var(--g-violet-pink);
  transform: scale(1.6);
  box-shadow: 0 0 10px rgba(180,77,255,0.75);
}

/* ══════════════════════════════════════
   LIGHTBOX — counter + source link
══════════════════════════════════════ */
.ia-lightbox-counter {
  font-size: 15px;
  font-weight: 700;
  background: var(--g-blue-violet);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Space Mono', monospace;
  align-self: flex-start;
  margin-bottom: -8px;
}

.ia-lightbox-source-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ia-teal);
  text-decoration: none;
  transition: color 0.2s;
}
.ia-lightbox-source-link:hover { color: var(--ia-green); text-decoration: underline; }

/* ══════════════════════════════════════
   v1.2 — ALTERNATIVES BAR
══════════════════════════════════════ */
.ia-alt-bar {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px; margin-bottom: 18px; padding: 14px 20px;
  background: rgba(180,77,255,0.08);
  border: 1px solid rgba(180,77,255,0.28);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.ia-alt-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(220,228,255,0.65);
  white-space: nowrap; flex-shrink: 0; font-style: italic;
}

.ia-alt-btn {
  font-size: 14px;
  font-weight: 600;
  color: var(--ia-blue);
  background: rgba(59,200,255,0.10);
  border: 1px solid rgba(59,200,255,0.30);
  border-radius: 22px;
  padding: 7px 17px;
  cursor: pointer;
  white-space: nowrap; max-width: 240px;
  overflow: hidden; text-overflow: ellipsis;
  font-family: inherit;
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
  line-height: 1.4;
}
.ia-alt-btn:hover {
  background: rgba(180,77,255,0.22);
  color: #e0aaff;
  border-color: rgba(180,77,255,0.55);
  box-shadow: 0 0 12px rgba(180,77,255,0.25);
}
.ia-alt-btn.ia-alt-active {
  background: linear-gradient(90deg, rgba(59,200,255,0.22), rgba(180,77,255,0.22));
  color: #80eeff;
  border-color: rgba(59,200,255,0.65);
  font-weight: 800;
  cursor: default;
  box-shadow: 0 0 14px rgba(59,200,255,0.20);
}

/* ══════════════════════════════════════
   v1.4 — SKELETON
══════════════════════════════════════ */
@keyframes ia-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.ia-skeleton {
  background: linear-gradient(90deg,
    rgba(180,77,255,0.05) 25%,
    rgba(59,200,255,0.14) 50%,
    rgba(180,77,255,0.05) 75%
  );
  background-size: 1200px 100%;
  animation: ia-shimmer 1.4s infinite linear;
  border-radius: 6px;
}
.ia-skeleton-card       { position: absolute; inset: 0; border-radius: var(--ia-radius); }
.ia-skeleton-card-inner { position: absolute; inset: 0; border-radius: var(--ia-radius); transition: opacity 0.3s; }
.ia-skeleton-slide      { position: absolute; inset: 0; transition: opacity 0.3s; }
.ia-skeleton-lightbox   { width: min(70vw, 600px); height: min(50vh, 400px); border-radius: var(--ia-radius); flex-shrink: 0; }
.ia-skeleton-grid .ia-gallery-card { border-color: rgba(180,77,255,0.10); }

/* ══════════════════════════════════════
   SKELETON — classes sans style inline
══════════════════════════════════════ */
.ia-skeleton-icon  { width: 46px !important; height: 46px !important; border-radius: 12px !important; flex-shrink: 0; }
.ia-skeleton-label { width: 160px !important; height: 18px !important; border-radius: 6px !important; margin-left: 10px; }
.ia-skeleton-badge { width: 200px !important; height: 28px !important; border-radius: 24px !important; }

/* ══════════════════════════════════════
   FORCE — surcharge tout le thème
══════════════════════════════════════ */
.ia-gallery-wrap .ia-gallery-label    { font-size: 18px !important; font-weight: 900 !important; }
.ia-gallery-wrap .ia-gallery-icon     { font-size: 18px !important; font-weight: 900 !important; width: 46px !important; height: 46px !important; }
.ia-gallery-wrap .ia-gallery-query-badge { font-size: 14px !important; font-weight: 600 !important; }
.ia-gallery-wrap .ia-gallery-loading-text { font-size: 17px !important; font-weight: 700 !important; }
.ia-gallery-wrap .ia-gallery-card-title  { font-size: 15px !important; font-weight: 800 !important; }
.ia-gallery-wrap .ia-gallery-card-source,
.ia-gallery-wrap a.ia-gallery-card-source { font-size: 13px !important; font-weight: 700 !important; }
.ia-gallery-wrap .ia-gallery-count   { font-size: 14px !important; font-weight: 600 !important; }
.ia-gallery-wrap .ia-gallery-refresh { font-size: 14px !important; font-weight: 700 !important; }
.ia-gallery-wrap .ia-alt-label       { font-size: 14px !important; font-weight: 600 !important; }
.ia-gallery-wrap .ia-alt-btn         { font-size: 14px !important; font-weight: 600 !important; }
.ia-gallery-wrap .ia-carousel-title  { font-size: 18px !important; font-weight: 800 !important; }
.ia-gallery-wrap .ia-carousel-source { font-size: 14px !important; font-weight: 700 !important; }
.ia-lightbox .ia-lightbox-title      { font-size: 20px !important; font-weight: 800 !important; }
.ia-lightbox .ia-lightbox-source     { font-size: 15px !important; font-weight: 700 !important; }
.ia-lightbox .ia-lightbox-source-link { font-size: 15px !important; font-weight: 700 !important; }
.ia-lightbox .ia-lightbox-counter    { font-size: 15px !important; font-weight: 700 !important; }

/* ══════════════════════════════════════
   ACCÈS RESTREINT — badge requête, alternatives, régénérer
   Masqués par défaut. Visibles uniquement si body.ia-can-refresh
   (classe ajoutée par PHP uniquement pour les admins/éditeurs).
══════════════════════════════════════ */
.ia-gallery-query-badge,
.ia-alt-bar,
.ia-gallery-refresh {
  display: none !important;
}
body.ia-can-refresh .ia-gallery-query-badge,
body.ia-can-refresh .ia-alt-bar,
body.ia-can-refresh .ia-gallery-refresh {
  display: revert !important;
}
