#header { width: 100%; display: block; clear: both; margin-top: 10px; }
#header h1 img { max-width: 100%; }
#header #ad {
	margin: 0;
	padding: 0;
	min-width: 0;
}

.YMThumbs { width: 100%; clear: both; overflow: auto; margin: 0 auto; padding: 0; list-style-type: none; font-size: 12px; }
.YMThumbs li {
  min-width: 0 !important;
  width: 18%;
  margin: 1%;
  float: left;
  position: relative;
  text-align: center;
  transition: transform .8s ease-in-out;
  cursor: pointer;
}
.YMThumbs li:hover { transform:rotate(5deg); -ms-transform:rotate(5deg); -webkit-transform:rotate(5deg); }
.YMThumbs li img { width: 100%; margin: 0 auto; border-top-left-radius: 8px; border-bottom-right-radius: 8px;  }
.YMThumbs li span { display: block; width: 100%; height: 20px; overflow: hidden; margin: 0 auto; position: absolute; bottom: 20px; background: #F00EDC; border: 1px 0 solid #ffffff; color: #ffffff; font-weight: bold; line-height: 20px; }
@media (max-width: 767px) {
	#header h1 { width: 100%; clear: both; }
	#header #ad { width: 100%; clear: both; }
}
@media (max-width: 625px) {
    .YMThumbs li:nth-child(5) { display: none; }
}

/* ============================================================
   YMThumbs — centrage tablette / iPad mini
   ============================================================ */

@media only screen and (min-width: 350px) and (max-width: 920px) {
	#header #ad {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		margin: 0 auto;
		padding: 0;
		display: flex;
		justify-content: center;
	}

	.YMThumbs {
		box-sizing: border-box;
		width: 100%;
		max-width: 620px;
		margin: 0 auto;
		padding: 0;
		display: flex;
		justify-content: center;
		align-items: flex-start;
		gap: 12px;
		overflow: visible;
	}

	.YMThumbs li {
		float: none !important;
		flex: 0 0 112px;
		width: 112px !important;
		max-width: 112px;
		min-width: 0 !important;
		margin: 0 !important;
	}

	.YMThumbs li:nth-child(5) {
		display: none;
	}

	.YMThumbs li img {
		display: block;
		width: 112px;
		height: 112px;
		object-fit: cover;
		margin: 0 auto;
	}

	.YMThumbs li span {
		left: 0;
		right: 0;
		bottom: 12px;
		width: 100%;
	}
}