/*
 * Azur refresh layer.
 * Loaded after the compiled Tailwind stylesheet (style.css), so it refines the existing
 * look without a Tailwind rebuild: calmer type scale, lighter header, tighter section
 * rhythm, themed browser surfaces and the motion used by assets/js/refresh.js.
 */

:root {
	--azur-blue: #5895ce;
	--azur-blue-strong: #3a7bbd;
	--azur-deep: #174875;
	--azur-ink: #07122f;
	--azur-text: #172033;
	--azur-mist: #eff7fe;
	--azur-line: rgba(23, 72, 117, 0.12);
	--azur-shadow: 0 18px 40px -18px rgba(7, 18, 47, 0.28);
	--azur-shadow-soft: 0 10px 30px -16px rgba(7, 18, 47, 0.22);
	--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---------- Base & browser surfaces ---------- */

html {
	color: var(--azur-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

::selection {
	background: rgba(88, 149, 206, 0.25);
	color: var(--azur-ink);
}

:focus-visible {
	outline: 2px solid var(--azur-blue);
	outline-offset: 3px;
	border-radius: 4px;
}

main a:not(.btn):not([class*="wp-block-button"]) {
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--azur-ink);
	letter-spacing: -0.01em;
	text-wrap: balance;
}

main p {
	text-wrap: pretty;
}

/* ---------- Accessible colour use ----------
 * #5895CE stays the decorative brand blue; text and white-on-blue surfaces use deeper steps
 * so they reach WCAG AA: white on #3672B0 = 5.0:1, white on #2F6AA6 = 5.6:1, #2F6AA6 on white = 5.6:1.
 */
:root {
	--azur-surface: #3672b0;
	--azur-action: #2f6aa6;
	--azur-link: #2f6aa6;
}

body > .bg-light-primary.text-white,
#footer .bg-light-primary,
.button-right-sticky a {
	background-color: var(--azur-surface) !important;
}

.button-right-sticky a:hover {
	background-color: var(--azur-deep) !important;
}

#footer .current-menu-item a,
#footer li.menu-item a:hover {
	color: #fff !important;
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

#footer .bg-dark-primary .container,
#footer .bg-dark-primary a {
	color: #c9def2 !important;
}

#main p a:not(.btn):not([class*="text-white"]),
#main li a:not(.btn):not(.wp-block-latest-posts__post-title):not([class*="rounded-full"]),
nav[aria-label="breadcrumb"] a:not(.is-home) {
	color: var(--azur-link);
}

.btn,
.wpcf7-submit {
	background-image: none !important;
	background-color: var(--azur-action) !important;
}

.btn:before {
	background-color: var(--azur-action) !important;
}

.btn:hover,
.wpcf7-submit:hover,
.btn:hover:before {
	background-color: var(--azur-deep) !important;
}

/* Skip link: visible only when focused from the keyboard. */
.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 10001;
	padding: 0.75rem 1.25rem;
	border-radius: 0 0 0.75rem 0.75rem;
	background: var(--azur-deep);
	color: #fff !important;
	font-weight: 600;
	transition: top 0.3s var(--ease-out-expo);
}

.skip-link:focus {
	top: 0;
}

/* Bigger hit areas for small header icons without changing their look. */
.social-medias-header a,
.lang-item a,
#footer a[aria-label] {
	position: relative;
}

.social-medias-header a::after,
.lang-item a::after,
#footer a[aria-label]::after {
	content: '';
	position: absolute;
	inset: -10px;
}

@media (max-width: 1278px) {
	#masthead .menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin-right: -9px;
	}
}

/* Home slider pause/play control (tiny-slider renders it; the theme used to hide it). */
.tns-outer [data-action="stop"],
.tns-outer [data-action="start"] {
	display: inline-flex !important;
	position: absolute;
	z-index: 5;
	/* Top right: the intro card and the sticky quote tab both overlap the hero's bottom edge. */
	top: 1rem;
	right: 1rem;
	align-items: center;
	min-height: 36px;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	background: rgba(7, 18, 47, 0.55);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.partners-slider ~ [data-action],
.tns-outer:has(.partners-slider) [data-action] {
	display: none !important;
}

/* ---------- Header: top bar ---------- */

body > .bg-light-primary.text-white {
	padding-top: 0.4rem;
	padding-bottom: 0.4rem;
	font-size: 0.875rem;
	letter-spacing: 0.01em;
}

body > .bg-light-primary.text-white a > svg.min-w-8 {
	width: 20px;
	height: 20px;
	min-width: 20px;
	margin-right: 0.6rem;
}

body > .bg-light-primary.text-white .social-medias-header {
	gap: 0.85rem;
	margin-right: 1.5rem;
}

body > .bg-light-primary.text-white .social-medias-header svg {
	width: 18px;
	height: 18px;
	transition: transform 0.35s var(--ease-out-expo), opacity 0.35s var(--ease-out-expo);
}

body > .bg-light-primary.text-white .social-medias-header a:hover svg {
	transform: translateY(-1px);
	opacity: 0.8;
}

body > .bg-light-primary.text-white .social-medias-header a:last-child svg {
	width: 22px;
	height: 22px;
}

.lang-switch {
	gap: 0.25rem;
}

.lang-item a,
.lang-item a:hover {
	width: 1.85rem !important;
	height: 1.85rem !important;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	color: #fff;
	transition: background-color 0.3s var(--ease-out-quart);
}

.lang-item:not(.current-lang) a:hover {
	background-color: rgba(255, 255, 255, 0.18);
}

/* ---------- Header: main bar ---------- */

#masthead {
	transition: box-shadow 0.5s var(--ease-out-expo);
}

/*
 * The frosted background lives on a pseudo-element: a backdrop-filter on #masthead itself
 * would become the containing block of the fixed mobile menu overlay and clip it to the bar.
 */
