/**
 * Single garantie — hero et page
 */

.garantie-hero__title,
.garantie-single :is(h1, h2, h3, h4, h5, h6),
.garantie-avantages__title,
.garantie-avantages__item-title,
.garantie-interlocuteurs__title {
	font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
	font-weight: 400;
}

.garantie-hero {
	--garantie-hero-blue: #0073ba;
	background-color: var(--garantie-hero-blue);
	height: 340px;
	overflow: hidden;
}

.garantie-hero__inner {
	display: flex;
	align-items: stretch;
	height: 100%;
	max-width: 100%;
}

.garantie-hero__content {
	flex: 0 0 50%;
	display: flex;
	align-items: center;
	padding: 48px 32px 48px max(24px, calc((100vw - 1170px) / 2 + 15px));
	position: relative;
	z-index: 2;
}

.garantie-hero__content::before {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.12;
	background-image:
		linear-gradient(30deg, transparent 45%, rgba(255, 255, 255, 0.4) 45%, rgba(255, 255, 255, 0.4) 46%, transparent 46%),
		linear-gradient(150deg, transparent 45%, rgba(255, 255, 255, 0.4) 45%, rgba(255, 255, 255, 0.4) 46%, transparent 46%);
	background-size: 56px 48px;
	pointer-events: none;
}

.garantie-hero__title {
	position: relative;
	margin: 0;
	color: #fff;
	font-size: 36px;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.garantie-hero__media {
	flex: 1 1 50%;
	position: relative;
	height: 100%;
}

.garantie-hero__media::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to right,
		var(--garantie-hero-blue) 0%,
		rgba(0, 115, 186, 0.85) 18%,
		rgba(0, 115, 186, 0.35) 42%,
		transparent 62%
	);
	pointer-events: none;
}

.garantie-hero__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center right;
}

.garantie-hero--no-image .garantie-hero__content {
	flex: 1 1 100%;
}

@media (max-width: 991px) {
	.garantie-hero {
		height: auto;
	}

	.garantie-hero__inner {
		flex-direction: column;
		height: auto;
	}

	.garantie-hero__content {
		flex: none;
		padding: 40px 24px 32px;
	}

	.garantie-hero__media {
		flex: none;
		height: 220px;
	}

	.garantie-hero__media::before {
		background: linear-gradient(
			to bottom,
			var(--garantie-hero-blue) 0%,
			rgba(0, 115, 186, 0.5) 35%,
			transparent 65%
		);
	}
}

/* --------------------------------------------------------------------------
   Contenu, accordéons, CTA
   -------------------------------------------------------------------------- */

.garantie-single.container {
	max-width: 1200px;
}

.garantie-single {
	--garantie-blue: #0073ba;
	--garantie-blue-dark: #005a94;
	--garantie-heading: #122b54;
	--garantie-text: #5c6773;
	--garantie-text-muted: #8a939c;
	--garantie-border: #dde4ea;
	--garantie-surface: #f7f9fb;
	padding-top: 48px;
	padding-bottom: 72px;
}

.garantie-single #content > :first-child {
	margin-top: 0;
}

.garantie-single #content h3,
.garantie-single #content h4,
.garantie-single #content h5,
.garantie-single #content h6 {
	margin: 0 0 14px;
	color: var(--garantie-heading);
	line-height: 1.4;
}

.garantie-single #content h3 {
	font-size: 22px;
}

.garantie-single #content h4 {
	font-size: 18px;
}

.garantie-single #content h5 {
	font-size: 16px;
}

.garantie-single #content h6 {
	font-size: 14px;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.garantie-single #content h2:not(:first-child) {
	margin-top: 48px;
}

.garantie-single #content :is(h3, h4, h5, h6):not(:first-child) {
	margin-top: 28px;
}

.garantie-single #content p {
	margin: 0 0 1.25em;
	color: var(--garantie-text);
	font-size: 16px;
	line-height: 1.7;
}

.garantie-single #content p strong,
.garantie-single #content details strong {
	color: var(--garantie-heading);
	font-weight: 600;
}

.garantie-single #content p em,
.garantie-single #content details em {
	color: var(--garantie-text-muted);
	font-size: 15px;
}

.garantie-single #content ul,
.garantie-single #content ol {
	margin: 0 0 1.5em;
	padding-left: 1.35em;
	color: var(--garantie-text);
}

