/* Lexique — palette alignée sur AssureMonCondo.com (mêmes teintes que la FAQ) */
.amc-lex {
	--amc-lex-navy-deep: #0b2740;
	--amc-lex-navy: #123a5c;
	--amc-lex-amber: #eda440;
	--amc-lex-amber-deep: #a15c00;
	--amc-lex-line: #e3e7ea;
	--amc-lex-gray: #4a5a66;
	max-width: 1040px;
	margin: 0 auto;
	padding: 0 4px 30px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.amc-lex-empty {
	padding: 30px 10px;
	color: #7f8a94;
	text-align: center;
}

.amc-lex-hero {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(135deg, var(--amc-lex-navy-deep) 0%, var(--amc-lex-navy) 100%);
	border-radius: 14px;
	padding: 32px 36px;
	margin: 16px 0 26px;
	color: #ffffff;
}

.amc-lex-hero-main {
	flex: 1 1 320px;
	min-width: 260px;
}

.amc-lex-hero-badge {
	display: inline-block;
	background: var(--amc-lex-amber);
	color: var(--amc-lex-navy-deep);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 4px;
	margin-bottom: 16px;
}

.amc-lex-hero-title {
	margin: 0 0 12px;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.25;
	color: #ffffff;
}

.amc-lex-hero-subtitle {
	margin: 0;
	max-width: 520px;
	font-size: 15.5px;
	line-height: 1.6;
	color: #cdd8e2;
}

.amc-lex-search {
	display: flex;
	max-width: 320px;
	margin: 14px 0 0;
}

.amc-lex-search-input {
	flex: 1;
	min-width: 0;
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-right: 0;
	border-radius: 6px 0 0 6px;
	background: rgba(255, 255, 255, .08);
	color: #ffffff;
	font-size: 13.5px;
}

.amc-lex-search-input::placeholder {
	color: #cdd8e2;
}

.amc-lex-search-input:focus {
	outline: none;
	background: rgba(255, 255, 255, .14);
}

.amc-lex-search-btn {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 14px;
	border: 1px solid var(--amc-lex-amber);
	border-radius: 0 6px 6px 0;
	background: var(--amc-lex-amber);
	color: var(--amc-lex-navy-deep);
	cursor: pointer;
}

.amc-lex-hero-stats {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 0 0 auto;
}

.amc-lex-stat {
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 10px;
	padding: 14px 22px;
	min-width: 220px;
}

.amc-lex-stat-number {
	font-size: 22px;
	font-weight: 800;
	color: #ffffff;
}

.amc-lex-stat-amber .amc-lex-stat-number {
	color: var(--amc-lex-amber);
}

.amc-lex-stat-label {
	margin-top: 2px;
	font-size: 12.5px;
	color: #cdd8e2;
}

.amc-lex-alpha {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 20px;
	padding: 14px 4px;
	border-top: 1px solid var(--amc-lex-line);
	border-bottom: 1px solid var(--amc-lex-line);
}

.amc-lex-alpha a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	background: #f4f6f8;
	color: var(--amc-lex-navy-deep);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.amc-lex-alpha a:hover,
.amc-lex-alpha a:focus-visible {
	background: var(--amc-lex-amber);
	color: var(--amc-lex-navy-deep);
}

.amc-lex-group {
	margin-bottom: 26px;
}

.amc-lex-letter {
	margin: 0 0 10px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--amc-lex-amber);
	color: var(--amc-lex-navy-deep);
	font-size: 20px;
	font-weight: 800;
}

.amc-lex-item {
	border-bottom: 1px solid var(--amc-lex-line);
	/* Dégagement quand on arrive sur un terme via une ancre (#amc-lex-button-…) :
	   évite qu'il se retrouve caché sous l'en-tête fixe du site (le lien
	   « atterrissait » quelques lignes trop haut). */
	scroll-margin-top: 120px;
}

.amc-lex-toggle {
	scroll-margin-top: 120px;
}

.amc-lex-item:last-child {
	border-bottom: 0;
}

.amc-lex-term {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
}

/* Liste compacte : peu d'espace entre les termes repliés, pour en afficher
   davantage sans défilement. L'espace ne revient que dans la définition
   une fois le terme développé (voir .amc-lex-answer). */
.amc-lex-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	width: 100%;
	padding: 6px 6px;
	border: 0;
	background: none;
	color: var(--amc-lex-navy-deep);
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
}

.amc-lex-toggle:hover,
.amc-lex-toggle:focus-visible {
	color: var(--amc-lex-amber-deep);
}

.amc-lex-icon {
	position: relative;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}

.amc-lex-icon::before,
.amc-lex-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: var(--amc-lex-amber);
	transform: translate(-50%, -50%);
	transition: transform .18s ease, opacity .18s ease;
}

.amc-lex-icon::before {
	width: 13px;
	height: 2px;
}

.amc-lex-icon::after {
	width: 2px;
	height: 13px;
}

.amc-lex-toggle[aria-expanded="true"] .amc-lex-icon::after {
	opacity: 0;
	transform: translate(-50%, -50%) rotate(90deg);
}

.amc-lex-answer {
	padding: 0 6px 18px;
	color: var(--amc-lex-gray);
	font-size: 15px;
	line-height: 1.65;
}

.amc-lex-answer[hidden] {
	display: none;
}

.amc-lex-answer-body h3 {
	margin: 14px 0 6px;
	color: var(--amc-lex-navy-deep);
	font-size: 15px;
}

.amc-lex-answer-body p {
	margin: 0 0 10px;
}

.amc-lex-answer-body p:last-child {
	margin-bottom: 0;
}

.amc-lex-answer-body ul {
	margin: 0 0 10px 20px;
	padding: 0;
}

.amc-lex-answer-body li {
	margin-bottom: 5px;
}

.amc-lex-answer-body a {
	color: var(--amc-lex-navy);
	font-weight: 600;
	text-decoration: underline;
}

.amc-lex-empty-search {
	padding: 24px 6px;
	color: #7f8a94;
	text-align: center;
}

@media (max-width: 560px) {
	.amc-lex-toggle {
		padding: 6px 4px;
		font-size: 15px;
	}
	.amc-lex-answer {
		font-size: 14.5px;
	}
	.amc-lex-hero {
		padding: 24px 22px;
	}
	.amc-lex-hero-title {
		font-size: 24px;
	}
	.amc-lex-stat {
		min-width: 0;
		width: 100%;
	}
	.amc-lex-search {
		max-width: none;
	}
	.amc-lex-alpha a {
		width: 26px;
		height: 26px;
	}
}
