/**
 * État civil — aligné homepage / services
 * Tokens: #00aeef · #044cd0 · #252525
 */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Sora:wght@400;500;600;700&display=swap");

.bt-ec {
	--bt-cyan: #00aeef;
	--bt-blue: #044cd0;
	--bt-ink: #151b24;
	--bt-muted: #5a6570;
	--bt-line: rgba(4, 76, 208, 0.14);
	--bt-soft: #eef6fb;
	--bt-display: "Fraunces", "Times New Roman", serif;
	--bt-sans: "Sora", "Segoe UI", sans-serif;
	font-family: var(--bt-sans);
	color: var(--bt-ink);
	margin: 0 0 3.5rem;
}

body.view-article.layout-etatcivil .article-header,
body.view-article.layout-etatcivil .article-ratings-social-share,
body.view-article.layout-etatcivil .article-can-edit,
body.view-article.layout-etatcivil .sp-page-title,
body.com-content.view-article.layout-etatcivil .page-header,
body.view-article.layout-piecesidentite .article-header,
body.view-article.layout-piecesidentite .article-ratings-social-share,
body.view-article.layout-piecesidentite .article-can-edit,
body.view-article.layout-piecesidentite .sp-page-title,
body.com-content.view-article.layout-piecesidentite .page-header,
body.view-article.layout-elections .article-header,
body.view-article.layout-elections .article-ratings-social-share,
body.view-article.layout-elections .article-can-edit,
body.view-article.layout-elections .sp-page-title,
body.com-content.view-article.layout-elections .page-header,
body.view-article.layout-stationnement .article-header,
body.view-article.layout-stationnement .article-ratings-social-share,
body.view-article.layout-stationnement .article-can-edit,
body.view-article.layout-stationnement .sp-page-title,
body.com-content.view-article.layout-stationnement .page-header,
body.view-article.layout-manifestation .article-header,
body.view-article.layout-manifestation .article-ratings-social-share,
body.view-article.layout-manifestation .article-can-edit,
body.view-article.layout-manifestation .sp-page-title,
body.com-content.view-article.layout-manifestation .page-header {
	display: none !important;
}

/* Hide residual SPPB / default article chrome on stationnement layout */
body.view-article.layout-stationnement .sp-page-builder,
body.view-article.layout-stationnement .entry-header,
body.view-article.layout-stationnement .article-details > .article-info {
	display: none !important;
}

.bt-ec__bullets--dense {
	columns: 1;
	max-width: 42rem;
}

.bt-ec__stack {
	display: grid;
	gap: 1.25rem;
	margin-top: 1.5rem;
}

.bt-ec__howto--on-soft {
	margin-top: 1.5rem;
	background: #fff;
}

.bt-ec__howto--spaced {
	margin-top: 1.5rem;
}

.bt-ec__prose--spaced {
	margin-top: 1rem;
}

.bt-ec__title--wide {
	max-width: 22ch;
}

.bt-ec__section-lead a,
.bt-ec__prose a,
.bt-ec__howto a,
.bt-ec__notice a {
	color: var(--bt-blue);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bt-ec__section-lead a:hover,
.bt-ec__prose a:hover,
.bt-ec__howto a:hover,
.bt-ec__notice a:hover {
	color: var(--bt-cyan);
}

.bt-ec__section-title--light + .bt-ec__section-lead a,
.bt-ec__band a {
	color: inherit;
}

/* —— Stationnement flyers / guide / news —— */
.bt-ec__flyers {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.bt-ec__flyer-link {
	display: block;
	overflow: hidden;
	border: 1px solid var(--bt-line);
	border-radius: 2px;
	background: #fff;
	aspect-ratio: 3 / 4;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bt-ec__flyer-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(4, 76, 208, 0.12);
}

.bt-ec__flyer-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

.bt-ec__guide-card {
	display: grid;
	grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
	gap: 1.25rem;
	align-items: center;
	padding: 1rem;
	border: 1px solid var(--bt-line);
	border-radius: 2px;
	text-decoration: none !important;
	color: inherit;
	background: #fff;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.bt-ec__guide-card:hover {
	border-color: var(--bt-cyan);
	transform: translateY(-1px);
}

.bt-ec__guide-img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	display: block;
	border-radius: 2px;
}

.bt-ec__guide-caption {
	font-family: var(--bt-sans);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--bt-blue);
	letter-spacing: -0.015em;
	line-height: 1.35;
}