.garantie-single #content li {
	margin-bottom: 0.5em;
	line-height: 1.65;
}

.garantie-single #content li::marker {
	color: var(--garantie-blue);
}

/* Accordéons (blocs Details Gutenberg) */
.garantie-single #content .wp-block-details {
	margin: 0 0 12px;
	border: 2px solid var(--garantie-border);
	border-radius: 6px;
	background-color: #fff;
	/* overflow: visible — hidden coupait les puces (list-style-position: outside) */
	overflow: visible;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.garantie-single #content .wp-block-details:hover {
	border-color: #c5d3de;
}

.garantie-single #content .wp-block-details[open] {
	border-color: rgba(0, 115, 186, 0.35);
	box-shadow: 0 4px 16px rgba(18, 43, 84, 0.06);
}

.garantie-single #content .wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 52px 18px 22px;
	color: var(--garantie-heading);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
	user-select: none;
	position: relative;
}

.garantie-single #content .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.garantie-single #content .wp-block-details summary::marker {
	content: "";
}

.garantie-single #content .wp-block-details summary::after {
	content: "";
	position: absolute;
	right: 22px;
	top: 50%;
	width: 10px;
	height: 10px;
	margin-top: -2px;
	border-right: 2px solid var(--garantie-blue);
	border-bottom: 2px solid var(--garantie-blue);
	transform: translateY(-50%) rotate(45deg);
	transition: transform 0.2s ease;
}

.garantie-single #content .wp-block-details[open] > summary {
	border-bottom: 1px solid var(--garantie-border);
	background-color: var(--garantie-surface);
}

.garantie-single #content .wp-block-details[open] > summary::after {
	margin-top: 4px;
	transform: translateY(-50%) rotate(-135deg);
}

.garantie-single #content .wp-block-details > :not(summary) {
	padding-right: 22px;
	padding-left: 22px;
}

.garantie-single #content .wp-block-details > :not(summary):first-of-type {
	padding-top: 22px;
}

.garantie-single #content .wp-block-details > :not(summary):last-child {
	padding-bottom: 22px;
	margin-bottom: 0;
}

.garantie-single #content .wp-block-details ul,
.garantie-single #content .wp-block-details ol,
.garantie-single #content .wp-block-details .wp-block-list {
	margin: 0 0 1.5em;
	padding-left: 2.25em;
	list-style-position: outside;
}

.garantie-single #content .wp-block-details ul,
.garantie-single #content .wp-block-details ul.wp-block-list {
	list-style-type: disc;
}

.garantie-single #content .wp-block-details ol {
	list-style-type: decimal;
}

/* CTA */
.garantie-single .garantie-cta {
	width: 100%;
	max-width: 1200px;
	margin: 56px auto 0;
	padding-top: 40px;
	border-top: 1px solid var(--garantie-border);
	text-align: center;
}

.garantie-single .garantie-cta h2 {
	margin-left: auto;
	margin-right: auto;
}

.garantie-single .buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-top: 8px;
}

.garantie-single .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 26px;
	border: 2px solid var(--garantie-blue);
	border-radius: 4px;
	background-color: var(--garantie-blue);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.garantie-single .button:hover,
.garantie-single .button:focus {
	background-color: var(--garantie-blue-dark);
	border-color: var(--garantie-blue-dark);
	color: #fff;
}

.garantie-single .button.button--outline,
.garantie-single .button + .button {
	background-color: #fff;
	color: var(--garantie-blue);
}

.garantie-single .button.button--outline:hover,
.garantie-single .button.button--outline:focus,
.garantie-single .button + .button:hover,
.garantie-single .button + .button:focus {
	background-color: var(--garantie-surface);
	color: var(--garantie-blue-dark);
}

/* --------------------------------------------------------------------------
   Interlocuteurs privilégiés
   -------------------------------------------------------------------------- */

.garantie-interlocuteurs {
	margin-top: 56px;
	padding-top: 40px;
	border-top: 1px solid var(--garantie-border);
}

.garantie-interlocuteurs__title {
	margin: 0 0 28px;
	color: var(--garantie-heading);
	font-size: 30px;
	line-height: 1.35;
	text-align: center;
}

.garantie-interlocuteurs__list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.garantie-interlocuteur {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 22px 24px;
	border: 1px solid var(--garantie-border);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(18, 43, 84, 0.05);
}

