/* TogoAchat — page d'accueil : noir dominant, rouge en accent */

.tavs-home {
	--rouge: #C9241C;
	--rouge-fonce: #9E1913;
	--rouge-pale: #FBEDEC;
	--noir: #121212;
	--noir2: #1E1E1E;
	--encre: #1A1A1A;
	--encre2: #5B6169;
	--encre3: #8B9096;
	--trait: #E8E8E8;
	--fond: #F6F6F7;
	--vert: #157A55;
	--vert-fonce: #10603F;

	max-width: 1180px;
	margin: 0 auto;
	padding: 0 16px 56px;
	color: var(--encre);
}

.tavs-home *, .tavs-home *::before, .tavs-home *::after { box-sizing: border-box; }
.tavs-home h1, .tavs-home h2 { color: var(--encre); }

/* --------------------------------------------------------------- hero */

.tavs-hero {
	background:
		radial-gradient(120% 130% at 100% 0%, rgba(201, 36, 28, .55) 0%, rgba(201, 36, 28, 0) 58%),
		linear-gradient(140deg, #1C1C1C 0%, #121212 60%, #170B0A 100%);
	color: #fff;
	border-radius: 16px;
	padding: 44px 40px;
	margin: 18px 0 40px;

	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
	align-items: center;
	gap: 36px;
}
.tavs-hero-txt { min-width: 0; }
.tavs-hero h1 {
	color: #fff;
	font-size: clamp(1.65rem, 3.4vw, 2.4rem);
	line-height: 1.14;
	margin: 0 0 14px;
	text-wrap: balance;
}
.tavs-hero h1 em { font-style: normal; color: #FF6A5F; }
.tavs-hero-sous {
	color: rgba(255, 255, 255, .74);
	font-size: 1rem;
	line-height: 1.5;
	margin: 0 0 24px;
	max-width: 46ch;
}

.tavs-recherche { display: flex; gap: 8px; flex-wrap: wrap; }
.tavs-recherche input[type="search"] {
	flex: 1 1 220px;
	min-width: 0;
	padding: 15px 16px;
	border: 0;
	border-radius: 10px;
	font: inherit;
	font-size: 1rem;
	background: #fff;
	color: var(--encre);
}
.tavs-recherche button {
	flex: 0 0 auto;
	padding: 15px 28px;
	border: 0;
	border-radius: 10px;
	background: var(--rouge);
	color: #fff;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
	transition: background .15s;
}
.tavs-recherche button:hover { background: var(--rouge-fonce); }

.tavs-atouts {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: .92rem;
	color: rgba(255, 255, 255, .82);
}
.tavs-atouts li {
	position: relative;
	padding-left: 26px;
	line-height: 1.35;
}
.tavs-atouts li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .28em;
	width: 15px;
	height: 8px;
	border-left: 2px solid #FF6A5F;
	border-bottom: 2px solid #FF6A5F;
	transform: rotate(-45deg);
}

.tavs-hero-btn {
	display: inline-block;
	margin-top: 24px;
	padding: 15px 32px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--noir) !important;
	text-decoration: none;
	font-weight: 800;
	font-size: 1rem;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .38);
	transition: background .15s, color .15s, transform .15s;
}
.tavs-hero-btn:hover {
	background: var(--rouge);
	color: #fff !important;
	transform: translateY(-1px);
}

/* mosaïque de produits à droite du hero */

.tavs-hero-vis {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	min-width: 0;
}
.tavs-hero-vis a {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	overflow: hidden;
	background: #2A2A2A center/cover no-repeat;
	text-decoration: none;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}
.tavs-hero-vis a::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .68) 100%);
}
.tavs-hero-vis a > span {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 9px;
	z-index: 2;
	color: #fff;
	font-size: .82rem;
	font-weight: 700;
	line-height: 1.25;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.tavs-hero-vis .tavs-hero-nom { display: block; }
.tavs-hero-vis .tavs-hero-prix {
	position: static;
	display: block;
	margin-top: 2px;
	color: #FFC9C4;
	font-weight: 800;
}

/* ------------------------------------------------------------ sections */

.tavs-sect { margin-bottom: 44px; }
.tavs-sect-tete {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 18px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--trait);
	position: relative;
}
.tavs-sect-tete::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 64px;
	height: 2px;
	background: var(--rouge);
}
.tavs-sect-tete h2 { font-size: 1.3rem; margin: 0; line-height: 1.2; }
.tavs-sect-lien { font-size: .9rem; font-weight: 700; text-decoration: none; color: var(--rouge); white-space: nowrap; }
.tavs-sect-lien:hover { text-decoration: underline; color: var(--rouge-fonce); }

/* ---------------------------------------------------------- bouton plus */