#masthead::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: #fff;
	transition: background-color 0.5s var(--ease-out-expo);
}

#masthead.is-scrolled {
	background-color: transparent;
	box-shadow: 0 12px 30px -22px rgba(7, 18, 47, 0.45);
}

#masthead.is-scrolled::before {
	background-color: rgba(255, 255, 255, 0.94);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	backdrop-filter: saturate(160%) blur(12px);
}

#navbar {
	padding-top: 0.6rem;
	padding-bottom: 0.6rem;
	transition: padding 0.5s var(--ease-out-expo);
}

#masthead .logo {
	width: 52px;
	max-width: none;
	height: auto;
	border-radius: 50%;
	transition: width 0.5s var(--ease-out-expo), transform 0.7s var(--ease-out-expo), box-shadow 0.7s var(--ease-out-expo);
}

/* Logo hover: the badge lifts and turns slightly, like the crescent catching the light. */
#masthead .logo:hover,
#masthead a:focus-visible .logo {
	transform: translateY(-1px) scale(1.06) rotate(-8deg);
	box-shadow: 0 10px 22px -10px rgba(23, 72, 117, 0.55);
}

@media (prefers-reduced-motion: reduce) {
	#masthead .logo:hover,
	#masthead a:focus-visible .logo {
		transform: none;
	}
}

@media (min-width: 1279px) {
	#navbar {
		padding-top: 0.85rem;
		padding-bottom: 0.85rem;
	}

	#masthead .logo {
		width: 60px;
	}

	#masthead.is-scrolled #navbar {
		padding-top: 0.45rem;
		padding-bottom: 0.45rem;
	}

	#masthead.is-scrolled .logo {
		width: 48px;
	}
}

@media (min-width: 1279px) {
	/* The menu wrapper is the mobile overlay (bg-white); on desktop let the header's own background show. */
	#masthead div:has(> #primary-navbar) {
		background: transparent;
		padding-top: 0;
		padding-bottom: 0;
	}
}

#primary-navbar .menu-item > a {
	position: relative;
	font-weight: 500;
	color: var(--azur-text);
}

#primary-navbar .current-menu-item > a,
#primary-navbar .current-menu-ancestor > a {
	font-weight: 600;
	color: var(--azur-deep);
}

@media (min-width: 1279px) {
	#primary-navbar .menu-item {
		font-size: 0.975rem;
	}

	#primary-navbar .menu-item > a::after {
		content: '';
		position: absolute;
		left: 0.75rem;
		right: 0.75rem;
		bottom: 0.15rem;
		height: 2px;
		border-radius: 2px;
		background: var(--azur-blue);
		transform: scaleX(0);
		transform-origin: center;
		transition: transform 0.5s var(--ease-out-expo);
	}

	#primary-navbar .menu-item > a:hover::after,
	#primary-navbar .current-menu-item > a::after,
	#primary-navbar .current-menu-ancestor > a::after {
		transform: scaleX(1);
	}

	#primary-navbar .menu-item > a:hover {
		color: var(--azur-deep);
	}
}

@media (min-width: 1500px) {
	#primary-navbar .menu-item {
		font-size: 1.0625rem;
	}

	#primary-navbar .menu-item > a::after {
		left: 1.25rem;
		right: 1.25rem;
	}
}

/* ---------- Mobile menu overlay ---------- */

@media (max-width: 1278px) {
	#masthead div:has(> #primary-navbar) {
		transition: left 0.6s var(--ease-out-expo), right 0.6s var(--ease-out-expo);
	}

	#masthead div:has(> #primary-navbar) {
		flex-direction: column;
		gap: 1.5rem;
	}

	.mobile-menu-actions {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0.75rem;
		padding-top: 1.25rem;
		border-top: 1px solid var(--azur-line);
		width: min(20rem, 100%);
	}

	.mobile-menu-cta {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 52px;
		border-radius: 999px;
		background: var(--azur-deep);
		color: #fff !important;
		font-weight: 600;
	}

	.mobile-menu-phone {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		color: var(--azur-deep) !important;
		font-weight: 600;
	}

	.mobile-menu-phone::before {
		content: '';
		width: 1.1rem;
		height: 1.1rem;
		margin-right: 0.5rem;
		background: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23174875' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat;
	}

	/* While the overlay is open, lift the header above the sticky "questionnaire" tab (z-index 9999). */
	#masthead:has(div.left-0 > #primary-navbar) {
		z-index: 10000;
	}

	#primary-navbar .menu-item {
		width: 100%;
		text-align: center;
	}

	#primary-navbar .menu-item > a {
		display: block;
		padding: 0.55rem 1rem;
		font-size: 1.25rem;
		line-height: 1.35;
	}

	#primary-navbar .current-menu-item > a {
		color: var(--azur-blue-strong);
	}

	#primary-navbar .current-menu-item > a::after {
		content: '';
		display: block;
		width: 1.75rem;
		height: 2px;
		margin: 0.35rem auto 0;
		border-radius: 2px;
		background: var(--azur-blue);
	}

	#masthead div:has(> #primary-navbar) > button {
		width: 2.75rem;
		height: 2.75rem;
		display: flex;
		align-items: center;
		justify-content: center;
		top: 1rem;
		right: 1rem;
		border-radius: 999px;
		transition: background-color 0.3s var(--ease-out-quart);
	}

	#masthead div:has(> #primary-navbar) > button:hover {
		background-color: var(--azur-mist);
	}

	#masthead div:has(> #primary-navbar) > button svg {
		width: 20px;
		height: 20px;
	}
}