.bt-ec__news {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.bt-ec__news-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none !important;
	color: inherit;
	background: #fff;
	border: 1px solid var(--bt-line);
	border-radius: 2px;
	overflow: hidden;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.bt-ec__news-link:hover {
	transform: translateY(-2px);
	border-color: rgba(0, 174, 239, 0.45);
}

.bt-ec__news-media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(135deg, #033a9e, #00aeef);
}

.bt-ec__news-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bt-ec__news-body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 0.95rem 1rem 1.1rem;
}

.bt-ec__news-date {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bt-cyan);
}

.bt-ec__news-title {
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--bt-blue);
}

.bt-ec__howto a {
	color: var(--bt-blue);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bt-ec__howto a:hover {
	color: var(--bt-cyan);
}

.bt-ec__notice a {
	color: inherit;
	font-weight: 700;
}

@media (max-width: 767px) {
	.bt-ec__flyers,
	.bt-ec__news {
		grid-template-columns: 1fr;
	}

	.bt-ec__guide-card {
		grid-template-columns: 1fr;
	}

	.bt-ec__guide-img {
		max-width: 14rem;
	}
}

/* —— Hero —— */
.bt-ec__hero {
	position: relative;
	isolation: isolate;
	display: grid;
	align-items: end;
	min-height: clamp(16rem, 42vh, 24rem);
	width: 100%;
	margin: 0 0 2.5rem;
	overflow: hidden;
	background: linear-gradient(135deg, #033a9e, #00aeef 70%);
	animation: bt-ec-up 0.75s ease both;
}

.bt-ec__hero-media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.bt-ec__hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
	display: block;
	transform: scale(1.04);
	animation: bt-ec-ken 14s ease-out both;
}

.bt-ec__hero-veil {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(4, 40, 110, 0.2) 0%, rgba(4, 40, 110, 0.55) 50%, rgba(3, 22, 64, 0.82) 100%),
		linear-gradient(105deg, rgba(4, 76, 208, 0.35), transparent 55%);
	pointer-events: none;
}

.bt-ec__hero-copy {
	position: relative;
	z-index: 1;
	width: min(920px, calc(100% - 2.5rem));
	margin: 0 auto;
	padding: 2.35rem 0 2.2rem;
	color: #fff;
	animation: bt-ec-up 0.8s ease 0.1s both;
}

.bt-ec__eyebrow {
	margin: 0 0 0.45rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #9fe4ff;
}

.bt-ec__title {
	margin: 0 0 0.65rem;
	font-family: var(--bt-display);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: #fff;
	max-width: 14ch;
}

.bt-ec__lead {
	margin: 0;
	max-width: 36rem;
	font-size: 1.05rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.9);
}

/* —— Sections —— */
.bt-ec__section {
	max-width: 920px;
	margin: 0 auto 3rem;
	padding: 0 0.25rem;
}

.bt-ec__section--soft {
	padding: 2rem 1.25rem;
	background: var(--bt-soft);
	border-radius: 2px;
}

.bt-ec__section-title {
	margin: 0 0 0.55rem;
	font-family: var(--bt-display);
	font-size: clamp(1.65rem, 3vw, 2.25rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.15;
	color: var(--bt-ink);
}

.bt-ec__section-title--light {
	color: #fff;
}

.bt-ec__section-lead {
	margin: 0 0 1.75rem;
	max-width: 38rem;
	font-size: 1.02rem;
	line-height: 1.55;
	color: var(--bt-muted);
}

.bt-ec__section-lead--light {
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 0;
}

/* —— Forms list —— */
.bt-ec__list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: none;
}

.bt-ec__item {
	display: grid;
	grid-template-columns: 3rem minmax(0, 1fr);
	gap: 0.85rem 1rem;
	align-items: start;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--bt-line);
}

.bt-ec__item:first-child {
	border-top: 1px solid var(--bt-line);
}

.bt-ec__num {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--bt-cyan);
	padding-top: 0.35rem;
}

.bt-ec__item-title {
	margin: 0 0 0.85rem;
	font-family: var(--bt-sans);
	font-size: 1.08rem;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.35;
	color: var(--bt-blue);
}

.bt-ec__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 0.65rem;
}

.bt-ec__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.15rem;
	font-family: var(--bt-sans);
	font-size: 0.88rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-decoration: none !important;
	border-radius: 2px;
	border: 1px solid transparent;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.bt-ec__btn--primary {
	background: var(--bt-cyan);
	color: #fff !important;
	border-color: var(--bt-cyan);
}

