/*
 * CPTS Sénart sections. Colours and fonts come from Elodie's Elementor kit
 * (CSS variables printed by Elementor); the fallbacks are the same values.
 * Grid contract (XD of 13/11): 1440 container, 45px gutters (40 on the care structures page), 30px card radius.
 */
:root {
	--cpts-violet: var(--e-global-color-accent, #9a0aae);
	--cpts-framboise: var(--e-global-color-b41e10f, #d93373);
	--cpts-violet-clair: var(--e-global-color-768d905, #f5e7f7);
	--cpts-violet-fonce: #7d088d;
	--cpts-ombre-survol: 0 3px 3px rgba(0, 0, 0, 0.16), 0 8px 8px -4px rgba(0, 0, 0, 0.18);
	--cpts-rose-clair: var(--e-global-color-aa517f8, #f9f2fb);
	--cpts-framboise-clair: var(--e-global-color-71041ce, #fbe6ee);
	--cpts-bleu-clair: var(--e-global-color-424420d, #e3f7fc);
	--cpts-titre: var(--e-global-color-4f372a3, #050d0f);
	--cpts-texte: var(--e-global-color-c974e91, #202627);
	--cpts-gris: #5b6366;
	--cpts-ligne: #ece4ee;
	--cpts-font-titre: var(--e-global-typography-138971e-font-family, "Varela Round"), sans-serif;
	--cpts-font-texte: var(--e-global-typography-64351e8-font-family, "Barlow"), sans-serif;
	--cpts-gap: 45px;
	--cpts-radius: 30px;
	--cpts-radius-s: 20px;
}

.cpts-section,
.cpts-newsletter,
.cpts-invite {
	font-family: var(--cpts-font-texte);
	color: var(--cpts-texte);
	font-size: 18px;
	line-height: 1.5;
}

.cpts-section *,
.cpts-newsletter *,
.cpts-invite * {
	box-sizing: border-box;
}

/* Astra and the kit style every <button>; the section controls start from a clean slate. */
.cpts-section button,
.cpts-newsletter button,
.cpts-section .cpts-btn,
.cpts-newsletter .cpts-btn,
.cpts-invite .cpts-btn {
	margin: 0;
	min-height: 0;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.2;
}

.cpts-icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
	vertical-align: -0.2em;
}

/* Kept for screen readers (live counts, badge wording), off screen for everyone else. */
.cpts-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.cpts-section ul[role="list"] {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Heads: title on the left, filters on the right, as in the XD. */
.cpts-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px var(--cpts-gap);
	margin-bottom: 40px;
}

.cpts-section__head--center {
	justify-content: center;
	text-align: center;
}

.cpts-section__title,
.cpts-newsletter__title {
	font-family: var(--cpts-font-titre);
	font-weight: 400;
	color: var(--cpts-titre);
	font-size: 50px;
	line-height: 1.2;
	margin: 0;
}

.cpts-section__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 32px;
}

.cpts-empty {
	margin: 0;
	color: var(--cpts-gris);
}

.cpts-empty[hidden],
[data-cpts-hidden] {
	display: none !important;
}

.cpts-tools__empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.cpts-tools__empty p {
	margin: 0;
}

/* Buttons (XD: 54 px high, Barlow 20 Medium, text at 30 px, arrow at 24 px from the edge). */
.cpts-btn,
.cpts-section .cpts-btn,
.cpts-newsletter .cpts-btn,
.cpts-invite .cpts-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 24px 0 30px;
	border: 1px solid var(--cpts-violet);
	border-radius: 30px;
	background: var(--cpts-violet);
	color: #fff;
	font-family: var(--cpts-font-texte);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}

.cpts-btn .cpts-icon {
	width: 24px;
	height: 24px;
}

/* XD "fleche-droite": 40 px frame whose stroke starts 7 px in, about 4 px after the text. */
.cpts-btn .cpts-icon--long {
	width: 40px;
	height: 40px;
	margin-left: -6px;
}

.cpts-btn--ghost,
.cpts-section .cpts-btn--ghost,
.cpts-invite .cpts-btn--ghost {
	background: #fff;
	color: var(--cpts-violet);
}

/* CTA states (19/11, "les CTA manquent de hover"). Hover only where a pointer hovers, so a tap leaves
   nothing behind; keyboard focus shows the same state at once, without transition, plus the ring of
   site.css. Filled buttons darken, outlined ones fill, arrows slide 4 px. */
.cpts-btn .cpts-icon--arrow,
.cpts-btn .cpts-icon--arrow-back,
.cpts-link .cpts-icon--arrow {
	transition: transform 150ms ease-out;
}

@media (hover: hover) {
	.cpts-btn:hover,
	.cpts-section .cpts-btn:hover,
	.cpts-newsletter .cpts-btn:hover,
	.cpts-invite .cpts-btn:hover {
		background: var(--cpts-violet-fonce);
		border-color: var(--cpts-violet-fonce);
		color: #fff;
	}

	.cpts-btn--ghost:hover,
	.cpts-section .cpts-btn--ghost:hover,
	.cpts-invite .cpts-btn--ghost:hover {
		background: var(--cpts-violet);
		border-color: var(--cpts-violet);
		color: #fff;
	}
}

.cpts-btn:focus-visible,
.cpts-section .cpts-btn:focus-visible,
.cpts-newsletter .cpts-btn:focus-visible,
.cpts-invite .cpts-btn:focus-visible {
	background: var(--cpts-violet-fonce);
	border-color: var(--cpts-violet-fonce);
	color: #fff;
	transition: none;
}

.cpts-btn--ghost:focus-visible,
.cpts-section .cpts-btn--ghost:focus-visible,
.cpts-invite .cpts-btn--ghost:focus-visible {
	background: var(--cpts-violet);
	border-color: var(--cpts-violet);
	color: #fff;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.cpts-btn:hover .cpts-icon--arrow,
	a.cpts-link:hover .cpts-icon--arrow,
	.cpts-event__card:hover .cpts-link .cpts-icon--arrow,
	.cpts-news__card:has(.cpts-news__title a):hover .cpts-link .cpts-icon--arrow {
		transform: translateX(4px);
	}

	.cpts-btn:hover .cpts-icon--arrow-back {
		transform: translateX(-4px);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.cpts-btn:focus-visible .cpts-icon--arrow,
	a.cpts-link:focus-visible .cpts-icon--arrow,
	.cpts-event__card:has(.cpts-event__title a:focus-visible) .cpts-link .cpts-icon--arrow,
	.cpts-news__card:has(.cpts-news__title a:focus-visible) .cpts-link .cpts-icon--arrow {
		transform: translateX(4px);
		transition: none;
	}

	.cpts-btn:focus-visible .cpts-icon--arrow-back {
		transform: translateX(-4px);
		transition: none;
	}
}

/* Card buttons (tools, care structures): XD 43 px, kept at 44 for touch. */
.cpts-section .cpts-btn--small {
	min-height: 44px;
	padding: 0 21px 0 20px;
	color: #fffcf6;
}

/* Form fields; links and buttons take the shared ring of site.css. */
.cpts-section input:focus-visible,
.cpts-section select:focus-visible,
.cpts-newsletter input:focus-visible {
	outline: 2px solid var(--cpts-violet);
	outline-offset: 2px;
}

/* Segmented filter (agenda): XD capsule #f5e7f7, 8/10 px inset, 45 px chips. */
.cpts-chips {
	display: flex;
	gap: 0;
	padding: 8px 10px;
	border-radius: 30px;
	background: var(--cpts-violet-clair);
}

.cpts-chips--wrap {
	flex-wrap: wrap;
	background: none;
	padding: 0;
}

.cpts-section .cpts-chip {
	display: inline-flex;
	align-items: center;
	min-height: 45px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: 30px;
	background: transparent;
	color: var(--cpts-texte);
	font-family: var(--cpts-font-texte);
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}

.cpts-chips--wrap .cpts-chip {
	border-color: #d9cfdc;
	background: #fff;
}

/* News filters (home carousel and /actualites/): separate pills with a grey outline. */
.cpts-news-list .cpts-chips {
	gap: 15px;
	padding: 0;
	background: none;
}

.cpts-section.cpts-news-list .cpts-chip {
	border-color: #d8d8d8;
	background: #fff;
}

.cpts-section .cpts-chip {
	transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}

/* Inactive chips: violet outline and text; the active one does not move. */
@media (hover: hover) {
	.cpts-section .cpts-chip:not([aria-pressed="true"]):not([aria-current="true"]):hover {
		border-color: var(--cpts-violet);
		color: var(--cpts-violet);
	}
}

.cpts-section .cpts-chip:not([aria-pressed="true"]):not([aria-current="true"]):focus-visible {
	border-color: var(--cpts-violet);
	color: var(--cpts-violet);
	transition: none;
}

.cpts-section .cpts-chip[aria-pressed="true"],
.cpts-section .cpts-chip[aria-current="true"] {
	background: var(--cpts-violet);
	border-color: var(--cpts-violet);
	color: #fff;
}

.cpts-pill {
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 13px;
	border-radius: 30px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	color: var(--cpts-texte);
}

.cpts-pill--public {
	background: var(--cpts-framboise-clair);
}

.cpts-pill--professionnels-de-sante {
	background: var(--cpts-bleu-clair);
}

.cpts-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--cpts-violet);
	font-weight: 500;
	text-decoration: none;
}

.cpts-link .cpts-icon {
	width: 25px;
	height: 25px;
}

/* Arrow links: the text underlines and the arrow slides (rules with the buttons above).
   Astra darkens every link on :hover and :focus, taps included: the colour stays violet. */
.cpts-section a.cpts-link,
.cpts-section a.cpts-link:is(:hover, :focus) {
	color: var(--cpts-violet);
	transition: color 150ms ease-out;
}

@media (hover: hover) {
	.cpts-section a.cpts-link:hover {
		color: var(--cpts-violet);
		text-decoration: underline;
		text-underline-offset: 3px;
	}
}

.cpts-section a.cpts-link:focus-visible {
	color: var(--cpts-violet);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cpts-arrows {
	display: flex;
	gap: 12px;
}

/* XD: 45 px circles, 2 px outline, 30 px arrows; grey when there is nothing more to scroll. */
.cpts-section .cpts-arrow {
	display: grid;
	place-items: center;
	width: 45px;
	height: 45px;
	padding: 0;
	font-size: 26px;
	border: 2px solid var(--cpts-violet);
	border-radius: 50%;
	background: #fff;
	color: var(--cpts-violet);
	cursor: pointer;
	transition: background-color 150ms ease-out, color 150ms ease-out;
}

/* A disabled arrow keeps its grey state under the pointer. */
@media (hover: hover) {
	.cpts-section .cpts-arrow:hover:not(:disabled) {
		background: var(--cpts-violet);
		color: #fff;
	}
}

.cpts-section .cpts-arrow:focus-visible {
	background: var(--cpts-violet);
	color: #fff;
	transition: none;
}

.cpts-section .cpts-arrow:disabled {
	background: #fff;
	border-color: #d8d8d8;
	color: #a7a7a7;
	cursor: default;
}

/* Horizontal tracks: native scroll, snapped, driven by the arrows.
   The 4 px inline padding keeps the card shadows inside the scroll box; the negative margin
   and the scroll padding keep the cards on the grid edges. */
.cpts-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2 * var(--cpts-gap)) / 3);
	gap: var(--cpts-gap);
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-padding-inline: 4px;
	scrollbar-width: none;
}

/* After the list reset above, which zeroes the padding of every ul[role="list"]. */
.cpts-section ul.cpts-track {
	margin-inline: -4px;
	margin-top: -4px;
	padding: 8px 4px 12px;
}

.cpts-track::-webkit-scrollbar {
	display: none;
}

/* The track is a tab stop for keyboard scrolling: same ring as the other controls. */
.cpts-track:focus-visible {
	outline: 2px solid var(--cpts-violet);
	outline-offset: 4px;
}

.cpts-track > li {
	scroll-snap-align: start;
}

.cpts-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--cpts-gap);
}