@media (max-width: 1278px) and (prefers-reduced-motion: no-preference) {
	/* Items settle in one after another when the overlay opens. */
	#primary-navbar .menu-item {
		opacity: 0;
		transform: translate3d(0, 10px, 0);
		transition: opacity 0.5s var(--ease-out-quart), transform 0.7s var(--ease-out-expo);
	}

	#masthead div.left-0:has(> #primary-navbar) .menu-item {
		opacity: 1;
		transform: none;
	}

	#masthead div.left-0:has(> #primary-navbar) .menu-item:nth-child(2) { transition-delay: 40ms; }
	#masthead div.left-0:has(> #primary-navbar) .menu-item:nth-child(3) { transition-delay: 80ms; }
	#masthead div.left-0:has(> #primary-navbar) .menu-item:nth-child(4) { transition-delay: 120ms; }
	#masthead div.left-0:has(> #primary-navbar) .menu-item:nth-child(5) { transition-delay: 160ms; }
	#masthead div.left-0:has(> #primary-navbar) .menu-item:nth-child(6) { transition-delay: 200ms; }
	#masthead div.left-0:has(> #primary-navbar) .menu-item:nth-child(7) { transition-delay: 240ms; }
	#masthead div.left-0:has(> #primary-navbar) .menu-item:nth-child(8) { transition-delay: 280ms; }
	#masthead div.left-0:has(> #primary-navbar) .menu-item:nth-child(n+9) { transition-delay: 320ms; }
}

@media (max-width: 1278px) and (prefers-reduced-motion: reduce) {
	#primary-navbar .menu-item {
		opacity: 1;
	}
}

/* ---------- Hero / page banner ---------- */

.slider-title {
	font-size: clamp(1.3rem, 4.2vw + 0.15rem, 4.25rem);
	letter-spacing: -0.015em;
	line-height: 1.04;
	text-shadow: 0 2px 24px rgba(7, 18, 47, 0.25);
}

.slider-text {
	font-size: clamp(1rem, 1.45vw, 1.6rem);
	margin-top: 0.75rem;
	opacity: 0.95;
}

.contact-now {
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

@media (min-width: 992px) {
	.contact-now {
		padding-top: 1.5rem !important;
		padding-bottom: 1.5rem !important;
	}

	.contact-now .font-bold {
		font-size: 1.5rem;
		margin-bottom: 1rem;
	}

	.contact-now .btn {
		font-size: 1.125rem;
	}

	.contact-now .btn span {
		padding-top: 0.9rem;
		padding-bottom: 0.9rem;
	}
}

.page-banner [class*="xl:text-s36"].rounded-2xl {
	box-shadow: 0 30px 60px -28px rgba(0, 47, 118, 0.35) !important;
}

@media (min-width: 1279px) {
	.page-banner [class*="xl:text-s36"].rounded-2xl {
		font-size: 1.875rem;
		padding-top: 2.75rem;
		padding-bottom: 2.75rem;
	}
}

/* The round logo badge under the banner must stay above the (animated) banner image. */
.page-banner.without-sign:before,
.alignfull.wp-block-image:before {
	z-index: 3;
}

/* ---------- Type scale ---------- */

/* Tailwind's text-sNN utilities carry line-height 1.5; headings need a tighter, display-like leading. */
h1, h2, h3,
header.heading-before h1 {
	line-height: 1.12;
}

@media (min-width: 1279px) {
	h1 {
		font-size: 3.5rem;
	}

	h2 {
		font-size: 2.5rem;
	}

	h3 {
		font-size: 1.75rem;
	}
}

.heading-before,
h1.heading-before,
h2.heading-before,
h3.heading-before {
	font-size: clamp(1.75rem, 1rem + 2.6vw, 3.25rem);
	line-height: 1.08;
	letter-spacing: -0.01em;
}

/* The brand square scales with the heading instead of fixed pixel steps. */
.heading-before:before,
.heading-before.reveal-heading:before {
	width: 0.95em;
	height: 0.42em;
	left: -0.32em;
	top: 0.12em;
	border-radius: 2px;
}

/* Cover titles (CONTACTEZ-NOUS, UN PEU D'HISTOIRE...) carry !important Tailwind sizes. */
@media (min-width: 1279px) {
	.wp-block-cover [class*="xl:!text-s70"] {
		font-size: 3.5rem !important;
		letter-spacing: -0.01em;
	}

	.wp-block-cover [class*="xl:!text-s36"] {
		font-size: 1.75rem !important;
	}
}

@media (min-width: 768px) and (max-width: 1278px) {
	.wp-block-cover [class*="md:!text-s44"] {
		font-size: 2.5rem !important;
	}
}

/* ---------- Section rhythm ---------- */

@media (min-width: 992px) {
	.overflow-block {
		padding: 6.5rem 4.5rem !important;
	}
}

@media (min-width: 1279px) {
	#footer > div[class*="xl:pt-40"] {
		padding-top: 7rem;
	}
}

.wp-block-cover {
	overflow: hidden;
}

/* Blog posts: one centred reading column (title, meta, image, text, blocks) at a comfortable measure.
   The text used to be capped but left-aligned, so it sat off-centre under the centred image. */
.single-post #main article > *,
.single-post .page-content > *:not(.alignfull):not(.wp-block-spacer) {
	max-width: 50rem;
	margin-left: auto;
	margin-right: auto;
}

/* Content images share the 1rem corner radius of the cards; full-bleed banners and covers stay square. */
#main .wp-block-image:not(.alignfull):not(.is-style-rounded) img,
#main .wp-block-gallery .wp-block-image img,
#main .page-content img.wp-post-image,
#main .wp-block-media-text__media img {
	border-radius: 1rem;
}

/* ---------- Cards & tiles ---------- */

.wp-block-latest-posts.wp-block-latest-posts__list li {
	border-color: var(--azur-line);
	border-radius: 1rem;
	background: #fff;
	transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
}

