/* =========================================================================
   Rubrique T-shirts — Reiffers Art Initiatives
   Chargé uniquement sur : page « T-shirts », fiches t-shirt, pages avec [reiffers_tshirts]
   ========================================================================= */

/* ---------- Utilitaires ---------- */
.rai-tshirt-card .sr-only,
#tshirtsingle .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Page liste ---------- */
#tshirtspage {
	padding-bottom: 40px;
}
.rai-tshirts-intro {
	padding-top: 80px;
	padding-bottom: 40px;
	max-width: 760px;
}
.rai-tshirts-intro .display1 {
	font-size: 52px;
	line-height: 54px;
	padding-bottom: 25px;
}
.rai-tshirts-intro__text p {
	color: #000;
	font-size: 14px;
	line-height: 22px;
}

/* ---------- Sections (une par collection) ---------- */
.rai-tshirts-section + .rai-tshirts-section {
	border-top: 1px solid #000;
	padding-top: 40px;
}
.rai-tshirts-section__head {
	padding-top: 40px;
	max-width: 760px;
}
.rai-tshirts-section__title {
	font-size: 26px;
	line-height: 30px;
	color: #000;
}
.rai-tshirts-section__text {
	color: #000;
	padding-top: 10px;
	margin-bottom: 0;
}

/* ---------- Grille ---------- */
.rai-tshirts-grid {
	margin-left: 0;
	margin-right: 0;
}
.rai-tshirt-card {
	padding-top: 40px;
	padding-bottom: 80px;
}
@media (min-width: 768px) {
	.rai-tshirts-grid--2 > .col-md-6:nth-child(2n+1) .rai-tshirt-card { padding-right: 20px; }
	.rai-tshirts-grid--2 > .col-md-6:nth-child(2n) .rai-tshirt-card { padding-left: 20px; }

	.rai-tshirts-grid--3 > .col-md-4:nth-child(3n+1) .rai-tshirt-card { padding-right: 27px; }
	.rai-tshirts-grid--3 > .col-md-4:nth-child(3n+2) .rai-tshirt-card { padding-left: 13px; padding-right: 13px; }
	.rai-tshirts-grid--3 > .col-md-4:nth-child(3n) .rai-tshirt-card { padding-left: 27px; }
}

/* ---------- Carte ---------- */
.rai-tshirt-card__link,
.rai-tshirt-card__link:hover,
.rai-tshirt-card__link:focus {
	display: block;
	color: #000;
	text-decoration: none;
}
.rai-tshirt-card__media {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background-color: #f2f2f2;
}
.rai-tshirt-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}
.rai-tshirt-card__link:hover .rai-tshirt-card__img {
	transform: scale(1.02);
}
/* Survol : fondu vers la face */
.rai-tshirt-card__img--hover {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .4s ease, transform .6s ease;
}
@media (hover: hover) {
	.rai-tshirt-card__link:hover .rai-tshirt-card__img--hover,
	.rai-tshirt-card__link:focus-visible .rai-tshirt-card__img--hover {
		opacity: 1;
	}
}
@media (prefers-reduced-motion: reduce) {
	.rai-tshirt-card__img,
	.rai-tshirt-card__img--hover {
		transition: none;
	}
}
.rai-tshirt-card__title {
	font-size: 26px;
	line-height: 30px;
	color: #000;
	padding-top: 20px;
}
.rai-tshirt-card__text {
	color: #000;
	font-size: 14px;
	line-height: 22px;
	padding-top: 5px;
	margin-bottom: 0;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}
.rai-tshirt-card__prix {
	padding-top: 10px;
	margin-bottom: 0;
}
.ctaseparator.rai-tshirt-cta {
	width: 260px;
	max-width: 100%;
	margin: 20px 0 0;
}
.rai-tshirt-cta .linelink {
	transition: flex-basis .3s ease;
}
.rai-tshirt-cta .linkmentorat {
	padding-left: 12px;
}
.rai-tshirt-card__link:hover .rai-tshirt-cta .button1,
.rai-tshirt-card__link:focus .rai-tshirt-cta .button1 {
	text-decoration: underline;
}
.rai-tshirts-empty {
	padding: 40px 0 80px;
}

/* ---------- Fiche ---------- */
#tshirtsingle {
	padding-bottom: 80px;
}
#tshirtinfos {
	padding-top: 80px;
}

