/* ============================================================
   Avrile — Trusted
   Grille 5×2 de cartes flip. Fond blanc / dos orange au hover.
   ============================================================ */

.avr-trusted {
  padding: 56px 40px 64px;
  background: var(--avr-bg);
  width: 100%;
}

/* ----------------------------------------------------------
   Label
---------------------------------------------------------- */
.avr-trusted__inner {
  width: 100%;
  max-width: var(--avr-max-content);
  margin: 0 auto;
}

.avr-trusted__label {
  display: block;
  margin-bottom: 24px;
}

/* ----------------------------------------------------------
   Grille
---------------------------------------------------------- */
.avr-trusted__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: var(--avr-max-content);
  margin: 28px auto 0;
}

/* ----------------------------------------------------------
   Cellule — perspective + lien
---------------------------------------------------------- */
.avr-trusted__cell {
  position: relative;
  display: block;
  min-height: clamp(140px, 12vw, 180px);
  text-decoration: none;
  border-radius: 20px;
  perspective: 1600px;
}

/* ----------------------------------------------------------
   Inner — tourne au hover
---------------------------------------------------------- */
.avr-trusted__card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 1.15s cubic-bezier(0.33, 0.06, 0.2, 1);
  will-change: transform;
  border-radius: 20px;
}

.avr-trusted__cell:hover .avr-trusted__card-inner {
  transform: rotateY(180deg);
}

/* ----------------------------------------------------------
   Faces communes
---------------------------------------------------------- */
.avr-trusted__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: 20px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ----------------------------------------------------------
   Face avant — logo sur fond blanc
---------------------------------------------------------- */
.avr-trusted__face--front {
  background: #FFFFFF;
  border: 1px solid var(--avr-rule);
  box-shadow: 0 1px 3px rgba(20, 16, 15, 0.04);
}

.avr-trusted__face--front img {
  height: clamp(28px, 2.8vw, 40px);
  width: auto;
  max-width: 72%;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0.85;
}

/* ----------------------------------------------------------
   Face arrière — nom sur fond orange
---------------------------------------------------------- */
.avr-trusted__face--back {
  transform: rotateY(180deg);
  flex-direction: column;
  gap: 12px;
  text-align: center;
  background: #FA3B05;
  border: 1px solid #FA3B05;
}

.avr-trusted__back-name {
  font-family: var(--avr-font-body);
  font-style: normal;
  font-weight: var(--avr-weight-regular);
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  text-align: center;
}

/* ----------------------------------------------------------
   Responsive
---------------------------------------------------------- */
@media (max-width: 980px) {
  .avr-trusted__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .avr-trusted {
    padding: 48px 24px 56px;
  }

  .avr-trusted__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .avr-trusted__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ----------------------------------------------------------
   Reduced motion
---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .avr-trusted__card-inner {
    transition: none;
  }
}