.wp-block-latest-posts.wp-block-latest-posts__list li:hover,
.blog-item:hover {
	transform: translateY(-4px);
	box-shadow: var(--azur-shadow);
}

.wp-block-latest-posts__featured-image {
	overflow: hidden;
	border-color: var(--azur-line);
}

.wp-block-latest-posts__featured-image img {
	/* Sharper source images, same wide crop the cards had with the old 285x150 thumbnails. */
	aspect-ratio: 285 / 150;
	object-fit: cover;
	max-height: none !important;
	transition: transform 1.2s var(--ease-out-expo);
}

.wp-block-latest-posts.wp-block-latest-posts__list li:hover .wp-block-latest-posts__featured-image img {
	transform: scale(1.04);
}

.wp-block-latest-posts__post-title {
	font-size: 112%;
	font-weight: 600;
	color: var(--azur-ink);
}

.wp-block-latest-posts__post-title:hover {
	color: var(--azur-deep);
}

.simple-tile .simple-tile-border {
	border-color: var(--azur-line);
	border-top-color: var(--azur-blue);
	border-top-width: 3px;
	border-radius: 0 0 1rem 1rem;
	transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
}

.simple-tile:hover .simple-tile-border {
	transform: translateY(-4px);
	box-shadow: var(--azur-shadow);
}

.simple-tile > .rounded-full {
	transition: transform 0.6s var(--ease-out-expo);
}

.simple-tile:hover > .rounded-full {
	transform: translateY(-6px);
}

.wp-block-latest-posts__post-excerpt a,
.simple-tile a {
	transition: background-color 0.35s var(--ease-out-quart), color 0.35s var(--ease-out-quart);
}

/* "Lire la suite" pills: darker text on a tinted pill for readable contrast (≥ 7:1). */
.simple-tile a.rounded-full,
.wp-block-latest-posts__post-excerpt a {
	background-color: #e1edf8;
	color: var(--azur-deep);
	font-weight: 500;
}

.simple-tile a.rounded-full:hover,
.wp-block-latest-posts__post-excerpt a:hover {
	background-color: var(--azur-deep);
	color: #fff;
}

/* ---------- "En cas de décès": 24/7 phone line ---------- */

.death-hotline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	margin: 2rem 0 0 !important;
	padding: 1.25rem 1.5rem;
	border-radius: 1rem;
	background: var(--azur-mist);
}

.death-hotline-label {
	font-size: 1.05rem;
	color: var(--azur-text);
}

.death-hotline a {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 48px;
	padding: 0.6rem 1.4rem;
	border-radius: 999px;
	background: var(--azur-deep);
	color: #fff !important;
	font-weight: 600;
	font-size: 1.125rem;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color 0.35s var(--ease-out-quart);
}

.death-hotline a::before {
	content: '';
	width: 1.1rem;
	height: 1.1rem;
	background: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.death-hotline a:hover {
	background: var(--azur-ink);
}

/* ---------- Home trust card ---------- */

.overflow-block:has(.trust-points) {
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 1.5rem;
}

.trust-points {
	list-style: none;
	margin: 0 !important;
	padding: 0;
	display: grid;
	gap: 0.85rem;
	font-size: 1.05rem;
	line-height: 1.5;
	color: var(--azur-text);
}

.trust-points li {
	position: relative;
	padding-left: 2rem;
	margin: 0;
}

.trust-points li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.2rem;
	height: 1.2rem;
	border-radius: 50%;
	background: var(--azur-mist) url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23174875' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
}

.trust-cta {
	margin: 0 !important;
}

.trust-cta a {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 48px;
	padding: 0.75rem 1.75rem;
	border-radius: 999px;
	background: var(--azur-deep);
	color: #fff !important;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	transition: background-color 0.35s var(--ease-out-quart);
}

.trust-cta a::after {
	content: '→';
	transition: transform 0.45s var(--ease-out-expo);
}

.trust-cta a:hover {
	background: var(--azur-ink);
}

.trust-cta a:hover::after {
	transform: translateX(4px);
}

@media (min-width: 992px) {
	.overflow-block:has(.trust-points) {
		padding: 4.5rem 4rem !important;
	}
}

/* ---------- Quote form (Mon devis) ---------- */

.devis-step-hidden {
	display: none !important;
}

.devis-progress {
	margin-bottom: 2rem;
	scroll-margin-top: 7rem;
}

.devis-progress-label {
	margin: 0 0 0.6rem;
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--azur-deep);
}

.devis-progress-bar {
	height: 4px;
	border-radius: 4px;
	background: #dbe7f3;
	overflow: hidden;
}

.devis-progress-bar span {
	display: block;
	height: 100%;
	width: 100%;
	border-radius: inherit;
	background: var(--azur-deep);
	transform: scaleX(var(--devis-progress, 0.5));
	transform-origin: left center;
	transition: transform 0.7s var(--ease-out-expo);
}

.devis-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin: 0.5rem 0 1rem;
}

.devis-next,
.devis-back {
	cursor: pointer;
	font: inherit;
	transition: background-color 0.35s var(--ease-out-quart), color 0.35s var(--ease-out-quart);
}

.devis-next {
	min-height: 48px;
	padding: 0.75rem 2rem;
	border-radius: 999px;
	background: var(--azur-deep);
	color: #fff;
	font-weight: 600;
}

.devis-next:hover {
	background: var(--azur-ink);
}

