/**
 * Vitrine accueil — 3 colonnes (1 article + 2 produits)
 *
 * Hover article : bouton "Lire l'article" en haut, flèche rouge bas droite
 * Hover produit : contenu remonte sur l'image, flèche grise haut droite
 */

/* Grille 3 colonnes */
.dt-accueil {
	display: flex;
	gap: 24px;
	max-width: 1280px;
	margin: 0 auto;
}

/* Item commun */
.dt-accueil-item {
	flex: 1;
	position: relative;
}

/* Les 3 colonnes font la même taille */
.dt-accueil-article {
	flex: 1;
	position: relative;
}

.dt-accueil-article {
	position: relative;
}

.dt-accueil-article .dt-accueil-image-wrap {
	position: relative;
}

.dt-accueil-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

/* Image */
.dt-accueil-image-wrap {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background-color: #f0f0f0;
}

.dt-accueil-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.dt-accueil-item:hover .dt-accueil-img {
	transform: scale(1.1);
}

.dt-accueil-no-img {
	width: 100%;
	height: 100%;
	background-color: #ddd;
}

/* Contenu commun */
.dt-accueil-content {
	padding: 20px 0 0;
}

.dt-accueil-title {
	font-size: 22px;
	font-weight: 900;
	color: #5d5d5d !important;
	margin: 0;
	line-height: 1.3;
	text-transform: uppercase;
}

/* Bandeau rouge — limité à la zone image, dépasse de 20px en haut */
.dt-accueil-article .dt-accueil-image-wrap {
	overflow: visible;
}

.dt-accueil-image-clip {
	overflow: hidden;
	width: 100%;
	height: 100%;
	position: relative;
}

.dt-accueil-article .dt-accueil-image-wrap::before {
	content: '';
	position: absolute;
	top: -30px;
	left: -80vw;
	width: 100vw;
	height: calc(100% + 30px);
	background-color: var(--dt-rouge);
	z-index: -1;
}

.dt-accueil-article .dt-accueil-img {
	position: relative;
	z-index: 1;
}

.dt-accueil-article .dt-accueil-link {
	position: relative;
	z-index: 2;
}

.dt-accueil-meta {
	font-size: 13px;
	color: #888888;
	margin: 0 0 8px;
	display: none;
}

.dt-accueil-excerpt {
	color: #666666;
	margin: 0;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ========================
   ARTICLE — Hover
   ======================== */

/* Bouton "Lire l'article" — bandeau rouge en haut, de gauche jusqu'aux 2/3 */
.dt-accueil-cta-top {
	position: absolute;
	top: 0;
	left: 0;
	width: 66%;
	background: var(--dt-rouge);
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	padding: 10px 20px;
	text-align: right;
	opacity: 0;
	transform: translateY(-100%);
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 2;
}

.dt-accueil-article:hover .dt-accueil-cta-top {
	opacity: 1;
	transform: translateY(0);
}

/* Flèche rouge — bas droite image (article) */
.dt-accueil-arrow {
	position: absolute;
	bottom: 0;
	right: 0;
	color: var(--dt-rouge);
	background: rgba(255, 255, 255, 0.9);
	padding: 0px 10px;
	opacity: 0;
	transform: translate(10px, -10px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 2;
}

.dt-accueil-article:hover .dt-accueil-arrow {
	opacity: 1;
	transform: translate(0, 0);
}

.dt-accueil-arrow svg {
	width: 99px;
	height: 99px;
}

/* ========================
   PRODUIT — Hover
   ======================== */

/* Contenu qui remonte sur l'image */
.dt-accueil-content-slide {
	position: relative;
	background: #efefef;
	padding: 20px;
	transition: transform 0.4s ease;
	z-index: 2;
}

.dt-accueil-produit:hover .dt-accueil-content-slide {
	transform: translateY(-60px);
}

/* Flèche grise — haut droite, visible au hover */
.dt-accueil-arrow-grey {
	position: absolute;
	top: -20px;
	right: -20px;
	background: rgba(255, 255, 255, 0.9);
	color: #666666;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 15px;
	opacity: 0;
	transform: translate(10px, -10px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 2;
}

.dt-accueil-arrow-grey svg {
	width: 99px;
	height: 99px;
}

.dt-accueil-produit:hover .dt-accueil-arrow-grey {
	opacity: 1;
	transform: translate(0, 0);
}

/* "VOIR LA FICHE PRODUIT" */
.dt-accueil-voir {
	display: inline-block;
	margin-top: 12px;
	font-size: 1em;
	font-weight: 400;
	color: #222222;
	text-transform: uppercase;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.dt-accueil-produit:hover .dt-accueil-voir {
	opacity: 1;
}

/* ========================
   Responsive
   ======================== */

@media (max-width: 980px) {
	.dt-accueil {
		flex-wrap: wrap;
	}

	.dt-accueil-article {
		flex: 0 0 100%;
		margin-bottom: 6em;
	}

	.dt-accueil-produit {
		flex: 0 0 calc(50% - 12px);
	}
}

@media (max-width: 600px) {
	.dt-accueil-produit {
		flex: 0 0 100%;
	}

	.dt-accueil {
		gap: 16px;
	}
}