.bt-ec__btn--primary:hover {
	background: var(--bt-blue);
	border-color: var(--bt-blue);
	color: #fff !important;
	transform: translateY(-1px);
}

.bt-ec__btn--ghost {
	background: transparent;
	color: var(--bt-blue) !important;
	border-color: rgba(4, 76, 208, 0.35);
}

.bt-ec__btn--ghost:hover {
	border-color: var(--bt-cyan);
	color: var(--bt-cyan) !important;
	background: rgba(0, 174, 239, 0.06);
}

.bt-ec__btn--light {
	background: #fff;
	color: var(--bt-blue) !important;
	border-color: #fff;
	white-space: nowrap;
}

.bt-ec__btn--light:hover {
	background: var(--bt-cyan);
	border-color: var(--bt-cyan);
	color: #fff !important;
}

/* —— Guide band —— */
.bt-ec__band {
	background:
		radial-gradient(ellipse 60% 50% at 0% 100%, rgba(0, 174, 239, 0.22), transparent 55%),
		linear-gradient(135deg, #031a4d 0%, #041f5c 55%, #033a9e 100%);
	padding: 2.5rem 1.25rem;
	margin: 0 0 3rem;
}

.bt-ec__band-inner {
	max-width: 920px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 2rem;
}

.bt-ec__band-copy {
	flex: 1 1 16rem;
}

/* —— Naissance —— */
.bt-ec__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
	margin-bottom: 1.75rem;
}

.bt-ec__card,
.bt-ec__howto {
	padding: 1.35rem 1.25rem;
	border: 1px solid var(--bt-line);
	border-radius: 2px;
	background: #fff;
}

.bt-ec__card p,
.bt-ec__howto p {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--bt-muted);
}

.bt-ec__card p:last-child,
.bt-ec__howto p:last-child {
	margin-bottom: 0;
}

.bt-ec__card-title {
	margin: 0 0 0.85rem;
	font-family: var(--bt-sans);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--bt-blue);
	letter-spacing: -0.015em;
}

.bt-ec__bullets {
	margin: 0 0 1.15rem;
	padding-left: 1.15rem;
	color: var(--bt-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.bt-ec__bullets li {
	margin-bottom: 0.45rem;
}

.bt-ec__notice {
	padding: 0.85rem 1rem;
	margin: 1.25rem 0 0;
	background: rgba(0, 174, 239, 0.1);
	border-left: 3px solid var(--bt-cyan);
	color: var(--bt-ink) !important;
	font-size: 0.98rem;
	line-height: 1.55;
}

.bt-ec__prose p {
	margin: 0 0 0.85rem;
	font-size: 1.02rem;
	line-height: 1.6;
	color: var(--bt-muted);
	max-width: 42rem;
}

.bt-ec__prose p:last-child {
	margin-bottom: 0;
}

/* —— RDV iframe (rdv360widget) —— */
.bt-ec__section--iframe {
	max-width: 960px;
}

.bt-ec__iframe-wrap {
	width: 100%;
	margin: 0;
	border: 1px solid var(--bt-line);
	border-radius: 2px;
	overflow: hidden;
	background: #fff;
	/* Avoid Helix boxed layout clipping the widget */
	isolation: isolate;
}

.bt-ec__iframe {
	display: block;
	width: 100% !important;
	max-width: 100%;
	height: 1000px;
	border: 0;
	margin: 0;
	padding: 0;
	vertical-align: top;
	background: #fff;
}

@keyframes bt-ec-up {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes bt-ec-ken {
	from { transform: scale(1.08); }
	to { transform: scale(1.02); }
}

@media (max-width: 767px) {
	.bt-ec__hero {
		min-height: 15rem;
	}

	.bt-ec__title {
		max-width: none;
	}

	.bt-ec__grid {
		grid-template-columns: 1fr;
	}

	.bt-ec__item {
		grid-template-columns: 2.5rem minmax(0, 1fr);
	}

	.bt-ec__band-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.bt-ec__iframe {
		/* Keep widget usable on narrow screens without cutting controls */
		height: 1200px;
		min-height: 1000px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bt-ec__hero,
	.bt-ec__hero-copy,
	.bt-ec__hero-img {
		animation: none !important;
	}
	.bt-ec__hero-img {
		transform: none;
	}
}
