/* ============================================================
   AskMed - How It Works page (amhi)
   ============================================================ */
.amhi {
	--amhi-pink: #e12454;
	--amhi-ink: #23232b;
	--amhi-muted: #6b6b76;
	--amhi-gray: #f7f7f8;
	--amhi-line: #ececf0;
	font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
	color: var(--amhi-ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

.amhi-container {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ------------------------------------------------------------
   Section 1 - Hero
   ------------------------------------------------------------ */
.amhi-hero {
	padding: 96px 0 72px;
	text-align: center;
	background: #fff;
}
.amhi-hero h1 {
	font-size: clamp(36px, 5vw, 54px);
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--amhi-ink);
	margin: 0 0 22px;
}
.amhi-hero p {
	max-width: 640px;
	margin: 0 auto;
	font-size: clamp(16px, 2vw, 18px);
	line-height: 1.7;
	color: var(--amhi-muted);
}

/* ------------------------------------------------------------
   Sections image / texte alternees
   ------------------------------------------------------------ */
.amhi-row {
	padding: 56px 0;
	background: #fff;
}
.amhi-grid {
	display: grid;
	grid-template-columns: 45fr 55fr;
	gap: 64px;
	align-items: center;
}
.amhi-reverse .amhi-grid {
	grid-template-columns: 55fr 45fr;
}
.amhi-reverse .amhi-grid .amhi-media {
	order: 1;
}
.amhi-reverse .amhi-grid .amhi-text {
	order: 2;
}

.amhi-step {
	display: inline-block;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.14em;
	color: var(--amhi-pink);
	background: #fdeef2;
	border-radius: 999px;
	padding: 6px 14px;
	margin-bottom: 20px;
}
.amhi-text h2 {
	font-size: clamp(26px, 3vw, 36px);
	line-height: 1.18;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--amhi-ink);
	margin: 0 0 18px;
}
.amhi-text p {
	font-size: 17px;
	line-height: 1.7;
	color: var(--amhi-muted);
	margin: 0 0 16px;
}
.amhi-text p.amhi-sub {
	color: #5a5a64;
	font-size: 16px;
	margin-top: 4px;
	padding-top: 4px;
}

.amhi-media {
	position: relative;
}
.amhi-media img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 4.6;
	object-fit: cover;
	border-radius: 16px;
	display: block;
	box-shadow: 0 18px 44px rgba(20, 20, 35, 0.10);
	transition: transform 0.45s ease;
}
.amhi-media:hover img {
	transform: translateY(-4px);
}

/* ------------------------------------------------------------
   Section 3 - Chat UI mockup
   ------------------------------------------------------------ */
.amhi-chat {
	background: #fff;
	border: 1px solid var(--amhi-line);
	border-radius: 18px;
	box-shadow: 0 18px 44px rgba(20, 20, 35, 0.10);
	overflow: hidden;
}
.amhi-chat-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 18px;
	border-bottom: 1px solid var(--amhi-line);
	background: #fff;
}
.amhi-chat-head .amhi-chat-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fdeef2;
	color: var(--amhi-pink);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 15px;
	flex: none;
}
.amhi-chat-head .amhi-chat-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--amhi-ink);
}
.amhi-chat-head .amhi-chat-status {
	font-size: 12px;
	color: #3a9d6b;
}
.amhi-chat-body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	background: #fbfbfc;
}
.amhi-bubble {
	max-width: 82%;
	padding: 11px 14px;
	border-radius: 14px;
	font-size: 14.5px;
	line-height: 1.5;
	color: #3a3a44;
}
.amhi-bubble.ai {
	background: #fff;
	border: 1px solid var(--amhi-line);
	border-top-left-radius: 4px;
	align-self: flex-start;
}
.amhi-bubble.you {
	background: var(--amhi-pink);
	color: #fff;
	border-top-right-radius: 4px;
	align-self: flex-end;
}
.amhi-chat-input {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border-top: 1px solid var(--amhi-line);
	background: #fff;
}
.amhi-chat-input span {
	flex: 1;
	height: 36px;
	border: 1px solid var(--amhi-line);
	border-radius: 999px;
	background: #f7f7f8;
}
.amhi-chat-send {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--amhi-pink);
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ------------------------------------------------------------
   Section 6 - Benefits
   ------------------------------------------------------------ */