/* Date badge (XD: 122 px #c82866, day Varela 40, month Barlow 25 Medium). */
.cpts-date {
	display: grid;
	place-content: center;
	width: 122px;
	height: 122px;
	border-radius: 50%;
	background: #c82866;
	color: #fff;
	text-align: center;
	line-height: 1;
	flex: none;
}

.cpts-date__day {
	font-family: var(--cpts-font-titre);
	font-size: 40px;
	line-height: 1.2;
}

.cpts-date__month {
	font-size: 25px;
	font-weight: 500;
	line-height: 1.2;
	margin-top: 5px;
}

/* Agenda. */
.cpts-agenda__items {
	display: grid;
	gap: 20px var(--cpts-gap);
}

.cpts-event__card {
	position: relative;
	display: flex;
	gap: 30px;
	align-items: flex-start;
	padding: 24px;
	border-radius: var(--cpts-radius);
	background: var(--cpts-rose-clair);
	height: 100%;
}

.cpts-event__media {
	display: none;
}

.cpts-event__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.cpts-event__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 15px;
	margin: 0 0 14px;
	font-size: 18px;
	line-height: 22px;
	color: var(--cpts-texte);
}

.cpts-event__meta span {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.cpts-event__meta .cpts-icon {
	width: 20px;
	height: 20px;
	color: var(--cpts-violet);
}

.cpts-event__title,
.cpts-news__title,
.cpts-structure__title {
	font-family: var(--cpts-font-titre);
	font-weight: 400;
	color: var(--cpts-titre);
	font-size: 22px;
	line-height: 1.3;
	margin: 0 0 8px;
}

.cpts-event__title,
.cpts-news__title {
	color: var(--cpts-texte);
}

.cpts-event__title {
	margin: 0 0 16px;
}

.cpts-section .cpts-event__title a,
.cpts-section .cpts-news__title a {
	color: inherit;
	text-decoration: none;
}

/* The title link covers the whole card; the visual "En savoir plus" is decorative. */
.cpts-event__title a::after,
.cpts-news__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

/* Clickable cards lift by 2 px with a deeper shadow (no layout change); the title turns violet and the
   "Lire la suite" link underlines. Keyboard focus of the title link gives the same state and rings the card. */
.cpts-event__card,
.cpts-news__card {
	transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}

.cpts-event__title,
.cpts-news__title {
	transition: color 150ms ease-out;
}

@media (hover: hover) {
	.cpts-section .cpts-event__card:hover .cpts-event__title,
	.cpts-section .cpts-news__card:has(.cpts-news__title a):hover .cpts-news__title {
		color: var(--cpts-violet);
	}

	.cpts-event__card:hover,
	.cpts-news__card:has(.cpts-news__title a):hover {
		box-shadow: var(--cpts-ombre-survol);
	}

	.cpts-event__card:hover .cpts-link,
	.cpts-news__card:has(.cpts-news__title a):hover .cpts-link {
		text-decoration: underline;
		text-underline-offset: 3px;
	}
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.cpts-event__card:hover,
	.cpts-news__card:has(.cpts-news__title a):hover {
		transform: translateY(-2px);
	}
}

.cpts-section .cpts-event__card:has(.cpts-event__title a:focus-visible) .cpts-event__title,
.cpts-section .cpts-news__card:has(.cpts-news__title a:focus-visible) .cpts-news__title {
	color: var(--cpts-violet);
	transition: none;
}

.cpts-event__card:has(.cpts-event__title a:focus-visible),
.cpts-news__card:has(.cpts-news__title a:focus-visible) {
	box-shadow: var(--cpts-ombre-survol);
	outline: 2px solid var(--cpts-violet);
	outline-offset: 2px;
	transition: none;
}

.cpts-event__card:has(.cpts-event__title a:focus-visible) .cpts-link,
.cpts-news__card:has(.cpts-news__title a:focus-visible) .cpts-link {
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
	.cpts-event__card:has(.cpts-event__title a:focus-visible),
	.cpts-news__card:has(.cpts-news__title a:focus-visible) {
		transform: translateY(-2px);
	}
}

/* The ring is drawn on the card, not around the title text. */
.cpts-section .cpts-event__title a:focus-visible,
.cpts-section .cpts-news__title a:focus-visible {
	outline: none;
}

.cpts-event__audience {
	margin: 0 0 14px;
	font-size: 18px;
	line-height: 22px;
	color: var(--cpts-texte);
}

.cpts-agenda .cpts-link {
	font-size: 22px;
}

/* Featured event and agenda page cards: image on top, the badge straddles its bottom edge. */
.cpts-event.is-featured .cpts-event__card,
.cpts-agenda--grille .cpts-event__card {
	flex-direction: column;
	align-items: stretch;
	padding: 0;
	gap: 0;
	overflow: hidden;
}

.cpts-event.is-featured .cpts-event__media {
	display: block;
	width: 100%;
	aspect-ratio: 780 / 280;
}

.cpts-agenda--grille .cpts-event__media {
	display: block;
	width: 100%;
	aspect-ratio: 450 / 249;
	background: var(--cpts-rose-clair);
}

.cpts-event.is-featured .cpts-date,
.cpts-agenda--grille .cpts-date {
	position: relative;
	z-index: 1;
	align-self: flex-end;
	margin: -61px 29px -61px 0;
}

.cpts-event.is-featured .cpts-event__body,
.cpts-agenda--grille .cpts-event__body {
	padding: 21px 40px 40px;
}

.cpts-event.is-featured .cpts-event__meta {
	margin-bottom: 20px;
}

.cpts-event.is-featured .cpts-event__title {
	font-size: 35px;
	line-height: 42px;
	margin: 0 0 15px;
}

.cpts-event.is-featured .cpts-event__audience {
	font-size: 22px;
	line-height: 26px;
	margin: 0 0 21px;
}

.cpts-agenda--grille .cpts-agenda__items {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cpts-agenda--grille .cpts-event__card {
	background: rgba(245, 231, 247, 0.6);
	border: 0;
}

/* Keep the time and place clear of the badge in the narrow agenda page cards. Time and place
   always stack (48 px), so every title starts under the badge and titles of a row line up (V3-01). */
.cpts-agenda--grille .cpts-event__meta {
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: flex-start;
	padding-right: 121px;
}

/* Right column of the home agenda: no visual, badge then text (XD: 23/42 px inset, 30 px gap). */
.cpts-agenda--accueil .cpts-event:not(.is-featured) .cpts-event__media {
	display: none;
}

.cpts-agenda--accueil .cpts-event:not(.is-featured) .cpts-event__card {
	min-height: 242px;
	padding: 42px 30px 30px 23px;
}

.cpts-agenda--accueil .cpts-event:not(.is-featured) .cpts-event__title {
	order: -1;
}

.cpts-agenda--accueil .cpts-section__head {
	margin-bottom: 55px;
}

/* Home agenda (XD): featured 780 + 45 + 615 column of two cards, footer under that column. */
@media (min-width: 1025px) {
	.cpts-agenda--accueil {
		display: grid;
		grid-template-columns: minmax(0, 780fr) minmax(0, 615fr);
		grid-template-rows: auto auto auto 1fr;
		column-gap: 45px;
		align-items: start;
	}

	.cpts-agenda--accueil > .cpts-section__head,
	.cpts-agenda--accueil > .cpts-empty {
		grid-column: 1 / -1;
	}

	.cpts-agenda--accueil .cpts-agenda__items {
		display: contents;
	}

	.cpts-agenda--accueil .cpts-event {
		grid-column: 2;
		margin-bottom: 20px;
	}

	.cpts-agenda--accueil .cpts-event.is-featured {
		grid-column: 1;
		grid-row: 2 / span 3;
		align-self: stretch;
		margin-bottom: 0;
	}

	.cpts-agenda--accueil .cpts-section__foot {
		grid-column: 2;
		margin-top: 9px;
		padding-left: 5px;
	}
}

/* Partners: arrows on the right under the centred title, three 450 x 248 cards. */
.cpts-partners .cpts-section__head {
	margin-bottom: 5px;
}

.cpts-partners .cpts-arrows {
	justify-content: flex-end;
	margin-bottom: 26px;
}

/* Six logos per view at 150 px (Jennifer, 24/11/2026: the partners took too much room at three per view, 248 px). */
.cpts-partners .cpts-track {
	grid-auto-columns: calc((100% - 5 * var(--cpts-gap)) / 6);
}

.cpts-partner {
	display: grid;
	place-items: center;
	height: 150px;
	padding: 20px;
	border-radius: var(--cpts-radius);
	background: #fff;
	box-shadow: 0 0 3px rgba(0, 0, 0, 0.16);
}

/* Logos fill an 80 % x 90 px box (150 px in the XD, reduced on 24/11/2026), whatever the whitespace of each file. */
.cpts-partner__logo {
	width: 100%;
	height: 100%;
	max-width: 80%;
	max-height: 90px;
	object-fit: contain;
}

/* The rail keeps its bottom inset for the shadows and focus ring, not as extra space before the news (XD: 120). */
.cpts-partners ul.cpts-track {
	margin-bottom: -12px;
}

/* ameli and CPAM files carry wide white margins (logo on 30 % and 50 % of their height): drawn at the XD size
   (376 x 282, 298 x 298), masked by the card as in the XD, and capped by the card width on smaller screens. */
.cpts-partner {
	position: relative;
	overflow: hidden;
	container-type: inline-size;
}

.cpts-partner .cpts-partner__logo--ameli-fr,
.cpts-partner .cpts-partner__logo--cpam-seine-et-marne {
	position: absolute;
	top: 50%;
	left: 50%;
	height: auto;
	max-width: none;
	max-height: none;
	transform: translate(-50%, -50%);
}

.cpts-partner .cpts-partner__logo--ameli-fr {
	width: min(376px, 120cqi);
}

.cpts-partner .cpts-partner__logo--cpam-seine-et-marne {
	width: min(298px, 100cqi);
}

/* Linked logos (Couac 3253): the link fills the card, so the logo keeps the box it had unlinked; it stays
   unpositioned so the ameli and CPAM logos still centre on the card. Hover and focus ring the card itself. */
.cpts-partner__link {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	border-radius: inherit;
}

.cpts-partner__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.cpts-partner:has(.cpts-partner__link) {
	transition: box-shadow 150ms ease-out;
}

@media (hover: hover) {
	.cpts-partner:has(.cpts-partner__link):hover {
		box-shadow: var(--cpts-ombre-survol);
	}
}

.cpts-partner:has(.cpts-partner__link:focus-visible) {
	box-shadow: var(--cpts-ombre-survol);
	outline: 2px solid var(--cpts-violet);
	outline-offset: -2px;
}

.cpts-section .cpts-partner__link:focus-visible {
	outline: none;
}

/* News. */
.cpts-news__card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: var(--cpts-radius);
	background: #fff;
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.16);
	overflow: hidden;
}

