.elementor-8610 .elementor-element.elementor-element-d3f8e49{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--margin-top:100px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;}.elementor-widget-loop-grid .elementor-button{background-color:var( --e-global-color-accent );font-family:var( --e-global-typography-accent-font-family ), Sans-serif;font-weight:var( --e-global-typography-accent-font-weight );}.elementor-widget-loop-grid .elementor-pagination{font-family:var( --e-global-typography-secondary-font-family ), Sans-serif;font-weight:var( --e-global-typography-secondary-font-weight );}.elementor-widget-loop-grid .e-load-more-message{font-family:var( --e-global-typography-secondary-font-family ), Sans-serif;font-weight:var( --e-global-typography-secondary-font-weight );}.elementor-8610 .elementor-element.elementor-element-2bb8e8c{--grid-columns:4;--grid-row-gap:0px;width:100%;max-width:100%;--grid-column-gap:0px;}.elementor-8610 .elementor-element.elementor-element-2bb8e8c.elementor-element{--align-self:center;}body.elementor-page-8610:not(.elementor-motion-effects-element-type-background), body.elementor-page-8610 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:var( --e-global-color-7831fc9 );}:root{--page-title-display:none;}@media(min-width:768px){.elementor-8610 .elementor-element.elementor-element-d3f8e49{--content-width:1180px;}}@media(max-width:1024px){.elementor-8610 .elementor-element.elementor-element-2bb8e8c{--grid-columns:2;}}@media(max-width:767px){.elementor-8610 .elementor-element.elementor-element-2bb8e8c{--grid-columns:1;}}/* Start custom CSS for loop-grid, class: .elementor-element-2bb8e8c *//* === Carte flip – Matériauthèque (ID 8610) === */
body.page-id-8610 .mt-card {
  position: relative;
  perspective: 1000px;
  min-height: 400px;
}

/* Conteneur qui pivote */
body.page-id-8610 .mt-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

/* Rotation active */
body.page-id-8610 .mt-card.is-flipped .mt-card-inner {
  transform: rotateY(180deg);
}

/* Faces */
body.page-id-8610 .mt-front,
body.page-id-8610 .mt-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}

/* Face arrière */
body.page-id-8610 .mt-back {
  transform: rotateY(180deg);
  backface-visibility: hidden;
  overflow-y: auto; /* pour le texte long */
}

/* Image et titres */
body.page-id-8610 .mt-front img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
body.page-id-8610 .mt-front h2,
body.page-id-8610 .mt-front h3 {
  text-align: center;
  font-size: 1.1rem;
  color: #222;
}

/* Boutons */
body.page-id-8610 .mt-btn-flip,
body.page-id-8610 .mt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  background-color: #A4C407;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s ease;
  text-decoration: none;
}
body.page-id-8610 .mt-btn-flip:hover,
body.page-id-8610 .mt-btn:hover {
  background-color: #757A48;
}

/* Texte du verso */
body.page-id-8610 .mt-back p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
  margin-bottom: 1em;
}

/* Alignement des cartes */
body.page-id-8610 .elementor-loop-container {
  display: grid;
  gap: 24px;
}
@media (min-width: 1025px) {
  body.page-id-8610 .elementor-loop-container { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
  body.page-id-8610 .elementor-loop-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body.page-id-8610 .elementor-loop-container { grid-template-columns: 1fr; }
}

/* Accessibilité : désactive la rotation si l’utilisateur réduit les animations */
@media (prefers-reduced-motion: reduce) {
  body.page-id-8610 .mt-card-inner { transition: none; }
  body.page-id-8610 .mt-card.is-flipped .mt-card-inner { transform: none; }
}/* End custom CSS */
/* Start custom CSS for container, class: .elementor-element-d3f8e49 *//* Cache le bouton par défaut */
.mt-card .elementor-button.elementor-button-link.elementor-size-sm {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Affiche le bouton uniquement quand la flip box est retournée */
.mt-card .wpr-flip-box.wpr-flip-box-active + .elementor-button.elementor-button-link.elementor-size-sm {
  opacity: 1;
  pointer-events: auto;
}/* End custom CSS */