/* TopOutfit - Page d'accueil
   À placer dans : /assets/css/home.css */

.to-home {
	--to-ink: #17212b;
	--to-muted: #5b6570;
	--to-line: #e3e2dc;
	--to-stone: #f3f2ee;
	--to-forest: #1f4d3a;
	--to-forest-dark: #173a2b;
	--to-radius: 4px;
	color: var(--to-ink);
}

/* ---------- Sections ---------- */
.to-home .to-section {
	padding-block: clamp(56px, 8vw, 104px);
}
.to-home .to-section--light {
	background: var(--to-stone);
}

.to-home .to-section__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	flex-wrap: wrap;
	margin-bottom: clamp(28px, 4vw, 48px);
}
.to-home .to-section__title {
	margin: 0;
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
	font-weight: 700;
	text-wrap: balance;
}
.to-home .to-section__description {
	margin: 12px 0 0;
	max-width: 56ch;
	color: var(--to-muted);
	line-height: 1.65;
}
.to-home .to-section__link {
	font-weight: 600;
	color: var(--to-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
	white-space: nowrap;
}
.to-home .to-section__link:hover {
	color: var(--to-forest);
}

/* ---------- Outfit Homme / Femme ---------- */
.to-home .to-outfit-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(12px, 2vw, 24px);
}
.to-home .to-outfit-card {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(360px, 48vw, 560px);
	overflow: hidden;
	border-radius: var(--to-radius);
	background: var(--to-forest);
	color: #fff;
	text-decoration: none;
	isolation: isolate;
}
.to-home .to-outfit-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}
.to-home .to-outfit-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(10, 18, 14, 0.78) 0%, rgba(10, 18, 14, 0) 62%);
}
.to-home .to-outfit-card--plain {
	background: linear-gradient(160deg, var(--to-forest) 0%, var(--to-forest-dark) 100%);
}
.to-home .to-outfit-card__content {
	padding: clamp(20px, 3vw, 36px);
}
.to-home .to-outfit-card h3 {
	margin: 0 0 8px;
	font-size: clamp(1.5rem, 2.6vw, 2.125rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: inherit;
}
.to-home .to-outfit-card p {
	margin: 0 0 16px;
	max-width: 36ch;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.86);
}
.to-home .to-outfit-card__link {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 5px;
	text-decoration-thickness: 1px;
}
@media (prefers-reduced-motion: no-preference) {
	.to-home .to-outfit-card__img {
		transition: transform 0.6s ease;
	}
	.to-home .to-outfit-card:hover .to-outfit-card__img {
		transform: scale(1.04);
	}
}

/* ---------- Guide des tailles ---------- */
.to-home .to-size-guide {
	background: var(--to-forest);
	color: #fff;
}
.to-home .to-size-guide__inner {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: clamp(32px, 6vw, 80px);
	align-items: center;
}
.to-home .to-size-guide h2 {
	margin: 0 0 14px;
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #fff;
	text-wrap: balance;
}
.to-home .to-size-guide__content p {
	margin: 0 0 28px;
	max-width: 46ch;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.82);
}
.to-home .to-size-guide .to-button {
	background: #fff;
	border-color: #fff;
	color: var(--to-forest-dark);
}
.to-home .to-size-guide .to-button:hover {
	background: var(--to-stone);
	border-color: var(--to-stone);
}
.to-home .to-size-guide__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: step;
	display: grid;
}
.to-home .to-size-guide__steps li {
	counter-increment: step;
	display: grid;
	grid-template-columns: 44px 1fr;
	column-gap: 16px;
	padding: 20px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.to-home .to-size-guide__steps li:last-child {
	border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.to-home .to-size-guide__steps li::before {
	content: counter(step);
	grid-row: span 2;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
	color: rgba(255, 255, 255, 0.55);
}
.to-home .to-size-guide__steps strong {
	font-size: 1.0625rem;
}
.to-home .to-size-guide__steps span {
	color: rgba(255, 255, 255, 0.78);
	line-height: 1.55;
}

/* ---------- FAQ ---------- */
.to-home .to-faq {
	max-width: 820px;
	border-top: 1px solid var(--to-line);
}
.to-home .to-faq__item {
	border-bottom: 1px solid var(--to-line);
}
.to-home .to-faq__item summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 22px 0;
	font-weight: 600;
	font-size: 1.0625rem;
	cursor: pointer;
	list-style: none;
}
.to-home .to-faq__item summary::-webkit-details-marker {
	display: none;
}
.to-home .to-faq__item summary::after {
	content: "+";
	font-size: 1.5rem;
	line-height: 1;
	font-weight: 400;
	color: var(--to-muted);
}
.to-home .to-faq__item[open] summary::after {
	content: "\2013";
}
.to-home .to-faq__item p {
	margin: 0 0 22px;
	max-width: 64ch;
	color: var(--to-muted);
	line-height: 1.7;
}
.to-home .to-faq__item summary:focus-visible {
	outline: 2px solid var(--to-forest);
	outline-offset: 4px;
}

/* ---------- Contenu SEO ---------- */
.to-home .to-home-seo__content {
	max-width: 72ch;
}
.to-home .to-home-seo__content h2 {
	margin: 0 0 20px;
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	line-height: 1.2;
	letter-spacing: -0.02em;
}
.to-home .to-home-seo__content p {
	margin: 0 0 16px;
	color: #3f4852;
	line-height: 1.75;
}
.to-home .to-home-seo__content a {
	color: var(--to-forest);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.to-home .to-home-seo__cats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--to-line);
}
.to-home .to-home-seo__cats span {
	font-weight: 600;
}
.to-home .to-home-seo__cats ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
	.to-home .to-outfit-grid,
	.to-home .to-size-guide__inner {
		grid-template-columns: 1fr;
	}
	.to-home .to-outfit-card {
		min-height: 320px;
	}
}