.garantie-interlocuteur__photo {
	flex-shrink: 0;
	width: 88px;
	height: 88px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--garantie-surface);
}

.garantie-interlocuteur__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.garantie-interlocuteur__body {
	flex: 1 1 auto;
	min-width: 0;
}

.garantie-interlocuteur__name {
	margin: 0 0 6px;
	color: var(--garantie-heading);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

.garantie-interlocuteur__prenom,
.garantie-interlocuteur__nom {
	display: inline;
}

.garantie-interlocuteur__garantie {
	margin: 0 0 16px;
	color: var(--garantie-text);
	font-size: 15px;
	line-height: 1.55;
}

.garantie-interlocuteur__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.garantie-interlocuteur__actions .button {
	padding: 11px 20px;
	font-size: 15px;
}

/* --------------------------------------------------------------------------
   Section avantages (3 colonnes)
   -------------------------------------------------------------------------- */

.garantie-avantages {
	--garantie-blue: #0073ba;
	--garantie-heading: #122b54;
	--garantie-text-muted: #8a939c;
	--garantie-avantage-1: var(--e-global-color-secondary);
	--garantie-avantage-2: #0073ba;
	--garantie-avantage-3: var(--e-global-color-primary);
	--bcom-section-title-color: var(--garantie-heading);
	--bcom-section-title-border: var(--garantie-blue);
	margin-top: 64px;
	padding-bottom: 48px;
}

.garantie-avantages__header {
	width: 100%;
}

.garantie-avantages__title {
	margin-top: 0;
	margin-bottom: 40px;
	font-size: 30px;
}

.garantie-avantages__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	width: 100%;
}

.garantie-avantages__item {
	padding: 40px 36px 48px;
	color: #fff;
}

.garantie-avantages__item--1 {
	background-color: var(--garantie-avantage-1);
}

.garantie-avantages__item--2 {
	background-color: var(--garantie-avantage-2);
}

.garantie-avantages__item--3 {
	background-color: var(--garantie-avantage-3);
}

.garantie-avantages__item-title {
	margin: 0 0 14px;
	padding-bottom: 14px;
	border-bottom: 2px solid rgba(255, 255, 255, 0.85);
	color: #fff;
	font-size: 20px;
	line-height: 1.35;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.garantie-avantages__item-text {
	margin: 0;
	color: #fff;
	font-size: 16px;
	line-height: 1.65;
}

.garantie-avantages__item-text p {
	margin: 0;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.garantie-avantages__item-text p + p {
	margin-top: 0.75em;
}

.garantie-avantages__notes {
	margin-top: 20px;
	color: var(--garantie-text-muted);
	font-size: 14px;
	line-height: 1.6;
	font-style: italic;
}

.garantie-avantages__notes p {
	margin: 0 0 0.5em;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.garantie-avantages__notes p:last-child {
	margin-bottom: 0;
}

@media (max-width: 991px) {
	.garantie-avantages__list {
		grid-template-columns: 1fr;
	}

	.garantie-avantages__item {
		padding: 32px 24px 36px;
	}

	.garantie-avantages__title {
		font-size: 26px;
		margin-bottom: 32px;
	}
}

@media (max-width: 767px) {
	.garantie-single {
		padding-top: 32px;
		padding-bottom: 48px;
	}

	.garantie-single #content h2:not(:first-child) {
		margin-top: 36px;
	}

	.garantie-single #content h3 {
		font-size: 20px;
	}

	.garantie-single #content h4 {
		font-size: 17px;
	}

	.garantie-single #content h5 {
		font-size: 15px;
	}

	.garantie-single #content h6 {
		font-size: 13px;
	}

	.garantie-avantages__title {
		font-size: 24px;
	}

	.garantie-single #content .wp-block-details summary {
		padding: 16px 44px 16px 18px;
		font-size: 16px;
	}

	.garantie-single #content .wp-block-details summary::after {
		right: 18px;
	}

	.garantie-interlocuteurs__title {
		font-size: 24px;
	}

	.garantie-interlocuteurs__list {
		grid-template-columns: 1fr;
	}

	.garantie-interlocuteur {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.garantie-interlocuteur__actions {
		justify-content: center;
		width: 100%;
	}

	.garantie-interlocuteur__actions .button {
		width: 100%;
	}

	.garantie-single .garantie-cta .buttons {
		flex-direction: column;
	}

	.garantie-single .garantie-cta .button {
		width: 100%;
	}
}