/* Media boxes keep their ratio whatever the source image; the image is cropped inside. */
.cpts-news__media,
.cpts-event__media {
	position: relative;
	overflow: hidden;
}

/* Two classes: Elementor's ".elementor img { height: auto }" loads later with one class and one element. */
.cpts-section .cpts-news__media img,
.cpts-section .cpts-event__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
}

.cpts-news__media {
	aspect-ratio: 450 / 249;
	background: var(--cpts-rose-clair);
}

.cpts-news__media--empty {
	display: grid;
	place-items: center;
	color: var(--cpts-violet);
	background: var(--cpts-violet-clair);
}

.cpts-agenda--grille .cpts-event__media.cpts-news__media--empty,
.cpts-agenda .cpts-event.is-featured .cpts-event__media.cpts-news__media--empty {
	display: grid;
}

.cpts-news__media--empty .cpts-icon {
	width: 64px;
	height: 64px;
	opacity: 0.7;
}

.cpts-news__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 30px 30px 40px;
}

.cpts-news__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin: 0 0 13px;
	font-size: 16px;
	line-height: 19px;
	color: var(--cpts-texte);
}

.cpts-news__meta time {
	margin-left: auto;
}

/* Without an audience pill (LinkedIn), the date stays on the left. */
.cpts-news__meta time:only-child {
	margin-left: 0;
}

