/* =========================================================
   Logos Zoom Widget — logos-zoom.css
   Layout identique au HTML source :
   .lzw-wrap = flex row, align-items:flex-end
   .inner-div = colonne flex-column
   ========================================================= */

/* ── Keyframes ──────────────────────────────────────────── */
@keyframes lzw-zoom-in-down {
  0%   { opacity: 0; transform: scale(0.3) translateY(-60px); }
  60%  { opacity: 1; transform: scale(1.08) translateY(8px);  }
  100% { opacity: 1; transform: scale(1)   translateY(0);     }
}
@keyframes lzw-zoom-in-up {
  0%   { opacity: 0; transform: scale(0.3) translateY(60px);  }
  60%  { opacity: 1; transform: scale(1.08) translateY(-8px); }
  100% { opacity: 1; transform: scale(1)   translateY(0);     }
}
@keyframes lzw-zoom-in-left {
  0%   { opacity: 0; transform: scale(0.3) translateX(-60px); }
  60%  { opacity: 1; transform: scale(1.08) translateX(8px);  }
  100% { opacity: 1; transform: scale(1)   translateX(0);     }
}
@keyframes lzw-zoom-in-right {
  0%   { opacity: 0; transform: scale(0.3) translateX(60px);  }
  60%  { opacity: 1; transform: scale(1.08) translateX(-8px); }
  100% { opacity: 1; transform: scale(1)   translateX(0);     }
}
@keyframes lzw-fade-up {
  0%   { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0);    }
}
@keyframes lzw-flip-up {
  0%   { opacity: 0; transform: perspective(500px) rotateX(45deg) scale(0.8);  }
  60%  { opacity: 1; transform: perspective(500px) rotateX(-4deg) scale(1.03); }
  100% { opacity: 1; transform: perspective(500px) rotateX(0)     scale(1);    }
}

/* ── Wrapper principal ──────────────────────────────────── */
/*
  Reproduit exactement le comportement du HTML source :
  rangée horizontale de colonnes, toutes alignées par le bas.
  Les colonnes à 2 logos sont plus hautes → effet "scattered".
*/
.lzw-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;       /* ← clé du layout : alignement bas */
  justify-content: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  background: linear-gradient(140deg, #dce8f4 0%, #e6eef8 55%, #d8e5f2 100%);
  padding: 40px 20px 0;
}

/* ── Colonne (inner-div) ────────────────────────────────── */
.inner-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ── Carte logo ─────────────────────────────────────────── */
.lzw-logo-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  opacity: 0; /* état initial avant animation */
}

/* Colonne SIMPLE (1 logo) → grande carte */
.inner-div.single .lzw-logo-card {
  width:  118px;
  height: 118px;
}

/* Colonne DOUBLE (2 logos) → cartes plus petites */
.inner-div.double .lzw-logo-card {
  width:  94px;
  height: 94px;
}

/* Images */
.lzw-logo-card img {
  display: block;
  object-fit: contain;
  max-width: 60%;
  max-height: 60%;
}

/* Lien wrapper */
.lzw-logo-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

/* Placeholder texte */
.lzw-placeholder {
  font-size: 13px;
  font-weight: 700;
  color: #b0b8c4;
  letter-spacing: -0.02em;
}

/* ── Hover ──────────────────────────────────────────────── */
.lzw-logo-card:hover {
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.13);
}

/* ── Animations déclenchées par JS (.lzw-is-visible) ─────── */
.lzw-wrap[data-anim-type="zoom-in-down"]  .lzw-logo-card.lzw-is-visible {
  animation-name: lzw-zoom-in-down;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.lzw-wrap[data-anim-type="zoom-in-up"]    .lzw-logo-card.lzw-is-visible {
  animation-name: lzw-zoom-in-up;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.lzw-wrap[data-anim-type="zoom-in-left"]  .lzw-logo-card.lzw-is-visible {
  animation-name: lzw-zoom-in-left;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.lzw-wrap[data-anim-type="zoom-in-right"] .lzw-logo-card.lzw-is-visible {
  animation-name: lzw-zoom-in-right;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.lzw-wrap[data-anim-type="fade-up"]       .lzw-logo-card.lzw-is-visible {
  animation-name: lzw-fade-up;
  animation-fill-mode: both;
  animation-timing-function: ease-out;
}
.lzw-wrap[data-anim-type="flip-up"]       .lzw-logo-card.lzw-is-visible {
  animation-name: lzw-flip-up;
  animation-fill-mode: both;
  animation-timing-function: ease-out;
}

/* ── Accessibilité ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .lzw-logo-card {
    opacity: 1 !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .lzw-wrap { gap: 10px; }
  .inner-div.single .lzw-logo-card { width: 96px;  height: 96px;  }
  .inner-div.double .lzw-logo-card { width: 76px;  height: 76px;  }
}
@media (max-width: 560px) {
  .lzw-wrap { padding: 30px 10px 0; gap: 7px; }
  .inner-div { gap: 7px; }
  .inner-div.single .lzw-logo-card { width: 72px;  height: 72px;  }
  .inner-div.double .lzw-logo-card { width: 58px;  height: 58px;  }
}