.devis-back {
	min-height: 44px;
	padding: 0.5rem 0;
	background: none;
	color: var(--azur-deep);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.devis-missing-note {
	width: 100%;
	margin: 0;
	color: #b42318;
	font-size: 0.95rem;
}

.devis-missing > label {
	color: #b42318;
}

.devis-missing {
	border-radius: 0.75rem;
	box-shadow: inset 3px 0 0 #b42318;
	padding-top: 0.5rem;
	padding-bottom: 0.25rem;
}

.devis-reassure {
	margin: 1.5rem 0 1rem;
	padding: 1rem 1.25rem;
	border-radius: 0.875rem;
	background: var(--azur-mist);
	color: var(--azur-text);
	font-size: 0.95rem;
	line-height: 1.6;
}

.devis-reassure a {
	color: var(--azur-deep);
	font-weight: 600;
	white-space: nowrap;
}

/* Larger, easier answer targets in the questionnaire. */
.wpcf7-form .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 44px;
	cursor: pointer;
}

.wpcf7-form .wpcf7-list-item input[type="radio"],
.wpcf7-form .wpcf7-list-item input[type="checkbox"] {
	width: 1.25rem;
	height: 1.25rem;
	flex: none;
	accent-color: var(--azur-deep);
	color: var(--azur-deep);
}

/* ---------- FAQ accordion ---------- */

.faq-item {
	transition: border-color 0.4s var(--ease-out-quart), box-shadow 0.6s var(--ease-out-expo);
}

.faq-item:hover,
.faq-item:has(.faq-answer.is-open) {
	border-color: rgba(88, 149, 206, 0.55);
}

.faq-item:has(.faq-answer.is-open) {
	box-shadow: var(--azur-shadow-soft);
}

.faq-question {
	cursor: pointer;
	transition: color 0.3s var(--ease-out-quart);
}

.faq-question:hover,
.faq-item:has(.faq-answer.is-open) .faq-question {
	color: var(--azur-deep);
}

.faq-question:focus-visible {
	outline-offset: 6px;
}

.faq-answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.6s var(--ease-out-expo);
}

.faq-answer.is-open {
	grid-template-rows: 1fr;
}

.faq-answer-inner {
	min-height: 0;
	overflow: hidden;
}

.faq-answer-inner > div {
	opacity: 0;
	transform: translate3d(0, -6px, 0);
	transition: opacity 0.3s var(--ease-out-quart), transform 0.6s var(--ease-out-expo);
}

.faq-answer.is-open .faq-answer-inner > div {
	opacity: 1;
	transform: none;
	transition-delay: 0.08s;
}

.faq-toggle {
	transition: transform 0.6s var(--ease-out-expo), background-color 0.35s var(--ease-out-quart) !important;
}

@media (prefers-reduced-motion: reduce) {
	.faq-answer,
	.faq-answer-inner > div,
	.faq-toggle {
		transition: none !important;
	}
}

/* ---------- Quotes ---------- */

/* A hairline instead of the old 10px bar: the italic voice and the guillemets carry the quote. */
.wp-block-quote {
	border-left: 1px solid var(--azur-blue) !important;
	padding-left: 1.5rem !important;
}

.wp-block-quote p {
	font-style: italic;
	color: var(--azur-ink);
}

.wp-block-quote .quote-cite {
	display: block;
	margin-top: 0.75rem;
	font-style: normal;
	font-size: 0.85em;
	color: #44506a;
}

/* Pill buttons: smoother, slightly calmer hover. The outline ring settles with a transform, not by animating inset. */
.btn:before {
	transition: background-color 0.45s var(--ease-out-expo);
}

.btn:after,
.wpcf7-submit:after {
	inset: 0;
	transform: translateY(0.25rem);
	transition: transform 0.45s var(--ease-out-expo);
}

.btn:hover:after,
.wpcf7-submit:hover:after {
	transform: none;
}

.btn:hover:before {
	background-color: var(--azur-blue-strong);
}

/* ---------- Partners strip ---------- */

.partners-slider img {
	transition: transform 0.6s var(--ease-out-expo), filter 0.6s var(--ease-out-expo);
	filter: saturate(0.85);
}

.partners-slider a:hover img {
	transform: scale(1.03);
	filter: none;
}

/* ---------- Footer map ---------- */

#map-canvas {
	box-shadow: 0 40px 80px -30px rgba(7, 18, 47, 0.55) !important;
	border-radius: 1.25rem;
}

#map-canvas .gm-style-iw-c {
	border-radius: 0.875rem !important;
	padding: 0.9rem 1.1rem !important;
	box-shadow: var(--azur-shadow) !important;
}

#map-canvas .gm-style-iw-d {
	overflow: auto !important;
}

#map-canvas .infowindow {
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--azur-ink) !important;
}

#map-canvas .infowindow p {
	margin: 0 0 0.25rem;
}

#map-canvas .infowindow a {
	color: var(--azur-deep);
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
	/* Hero: one composed entrance on load. */
	.page-banner picture img {
		animation: azur-settle 1.8s var(--ease-out-expo) both;
	}

	.page-banner .slider-title {
		animation: azur-rise 1.1s var(--ease-out-expo) 0.15s both;
	}

	.page-banner .slider-text {
		animation: azur-rise 1.1s var(--ease-out-expo) 0.3s both;
	}

	.page-banner .contact-now {
		animation: azur-slide 1.1s var(--ease-out-expo) 0.45s both;
	}

	.page-banner > .absolute.bottom-0 > .container > .rounded-2xl {
		animation: azur-rise 1.1s var(--ease-out-expo) 0.35s both;
	}

	/* Scroll reveals (classes added by refresh.js; content stays visible without JS). */
	.has-reveal .reveal {
		opacity: 0;
		transform: translate3d(0, 20px, 0);
		transition: opacity 0.9s var(--ease-out-quart), transform 1.1s var(--ease-out-expo);
		transition-delay: calc(var(--reveal-i, 0) * 80ms);
	}

	.has-reveal .reveal.is-in {
		opacity: 1;
		transform: none;
	}

	/* Signature: the blue brand square draws in beside each section heading. */
	.has-reveal .reveal-heading:before {
		transform: scaleX(0);
		transform-origin: left center;
		transition: transform 1s var(--ease-out-expo) 0.1s;
	}

	.has-reveal .reveal-heading.is-in:before {
		transform: scaleX(1);
	}
}

