/* ==========================================================================
   Axydiag — Bandeau « preuves de confiance » sous le devis (page d'accueil)
   Remplace l'ancien bandeau de chiffres (.h-stats).
   Mobile d'abord : 2 × 2 cartes, puis bandeau blanc à 4 colonnes dès 1024 px.
   Animations : apparition en cascade, coches qui se dessinent,
   reflet doré qui traverse les textes en continu.
   ========================================================================== */

.axb-trust {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1280px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.axb-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 0.85rem;
  background: var(--paper, #ffffff);
  border: 1px solid var(--line-soft, #e7e9e1);
  border-radius: 1rem;
  opacity: 0;
  animation: axb-rise 0.7s ease-out forwards;
  animation-delay: calc(var(--axb-i, 0) * 0.12s);
}

.axb-icon {
  flex-shrink: 0;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: var(--pine-900, #23380d);
  display: flex;
  align-items: center;
  justify-content: center;
}
.axb-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.axb-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.axb-title {
  font-size: 1.03rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--pine-900, #23380d);
}
.axb-sub {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--ink-500, #656e5e);
}

/* ---------- Icônes animées ---------- */
.axb-draw {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: axb-draw 3.2s ease-in-out infinite;
}
.axb-spin {
  transform-origin: 16px 22px;
  animation: axb-spin 6s linear infinite;
}

/* ---------- Reflet doré (seulement si le navigateur sait le faire) ---------- */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .axb-shine {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-size: 250% 100%;
    background-position: 0% 0;
    animation: axb-shine 3.6s linear infinite;
    animation-delay: calc(var(--axb-i, 0) * 0.35s);
  }
  .axb-title.axb-shine {
    background-image: linear-gradient(100deg, #23380d 0%, #23380d 40%, #b48f47 46%, #e8c983 50%, #b48f47 54%, #23380d 60%, #23380d 100%);
  }
  .axb-sub.axb-shine {
    background-image: linear-gradient(100deg, #656e5e 0%, #656e5e 40%, #b48f47 46%, #dcbb72 50%, #b48f47 54%, #656e5e 60%, #656e5e 100%);
  }
}

@keyframes axb-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes axb-draw {
  0%        { stroke-dashoffset: 30; opacity: 1; }
  35%, 85%  { stroke-dashoffset: 0;  opacity: 1; }
  100%      { stroke-dashoffset: 0;  opacity: 0; }
}
@keyframes axb-spin {
  to { transform: rotate(360deg); }
}
@keyframes axb-shine {
  0%        { background-position: 100% 0; }
  70%, 100% { background-position: 0% 0; }
}

/* ---------- Tablette (≥ 640 px) : cartes horizontales ---------- */
@media (min-width: 640px) {
  .axb-trust {
    gap: 1rem;
  }
  .axb-item {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
  }
}

/* ---------- Ordinateur (≥ 1024 px) : un seul bandeau blanc à 4 colonnes ---------- */
@media (min-width: 1024px) {
  .axb-trust {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 1.6rem 0;
    background: var(--paper, #ffffff);
    border: 1px solid var(--line-soft, #e7e9e1);
    border-radius: 1.25rem;
    box-shadow: 0 18px 40px -30px rgba(20, 30, 10, 0.35);
  }
  .axb-item {
    padding: 0.35rem 1.4rem;
    background: none;
    border: 0;
    border-radius: 0;
  }
  .axb-item + .axb-item {
    border-left: 1px solid var(--line-soft, #e7e9e1);
  }
  .axb-icon {
    width: 3.4rem;
    height: 3.4rem;
  }
  .axb-title {
    font-size: 1.12rem;
  }
  .axb-sub {
    font-size: 0.88rem;
  }
}

/* ---------- Accessibilité : pas d'animation si l'utilisateur l'a demandé ---------- */
@media (prefers-reduced-motion: reduce) {
  .axb-item {
    opacity: 1;
    animation: none;
  }
  .axb-draw {
    stroke-dashoffset: 0;
    animation: none;
  }
  .axb-spin {
    animation: none;
  }
  .axb-shine {
    animation: none;
    background-position: 0% 0;
  }
}