.cpts-news__title {
	margin: 0 0 17px;
}

.cpts-news__excerpt {
	display: -webkit-box;
	margin: 0 0 29px;
	overflow: hidden;
	font-size: 18px;
	line-height: 24px;
	color: var(--cpts-texte);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.cpts-news__body .cpts-link {
	margin-top: auto;
}

/* Home news footer (XD): arrows on the right 20 px under the cards, button centred under them. */
.cpts-news-list--carrousel .cpts-section__head {
	margin-bottom: 40px;
}

.cpts-news-list--carrousel .cpts-section__foot {
	display: grid;
	justify-content: stretch;
	justify-items: center;
	gap: 0;
	margin-top: 8px;
}

.cpts-news-list--carrousel .cpts-section__foot .cpts-arrows {
	order: -1;
	justify-self: end;
}

.cpts-news-list--carrousel .cpts-section__foot .cpts-btn {
	margin-top: -5px;
}

/* Ghost buttons of the section footers: text at 25 px, arrow at 17 px from the edge. */
.cpts-section__foot .cpts-btn {
	padding: 0 17px 0 25px;
}

/* XD 13/11: light grey band from the bottom of the news images down to the footer.
   Its top is the head (title 60 + 40) plus the track inset (4) plus one image height. */
@media (min-width: 768px) {
	/* The band runs into the footer: no outer margin, the 80 px breathing space is inside the zone. */
	body .elementor .e-con.cpts-zone--actualites {
		--margin-block-end: 0px;
		--margin-bottom: 0px;
		--padding-block-end: 80px;
		--padding-bottom: 80px;
		position: relative;
		isolation: isolate;
	}

	/* ::after, Elementor keeps ::before for its background overlay. */
	body .e-con.cpts-zone--actualites::after {
		content: "";
		position: absolute;
		inset: 0;
		margin-top: calc(104px + (min(100% - var(--padding-left, 20px) - var(--padding-right, 20px), var(--content-width, 1440px)) - 2 * var(--cpts-gap)) / 3 * 249 / 450);
		border-radius: 50px 50px 0 0;
		background: #f3f3f3;
		z-index: -1;
		pointer-events: none;
	}

	/* /actualites/: the zone opens on the 45 px filters, not on a 60 px title (V3-R1). */
	body .e-con.cpts-zone--actualites:has(.cpts-news-list--grille)::after {
		margin-top: calc(85px + (min(100% - var(--padding-left, 20px) - var(--padding-right, 20px), var(--content-width, 1440px)) - 2 * var(--cpts-gap)) / 3 * 249 / 450);
	}
}

/* XD 13/11: blue and raspberry dots outside the grid, right of the news arrows, overlapping
   the footer by 46 px. Drawn in CSS (no asset); only where the margin outside the grid allows it: they stick out
   89 px past the 1440 px grid, so from 1620 px (at 1600 px they ran 9 px past the window). */
@media (min-width: 1620px) {
	body .elementor .e-con.cpts-zone--actualites {
		z-index: 1;
	}

	.cpts-news-list--carrousel::after {
		content: "";
		position: absolute;
		left: calc(100% - 82px);
		bottom: -126px;
		width: 171px;
		height: 280px;
		background:
			radial-gradient(circle at 114px 15px, transparent 14px, #fff 14px, #fff 15px, transparent 15.5px),
			radial-gradient(circle at 140.5px 92.5px, transparent 22.5px, #fff 22.5px, #fff 23.5px, transparent 24px),
			radial-gradient(circle at 74px 199.5px, transparent 73px, #fff 73px, #fff 74px, transparent 74.5px),
			radial-gradient(circle at 109px 21px, #06a3c6 15px, transparent 15.5px),
			radial-gradient(circle at 147.5px 86.5px, #c82866 23.5px, transparent 24px),
			radial-gradient(circle at 79.5px 208.5px, #06a3c6 71.5px, transparent 72px);
		pointer-events: none;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	body .elementor .e-con.cpts-zone--actualites {
		--padding-block-end: 60px;
		--padding-bottom: 60px;
	}

	body .e-con.cpts-zone--actualites::after {
		margin-top: calc(89px + (min(100% - var(--padding-left, 20px) - var(--padding-right, 20px), var(--content-width, 1440px)) - var(--cpts-gap)) / 2 * 249 / 450);
	}

	body .e-con.cpts-zone--actualites:has(.cpts-news-list--grille)::after {
		margin-top: calc(85px + (min(100% - var(--padding-left, 20px) - var(--padding-right, 20px), var(--content-width, 1440px)) - var(--cpts-gap)) / 2 * 249 / 450);
	}
}

/* News list being fetched after a filter or page change (sections.js). */
#actualites-liste {
	scroll-margin-top: 24px;
}

#actualites-liste .cpts-grid {
	transition: opacity 150ms ease-out;
}

#actualites-liste[aria-busy="true"] .cpts-grid {
	opacity: 0.5;
}

/* Audience pills and search field of /actualites/ (Couac 9299): one row, the field takes the rest. */
.cpts-news-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 15px 24px;
	flex: 1 1 auto;
	min-width: 0;
}

.cpts-news-search {
	position: relative;
	display: flex;
	flex: 1 1 260px;
	max-width: 420px;
	min-width: 0;
	margin: 0;
}

/* input.cpts-input outranks Astra's input[type="search"] rule, as for the newsletter field. */
.cpts-news-search input.cpts-input {
	width: 100%;
	min-width: 0;
	height: 45px;
	min-height: 45px;
	margin: 0;
	padding: 0 52px 0 20px;
	border: 1px solid #d8d8d8;
	border-radius: 30px;
	background: #fff;
	box-shadow: none;
	color: var(--cpts-texte);
	font-family: var(--cpts-font-texte);
	font-size: 18px;
	line-height: normal;
	transition: border-color 150ms ease-out;
}

.cpts-news-search input.cpts-input::placeholder {
	color: var(--cpts-gris);
	opacity: 1;
}

.cpts-news-search input.cpts-input:focus-visible {
	outline: 2px solid var(--cpts-violet);
	outline-offset: 2px;
	border-color: var(--cpts-violet);
}

.cpts-news-search .cpts-news-search__btn {
	position: absolute;
	top: 0;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	padding: 0;
	border: 0;
	border-radius: 30px;
	background: transparent;
	color: var(--cpts-violet);
	cursor: pointer;
}

.cpts-news-search .cpts-news-search__btn .cpts-icon {
	width: 22px;
	height: 22px;
}

.cpts-news-search .cpts-news-search__btn:focus-visible {
	outline: 2px solid var(--cpts-violet);
	outline-offset: -2px;
}

@media (hover: hover) {
	.cpts-news-search input.cpts-input:hover {
		border-color: var(--cpts-violet);
	}

	.cpts-news-search .cpts-news-search__btn:hover {
		color: var(--cpts-violet-fonce);
		background: var(--cpts-violet-clair);
	}
}

@media (max-width: 767px) {
	.cpts-news-search {
		flex-basis: 100%;
		max-width: none;
	}

	.cpts-news-search input.cpts-input {
		font-size: 16px;
	}
}

.cpts-pager {
	margin-top: 40px;
	display: flex;
	justify-content: center;
}

.cpts-pager .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	margin: 0 4px;
	border-radius: 22px;
	color: var(--cpts-violet);
	text-decoration: none;
}

.cpts-pager .page-numbers.current {
	background: var(--cpts-violet);
	color: #fff;
}

.cpts-pager a.page-numbers {
	transition: background-color 150ms ease-out;
}

@media (hover: hover) {
	.cpts-pager a.page-numbers:hover {
		background: var(--cpts-violet-clair);
		color: var(--cpts-violet);
	}
}

.cpts-pager a.page-numbers:focus-visible {
	background: var(--cpts-violet-clair);
	color: var(--cpts-violet);
	transition: none;
}

/* Text links of the sections: the underline appears, or thickens when it is already there. */
.cpts-newsletter__consent a,
.cpts-tool__locked a,
.cpts-structure__phone a,
.cpts-snp__urgent a,
.cpts-section .cpts-snp__reset {
	transition: color 150ms ease-out;
}

@media (hover: hover) {
	.cpts-section .cpts-structure__phone a:hover,
	.cpts-section .cpts-snp__urgent a:hover,
	.cpts-section .cpts-snp__reset:hover {
		text-decoration: underline;
		text-underline-offset: 3px;
	}

	.cpts-newsletter .cpts-newsletter__consent a:hover,
	.cpts-section.cpts-tools .cpts-tool__locked a:hover {
		text-decoration-thickness: 2px;
	}
}

.cpts-section .cpts-structure__phone a:focus-visible,
.cpts-section .cpts-snp__urgent a:focus-visible,
.cpts-section .cpts-snp__reset:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cpts-newsletter .cpts-newsletter__consent a:focus-visible,
.cpts-section.cpts-tools .cpts-tool__locked a:focus-visible {
	text-decoration-thickness: 2px;
}

/* Checkboxes of the XD: 23 px, 5 px radius, #aaa outline, violet with a white tick when checked. */
.cpts-check input[type="checkbox"],
.cpts-newsletter__consent input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	width: 23px;
	height: 23px;
	margin: 0;
	padding: 0;
	border: 1px solid #aaa;
	border-radius: 5px;
	background: #fff no-repeat center / 16px;
	cursor: pointer;
}

.cpts-check input[type="checkbox"]:checked,
.cpts-newsletter__consent input[type="checkbox"]:checked {
	border-color: var(--cpts-violet);
	background-color: var(--cpts-violet);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23fff' d='m232.49 80.49l-128 128a12 12 0 0 1-17 0l-56-56a12 12 0 1 1 17-17L96 183L215.51 63.51a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E");
}

/* Newsletter band (XD): full width #f5e7f7, square edges, content 1141 px centred, title 498 | form 522. */
.cpts-newsletter {
	background: var(--cpts-violet-clair);
	border-radius: 0;
	padding: 106px 24px 107px;
}

/* XD: title on the top padding (+106), label 19 px lower (+125), not centred on each other (V2-06, V3-09). */
@media (min-width: 1025px) {
	.cpts-newsletter .cpts-newsletter__inner {
		align-items: start;
	}

	.cpts-newsletter__form {
		margin-top: 19px;
	}
}

/* Same 20 px edge as the rest of the site from 1440 px down. */
@media (min-width: 1025px) and (max-width: 1440px) {
	.cpts-newsletter {
		padding-left: 20px;
		padding-right: 20px;
	}
}

.cpts-newsletter__inner {
	display: grid;
	grid-template-columns: minmax(0, 498px) minmax(0, 522px);
	justify-content: space-between;
	gap: 40px;
	align-items: center;
	max-width: 1141px;
	margin: 0 auto;
}

.cpts-newsletter__title {
	font-size: 50px;
	line-height: 60px;
	color: #2d2d2d;
	margin: 0 0 20px;
}

.cpts-newsletter__intro p {
	max-width: 429px;
	margin: 0;
	font-size: 22px;
	line-height: 28px;
	color: #2d2d2d;
}

/* Astra sets every label to 14 px; the newsletter labels follow the XD. */
.cpts-newsletter .cpts-newsletter__label {
	display: block;
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 500;
	line-height: 26px;
	color: #2d2d2d;
}

.cpts-newsletter__row {
	display: flex;
	gap: 20px;
	align-items: stretch;
}

.cpts-select {
	min-height: 48px;
	padding: 10px 18px;
	border: 1px solid #cdbfd2;
	border-radius: 30px;
	background: #fff;
	color: var(--cpts-texte);
	font-family: var(--cpts-font-texte);
	font-size: 17px;
}

/* input.cpts-input outranks Astra's input[type="email"] rule, which squared the field. */
.cpts-newsletter input.cpts-input {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	max-width: none;
	height: 54px;
	min-height: 54px;
	margin: 0;
	padding: 0 24px;
	border: 1px solid #dbdbdb;
	border-radius: 30px;
	background: #fff;
	box-shadow: none;
	color: var(--cpts-texte);
	font-family: var(--cpts-font-texte);
	font-size: 18px;
	line-height: normal;
	/* Astra animates every field with "transition: all 0.2s linear". */
	transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}

.cpts-newsletter .cpts-newsletter__row .cpts-btn {
	flex: none;
	height: 54px;
	min-width: 181px;
	justify-content: space-between;
}

.cpts-newsletter__consent {
	display: flex;
	gap: 11px;
	align-items: flex-start;
	max-width: 522px;
	margin-top: 24px;
}

.cpts-newsletter .cpts-newsletter__consent label {
	font-size: 18px;
	font-weight: 400;
	line-height: 23px;
	color: #2d2d2d;
}

/* Elementor's ".elementor a { text-decoration: none }" loads later: the link must stay underlined,
   colour alone is under 3:1 against the text (WCAG 1.4.1). */
.cpts-newsletter .cpts-newsletter__consent a {
	color: var(--cpts-violet);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cpts-newsletter__msg {
	margin: 12px 0 0;
	font-weight: 500;
}

/* Empty status line: no blank space under the form, the live region stays in place. */
.cpts-newsletter__msg:empty {
	margin: 0;
}

.cpts-newsletter__msg.is-error {
	color: #b0123f;
}

.cpts-newsletter__msg.is-ok {
	color: #1d6b32;
}

.cpts-newsletter .cpts-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
	transition: none;
}

/* Tools. */
/* XD: 72 px from the "Pour qui" row to the cards; the count is for screen readers only. */
.cpts-tools__filters {
	display: grid;
	gap: 30px;
	margin-bottom: 72px;
}

.cpts-tools .cpts-chips--wrap {
	gap: 15px 10px;
}

.cpts-tools .cpts-chips--wrap .cpts-chip:not([aria-pressed="true"]) {
	border-color: #707070;
}

.cpts-tools__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 50px;
}

/* One line, centred on the select: Astra gives the select 100 % of the label otherwise. */
.cpts-tools__for {
	display: inline-flex;
	align-items: center;
	gap: 20px;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
}

/* XD: 45 px, 10 px radius, grey outline, drawn chevron. Sized on its longest option so a choice is never cut. */
.cpts-section .cpts-tools__for .cpts-select {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	width: auto;
	min-width: 206px;
	height: 45px;
	min-height: 45px;
	margin: 0;
	padding: 0 44px 0 20px;
	border: 1px solid #707070;
	border-radius: 10px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23202627' d='m216.49 104.49l-80 80a12 12 0 0 1-17 0l-80-80a12 12 0 0 1 17-17L128 159l71.51-71.52a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E") no-repeat right 18px center / 14px;
	color: var(--cpts-texte);
	font-family: var(--cpts-font-texte);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
}

/* The theme colours every label in violet; filter labels read as body text, as in the XD. */
.cpts-section label,
.cpts-section legend,
.cpts-tools__for {
	color: var(--cpts-texte);
}

.cpts-check {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.cpts-tools__row .cpts-check {
	gap: 15px;
	min-height: 44px;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
}

.cpts-tools__count {
	margin: 0 0 20px;
	font-weight: 500;
}

.cpts-tool__card {
	display: flex;
	gap: 16px;
	height: 100%;
	padding: 28px 20px;
	border-radius: 15px;
	background: var(--cpts-rose-clair);
}

.cpts-tool__thumb {
	flex: none;
	align-self: flex-start;
	width: 140px;
	height: 205px;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	display: grid;
	place-items: center;
	color: var(--cpts-violet);
}

.cpts-tool__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	display: block;
}

.cpts-tool__thumb .cpts-icon {
	width: 40px;
	height: 40px;
}

.cpts-tool__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.cpts-tool__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 20px;
	margin: 0 0 18px;
	font-size: 18px;
	line-height: 22px;
}