@keyframes azur-settle {
	from {
		transform: scale(1.05);
	}
	to {
		transform: scale(1);
	}
}

@keyframes azur-rise {
	from {
		opacity: 0;
		transform: translate3d(0, 18px, 0);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes azur-slide {
	from {
		opacity: 0;
		transform: translate3d(-28px, 0, 0);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Price page: formula cards with equal height; the formula the page names as most chosen is marked. */
.wp-block-columns:has(> .formula-card) {
	align-items: stretch !important;
	gap: 1.5rem;
}

.formula-card {
	position: relative;
	display: flex;
	align-self: stretch !important;
	border-radius: 1rem;
	overflow: hidden;
	border: 1px solid var(--azur-line);
}

.formula-card > .wp-block-cover {
	width: 100%;
	min-height: 100%;
	align-items: flex-start;
	padding: 2.5rem 2rem;
}

.formula-recommended {
	border: 2px solid var(--azur-blue);
	box-shadow: var(--azur-shadow);
}

.formula-recommended::before {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 2;
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
	background: var(--azur-deep);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

:lang(fr) .formula-recommended::before {
	content: 'La plus choisie';
}

:lang(en) .formula-recommended::before {
	content: 'Most chosen';
}

.formula-card .trust-cta {
	margin-top: 1.5rem !important;
}

/* Partners carousel track must never widen the page on phones. */
#footer .border-y {
	overflow: hidden;
}

/* No sideways scroll on phones: the banner image settle animation (scale 1.05) and 1px rounding of
   full-bleed blocks widened the page. `clip` cuts the overflow without breaking the sticky header. */
body,
.page-banner {
	overflow-x: clip;
}

/* Desktop header: persistent primary action next to the menu (from 1600px, where the 10-item menu
   still fits beside it; narrower desktops keep the side tab with the same label). */
.header-cta {
	display: none;
}

@media (min-width: 1279px) and (max-width: 1439px) {
	#primary-navbar .menu-item {
		font-size: 0.9rem;
	}

	#primary-navbar .menu-item > a {
		padding-left: 0.45rem;
		padding-right: 0.45rem;
	}

	#primary-navbar .menu-item > a::after {
		left: 0.45rem;
		right: 0.45rem;
	}
}

@media (min-width: 1440px) and (max-width: 1599px) {
	#primary-navbar .menu-item > a {
		padding-left: 0.6rem;
		padding-right: 0.6rem;
	}

	#primary-navbar .menu-item > a::after {
		left: 0.6rem;
		right: 0.6rem;
	}
}

@media (min-width: 1600px) {
	#masthead div:has(> #primary-navbar) {
		width: auto;
		flex: 1 1 auto;
		min-width: 0;
	}

	#primary-navbar .menu-item {
		font-size: 0.95rem;
	}

	#primary-navbar .menu-item > a {
		padding-left: 0.6rem;
		padding-right: 0.6rem;
	}

	#primary-navbar .menu-item > a::after {
		left: 0.6rem;
		right: 0.6rem;
	}

	.header-cta {
		display: inline-flex;
		align-items: center;
		flex: none;
		min-height: 44px;
		margin-left: 1rem;
		padding: 0.6rem 1.25rem;
		border-radius: 999px;
		background: var(--azur-action);
		color: #fff !important;
		font-size: 0.9rem;
		font-weight: 600;
		white-space: nowrap;
		transition: background-color 0.35s var(--ease-out-quart);
	}

	.header-cta:hover {
		background: var(--azur-deep);
	}
}

/* Home: "Vos fonds sont protégés" — the strongest trust argument, surfaced after the 4-step journey. */
.funds-safe {
	margin: 4rem 0 3rem;
	padding: 2.5rem 2rem;
	border-radius: 1.25rem;
	background: var(--azur-mist);
}

.funds-safe .heading-before {
	margin-bottom: 1.75rem !important;
}

.funds-points {
	list-style: none;
	margin: 0 0 1.5rem !important;
	padding: 0;
	display: grid;
	gap: 1rem;
}

.funds-points li {
	position: relative;
	margin: 0 !important;
	padding-left: 2.25rem;
	font-size: 1.1rem;
	line-height: 1.55;
	color: var(--azur-text);
}

/* Shield mark drawn in the brand blue. */
.funds-points li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 1.4rem;
	height: 1.4rem;
	background: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23174875' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.3-7 10-4-1.7-7-5.5-7-10V6l7-3z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (min-width: 992px) {
	.funds-safe {
		padding: 3.5rem 4rem;
	}

	.funds-points {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 2rem;
	}
}

/* Shared "next" link: an arrow link in the deep blue. */
.next-link {
	margin: 0 !important;
}

.next-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	color: var(--azur-deep) !important;
	font-weight: 600;
	text-decoration: none;
}

.next-link a::after {
	content: '→';
	transition: transform 0.45s var(--ease-out-expo);
}

.next-link a:hover::after {
	transform: translateX(4px);
}

/* "Next step" at the end of journey pages, posts and FAQ. */
.next-step {
	margin: 3rem 0 0 !important;
}

p.next-step a {
	display: flex;
	align-items: baseline;
	justify-content: flex-start;
	gap: 0.5rem;
	padding: 1.25rem 1.5rem;
	border-radius: 1rem;
	border: 1px solid var(--azur-line);
	background: #fff;
	color: var(--azur-ink) !important;
	font-weight: 600;
	font-size: 1.15rem;
	text-decoration: none;
	transition: border-color 0.4s var(--ease-out-quart), box-shadow 0.6s var(--ease-out-expo);
}

