.card_tuto {
	position: relative;
	height: 150px;
	width: 250px;
	border: 1px solid transparent;
	margin: 1em;
	padding: 1em;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	transition: .3s ease-in-out;
	box-shadow: 0 1px 5px rgba(0,0,0,.2), 0 2px 2px rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.12);
  background-color: #fff;
}

.item_liste {
  box-sizing: border-box;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 166px);
  grid-auto-columns: 176px;
  gap: 14px;
  justify-content: center;
  justify-items: stretch;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  padding: 14px 6px 18px;
  margin: 10px 0 22px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #b3c7b7 #edf3ee;
}

.item_liste.is-scrollable {
  justify-content: flex-start;
}

.item_liste.is-auto-carousel {
  scroll-snap-type: none;
}

.item_liste::-webkit-scrollbar {
  height: 8px;
}

.item_liste::-webkit-scrollbar-track {
  background: #edf2ef;
  border-radius: 999px;
}

.item_liste::-webkit-scrollbar-thumb {
  background: #b8c6bd;
  border-radius: 999px;
}

.item_liste::-webkit-scrollbar-thumb:hover {
  background: #94aa9c;
}

/* Carte de catégorie */
.item_liste .card {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  max-width: none;
  height: 166px;
  aspect-ratio: auto;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid #dfe8df;
  border-radius: 14px;
  background: #fff;
  color: #1f2b24;
  display: grid;
  grid-template-rows: 112px minmax(52px, auto);
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(38, 56, 42, .08);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

/* Zone visuelle séparée du libellé pour préserver la lisibilité */
.item_liste .card img {
  box-sizing: border-box;
  position: static;
  display: block;
  width: 100%;
  height: 112px;
  max-width: none;
  max-height: none;
  padding: 10px 14px;
  object-fit: contain;
  transform: none;
  background: linear-gradient(145deg, #f7faf7 0%, #eef5ef 100%);
  transition: transform .25s ease;
}

.item_liste .card img.card__category-icon {
  width: 82px;
  height: 100px;
  padding: 0;
  margin: 6px auto;
  background: transparent;
}

.item_liste .card span {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 53px;
  padding: 9px 38px 9px 12px;
  border-top: 1px solid #edf1ed;
  display: flex;
  align-items: center;
  text-align: left;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  color: #263329;
  background: #fff;
  overflow: hidden;
}

.item_liste .card span::after {
  content: "\203A";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #3f7f2b;
  background: #edf7e9;
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-50%);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.item_liste .card:hover img {
  transform: scale(1.035);
}

.item_liste .card:hover {
  border-color: #a9cda0;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(38, 73, 35, .14);
}

.item_liste .card:hover span::after {
  color: #fff;
  background: #5dae2b;
  transform: translate(2px, -50%);
}

.item_liste .card:focus-visible {
  outline: 3px solid rgba(93, 174, 43, .3);
  outline-offset: 3px;
}

/* Les marques gardent une présentation compacte centrée, proche de "Toutes les marques". */
.item_liste .card.card--brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 18px 14px;
  background: #fff;
}

.item_liste .card.card--brand img {
  width: auto;
  height: auto;
  max-width: 112px;
  max-height: 58px;
  padding: 0;
  background: transparent;
  filter: grayscale(35%);
  transition: filter .2s ease, transform .2s ease;
}

.item_liste .card.card--brand .card__brand-name {
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #263329;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.item_liste .card.card--brand .card__brand-name::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d1ddd4;
  flex: 0 0 auto;
  transition: background .2s ease;
}

.item_liste .card.card--brand .card__brand-name::after {
  display: none;
}

.item_liste .card.card--brand:hover img {
  filter: grayscale(0);
  transform: scale(1.035);
}

.item_liste .card.card--brand:hover .card__brand-name {
  color: #3f7f2b;
}

.item_liste .card.card--brand:hover .card__brand-name::before {
  background: #5dae2b;
}

.marque_accueil {
    width: 100%;
    overflow: hidden;
    padding: 0;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Track */
.marque-track {
    overflow: hidden;
    position: relative;
}

/* Ligne qui défile */
.marque-list {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px 0;
    width: max-content;
    animation: marquee 35s linear infinite;
}

/* Pause au hover */
.marque-track:hover .marque-list {
    animation-play-state: paused;
}

/* Cartes logo */
.card-accueil {
    width: 120px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: transform .3s ease, box-shadow .3s ease;
}

.card-accueil img {
    max-width: 90%;
    max-height: 45px;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 1;
    transition: all .3s ease;
}

/* Hover premium */
a:hover .card-accueil {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* Quand on survole la zone marques */
.marque-track:hover .card-accueil img {
    filter: grayscale(100%);
    opacity: 0.4;
}

/* Logo survolé : redevient normal */
.marque-track a:hover .card-accueil img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Animation */
@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .item_liste {
        grid-template-rows: repeat(2, 150px);
        grid-auto-columns: 154px;
        gap: 10px;
        padding: 10px 4px 15px;
    }

    .item_liste .card {
        height: 150px;
        grid-template-rows: 98px minmax(50px, auto);
        border-radius: 12px;
    }

    .item_liste .card img {
        height: 98px;
        padding: 9px 12px;
    }

    .item_liste .card span {
        min-height: 51px;
        padding: 8px 34px 8px 10px;
        font-size: 12px;
    }

    .item_liste .card.card--brand {
        gap: 10px;
        padding: 14px 12px;
    }

    .item_liste .card.card--brand img {
        width: auto;
        height: auto;
        max-width: 98px;
        max-height: 50px;
        padding: 0;
    }

    .item_liste .card.card--brand .card__brand-name {
        min-height: 0;
        padding: 0;
        font-size: 12px;
    }

    .card-accueil {
        width: 95px;
        height: 60px;
    }

    .marque-list {
        gap: 25px;
        animation-duration: 25s;
    }
}


/*.card H3 {
	position: absolute;
	left: 50%;
	bottom: 1em;
	transform: translate(-50%, 50%);
	width: 100vw;
	max-width: 92%;
}
.card2 {
	height: 40px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	text-align: center;
}
.card22 {
	position: absolute;
	top:110px;	
	font-size: 14px;					
	background-color: #fff; 
	text-align:center;	
}

.card3 {
	position: absolute;
	left: 50%;
	bottom: 1em;
	transform: translate(-50%, 50%);
	width: 100vw;
	max-width: 92%;
	font-size: 14px;
	text-align:center;
} */

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 20px 0;
  box-sizing: border-box;
}

.masonry-card {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  text-decoration: none;
}

.masonry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.masonry-card:hover img {
  transform: scale(1.05);
}

/* panneau noir */
.masonry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.masonry-card:hover::after {
  opacity: 1;
}

.masonry-grid .masonry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.masonry-grid .masonry-card:hover img {
  transform: scale(1.05);
}

.tall { 
  grid-row: span 2;         /* Carte verticale */
}

.wide {
  grid-column: span 2;      /* Carte horizontale */
  max-height: 250px;
}

.overlay {
  position: absolute;
  inset: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* en bas par défaut */
  gap: 6px;
  z-index: 2;
  transition: justify-content 0.4s ease;
}

.overlay .description {
  margin-top: 15px;
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* hover : description visible */
.masonry-card:hover .description {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.overlay .subtitle {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.overlay .title {
  background: #fff;
  color: rgb(93, 174, 43);
  padding: 4px 10px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 5px;
  width: fit-content;
  display: inline-block;
}

/* Responsive */

@media (max-width: 900px) {
  .masonry-grid {
    grid-template-columns: 1fr;
  }
  .masonry-card {
    height: 200px;
  }
  .tall, .wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media screen and (max-width: 470px) {
	/* .card {
		height: 80px;
		width: 80px;
	} */
}