.tavs-plus-wrap { margin-top: 18px; text-align: center; }
.tavs-plus {
	display: inline-block;
	background: var(--noir);
	color: #fff !important;
	text-decoration: none;
	font-weight: 800;
	font-size: 1rem;
	padding: 15px 40px;
	border-radius: 999px;
	transition: background .15s, transform .15s;
}
.tavs-plus:hover { background: var(--rouge); color: #fff !important; transform: translateY(-1px); }

/* ------------------------------------------------------------ familles */

.tavs-familles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 14px;
}
.tavs-familles li { display: block; }
.tavs-familles a {
	position: relative;
	display: block;
	height: 100%;
	min-height: 148px;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: #fff;
	background: var(--noir);
	isolation: isolate;
}
.tavs-fam-img {
	position: absolute;
	inset: 0;
	background: var(--fond) center/cover no-repeat;
	transition: transform .35s ease;
	z-index: 0;
}
.tavs-familles a:hover .tavs-fam-img { transform: scale(1.06); }
.tavs-fam-voile {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 10, 10, .10) 0%, rgba(10, 10, 10, .62) 55%, rgba(10, 10, 10, .92) 100%);
	z-index: 1;
}
.tavs-familles a:hover .tavs-fam-voile {
	background: linear-gradient(180deg, rgba(10, 10, 10, .10) 0%, rgba(20, 8, 7, .62) 55%, rgba(158, 25, 19, .92) 100%);
}
.tavs-fam-txt {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	min-height: 148px;
	padding: 14px 14px 13px;
}
.tavs-fam-nom {
	display: block;
	font-weight: 800;
	font-size: 1rem;
	line-height: 1.2;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.tavs-fam-nb {
	display: block;
	margin-top: 4px;
	font-size: .8rem;
	font-weight: 600;
	color: rgba(255, 255, 255, .82);
}
.tavs-fam-lettre {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	font-weight: 800;
	color: rgba(255, 255, 255, .3);
}

/* ------------------------------------------------------------ boutiques */

.tavs-boutiques {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 12px;
}
.tavs-boutiques a {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--encre);
	background: #fff;
	border: 1px solid var(--trait);
	border-radius: 12px;
	padding: 13px;
	height: 100%;
}
.tavs-boutiques a:hover { border-color: var(--noir); }
.tavs-bt-logo {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 10px;
	overflow: hidden;
	background: #F1F1F2;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	color: var(--noir);
}
.tavs-bt-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tavs-bt-nom { display: block; font-weight: 700; font-size: .92rem; line-height: 1.25; }
.tavs-bt-nb { display: block; font-size: .78rem; color: var(--encre3); }
.tavs-boutiques a > span:not(.tavs-bt-logo) { display: block; }

/* ---------------------------------------------- annonce « ouvrez votre boutique » */

.tavs-vendeur {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	flex-wrap: wrap;
	background: linear-gradient(135deg, #157A55 0%, #10603F 100%);
	border: 0;
	border-radius: 16px;
	padding: 32px 34px;
	color: #fff;
}
.tavs-home .tavs-vendeur h2 { margin: 0 0 8px; font-size: 1.3rem; color: #fff; }
.tavs-vendeur p { margin: 0; color: rgba(255, 255, 255, .85); max-width: 56ch; line-height: 1.5; }
.tavs-vendeur-btn {
	flex: 0 0 auto;
	background: #fff;
	color: #10603F !important;
	text-decoration: none;
	font-weight: 800;
	padding: 15px 30px;
	border-radius: 999px;
	white-space: nowrap;
}
.tavs-vendeur-btn:hover { background: #EAF6F0; color: #0C4B32 !important; }

/* ------------------------------------------- rangées produits WooCommerce */

.tavs-rangee ul.products { margin: 0 !important; }
.tavs-rangee ul.products li.product { margin-bottom: 1.4em; }

/* ------------------------------------------------------------- mobile */

@media (max-width: 900px) {
	.tavs-hero { grid-template-columns: 1fr; gap: 26px; }
	.tavs-hero-vis { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 781px) {
	.tavs-home {
		width: 100vw;
		max-width: 100vw;
		margin-left: 50%;
		transform: translateX(-50%);
		padding: 0 12px 36px;
	}
	.tavs-hero {
		margin: 0 -12px 26px;
		border-radius: 0;
		padding: 26px 18px 24px;
		gap: 20px;
	}
	.tavs-hero-sous { font-size: .95rem; margin-bottom: 18px; }
	.tavs-recherche input[type="search"] { flex: 1 1 100%; padding: 13px 14px; }
	.tavs-recherche button { flex: 1 1 100%; padding: 14px; }
	.tavs-atouts { gap: 7px; font-size: .88rem; margin-top: 18px; }
	.tavs-hero-btn { display: block; text-align: center; margin-top: 18px; padding: 14px 20px; }
	.tavs-hero-vis { gap: 8px; }
	.tavs-hero-vis a > span { font-size: .72rem; left: 7px; right: 7px; bottom: 6px; }

	.tavs-sect { margin-bottom: 32px; }
	.tavs-sect-tete { margin-bottom: 14px; }
	.tavs-sect-tete h2 { font-size: 1.12rem; }

	.tavs-familles { grid-template-columns: 1fr 1fr; gap: 10px; }
	.tavs-familles a, .tavs-fam-txt { min-height: 128px; }
	.tavs-fam-nom { font-size: .92rem; }

	.tavs-boutiques { grid-template-columns: 1fr 1fr; gap: 10px; }
	.tavs-boutiques a { padding: 10px; gap: 9px; }
	.tavs-bt-logo { width: 40px; height: 40px; }
	.tavs-bt-nom { font-size: .85rem; }

	.tavs-vendeur { padding: 24px 18px; border-radius: 12px; }
	.tavs-vendeur-btn { width: 100%; text-align: center; }
	.tavs-plus { display: block; width: 100%; padding: 15px 20px; }
}

@media (max-width: 520px) {
	/* sur un petit écran, le nom déborde des vignettes : on ne garde que le prix */
	.tavs-hero-vis .tavs-hero-nom { display: none; }
	.tavs-hero-vis .tavs-hero-prix { font-size: .78rem; }
}

@media (max-width: 380px) {
	.tavs-familles a, .tavs-fam-txt { min-height: 116px; }
}