p.next-step a::after {
	content: '→';
	margin-left: auto;
	color: var(--azur-deep);
	transition: transform 0.45s var(--ease-out-expo);
}

p.next-step a:hover {
	border-color: var(--azur-blue);
	box-shadow: var(--azur-shadow-soft);
}

p.next-step a:hover::after {
	transform: translateX(4px);
}

.next-step-label {
	color: var(--azur-deep);
	font-weight: 500;
}

.next-step-quote {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	padding: 1.5rem 1.75rem;
	border-radius: 1rem;
	background: var(--azur-mist);
}

.next-step-quote p {
	margin: 0 !important;
	font-weight: 600;
	color: var(--azur-ink);
}

/* Section headings promoted from H3 to H2 for a correct outline keep their former H3 size. */
#main h2.wp-block-heading.is-style-subsection {
	font-size: 1.875rem;
	margin-top: 3rem;
	margin-bottom: 1.25rem;
}

/* ---------- Touch and small screens ---------- */

/* Invisible hit-area extensions: the controls keep their look but reach ~44px for fingers. */
body > .bg-light-primary.text-white a[href^="tel:"],
#footer a[href^="mailto:"],
#footer a[href^="tel:"],
.simple-tile a.rounded-full,
.wp-block-latest-posts__post-excerpt a,
.tns-nav button {
	position: relative;
}

body > .bg-light-primary.text-white a[href^="tel:"]::after,
#footer a[href^="mailto:"]::after,
#footer a[href^="tel:"]::after {
	content: '';
	position: absolute;
	inset: -12px 0;
}

.simple-tile a.rounded-full::after,
.wp-block-latest-posts__post-excerpt a::after,
.tns-outer [data-action]::after {
	content: '';
	position: absolute;
	inset: -6px -4px;
}

.tns-nav button::after {
	content: '';
	position: absolute;
	inset: -14px -8px;
}

@media (max-width: 1023px) {
	/* The wide slides shrank to a 160px strip on phones (290px on tablets); give the hero real presence and crop to the subject. */
	.main-slider-item img {
		height: clamp(22rem, 60vw, 30rem);
		object-fit: cover;
		object-position: 68% center;
	}

	.page-banner .tns-outer [data-action="stop"],
	.page-banner .tns-outer [data-action="start"] {
		top: 0.75rem;
		right: 0.75rem;
	}

	/* Leave the top strip to the pause control so it never sits on the title. */
	.main-slider-item .container {
		padding-top: 3.5rem;
	}
}

/* ---------- Polish ---------- */

/* Section headings with running text right after them were flush against it; give them the same 1.75rem as the headings that already had a gap. */
#main .wp-block-heading.heading-before:not(:last-child) {
	margin-bottom: 1.75rem;
}

/* Big buttons on phones: equal full-width pills on one line instead of two widths with a wrapped label. */
@media (max-width: 639px) {
	.wp-block-column > .text-center > a.btn {
		display: flex;
		justify-content: center;
		width: 100%;
	}

	.wp-block-column > .text-center > a.btn span {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}
}

/* Embedded maps and videos share the 1rem corner radius of content images, cards and the footer map. */
#main iframe[src*="google.com/maps"],
#main .wp-block-embed iframe,
#main iframe[src*="youtube"],
#main .wp-block-video video {
	display: block;
	border-radius: 1rem;
	overflow: hidden;
}

/* ---------- Footer contact band ---------- */

/* One band: heading, details and the next step on the left, the partner map on the right. */
.footer-contact {
	position: relative;
	padding: 4rem 0 4.5rem;
	background-size: cover;
	background-position: center;
}

/* Darken the photo behind the text column so the details read at a glance. */
.footer-contact::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(7, 18, 47, 0.62) 0%, rgba(7, 18, 47, 0.38) 45%, rgba(7, 18, 47, 0.12) 100%);
	pointer-events: none;
}

.footer-contact-grid {
	position: relative;
	display: grid;
	gap: 3rem;
}

@media (min-width: 992px) {
	.footer-contact {
		padding: 5.5rem 0 6rem;
	}

	.footer-contact-grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 4.5rem;
	}
}

.footer-contact h2.heading-before {
	color: #fff;
	margin-bottom: 1rem;
}

.footer-contact-lead {
	margin: 0 0 2.5rem;
	font-size: clamp(1.125rem, 0.95rem + 0.6vw, 1.375rem);
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
}

#footer .footer-label {
	display: block;
	margin: 0 0 0.3rem;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
	color: #8ec1ec;
}

.footer-contact-list {
	display: grid;
	gap: 1.5rem;
	margin: 0 0 2.5rem;
	padding: 0;
	list-style: none;
}

.footer-contact-list li {
	display: flex;
	align-items: center;
	gap: 1.125rem;
}

.footer-contact-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
}

.footer-contact-icon svg {
	width: 1.375rem;
	height: auto;
}

.footer-contact-value {
	display: inline-block;
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.4;
	color: #fff;
}

@media (min-width: 1279px) {
	.footer-contact-value {
		font-size: 1.25rem;
	}
}

a.footer-contact-value {
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.3);
	text-underline-offset: 0.3em;
	transition: text-decoration-color 0.3s var(--ease-out-quart);
}

a.footer-contact-value:hover {
	text-decoration-color: currentColor;
}

.footer-contact-cta {
	display: inline-flex;
	margin-bottom: 2.75rem;
	font-size: 1.0625rem;
}

.footer-contact-cta span {
	padding: 0.95rem 2rem;
}

