/* Ali Gator v222 — fenêtre « Avant / Après ». Thème clair, apparition progressive. */
html:root body #root article.batch-item .batch-actions > .agcmp-btn { display: inline-flex; align-items: center; gap: 7px; animation: agcmp-pop .4s cubic-bezier(.22, .8, .24, 1) both; }
html:root body #root article.batch-item .batch-actions > .agcmp-btn svg { flex: none; }
html.agcmp-lock, html.agcmp-lock body { overscroll-behavior: contain; }
.agcmp { position: fixed; inset: 0; z-index: 1600; display: grid; place-items: center; padding: 22px; font-family: var(--lx-sans, Hellix), ui-sans-serif, system-ui, sans-serif; color: #0c1a12; }
.agcmp[hidden] { display: none; }
.agcmp-veil { position: absolute; inset: 0; background: rgba(15, 33, 22, .34); -webkit-backdrop-filter: blur(6px) saturate(1.1); backdrop-filter: blur(6px) saturate(1.1); opacity: 0; transition: opacity .32s ease; }
.agcmp-panel {
  position: relative; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); width: min(1480px, 100%); height: min(940px, calc(100vh - 44px));
  border-radius: 28px; background: linear-gradient(180deg, #fbfdf8, #f3f8ec); border: 1px solid rgba(29, 97, 65, .14);
  box-shadow: 0 1px 0 #fff inset, 0 40px 90px -40px rgba(8, 30, 18, .6); overflow: hidden;
  opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .34s cubic-bezier(.22, .8, .24, 1), transform .42s cubic-bezier(.22, .8, .24, 1);
}
.agcmp.is-open .agcmp-veil { opacity: 1; }
.agcmp.is-open .agcmp-panel { opacity: 1; transform: none; }
.agcmp.is-closing .agcmp-panel { transition-duration: .26s; }
.agcmp-head { display: flex; align-items: flex-start; gap: 16px; padding: 20px 24px 10px; }
.agcmp-tt { flex: 1; min-width: 0; }
.agcmp-eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 10.5px/1 var(--lx-mono, ui-monospace, monospace); letter-spacing: .16em; text-transform: uppercase; color: #3f5a4a; }
.agcmp-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8fd03a; }
.agcmp-head h2 { margin: 6px 0 0; font: 400 30px/1.08 "Instrument Serif", "Iowan Old Style", Georgia, serif; color: #0c1a12; overflow-wrap: anywhere; }
.agcmp-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.agcmp-zoom { height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px rgba(29, 97, 65, .22); color: #1d6141; font: 600 13px/1 inherit; font-family: inherit; cursor: pointer; transition: background-color .2s ease; }
.agcmp-zoom:hover, .agcmp-zoom[aria-pressed="true"] { background: rgba(197, 242, 111, .3); }
.agcmp-x { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(12, 40, 24, .06); color: #0c1a12; cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.agcmp-x:hover { background: rgba(12, 40, 24, .12); transform: rotate(90deg); }
.agcmp-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 4px 24px 14px; border-bottom: 1px solid rgba(29, 97, 65, .1); }
.agcmp-prev, .agcmp-next { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; box-shadow: inset 0 0 0 1px rgba(29, 97, 65, .2); color: #1d6141; font: 600 20px/1 inherit; cursor: pointer; transition: background-color .2s ease, opacity .2s ease; }
.agcmp-prev:hover:not(:disabled), .agcmp-next:hover:not(:disabled) { background: rgba(197, 242, 111, .3); }
.agcmp-prev:disabled, .agcmp-next:disabled { opacity: .35; cursor: default; }
.agcmp-pg { min-width: 92px; text-align: center; font-size: 13.5px; font-weight: 650; font-variant-numeric: tabular-nums; color: #1d4d33; }
.agcmp-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-left: 10px; }
.agcmp-chips span { margin-right: 4px; font-size: 12px; color: #5b6b62; }
.agcmp-chips button { min-width: 30px; height: 28px; padding: 0 9px; border-radius: 999px; border: 0; background: rgba(197, 242, 111, .32); color: #1d4d0b; font: 650 12.5px/1 inherit; font-family: inherit; cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.agcmp-chips button:hover { transform: translateY(-1px); }
.agcmp-chips button.is-on { background: #0e3523; color: #fff; }
.agcmp-msg { margin: 18px 24px 0; padding: 12px 16px; border-radius: 14px; background: rgba(240, 190, 80, .18); color: #6b4507; font-size: 13.5px; animation: agcmp-pop .35s ease both; }
.agcmp-msg[hidden] { display: none; }
.agcmp-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; min-height: 0; overflow: auto; padding: 16px 24px 24px; overscroll-behavior: contain; }
.agcmp-body[hidden] { display: none; }
.agcmp-col { margin: 0; min-width: 0; }
.agcmp-col figcaption { position: sticky; top: -16px; z-index: 1; display: flex; align-items: baseline; gap: 8px; padding: 6px 2px 10px; background: linear-gradient(180deg, #f6faf0 70%, rgba(246, 250, 240, 0)); }
.agcmp-col figcaption b { font-size: 14px; font-weight: 700; color: #0c1a12; }
.agcmp-col figcaption span { font-size: 12.5px; color: #5b6b62; }
.agcmp-col[data-side="after"] figcaption b { color: #1d6141; }
.agcmp-col figcaption a { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: 12.5px; font-weight: 600; color: #1d6141; text-decoration: none; }
.agcmp-col figcaption a:hover { text-decoration: underline; text-underline-offset: 3px; }
.agcmp-frame { position: relative; min-height: 320px; border-radius: 14px; background: #fff; border: 1px solid rgba(12, 40, 24, .1); box-shadow: 0 18px 40px -30px rgba(8, 30, 18, .45); overflow: hidden; }
.agcmp-col[data-side="after"] .agcmp-frame { border-color: rgba(143, 208, 58, .55); box-shadow: 0 0 0 3px rgba(197, 242, 111, .22), 0 18px 40px -30px rgba(8, 30, 18, .45); }
.agcmp-frame img { display: block; width: 100%; height: auto; opacity: 1; transition: opacity .3s ease; }
.agcmp-frame.is-loading img { opacity: .15; }
.agcmp-frame.is-loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(197, 242, 111, .22) 50%, rgba(255, 255, 255, 0) 70%) 0 0 / 220% 100%; animation: agcmp-shine 1.2s linear infinite; }
.agcmp-frame.is-error::after { content: "Page indisponible"; position: absolute; inset: 0; display: grid; place-items: center; color: #8a2a22; font-size: 13px; background: rgba(212, 87, 78, .05); }
.agcmp.is-zoom .agcmp-body { grid-template-columns: minmax(720px, 1fr) minmax(720px, 1fr); }
@keyframes agcmp-shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes agcmp-pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .agcmp { padding: 8px; }
  .agcmp-panel { height: calc(100vh - 16px); border-radius: 22px; }
  .agcmp-head h2 { font-size: 22px; }
  .agcmp-body { gap: 10px; padding: 12px; }
  .agcmp-chips { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .agcmp-veil, .agcmp-panel, .agcmp-frame img { transition: none !important; }
  .agcmp-frame.is-loading::after, html:root body #root article.batch-item .batch-actions > .agcmp-btn, .agcmp-msg { animation: none !important; }
}