.amhi-benefits {
	background: var(--amhi-gray);
	padding: 92px 0;
}
.amhi-benefits .amhi-sechead {
	text-align: center;
	max-width: 620px;
	margin: 0 auto 56px;
}
.amhi-benefits .amhi-sechead h2 {
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 800;
	letter-spacing: -0.015em;
	color: var(--amhi-ink);
	margin: 0 0 16px;
}
.amhi-benefits .amhi-sechead p {
	font-size: 17px;
	line-height: 1.65;
	color: var(--amhi-muted);
	margin: 0;
}
.amhi-grid3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.amhi-card {
	background: #fff;
	border: 1px solid var(--amhi-line);
	border-radius: 14px;
	padding: 30px 26px;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.amhi-card:hover {
	box-shadow: 0 14px 30px rgba(20, 20, 35, 0.08);
	transform: translateY(-3px);
}
.amhi-card .amhi-ico {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: #fdeef2;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
	color: var(--amhi-pink);
}
.amhi-card h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--amhi-ink);
	margin: 0 0 10px;
}
.amhi-card p {
	font-size: 15px;
	line-height: 1.6;
	color: var(--amhi-muted);
	margin: 0;
}

/* ------------------------------------------------------------
   Section 7 - CTA + disclaimer
   ------------------------------------------------------------ */
.amhi-cta {
	background: #fff;
	padding: 96px 0 40px;
	text-align: center;
}
.amhi-cta .amhi-cta-box {
	background: #fff;
	border: 1px solid var(--amhi-line);
	border-radius: 20px;
	padding: 64px 32px;
	max-width: 760px;
	margin: 0 auto;
}
.amhi-cta h2 {
	font-size: clamp(26px, 3.2vw, 38px);
	font-weight: 800;
	letter-spacing: -0.015em;
	color: var(--amhi-ink);
	margin: 0 0 16px;
}
.amhi-cta p {
	font-size: 17px;
	line-height: 1.65;
	color: var(--amhi-muted);
	max-width: 520px;
	margin: 0 auto 30px;
}
.amhi-btn {
	display: inline-block;
	background: var(--amhi-pink);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	padding: 15px 34px;
	border-radius: 999px;
	transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
	box-shadow: 0 8px 20px rgba(225, 36, 84, 0.25);
}
.amhi-btn:hover {
	background: #c41746;
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(225, 36, 84, 0.30);
	color: #fff;
}
.amhi-disclaimer {
	max-width: 720px;
	margin: 40px auto 0;
	padding: 0 24px 56px;
	text-align: center;
	font-size: 13px;
	line-height: 1.6;
	color: #9a9aa4;
}

/* ------------------------------------------------------------
   Animations (reveal au scroll)
   ------------------------------------------------------------ */
.amhi-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.amhi-reveal.is-in {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.amhi-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1023px) {
	.amhi-grid,
	.amhi-reverse .amhi-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.amhi-reverse .amhi-grid .amhi-media,
	.amhi-reverse .amhi-grid .amhi-text {
		order: 0;
	}
	.amhi-grid3 {
		grid-template-columns: repeat(2, 1fr);
	}
	.amhi-hero {
		padding: 72px 0 56px;
	}
	.amhi-row {
		padding: 40px 0;
	}
}
@media (max-width: 767px) {
	.amhi-hero {
		padding: 56px 0 40px;
	}
	.amhi-row {
		padding: 28px 0;
	}
	.amhi-grid3 {
		grid-template-columns: 1fr;
	}
	.amhi-card {
		padding: 24px 20px;
	}
	.amhi-cta {
		padding: 56px 0 24px;
	}
	.amhi-cta .amhi-cta-box {
		padding: 40px 20px;
	}
	.amhi-media img {
		aspect-ratio: 4 / 4;
	}
}