.footer-social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
}

#footer .footer-social .footer-label {
	margin: 0;
}

.footer-social-links {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.footer-contact-map {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-width: 0;
}

.footer-map-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
}

#footer .footer-map-head .footer-label {
	margin: 0;
}

.footer-map-head a {
	font-size: 0.9375rem;
	font-weight: 500;
	color: #fff;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.35);
	text-underline-offset: 0.3em;
}

.footer-map-head a:hover {
	text-decoration-color: currentColor;
}

.footer-contact #map-canvas {
	flex: 1;
	width: 100%;
	min-height: 22rem;
	overflow: hidden;
}

@media (min-width: 992px) {
	.footer-contact #map-canvas {
		min-height: 34rem;
	}
}

/* ---------- Home hero: first screen ---------- */

/*
 * On laptop screens the wide slides (41.7% of the width) plus the 130px header pushed the intro card
 * below the fold. Cap the slide so header, hero and the whole card fit one screen; wide or tall
 * screens keep the full image up to 56rem, so very wide windows (or zoomed out) don't get a wall of photo.
 */
@media (min-width: 1024px) {
	.main-slider-item img {
		height: min(41.7vw, max(26rem, calc(100svh - 17.5rem)), 56rem);
		object-fit: cover;
		object-position: 60% center;
	}
}

@media (min-width: 1279px) {
	/* The intro card hangs two thirds below the hero; a slightly tighter card keeps it on screen. */
	.page-banner > .absolute.bottom-0 .container > div {
		padding-top: 2.5rem;
		padding-bottom: 2.5rem;
	}
}

/* ---------- Full-width blocks ---------- */

/* Covers and full-width columns break out of the content column in CSS, so they stay edge to edge at any zoom or window size. */
#main .alignfull {
	position: relative;
	left: auto !important;
	box-sizing: border-box;
	width: 100vw !important;
	max-width: 100vw;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}

/* On windows wider than the content column the hero's quote pill started at the screen edge while the
   title sat in the column; keep the pill's button aligned with the title. */
@media (min-width: 1475px) {
	.page-banner .contact-now {
		padding-left: calc((100vw - 1475px) / 2);
	}
}

/* Post titles live in the 50rem reading column: a calmer size keeps long titles to two or three lines. */
.single-post #main article > header.heading-before h1 {
	font-size: clamp(1.75rem, 1.1rem + 1.6vw, 2.5rem);
	line-height: 1.15;
	text-wrap: balance;
}

/* ---------- FAQ (Yoast FAQ block rendered as <details>) ---------- */

/* Lets the answer animate open from 0 to its natural height where the browser supports it. */
:root {
	interpolate-size: allow-keywords;
}

.azur-faq {
	display: grid;
	gap: 1rem;
	margin: 0 0 1rem;
}

.azur-faq-item {
	border: 1px solid var(--azur-line);
	border-radius: 1rem;
	background: #fff;
	scroll-margin-top: 7rem;
	transition: border-color 0.4s var(--ease-out-quart), box-shadow 0.6s var(--ease-out-expo);
}

.azur-faq-item:hover,
.azur-faq-item[open] {
	border-color: rgba(88, 149, 206, 0.55);
}

.azur-faq-item[open] {
	box-shadow: var(--azur-shadow-soft);
}

.azur-faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	padding: 1.25rem 1.25rem 1.25rem 1.5rem;
	list-style: none;
	cursor: pointer;
	border-radius: 1rem;
}

.azur-faq-question::-webkit-details-marker {
	display: none;
}

.azur-faq-question:focus-visible {
	outline-offset: -2px;
}

#main .azur-faq-title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
	text-transform: none;
	color: var(--azur-ink);
	text-wrap: pretty;
	transition: color 0.3s var(--ease-out-quart);
}

.azur-faq-question:hover .azur-faq-title,
.azur-faq-item[open] .azur-faq-title {
	color: var(--azur-deep);
}

.azur-faq-toggle {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	background: var(--azur-mist);
	color: var(--azur-blue);
	transition: transform 0.6s var(--ease-out-expo), background-color 0.35s var(--ease-out-quart), color 0.35s var(--ease-out-quart);
}

.azur-faq-item[open] .azur-faq-toggle {
	transform: rotate(180deg);
	background: var(--azur-blue);
	color: #fff;
}

.azur-faq-item::details-content {
	block-size: 0;
	overflow: hidden;
	transition: block-size 0.55s var(--ease-out-expo), content-visibility 0.55s allow-discrete;
}

.azur-faq-item[open]::details-content {
	block-size: auto;
}

.azur-faq-answer {
	padding: 0 4.5rem 1.5rem 1.5rem;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--azur-text);
}

.azur-faq-answer p {
	margin: 0;
	max-width: 65ch;
}

.azur-faq-item[open] .azur-faq-answer {
	animation: azur-faq-in 0.5s var(--ease-out-expo) both;
}

@keyframes azur-faq-in {
	from {
		opacity: 0;
		transform: translate3d(0, -6px, 0);
	}
}

@media (min-width: 768px) {
	.azur-faq {
		gap: 1.25rem;
	}

	.azur-faq-question {
		padding: 1.5rem 1.75rem 1.5rem 2rem;
	}

	#main .azur-faq-title {
		font-size: 1.25rem;
	}

	.azur-faq-answer {
		padding: 0 5.5rem 1.75rem 2rem;
		font-size: 1.0625rem;
	}
}

@media (max-width: 639px) {
	.azur-faq-answer {
		padding-right: 1.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.azur-faq-item,
	.azur-faq-item::details-content,
	.azur-faq-toggle {
		transition: none;
	}

	.azur-faq-item[open] .azur-faq-answer {
		animation: none;
	}
}