.cpts-tool__theme {
	color: var(--cpts-violet);
	font-weight: 500;
}

.cpts-tool .cpts-pill {
	height: 26px;
	background: #fff;
	color: #202627;
	font-size: 18px;
}

.cpts-tool__title {
	margin: 0 0 8px;
	font-family: var(--cpts-font-texte);
	font-weight: 700;
	font-size: 22px;
	line-height: 28px;
	color: #2d2d2d;
}

.cpts-tool__meta {
	margin: 0 0 20px;
	font-size: 17px;
	line-height: 20px;
	/* #717171 of the XD gave 4.44:1 on the rose card; one shade darker passes 4.5:1. */
	color: #6b6b6b;
}

.cpts-tool__body .cpts-btn {
	margin-top: auto;
}

.cpts-tool__locked {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: auto 0 0;
	font-size: 18px;
	line-height: 22px;
}

.cpts-tool__locked a {
	display: inline-flex;
	align-items: center;
	color: var(--cpts-violet);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cpts-tool__locked a + a {
	color: #c82866;
}

/* Outranks Elementor's ".elementor a { text-decoration: none }", loaded after this file (V2-02). */
.cpts-tools .cpts-tool__locked a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* XD cards: 264 px, button at +193. */
@media (min-width: 1025px) {
	.cpts-tool__card {
		min-height: 264px;
	}
}

/* 436 px cards at 1440: 4 px more for the body keeps "Pas encore adhérent ? Adhérer" on one line (V2-03). */
@media (min-width: 1025px) and (max-width: 1440px) {
	.cpts-tool__card {
		padding-right: 16px;
	}
}

/* Care structures (XD): filters 376 | 40 | two 492 cards with 40 between them. */
.cpts-snp {
	display: grid;
	grid-template-columns: 376px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

.cpts-snp__aside {
	position: sticky;
	top: 24px;
	display: grid;
	gap: 30px;
}

.cpts-snp__urgent {
	display: flex;
	gap: 20px;
	align-items: center;
	margin: 0;
	padding: 18px 24px 18px 48px;
	border-radius: var(--cpts-radius-s);
	background: var(--cpts-framboise-clair);
	font-size: 20px;
	line-height: 1.27;
}

.cpts-snp__urgent .cpts-icon {
	width: 56px;
	height: 56px;
	padding: 13px;
	border-radius: 50%;
	background: var(--cpts-framboise);
	color: #fff;
}

/* 44 px touch area around the emergency numbers; the negative margins keep the text spacing and line height. */
.cpts-snp__urgent a {
	display: inline-block;
	margin: -11px -14px;
	padding: 11px 14px;
	color: inherit;
}

.cpts-snp__filters {
	padding: 40px 30px 35px;
	border-radius: var(--cpts-radius);
	background: var(--cpts-violet-clair);
	box-shadow: 0 0 3px rgba(0, 0, 0, 0.16);
}

.cpts-snp__filters-title {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 0 29px;
	font-family: var(--cpts-font-texte);
	font-size: 30px;
	font-weight: 500;
	line-height: 36px;
	color: var(--cpts-texte);
}

.cpts-snp__filters-title .cpts-icon {
	width: 31px;
	height: 31px;
	margin-left: 6px;
}

.cpts-snp__filters fieldset {
	display: grid;
	gap: 13px;
	margin: 0;
	padding: 0;
	border: 0;
}

.cpts-snp__filters legend {
	margin-bottom: 14px;
	padding: 0;
	font-size: 22px;
	font-weight: 500;
	line-height: 26px;
	text-transform: uppercase;
	color: #2d2d2d;
}

.cpts-snp .cpts-check {
	gap: 14px;
	font-size: 22px;
	font-weight: 400;
	line-height: 26px;
	color: #2d2d2d;
}

.cpts-snp__communes {
	display: grid;
	gap: 13px;
	margin-bottom: 8px;
	padding-left: 37px;
	font-size: 22px;
}

.cpts-section .cpts-snp__reset {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-top: 32px;
	padding: 6px 0;
	border: 0;
	background: none;
	color: var(--cpts-violet);
	font-family: var(--cpts-font-texte);
	font-size: 22px;
	font-weight: 500;
	cursor: pointer;
}

.cpts-snp__reset .cpts-icon {
	width: 25px;
	height: 25px;
}

/* XD: 47 px between "à domicile" and "à distance", the reset link stays at the same height (V2-13). */
@media (min-width: 1025px) {
	.cpts-snp__filters fieldset > .cpts-check:last-of-type {
		margin-top: 8px;
	}

	.cpts-section .cpts-snp__reset {
		margin-top: 24px;
	}
}

/* Disclosure of the filters: only a phone shows its summary; from 768 px the panel is always open. */
.cpts-snp__summary {
	display: none;
}

/* The count starts on the cards' left edge (Gianito, 26/11/2026): the XD's 26 px indent read as a misalignment. */
.cpts-snp__count {
	margin: 9px 0 30px;
	font-size: 20px;
	font-weight: 600;
	line-height: 24px;
}

.cpts-grid--snp {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px;
}

.cpts-structure__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	height: 100%;
	padding: 30px;
	border-radius: var(--cpts-radius);
	background: #fff;
	box-shadow: 0 0 3px rgba(0, 0, 0, 0.16);
}

/* Mode: 50 px round pictogram, then the label pill, both on the mode colour. */
.cpts-structure__mode {
	display: flex;
	align-items: center;
	gap: 13px;
	margin: 0 0 9px;
}

.cpts-structure__mode-icon {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	color: var(--cpts-violet);
}

.cpts-structure__mode-icon .cpts-icon {
	width: 30px;
	height: 30px;
}

.cpts-structure__mode-label {
	padding: 2px 13px;
	border-radius: 30px;
	font-size: 18px;
	font-weight: 500;
	line-height: 22px;
	color: var(--cpts-texte);
}

.cpts-structure__mode > span {
	background: var(--cpts-bleu-clair);
}

/* Pictogram colour follows the mode, as in the XD (blue in town, violet at home, raspberry remote). */
.cpts-structure[data-mode="en-ville"] .cpts-structure__mode-icon {
	color: #0787a3;
}

.cpts-structure[data-mode="a-distance"] .cpts-structure__mode-icon {
	color: #c82866;
}

.cpts-structure[data-mode="a-domicile"] .cpts-structure__mode > span {
	background: var(--cpts-violet-clair);
}

.cpts-structure[data-mode="a-distance"] .cpts-structure__mode > span {
	background: var(--cpts-framboise-clair);
}

.cpts-structure__cat {
	margin: 0 0 7px;
	font-size: 18px;
	font-weight: 500;
	line-height: 22px;
	text-transform: uppercase;
	color: var(--cpts-texte);
}

.cpts-structure__title {
	margin: 0;
	font-size: 30px;
	line-height: 1.25;
	color: #2d2d2d;
}

/* Element and class after the list reset (.cpts-section ul[role="list"]), which has the same weight. */
.cpts-section ul.cpts-structure__facts {
	display: grid;
	gap: 16px;
	margin: 28px 0 34px;
	font-size: 22px;
	line-height: 29px;
}

.cpts-structure__facts li {
	display: grid;
	grid-template-columns: 25px minmax(0, 1fr);
	column-gap: 7px;
	align-items: start;
}

.cpts-structure__facts .cpts-icon {
	width: 20px;
	height: 20px;
	margin: 5px auto 0;
	color: var(--cpts-framboise);
}

/* XD: the address pin is 25 px, flush with the column, 5 px higher than the 20 px pictograms. */
.cpts-structure__facts .cpts-structure__address .cpts-icon {
	width: 25px;
	height: 25px;
	margin: 0;
}

/* XD: the whole phone line is bold, price note included; only the numbers are links. */
.cpts-structure__phone > span {
	font-weight: 700;
}

.cpts-structure__phone a {
	color: var(--cpts-texte);
	font-weight: 700;
	text-decoration: none;
}

.cpts-structure__card .cpts-btn {
	margin-top: auto;
	padding: 0 21px 0 18px;
	gap: 10px;
}

.cpts-structure__card .cpts-btn .cpts-icon {
	width: 25px;
	height: 25px;
}

/* Member-only pages: head of the other inner pages (breadcrumb 38 px under the header, title 46 px lower,
   centred, Elementor sizes 70/50/40/30), then the card with the message and the buttons. */
.cpts-invite {
	padding: 38px 20px 120px;
}

.cpts-invite__head {
	max-width: 1440px;
	margin: 0 auto 60px;
}

.cpts-breadcrumb p {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 24px;
	color: #2d2d2d;
}

.cpts-invite .cpts-breadcrumb a {
	color: var(--cpts-violet);
	font-weight: 700;
	text-decoration: none;
}

.cpts-invite .cpts-breadcrumb a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (hover: hover) {
	.cpts-invite .cpts-breadcrumb a:hover {
		text-decoration: underline;
		text-underline-offset: 3px;
	}
}

.cpts-breadcrumb .breadcrumb_last {
	font-weight: 400;
}

.cpts-invite__inner {
	max-width: 760px;
	margin: 0 auto;
	padding: 56px 48px;
	border-radius: var(--cpts-radius);
	background: var(--cpts-rose-clair);
	text-align: center;
}

.cpts-invite__title {
	font-family: var(--cpts-font-titre);
	font-weight: 400;
	font-size: 70px;
	line-height: 80px;
	color: #2d2d2d;
	text-align: center;
	margin: 46px 0 0;
}

@media (max-width: 1440px) {
	.cpts-invite__title {
		font-size: 50px;
		line-height: 60px;
	}
}

.cpts-invite__text {
	margin: 0 0 28px;
}

.cpts-invite__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

/* Tablet. */
@media (max-width: 1024px) {
	:root {
		--cpts-gap: 24px;
	}

	.cpts-section__title {
		font-size: 36px;
	}

	.cpts-track {
		grid-auto-columns: calc((100% - var(--cpts-gap)) / 2);
	}

	.cpts-partners .cpts-track {
		grid-auto-columns: calc((100% - 3 * var(--cpts-gap)) / 4);
	}

	.cpts-partner {
		height: 130px;
	}

	.cpts-grid,
	.cpts-agenda--grille .cpts-agenda__items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cpts-agenda--accueil .cpts-agenda__items {
		grid-template-columns: minmax(0, 1fr);
	}

	.cpts-event.is-featured .cpts-event__title {
		font-size: 30px;
		line-height: 36px;
	}

	.cpts-snp {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.cpts-snp__aside {
		position: static;
	}

	.cpts-snp__filters fieldset {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cpts-snp__filters legend {
		grid-column: 1 / -1;
	}

	.cpts-snp__communes {
		grid-row: span 3;
	}

	.cpts-newsletter {
		padding: 64px 32px;
	}

	.cpts-newsletter__inner {
		grid-template-columns: minmax(0, 1fr);
		justify-content: stretch;
		max-width: 522px;
	}

	.cpts-invite__title {
		font-size: 40px;
		line-height: 60px;
	}
}

/* 3-card teasers: two per row on tablets, no orphan card. */
@media (min-width: 768px) and (max-width: 1024px) {
	.cpts-evt__next .cpts-agenda__items > li:nth-child(3),
	.cpts-linkedin .cpts-grid > li:nth-child(3) {
		display: none;
	}
}

/* Mobile. No XD: same alignments and rhythm, 44 px targets. */
@media (max-width: 767px) {
	.cpts-section,
	.cpts-newsletter,
	.cpts-invite {
		font-size: 16px;
	}

	.cpts-section__title {
		font-size: 28px;
	}

	.cpts-section__head,
	.cpts-agenda--accueil .cpts-section__head,
	.cpts-news-list--carrousel .cpts-section__head {
		margin-bottom: 24px;
	}

	/* Filters stay on one line at 375 px; they wrap rather than overflow on narrower phones. */
	.cpts-chips {
		flex-wrap: wrap;
		max-width: 100%;
	}

	.cpts-chips:not(.cpts-chips--wrap) {
		padding: 4px;
		border-radius: 26px;
	}

	.cpts-news-list .cpts-chips {
		gap: 8px;
		padding: 0;
	}

	.cpts-section .cpts-chip {
		min-height: 44px;
		padding: 0 12px;
		font-size: 15px;
	}

	.cpts-tools .cpts-chips--wrap {
		gap: 10px 8px;
	}

	.cpts-tools .cpts-chips--wrap .cpts-chip {
		padding: 0 16px;
		font-size: 16px;
	}

	.cpts-btn,
	.cpts-section .cpts-btn,
	.cpts-newsletter .cpts-btn,
	.cpts-invite .cpts-btn {
		font-size: 18px;
	}

	.cpts-track {
		grid-auto-columns: 85%;
	}

	.cpts-news-list--carrousel .cpts-track {
		grid-auto-columns: 88%;
	}

	.cpts-partners .cpts-track {
		grid-auto-columns: calc((100% - var(--cpts-gap)) / 2);
	}

	.cpts-partner {
		height: 130px;
		padding: 18px;
	}

	.cpts-grid,
	.cpts-grid--snp,
	.cpts-agenda--grille .cpts-agenda__items {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Footers: arrows on the right, button centred under them, as on the home news. */
	.cpts-section__foot {
		display: grid;
		justify-content: stretch;
		justify-items: center;
		gap: 12px;
	}

	.cpts-section__foot .cpts-arrows {
		order: -1;
		justify-self: end;
	}

	.cpts-news-list--carrousel .cpts-section__foot .cpts-btn {
		margin-top: 0;
	}

	/* Same 12 px between the arrows and the button as under the agenda (V1-04). */
	.cpts-news-list--carrousel .cpts-section__foot {
		gap: 12px;
	}

	.cpts-date {
		width: 78px;
		height: 78px;
	}

	.cpts-date__day {
		font-size: 28px;
	}

	.cpts-date__month {
		font-size: 15px;
		margin-top: 2px;
	}

	.cpts-event.is-featured .cpts-date,
	.cpts-agenda--grille .cpts-date {
		margin: -39px 20px -39px 0;
	}

	.cpts-event.is-featured .cpts-event__body,
	.cpts-agenda--grille .cpts-event__body {
		padding: 18px 20px 24px;
	}

	.cpts-event.is-featured .cpts-event__meta,
	.cpts-agenda--grille .cpts-event__meta {
		padding-right: 88px;
	}

	.cpts-event__meta,
	.cpts-event__audience,
	.cpts-event.is-featured .cpts-event__audience {
		font-size: 16px;
		line-height: 21px;
	}

	.cpts-event.is-featured .cpts-event__title {
		font-size: 22px;
		line-height: 28px;
	}

	.cpts-agenda .cpts-link {
		font-size: 18px;
	}

	/* Home agenda cards: badge above the title, which keeps the full card width. */
	.cpts-agenda--accueil .cpts-event:not(.is-featured) .cpts-event__card {
		flex-direction: column;
		gap: 12px;
		min-height: 0;
		padding: 20px;
	}

	.cpts-news__body {
		padding: 24px 20px 28px;
	}

	/* Pill and date share one line in a 262 px card body. */
	.cpts-news__meta {
		gap: 6px 8px;
	}

	.cpts-pill {
		height: 28px;
		font-size: 14px;
	}

	.cpts-snp__filters fieldset {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.cpts-snp__communes {
		grid-row: auto;
		gap: 0;
		padding-left: 37px;
	}

	.cpts-snp__urgent {
		padding: 16px 20px;
		font-size: 18px;
	}

	.cpts-snp__urgent .cpts-icon {
		width: 48px;
		height: 48px;
		padding: 11px;
	}

	.cpts-snp__filters {
		padding: 28px 20px;
	}

	/* Folded filters (V2-17): the panel colour moves to the disclosure, its summary is a 56 px row. */
	.cpts-snp__details {
		border-radius: var(--cpts-radius-s);
		background: var(--cpts-violet-clair);
		box-shadow: 0 0 3px rgba(0, 0, 0, 0.16);
	}

	.cpts-snp__summary {
		display: flex;
		align-items: center;
		gap: 12px;
		min-height: 56px;
		padding: 0 20px;
		border-radius: inherit;
		list-style: none;
		cursor: pointer;
		font-size: 20px;
		font-weight: 500;
		line-height: 1.2;
		color: var(--cpts-texte);
	}

	.cpts-snp__summary::-webkit-details-marker {
		display: none;
	}

	.cpts-snp__summary .cpts-icon {
		width: 24px;
		height: 24px;
		color: var(--cpts-violet);
	}

	.cpts-snp__summary > .cpts-icon:last-child {
		margin-left: auto;
		transition: transform 0.2s ease-out;
	}

	.cpts-snp__details[open] > .cpts-snp__summary > .cpts-icon:last-child {
		transform: rotate(180deg);
	}

	.cpts-snp__badge {
		display: inline-grid;
		place-items: center;
		min-width: 26px;
		height: 26px;
		padding: 0 8px;
		border-radius: 13px;
		background: var(--cpts-violet);
		color: #fff;
		font-size: 15px;
		font-weight: 600;
		line-height: 1;
	}

	.cpts-snp__badge[hidden] {
		display: none;
	}

	.cpts-snp__details .cpts-snp__filters {
		padding: 0 20px 24px;
		border-radius: 0;
		background: none;
		box-shadow: none;
	}

	/* The summary says "Filtrer"; the form keeps its title as accessible name only. */
	.cpts-snp__details .cpts-snp__filters-title {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.cpts-snp__filters-title {
		font-size: 24px;
		line-height: 30px;
		margin-bottom: 16px;
	}

	.cpts-snp__filters legend {
		font-size: 18px;
		line-height: 22px;
		margin-bottom: 4px;
	}

	.cpts-snp .cpts-check {
		min-height: 44px;
		font-size: 18px;
		line-height: 22px;
	}

	.cpts-section .cpts-snp__reset {
		min-height: 44px;
		margin-top: 12px;
		font-size: 18px;
	}

	.cpts-snp__count {
		margin: 0 0 16px;
		padding-left: 0;
		font-size: 18px;
	}

	.cpts-structure__card {
		padding: 22px;
	}

	.cpts-structure__title {
		font-size: 24px;
	}

	.cpts-section ul.cpts-structure__facts {
		gap: 12px;
		margin: 20px 0 24px;
		font-size: 18px;
		line-height: 24px;
	}

	.cpts-structure__facts .cpts-icon {
		margin-top: 2px;
	}

	.cpts-structure__facts .cpts-structure__address .cpts-icon {
		margin-top: 0;
	}

	/* LinkedIn cards: the link is the only action of the card, 44 px tall without moving the text. */
	.cpts-linkedin .cpts-link {
		padding-block: 10px;
		margin-block: -10px;
	}

	/* 44 px tap height on each number, without moving the text (V2-08). */
	.cpts-structure__phone a {
		display: inline-block;
		padding: 10px;
		margin: -10px;
	}

	.cpts-newsletter {
		padding: 48px 16px;
	}

	.cpts-newsletter__title {
		font-size: 32px;
		line-height: 38px;
		margin-bottom: 12px;
	}

	.cpts-newsletter__intro p,
	.cpts-newsletter .cpts-newsletter__label {
		font-size: 18px;
		line-height: 24px;
	}

	.cpts-newsletter__row {
		flex-direction: column;
		gap: 12px;
	}

	.cpts-newsletter .cpts-newsletter__row .cpts-btn {
		width: 100%;
		justify-content: center;
	}

	.cpts-newsletter .cpts-newsletter__consent label {
		padding-block: 4px 0;
		font-size: 16px;
		line-height: 21px;
	}

	.cpts-tools__for {
		flex-wrap: wrap;
		gap: 8px 16px;
	}

	.cpts-tools__filters {
		margin-bottom: 32px;
	}

	.cpts-tool__card {
		padding: 18px;
		gap: 16px;
	}

	.cpts-tool__thumb {
		width: 96px;
		height: 140px;
	}

	.cpts-tool__title {
		font-size: 20px;
		line-height: 26px;
	}

	.cpts-tool__tags,
	.cpts-tool .cpts-pill {
		font-size: 16px;
	}

	.cpts-tool__locked a {
		min-height: 44px;
	}

	.cpts-invite {
		padding: 38px 16px 60px;
	}

	.cpts-invite__head {
		margin-bottom: 40px;
	}

	.cpts-breadcrumb p {
		font-size: 16px;
	}

	.cpts-invite__inner {
		padding: 36px 22px;
	}

	.cpts-invite__title {
		font-size: 30px;
		line-height: 35px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cpts-track {
		scroll-behavior: auto;
	}

	.cpts-btn,
	.cpts-arrow,
	.cpts-snp__summary > .cpts-icon:last-child {
		transition: none;
	}
}

/* Instagram (Actualités): six square photos, three per row, two on phones. */
.cpts-instagram__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cpts-instagram__item {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 20px;
}

.cpts-instagram__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 200ms ease-out;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.cpts-instagram__item:hover .cpts-instagram__img {
		transform: scale(1.03);
	}
}


@media (max-width: 767px) {
	.cpts-instagram__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
}

/* Newsletter archive under the subscription band of /newsletter/ (Couac 0270). The vertical space lives in the
   section, not on its Elementor container: while no issue is published the shortcode prints nothing and the
   empty container must collapse instead of leaving a 240 px gap above the footer. Same rhythm as the news grid. */
.cpts-nl-archive {
	padding-block: 120px;
}

@media (max-width: 1024px) {
	.cpts-nl-archive {
		padding-block: 80px;
	}
}

@media (max-width: 767px) {
	.cpts-nl-archive {
		padding-block: 60px;
	}
}

/* Latest issue beside the sign-up box at the top of /newsletter/ (24/11/2026), then "Tous les numéros".
   The box is the newsletter band in its "encart" variant: rounded, one column, inside the page container. */
.cpts-nl-vedette {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--cpts-gap);
	align-items: end;
	padding-top: 60px;
}

.cpts-section .cpts-nl-vedette__label {
	margin: 0 0 16px;
	font-family: var(--cpts-font-titre);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--cpts-violet);
}

.cpts-nl-vedette__card {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Covers are the top of each issue (logo and title): crop from the top, never from the middle. */
.cpts-nl-vedette .cpts-news__img,
.cpts-nl-archive .cpts-news__img {
	object-position: center top;
}

.cpts-nl-vedette + .cpts-nl-archive {
	padding-top: 96px;
}

.cpts-newsletter.cpts-newsletter--encart {
	border-radius: var(--cpts-radius);
	padding: 48px;
}

.cpts-newsletter--encart .cpts-newsletter__inner {
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	max-width: none;
}

.cpts-newsletter--encart .cpts-newsletter__form {
	margin-top: 0;
}

/* Side by side from 1200 px only: narrower, the box wraps its form and grows far taller than the card. */
@media (max-width: 1199px) {
	.cpts-nl-vedette {
		grid-template-columns: minmax(0, 1fr);
		padding-top: 40px;
	}

	.cpts-nl-vedette + .cpts-nl-archive {
		padding-top: 72px;
	}
}

/* Stacked on a tablet, the card spans the container: a wider cover keeps it from towering over the box. */
@media (min-width: 768px) and (max-width: 1199px) {
	.cpts-nl-vedette .cpts-news__media {
		aspect-ratio: 21 / 8;
	}
}

@media (max-width: 1024px) {
	.cpts-newsletter.cpts-newsletter--encart {
		padding: 32px 24px;
	}
}

/* Sport santé clubs (devis #240): long email addresses and websites wrap inside the card. */
.cpts-club .cpts-structure__facts a {
	overflow-wrap: anywhere;
}

.cpts-club .cpts-structure__mode-icon {
	color: #0787a3;
}

/* The extra gap before the last checkbox belongs to the care structures' XD, not to the commune list. */
.cpts-snp--clubs .cpts-snp__filters fieldset > .cpts-check:last-of-type {
	margin-top: 0;
}
