/* ============================================
   Page d'accueil — structure type cabinet pro
   ============================================ */

/* Fond + coins + feuilles accueil : brand-shell.css (.page-brand--home .page-leaf) */

/* --- Utilitaires sections --- */
.index-section-head {
	text-align: center;
	max-width: 40rem;
	margin: 0 auto 2rem;
}

.index-section-head__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.5rem, 3.5vw, 2rem);
	font-weight: 600;
	color: var(--color-text, #555);
	text-transform: none;
	letter-spacing: 0.02em;
	line-height: 1.25;
}

.index-section-head__lead {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.55;
	color: var(--color-text-light, #777);
}

.index-section-head--light .index-section-head__title,
.index-section-head--light .index-section-head__lead {
	color: #fff;
}

.index-section-head--light .index-section-head__lead {
	opacity: 0.92;
}

.index-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75rem 1.6rem;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--radius-md, 10px);
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.index-btn--primary {
	background: var(--color-primary, #5a7a5a);
	color: #fff;
	box-shadow: var(--shadow-primary);
}

.index-btn--primary:hover,
.index-btn--primary:focus-visible {
	background: var(--color-primary-dark, #4a6a4a);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: var(--shadow-primary-strong);
	outline: 2px solid rgba(255, 255, 255, 0.5);
	outline-offset: 2px;
}

.index-btn--light {
	background: #fff;
	color: var(--color-primary-dark, #4a6a4a);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.index-btn--light:hover,
.index-btn--light:focus-visible {
	background: #faf8f6;
	color: var(--color-primary, #5a7a5a);
}

/* --- Hero (accueil) --- */
.page-brand.page-brand--home {
	padding: calc(5.556em + 1.5rem) clamp(1.25rem, 5vw, 3rem) clamp(2rem, 5vw, 3rem);
}

.index-hero {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 2rem;
	max-width: 72rem;
	margin: 0 auto;
	align-items: center;
}

.index-hero__content {
	text-align: center;
}

.index-hero__title {
	margin: 0 0 1rem;
	line-height: 1.2;
}

.index-hero__logo-link {
	display: block;
	margin: 0 auto 0.75rem;
	max-width: min(100%, 22rem);
	text-decoration: none;
	transition: transform 0.25s ease;
}

.index-hero__logo {
	width: 100%;
	height: auto;
	display: block;
	filter: drop-shadow(0 10px 28px rgba(90, 80, 70, 0.2));
}

.index-hero__logo-link:focus-visible {
	outline: 2px solid var(--color-primary, #5a7a5a);
	outline-offset: 6px;
	border-radius: 6px;
}

@media (hover: hover) {
	.index-hero__logo-link:hover {
		transform: scale(1.02) translateY(-2px);
	}
}

.index-hero__subtitle {
	display: block;
	margin-top: 0.25rem;
	font-size: clamp(1.05rem, 2.5vw, 1.25rem);
	font-weight: 500;
	color: var(--color-primary-dark, #4a6a4a);
	line-height: 1.45;
}

.index-hero__lead {
	margin: 0 auto 1.5rem;
	max-width: 28rem;
	font-size: 1.1rem;
	line-height: 1.6;
	color: var(--color-text-muted, #4a4a4a);
}

.index-hero__portrait {
	display: block;
	position: relative;
	max-width: min(100%, 16rem);
	margin: 0 auto;
	text-decoration: none;
	transition: transform 0.25s ease;
}

.index-hero__portrait::before {
	content: "";
	position: absolute;
	inset: 8% 0 0;
	z-index: -1;
	border-radius: 50%;
	background: radial-gradient(
		ellipse 85% 75% at 50% 60%,
		rgba(var(--color-primary-light-rgb), 0.22) 0%,
		rgba(219, 199, 201, 0.12) 45%,
		transparent 72%
	);
	pointer-events: none;
}

.index-hero__portrait img {
	width: 100%;
	height: auto;
	display: block;
	filter: drop-shadow(0 10px 28px rgba(90, 80, 70, 0.18));
}

.index-hero__portrait:focus-visible {
	outline: 2px solid var(--color-primary, #5a7a5a);
	outline-offset: 6px;
	border-radius: 4px;
}

@media (hover: hover) {
	.index-hero__portrait:hover {
		transform: translateY(-4px);
	}
}

@media screen and (min-width: 1024px) {
	.index-hero {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
		gap: clamp(2rem, 4vw, 3.5rem);
		align-items: center;
	}

	.index-hero__content {
		text-align: left;
	}

	.index-hero__lead {
		margin-left: 0;
		margin-right: 0;
		max-width: 32rem;
	}

	.index-hero__logo-link {
		margin-left: 0;
		margin-right: 0;
		max-width: min(100%, 24rem);
	}

	.index-hero__portrait {
		max-width: min(100%, 22rem);
		width: 100%;
		margin: 0;
		justify-self: center;
		align-self: center;
	}
}

@media screen and (min-width: 1280px) {
	.index-hero__logo-link {
		max-width: min(100%, 28rem);
	}

	.index-hero__portrait {
		max-width: min(100%, 26rem);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.index-hero__content { animation: index-fade-up 0.65s ease-out both; }
	.index-hero__portrait { animation: index-fade-up 0.65s ease-out 0.12s both; }
	@keyframes index-fade-up {
		from { opacity: 0; transform: translateY(14px); }
		to { opacity: 1; transform: translateY(0); }
	}
}

/* --- Découvrir (grille prestations) --- */
.index-discover {
	padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
	background: #fff;
	width: 100%;
}

.index-discover__inner {
	max-width: 72rem;
	margin: 0 auto;
}

.index-discover__grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}

.index-tile {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border-radius: var(--radius-lg, 14px);
	border: 1px solid rgba(var(--color-primary-rgb), 0.14);
	overflow: hidden;
	box-shadow: var(--shadow-elevated, 0 8px 32px rgba(90, 80, 70, 0.1));
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.index-tile__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem 1.25rem 0.75rem;
	background: linear-gradient(
		165deg,
		var(--color-bg, #f3eae3) 0%,
		#faf6f2 55%,
		rgba(219, 199, 201, 0.25) 100%
	);
	border-bottom: 1px solid rgba(255, 255, 255, 0.65);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
	min-height: 10rem;
}

.index-tile__visual img {
	width: auto;
	max-width: 100%;
	max-height: 11rem;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 6px 16px rgba(90, 80, 70, 0.12));
	transition: transform 0.3s ease;
}

.index-tile__body {
	padding: 1.15rem 1.4rem 1.25rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.index-tile__title {
	margin: 0 0 0.45rem;
	font-size: 1.22rem;
	font-weight: 600;
	color: var(--color-primary-dark, #4a6a4a);
	line-height: 1.3;
	letter-spacing: 0.01em;
}

.index-tile__text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--color-text-muted, #4a4a4a);
	flex: 1;
}

.index-tile__footer {
	display: block;
	padding: 0.9rem 1.4rem;
	background: var(--color-primary, #5a7a5a);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.index-tile__more {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	width: 100%;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
}

.index-tile__arrow {
	font-size: 1.05rem;
	line-height: 1;
	transition: transform 0.25s ease;
}

.index-tile:focus-visible {
	outline: 2px solid var(--color-primary, #5a7a5a);
	outline-offset: 3px;
}

@media (hover: hover) {
	.index-tile:hover {
		transform: translateY(-5px);
		border-color: rgba(var(--color-primary-rgb), 0.24);
		box-shadow: var(--shadow-elevated-hover, 0 16px 40px rgba(90, 122, 90, 0.14));
	}

	.index-tile:hover .index-tile__visual img {
		transform: scale(1.03);
	}

	.index-tile:hover .index-tile__footer {
		background: var(--color-primary-dark, #4a6a4a);
	}

	.index-tile:hover .index-tile__arrow {
		transform: translateX(4px);
	}
}

@media screen and (min-width: 640px) {
	.index-discover__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media screen and (min-width: 1024px) {
	.index-tile__visual {
		min-height: 13rem;
		padding: 1.25rem 1.25rem 0;
	}

	.index-tile__visual img {
		max-height: 15rem;
	}
}

/* --- Reveal au scroll --- */
html:not(.index-js) .index-reveal {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: no-preference) {
	html.index-js .index-reveal:not(.index-reveal--visible) {
		opacity: 0;
		transform: translateY(12px);
	}

	.index-tile.index-reveal {
		transition:
			opacity 0.55s ease-out,
			transform 0.55s ease-out,
			box-shadow 0.25s ease,
			border-color 0.25s ease;
	}

	.index-discover__grid .index-tile.index-reveal:nth-child(1) { transition-delay: 0s; }
	.index-discover__grid .index-tile.index-reveal:nth-child(2) { transition-delay: 0.08s; }
	.index-discover__grid .index-tile.index-reveal:nth-child(3) { transition-delay: 0.16s; }

	html.index-js .index-forwho__list.index-reveal:not(.index-reveal--visible) li {
		opacity: 0;
		transform: translateY(10px);
	}

	.index-forwho__list.index-reveal--visible li {
		opacity: 1;
		transform: translateY(0);
		transition: opacity 0.5s ease-out, transform 0.5s ease-out;
	}

	.index-forwho__list.index-reveal--visible li:nth-child(1) { transition-delay: 0s; }
	.index-forwho__list.index-reveal--visible li:nth-child(2) { transition-delay: 0.07s; }
	.index-forwho__list.index-reveal--visible li:nth-child(3) { transition-delay: 0.14s; }
}

.index-reveal--visible {
	opacity: 1;
	transform: translateY(0);
}

/* --- Pour qui --- */
.index-forwho {
	padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
	background:
		linear-gradient(
			135deg,
			rgba(var(--color-primary-rgb), 0.72) 0%,
			rgba(var(--color-primary-dark-rgb), 0.78) 100%
		),
		var(--color-bg, #f3eae3);
	width: 100%;
}

.index-forwho .index-section-head__title {
	color: #fff;
}

.index-forwho .index-section-head__lead {
	color: #fff;
	opacity: 0.92;
}

.index-forwho__inner {
	max-width: 52rem;
	margin: 0 auto;
}

.index-forwho__list {
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
	gap: 1rem;
}

.index-forwho__list li {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	margin: 0;
	padding: 1.1rem 1.15rem;
	font-size: 1.02rem;
	line-height: 1.5;
	color: #fff;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: var(--radius-md, 10px);
	box-shadow:
		0 6px 20px rgba(0, 0, 0, 0.08),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.index-forwho__list li::before {
	content: "✓";
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.65rem;
	height: 1.65rem;
	margin-top: 0.1em;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.35);
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
}

.index-forwho__link {
	margin: 0;
	text-align: center;
}

.index-forwho__link a {
	color: #fff;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.index-forwho__link a:hover,
.index-forwho__link a:focus-visible {
	opacity: 0.9;
}

/* --- Bandeau CTA --- */
.index-cta-band {
	padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
	background: var(--color-bg, #f3eae3);
	text-align: center;
	width: 100%;
}

.index-cta-band__inner {
	max-width: 36rem;
	margin: 0 auto;
}

.index-cta-band__text {
	margin: 0 0 1.25rem;
	font-size: clamp(1.15rem, 3vw, 1.35rem);
	font-weight: 500;
	color: var(--color-text-muted, #4a4a4a);
}

/* --- Témoignages --- */
.wrapper.index-testimonials {
	padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 6vw, 4rem);
	background: linear-gradient(180deg, #fff 0%, var(--color-bg, #f3eae3) 100%);
	width: 100%;
}

.wrapper.index-testimonials .container,
.index-testimonials__section {
	width: 100% !important;
	max-width: 52rem !important;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
}

.index-testimonials__head {
	margin-bottom: 2rem;
}

.index-testimonials__link {
	margin: 0.75rem 0 0;
}

.index-testimonials__link a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.35rem 0.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--color-primary, #5a7a5a);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

.index-testimonials__link a:hover,
.index-testimonials__link a:focus-visible {
	color: var(--color-primary-dark, #4a6a4a);
}

.index-testimonials__carousel {
	position: relative;
	border-radius: var(--radius-lg, 14px);
	overflow: visible;
	padding: 0 3.25rem;
}

.wrapper.index-testimonials .carousel-control-prev,
.wrapper.index-testimonials .carousel-control-next {
	position: absolute;
	top: 50%;
	z-index: 5;
	width: 2.75rem;
	height: 2.75rem;
	opacity: 1;
	animation: none;
	transform: translateY(-50%);
	background: var(--color-primary, #5a7a5a);
	border-radius: 50%;
	border: none;
	box-shadow: var(--shadow-primary);
	backdrop-filter: none;
}

.wrapper.index-testimonials .carousel-control-prev {
	left: 0;
	right: auto;
}

.wrapper.index-testimonials .carousel-control-next {
	right: 0;
	left: auto;
}

.wrapper.index-testimonials .carousel-control-prev:hover,
.wrapper.index-testimonials .carousel-control-prev:focus-visible,
.wrapper.index-testimonials .carousel-control-next:hover,
.wrapper.index-testimonials .carousel-control-next:focus-visible {
	opacity: 1;
	transform: translateY(-50%) scale(1.05);
	background: var(--color-primary-dark, #4a6a4a);
}

.wrapper.index-testimonials .carousel-control-prev-icon,
.wrapper.index-testimonials .carousel-control-next-icon {
	width: 1.1rem;
	height: 1.1rem;
	filter: brightness(0) invert(1);
}

.wrapper.index-testimonials #demo,
.wrapper.index-testimonials .carousel,
.wrapper.index-testimonials .carousel-inner {
	width: 100%;
	max-width: 100%;
}

.wrapper.index-testimonials #demo.index-testimonials__carousel {
	overflow: visible;
}

.wrapper.index-testimonials .carousel-inner {
	border-radius: var(--radius-lg, 14px);
	overflow: hidden;
}

.wrapper.index-testimonials .card {
	width: 100%;
	max-width: none;
	margin: 0;
	border: 1px solid rgba(var(--color-primary-rgb), 0.1);
	border-radius: var(--radius-lg, 14px);
	box-shadow: var(--shadow-elevated, 0 8px 32px rgba(90, 80, 70, 0.1));
	background: linear-gradient(165deg, #fff 0%, #faf6f2 100%);
}

.wrapper.index-testimonials .card-body {
	padding: clamp(1.5rem, 4vw, 2rem);
}

.wrapper.index-testimonials .carousel-indicators {
	position: static;
	margin: 1.25rem 0 0;
	display: flex;
	justify-content: center;
	gap: 0.35rem;
}

.wrapper.index-testimonials .carousel-indicators button {
	width: 10px;
	height: 10px;
	margin: 0;
	border-radius: 50%;
	background: rgba(var(--color-primary-rgb), 0.25);
	border: none;
	opacity: 1;
	transition: background 0.2s ease, transform 0.2s ease;
}

.wrapper.index-testimonials .carousel-indicators button.active {
	background: var(--color-primary, #5a7a5a);
	transform: scale(1.15);
}

.wrapper.index-testimonials .blockquote-footer {
	margin-top: 1rem;
	font-size: 0.9rem;
	color: var(--color-text-muted, #4a4a4a);
}

body.page-index .wrapper.index-testimonials .carousel-item,
body.page-index .wrapper.index-testimonials .carousel-item.active .card {
	animation: none;
}

.testimonial-text {
	text-align: center;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--color-text-muted, #4a4a4a);
}

@media screen and (max-width: 767px) {
	.index-testimonials__carousel {
		padding: 0;
	}

	.wrapper.index-testimonials .carousel-control-prev,
	.wrapper.index-testimonials .carousel-control-next {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.index-hero__content,
	.index-hero__portrait {
		animation: none !important;
		opacity: 1 !important;
	}

	.index-reveal,
	.index-reveal .index-forwho__list li {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

body.page-index .particle {
	display: none;
}
