.hopopup-list,
.hopopup-documents,
.hopopup-faq,
.hopopup-glossary,
.hopopup-glossary-list {
	display: grid;
	gap: var(--hopopup-space-md, 1rem);
}

.hopopup-grid {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hopopup-services-list,
.hopopup-documents-list {
	display: grid;
	grid-template-columns: 1fr;
}

.hopopup-card {
	background: var(--hopopup-card-bg, var(--hopopup-color-surface, #fff));
	border: 1px solid var(--hopopup-card-border, var(--hopopup-color-border, currentColor));
	border-radius: var(--hopopup-card-radius, var(--hopopup-radius-md, 8px));
	box-shadow: var(--hopopup-card-shadow, none);
	color: var(--hopopup-color-ink, inherit);
	overflow: hidden;
}

.hopopup-card-media {
	display: block;
}

.hopopup-card-media img {
	aspect-ratio: 4 / 3;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.hopopup-card-body {
	display: grid;
	gap: var(--hopopup-space-sm, .75rem);
	padding: var(--hopopup-card-padding, var(--hopopup-space-md, 1rem));
}

.hopopup-card-title {
	font-family: var(--hopopup-font-heading, inherit);
	font-size: 1.15rem;
	line-height: 1.25;
	margin: 0;
}

.hopopup-detail-title {
	font-family: var(--hopopup-font-heading, inherit);
	font-size: 1.5rem;
	line-height: 1.25;
	margin: 0 0 var(--hopopup-space-sm, .75rem);
}

.hopopup-card-subtitle {
	color: var(--hopopup-color-muted, inherit);
	font-weight: 700;
	margin: 0;
}

.hopopup-card-text {
	margin: 0;
}

.hopopup-richtext > :first-child {
	margin-top: 0;
}

.hopopup-richtext > :last-child {
	margin-bottom: 0;
}

.hopopup-button,
.hopopup-link {
	justify-self: start;
}

.hopopup-faq {
	gap: var(--hopopup-faq-group-gap, var(--hopopup-faq-gap, var(--hopopup-space-md, 1rem)));
}

.hopopup-faq-group,
.hopopup-faq-group-items {
	display: grid;
}

.hopopup-faq-group[hidden] {
	display: none;
}

.hopopup-faq-group {
	gap: var(--hopopup-faq-gap, var(--hopopup-space-md, 1rem));
}

.hopopup-faq-group-items {
	gap: var(--hopopup-faq-group-item-gap, var(--hopopup-faq-gap, var(--hopopup-space-md, 1rem)));
}

.hopopup-faq-group-title {
	color: var(--hopopup-faq-category-color, inherit);
	font-family: var(--hopopup-faq-category-font-family, var(--hopopup-font-heading, inherit));
	font-size: var(--hopopup-faq-category-font-size, 1.35rem);
	font-style: var(--hopopup-faq-category-font-style, normal);
	font-weight: var(--hopopup-faq-category-font-weight, 700);
	letter-spacing: var(--hopopup-faq-category-letter-spacing, normal);
	line-height: var(--hopopup-faq-category-line-height, 1.25);
	margin: var(--hopopup-faq-category-margin, 0);
	text-decoration: var(--hopopup-faq-category-text-decoration, none);
	text-transform: var(--hopopup-faq-category-text-transform, none);
}

.hopopup-faq-item {
	border-color: var(--hopopup-faq-item-border-color, var(--hopopup-color-border, currentColor));
	border-radius: var(--hopopup-faq-item-border-radius, 0);
	border-style: var(--hopopup-faq-item-border-style, solid);
	border-width: var(--hopopup-faq-item-border-width, 0 0 1px);
	box-shadow: var(--hopopup-faq-item-shadow, none);
	overflow: hidden;
	padding: 0;
}

.hopopup-faq-title {
	font: inherit;
	margin: 0;
}

.hopopup-faq-trigger,
.hopopup-faq-title--static {
	background: var(--hopopup-faq-question-bg, transparent);
	box-sizing: border-box;
	color: var(--hopopup-faq-question-color, var(--hopopup-color-ink, inherit));
	font-family: var(--hopopup-faq-question-font-family, var(--hopopup-font-heading, inherit));
	font-size: var(--hopopup-faq-question-font-size, 1.2rem);
	font-style: var(--hopopup-faq-question-font-style, normal);
	font-weight: var(--hopopup-faq-question-font-weight, 700);
	letter-spacing: var(--hopopup-faq-question-letter-spacing, normal);
	line-height: var(--hopopup-faq-question-line-height, 1.3);
	padding: var(--hopopup-faq-question-padding, var(--hopopup-space-sm, .75rem) 0);
	text-decoration: var(--hopopup-faq-question-text-decoration, none);
	text-transform: var(--hopopup-faq-question-text-transform, none);
}

.hopopup-faq-trigger {
	align-items: center;
	appearance: none;
	border: 0;
	box-shadow: none;
	cursor: pointer;
	display: flex;
	gap: var(--hopopup-faq-icon-gap, var(--hopopup-space-md, 1rem));
	text-align: left;
	width: 100%;
}

.hopopup-faq .hopopup-faq-trigger:focus:not(:focus-visible) {
	background: var(--hopopup-faq-question-bg, transparent) !important;
	box-shadow: none !important;
	color: var(--hopopup-faq-question-color, var(--hopopup-color-ink, inherit)) !important;
	outline: 0 !important;
}

.hopopup-faq-trigger:hover {
	background: var(--hopopup-faq-question-bg-hover, var(--hopopup-faq-question-bg, transparent));
	color: var(--hopopup-faq-question-color-hover, var(--hopopup-faq-question-color, var(--hopopup-color-ink, inherit)));
}

.hopopup-faq .hopopup-faq-trigger:focus-visible {
	background: var(--hopopup-faq-question-bg-focus, var(--hopopup-faq-question-bg, transparent)) !important;
	box-shadow: none !important;
	color: var(--hopopup-faq-question-color-focus, var(--hopopup-faq-question-color, var(--hopopup-color-ink, inherit))) !important;
	outline: 2px solid currentColor !important;
	outline-offset: -2px;
}

.hopopup-faq-trigger[aria-expanded="true"] {
	background: var(--hopopup-faq-question-bg-active, var(--hopopup-faq-question-bg, transparent));
	color: var(--hopopup-faq-question-color-active, var(--hopopup-faq-question-color, var(--hopopup-color-ink, inherit)));
}

.hopopup-faq-question {
	flex: 1 1 auto;
	min-width: 0;
}

.hopopup-faq-icon {
	align-items: center;
	color: var(--hopopup-faq-icon-color, currentColor);
	display: inline-flex;
	flex: 0 0 var(--hopopup-faq-icon-size, 1em);
	font-size: var(--hopopup-faq-icon-size, 1em);
	font-weight: 700;
	height: var(--hopopup-faq-icon-size, 1em);
	justify-content: center;
	line-height: 1;
	order: var(--hopopup-faq-icon-order, 1);
	width: var(--hopopup-faq-icon-size, 1em);
}

.hopopup-faq-trigger:hover .hopopup-faq-icon {
	color: var(--hopopup-faq-icon-color-hover, var(--hopopup-faq-icon-color, currentColor));
}

.hopopup-faq .hopopup-faq-trigger:focus-visible .hopopup-faq-icon {
	color: var(--hopopup-faq-icon-color-focus, var(--hopopup-faq-icon-color, currentColor));
}

.hopopup-faq-trigger[aria-expanded="true"] .hopopup-faq-icon {
	color: var(--hopopup-faq-icon-color-active, var(--hopopup-faq-icon-color, currentColor));
}

.hopopup-faq-icon img,
.hopopup-faq-icon-closed,
.hopopup-faq-icon-open {
	display: block;
	height: 100%;
	width: 100%;
}

.hopopup-faq-icon img {
	object-fit: contain;
}

.hopopup-faq-icon-closed,
.hopopup-faq-icon-open,
.hopopup-faq-icon-fallback {
	align-items: center;
	justify-content: center;
}

.hopopup-faq-icon-closed,
.hopopup-faq-icon-fallback {
	display: flex;
}

.hopopup-faq-icon-open,
.hopopup-faq-trigger[aria-expanded="true"] .hopopup-faq-icon-closed {
	display: none;
}

.hopopup-faq-trigger[aria-expanded="true"] .hopopup-faq-icon-open {
	display: flex;
}

.hopopup-faq-answer {
	background: var(--hopopup-faq-answer-bg, transparent);
	color: var(--hopopup-faq-answer-color, inherit);
	font-family: var(--hopopup-faq-answer-font-family, inherit);
	font-size: var(--hopopup-faq-answer-font-size, inherit);
	font-style: var(--hopopup-faq-answer-font-style, normal);
	font-weight: var(--hopopup-faq-answer-font-weight, inherit);
	letter-spacing: var(--hopopup-faq-answer-letter-spacing, normal);
	line-height: var(--hopopup-faq-answer-line-height, inherit);
	padding: var(--hopopup-faq-answer-padding, var(--hopopup-space-sm, .75rem) 0);
	text-decoration: var(--hopopup-faq-answer-text-decoration, none);
	text-transform: var(--hopopup-faq-answer-text-transform, none);
}

.hopopup-faq-answer > * {
	margin-block: 0 var(--hopopup-faq-answer-paragraph-gap, 1em);
}

.hopopup-faq-answer > :last-child {
	margin-bottom: 0;
}

.hopopup-content-search {
	margin-bottom: var(--hopopup-space-sm, .75rem);
}

.hopopup-content-search-field {
	margin-inline: auto;
	max-width: 30rem;
	position: relative;
}

.hopopup-content-search-field input[type="search"] {
	appearance: none;
	background: var(--hopopup-color-surface-soft, #f3f3f3);
	border: 1px solid var(--hopopup-color-border, #dcdcde);
	border-radius: 999px;
	box-sizing: border-box;
	color: var(--hopopup-color-ink, inherit);
	font: inherit;
	line-height: 1.3;
	min-height: 2.75rem;
	padding: .65rem 3rem .65rem 1rem;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
	width: 100%;
}

.hopopup-content-search-field input[type="search"]:focus {
	background: var(--hopopup-color-surface, #fff);
	border-color: var(--hopopup-color-primary, currentColor);
	box-shadow: 0 0 0 2px var(--hopopup-focus-ring, rgba(0, 0, 0, .12));
	outline: 0;
}

.hopopup-content-search-field svg {
	height: 1.25rem;
	pointer-events: none;
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1.25rem;
}

.hopopup-content-search .screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.hopopup-search-empty {
	background: var(--hopopup-color-surface-soft, transparent);
	border: 1px solid var(--hopopup-color-border, #dcdcde);
	border-radius: var(--hopopup-card-radius, var(--hopopup-radius-md, 8px));
	padding: var(--hopopup-space-md, 1rem);
	text-align: center;
}

.hopopup-glossary-list {
	gap: var(--hopopup-space-sm, .75rem);
}

.hopopup-glossary-item {
	background: var(--hopopup-color-surface-soft, #f1f1f1);
	border: 1px solid var(--hopopup-color-border, #dcdcde);
	border-radius: var(--hopopup-card-radius, var(--hopopup-radius-lg, 14px));
	padding: 0;
}

.hopopup-glossary-title {
	font-family: var(--hopopup-font-heading, inherit);
	font-size: 1.15rem;
	line-height: 1.25;
	margin: 0;
}

.hopopup-glossary-trigger {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--hopopup-color-ink, inherit);
	cursor: pointer;
	display: flex;
	font: inherit;
	font-weight: 700;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	text-align: left;
	width: 100%;
}

.hopopup-glossary-trigger:hover {
	color: var(--hopopup-link-hover-color, var(--hopopup-color-primary-dark, currentColor));
}

.hopopup-glossary-trigger::after {
	content: "›";
	font-size: 1.45em;
	font-weight: 700;
	line-height: .8;
	margin-left: var(--hopopup-space-md, 1rem);
	transform: rotate(0deg);
	transition: transform .15s ease;
}

.hopopup-glossary-trigger[aria-expanded="true"]::after {
	transform: rotate(90deg);
}

.hopopup-glossary-definition {
	padding: 1.15rem 1.25rem;
}

.hopopup-glossary-item.is-static > .hopopup-glossary-title {
	padding: 1rem 1.25rem 0;
}

.hopopup-glossary-item.is-static > .hopopup-glossary-title + .hopopup-glossary-definition {
	padding-top: .65rem;
}

.hopopup-document-items {
	margin-bottom: 0;
	margin-top: 0;
	padding-left: 1.25rem;
}

.hopopup-service-detail {
	display: grid;
	gap: var(--hopopup-space-md, 1rem);
}

.hopopup-icon-gallery,
.hopopup-photo-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hopopup-space-sm, .75rem);
}

.hopopup-icon-gallery img {
	height: 48px;
	object-fit: contain;
	width: 48px;
}

.hopopup-photo-gallery img {
	border-radius: var(--hopopup-radius-sm, 4px);
	height: auto;
	max-width: 220px;
	width: 100%;
}

.hopopup-empty {
	background: var(--hopopup-color-surface-soft, transparent);
	border: 1px solid var(--hopopup-card-border, var(--hopopup-color-border, currentColor));
	border-radius: var(--hopopup-card-radius, var(--hopopup-radius-md, 8px));
	padding: var(--hopopup-card-padding, var(--hopopup-space-md, 1rem));
}

.hopopup-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hopopup-space-sm, .75rem);
}

.hopopup-card-meta {
	color: var(--hopopup-color-muted, inherit);
	font-size: .9rem;
	font-weight: 600;
	margin: 0;
}

.hopopup-filter-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hopopup-space-xs, .5rem);
	margin-bottom: var(--hopopup-space-md, 1rem);
}

.hopopup-filter-button {
	align-items: center;
	background: var(--hopopup-color-surface, #fff);
	border: 1px solid var(--hopopup-color-border, currentColor);
	border-radius: var(--hopopup-button-radius, var(--hopopup-radius-md, 8px));
	color: var(--hopopup-color-ink, inherit);
	display: inline-flex;
	font-weight: 600;
	line-height: 1.2;
	padding: .55rem .85rem;
	text-decoration: none;
}

.hopopup-filter-button:hover,
.hopopup-filter-button.is-active {
	background: var(--hopopup-color-primary, currentColor);
	border-color: var(--hopopup-color-primary, currentColor);
	color: var(--hopopup-color-primary-contrast, #fff);
}

.hopopup-template-service .hopopup-shell,
.hopopup-template-document .hopopup-shell {
	margin-inline: auto;
	max-width: var(--hopopup-content-width, 1180px);
	padding: clamp(1rem, 2.5vw, 2rem);
}

.hopopup-service-detail {
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

.hopopup-service-hero {
	align-items: center;
	display: grid;
	gap: clamp(1.5rem, 4vw, 3.5rem);
}

.hopopup-service-hero.has-image {
	grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
}

.hopopup-service-hero-media {
	margin: 0;
	overflow: hidden;
	border-radius: var(--hopopup-card-radius, var(--hopopup-radius-lg, 18px));
}

.hopopup-service-hero-media img,
.hopopup-service-field-image {
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.hopopup-service-hero-content {
	display: grid;
	gap: var(--hopopup-space-sm, .85rem);
}

.hopopup-service-summary {
	font-size: 1.05rem;
	font-weight: 650;
	line-height: 1.55;
	margin: 0;
}

.hopopup-icon-gallery {
	align-items: stretch;
	background: var(--hopopup-card-bg, var(--hopopup-color-surface, #fff));
	border: 1px solid var(--hopopup-card-border, var(--hopopup-color-border, #dcdcde));
	border-radius: var(--hopopup-card-radius, var(--hopopup-radius-lg, 16px));
	display: grid;
	gap: clamp(1rem, 2vw, 2rem);
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	padding: clamp(1rem, 2.5vw, 1.75rem);
}

.hopopup-icon-item {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: .65rem;
	justify-content: flex-start;
	margin: 0;
	text-align: center;
}

.hopopup-icon-item img {
	height: 72px;
	max-width: 96px;
	object-fit: contain;
	width: auto;
}

.hopopup-icon-item figcaption {
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.35;
}

.hopopup-photo-gallery {
	display: grid;
	gap: var(--hopopup-space-md, 1rem);
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hopopup-photo-item {
	margin: 0;
	min-width: 0;
}

.hopopup-photo-link {
	border-radius: var(--hopopup-radius-md, 8px);
	display: block;
	overflow: hidden;
	position: relative;
}

.hopopup-photo-link img {
	aspect-ratio: 4 / 3;
	display: block;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform .2s ease;
	width: 100%;
}

.hopopup-photo-caption {
	background: rgba(0, 0, 0, .72);
	bottom: 0;
	color: #fff;
	left: 0;
	line-height: 1.35;
	opacity: 0;
	padding: .8rem 1rem;
	position: absolute;
	right: 0;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease;
}

.hopopup-photo-link:hover img,
.hopopup-photo-link:focus-visible img {
	transform: scale(1.025);
}

.hopopup-photo-link:hover .hopopup-photo-caption,
.hopopup-photo-link:focus-visible .hopopup-photo-caption {
	opacity: 1;
	transform: translateY(0);
}

@media (hover: none) {
	.hopopup-photo-caption {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 760px) {
	.hopopup-service-hero.has-image {
		grid-template-columns: 1fr;
	}
}

/* FAQ : mise en page fluide, indépendante des breakpoints Elementor.
 * Chaque question et chaque réponse conserve sa hauteur naturelle, quelle que
 * soit la longueur du contenu ou la largeur du conteneur. */
.hopopup-faq,
.hopopup-faq .hopopup-faq-group,
.hopopup-faq .hopopup-faq-group-items,
.hopopup-faq .hopopup-faq-item,
.hopopup-faq .hopopup-faq-title,
.hopopup-faq .hopopup-faq-trigger,
.hopopup-faq .hopopup-faq-answer {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

.hopopup-faq,
.hopopup-faq .hopopup-faq-group,
.hopopup-faq .hopopup-faq-group-items {
    grid-template-columns: minmax(0, 1fr);
}

/* Empêche Elementor et le thème de tronquer les libellés des boutons. */
.hopopup-faq .hopopup-faq-trigger,
.hopopup-faq .hopopup-faq-title--static {
    width: 100%;
    height: auto !important;
    min-height: 0;
    max-height: none;
    white-space: normal !important;
    text-align: left;
}

.hopopup-faq .hopopup-faq-trigger {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.hopopup-faq .hopopup-faq-question,
.hopopup-faq .hopopup-faq-title--static {
    display: block;
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial;
}

/* L'icône garde sa taille pendant que le texte peut grandir librement. */
.hopopup-faq .hopopup-faq-icon {
    align-self: center;
    flex-shrink: 0;
}

/* L'ouverture ne doit jamais couper la réponse, même si celle-ci est longue. */
.hopopup-faq .hopopup-faq-answer:not([hidden]) {
    width: 100%;
    height: auto !important;
    min-height: 0;
    max-height: none !important;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
}

.hopopup-faq .hopopup-faq-answer[hidden] {
    display: none !important;
}

.hopopup-faq .hopopup-faq-answer :is(p, li, a, strong, em, span, h2, h3, h4, h5, h6) {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.hopopup-faq .hopopup-faq-answer :is(img, video, iframe, table) {
    max-width: 100%;
    height: auto;
}

.hopopup-faq .hopopup-faq-answer :is(pre, table) {
    overflow-x: auto;
}