/* Galerie */
.rai-tshirt-gallery {
	padding-right: 40px;
}
.rai-tshirt-gallery__main {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background-color: #f2f2f2;
}
.rai-tshirt-gallery__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.rai-tshirt-gallery__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}
.rai-tshirt-gallery__thumbs li {
	width: calc((100% - 48px) / 5);
}
.rai-tshirt-gallery__thumb {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	text-align: left;
	color: #000;
}
.rai-tshirt-gallery__thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background-color: #f2f2f2;
	outline: 1px solid transparent;
	outline-offset: -1px;
	opacity: .6;
	transition: opacity .2s ease;
}
.rai-tshirt-gallery__thumb span {
	display: block;
	font-size: 12px;
	line-height: 18px;
	padding-top: 6px;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: -0.03em;
}
.rai-tshirt-gallery__thumb:hover img,
.rai-tshirt-gallery__thumb.is-active img {
	opacity: 1;
}
.rai-tshirt-gallery__thumb.is-active img {
	outline-color: #000;
}
.rai-tshirt-gallery__thumb:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

/* Infos */
.rai-tshirt-info {
	position: sticky;
	top: 140px;
}
#tshirtsingle .rai-tshirt-info__rubrique {
	display: inline-block;
	color: #000;
	font-weight: 500;
	padding-bottom: 10px;
}
#tshirtsingle .rai-tshirt-info h1.display1 {
	font-size: 52px;
	line-height: 54px;
	padding-bottom: 20px;
}
.rai-tshirt-info__prix {
	font-size: 20px;
	line-height: 28px;
	font-weight: 700;
	margin-bottom: 20px;
}
.rai-tshirt-info__text p {
	color: #000;
}
.rai-tshirt-info__text a {
	color: #000;
	text-decoration: underline;
}

/* Couleurs */
.rai-tshirt-colors {
	padding-top: 10px;
	padding-bottom: 10px;
}
.rai-tshirt-colors__label {
	margin-bottom: 10px;
}
.rai-tshirt-colors__list {
	display: flex;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.rai-tshirt-swatch {
	display: block;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px #BABABA;
}
.rai-tshirt-swatch.is-current {
	box-shadow: inset 0 0 0 1px #BABABA, 0 0 0 2px #fff, 0 0 0 3px #000;
}
a.rai-tshirt-swatch:hover,
a.rai-tshirt-swatch:focus-visible {
	box-shadow: inset 0 0 0 1px #BABABA, 0 0 0 2px #fff, 0 0 0 3px #BABABA;
	outline: none;
}

/* Caractéristiques */
.rai-tshirt-specs {
	margin: 20px 0 30px;
	border-top: 1px solid #000;
}
.rai-tshirt-specs__row {
	display: flex;
	gap: 20px;
	padding: 10px 0;
	border-bottom: 1px solid #BABABA;
}
.rai-tshirt-specs dt {
	flex: 0 0 120px;
	font-weight: 700;
	margin: 0;
}
.rai-tshirt-specs dd {
	flex: 1;
	margin: 0;
}

/* Bouton Numéro */
#tshirtsingle .rai-tshirt-btn {
	display: block;
	width: 100%;
	padding: 18px 20px;
	background-color: #000;
	border: 1px solid #000;
	color: #fff;
	text-align: center;
	text-transform: uppercase;
	font-weight: 700;
	font-size: 12px;
	line-height: 22px;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
#tshirtsingle a.rai-tshirt-btn:hover,
#tshirtsingle a.rai-tshirt-btn:focus-visible {
	background-color: #fff;
	color: #000;
}
#tshirtsingle .rai-tshirt-btn.is-disabled {
	background-color: #fff;
	color: #BABABA;
	border-color: #BABABA;
	cursor: default;
}

/* Visuel pleine largeur */
.rai-tshirt-visuel {
	margin-top: 80px;
}
.rai-tshirt-visuel img {
	display: block;
	width: 100%;
	height: auto;
}

/* Également disponible */
.rai-tshirt-aussi {
	padding-top: 80px;
}
.rai-tshirt-aussi__title {
	font-size: 26px;
	line-height: 30px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	.rai-tshirts-intro .display1,
	#tshirtsingle .rai-tshirt-info h1.display1 {
		font-size: 40px;
		line-height: 44px;
	}
}
@media (max-width: 767px) {
	.rai-tshirts-intro {
		padding-top: 20px;
		padding-bottom: 10px;
	}
	.rai-tshirts-intro .display1,
	#tshirtsingle .rai-tshirt-info h1.display1 {
		font-size: 28px;
		line-height: 32px;
	}
	.rai-tshirt-card {
		padding-top: 20px;
		padding-bottom: 40px;
	}
	.rai-tshirt-card__title {
		font-size: 22px;
		line-height: 26px;
	}
	#tshirtinfos {
		padding-top: 20px;
	}
	.rai-tshirt-gallery {
		padding-right: 0;
		padding-bottom: 30px;
	}
	.rai-tshirt-info {
		position: static;
	}
	.rai-tshirt-visuel,
	.rai-tshirt-aussi {
		margin-top: 0;
		padding-top: 40px;
	}
}
