/*
 * Fiches des blocs (/catalogue/{bloc}/) : mise en page du contenu rédigé dans WordPress.
 * Sections du modèle : Présentation, Fonctionnalités, Utilisation, Questions fréquentes.
 * Les couleurs et polices viennent du thème (theme.json) ; seules les tailles de lecture
 * et les espacements sont fixés ici, pour un texte long confortable.
 */
.single-hexatenberg_block .wp-block-post-content {
	font-size: clamp(16px, 1.15vw, 17px);
	line-height: 1.7;
}

/* Rythme vertical : le thème met l'écart entre blocs à zéro sur ces pages. */
.single-hexatenberg_block .wp-block-post-content > * + *,
.single-hexatenberg_block .hx-block-section > * + * {
	margin-block-start: 1em;
}

/* Sections : séparées par un filet, titre à taille de lecture et non d'affiche. */
.single-hexatenberg_block .hx-block-section + .hx-block-section {
	margin-block-start: clamp(40px, 5vw, 64px);
	padding-block-start: clamp(32px, 4vw, 48px);
	border-block-start: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.single-hexatenberg_block .wp-block-post-content h2 {
	margin-block: 0 0.6em;
	font-size: clamp(26px, 2.4vw, 34px);
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.single-hexatenberg_block .wp-block-post-content h3 {
	margin-block: 1.8em 0.4em;
	font-size: clamp(19px, 1.5vw, 22px);
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.single-hexatenberg_block .wp-block-post-content h4,
.single-hexatenberg_block .wp-block-post-content h5,
.single-hexatenberg_block .wp-block-post-content h6 {
	margin-block: 1.4em 0.3em;
	font-size: 1.05em;
	line-height: 1.4;
}

.single-hexatenberg_block .wp-block-post-content p {
	margin-block-end: 0;
}

/* Listes : retrait lisible et respiration entre les éléments. */
.single-hexatenberg_block .wp-block-post-content :is(ul, ol) {
	padding-inline-start: 1.4em;
}

.single-hexatenberg_block .wp-block-post-content li + li {
	margin-block-start: 0.4em;
}

.single-hexatenberg_block .wp-block-post-content li::marker {
	font-weight: 600;
}

/* Questions fréquentes : accordéons. */
.single-hexatenberg_block .hx-block-section .wp-block-details {
	padding-block: 16px;
	border-block-end: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.single-hexatenberg_block .hx-block-section .wp-block-details + .wp-block-details {
	margin-block-start: 0;
}

.single-hexatenberg_block .hx-block-section .wp-block-details summary {
	font-weight: 600;
	cursor: pointer;
}

.single-hexatenberg_block .hx-block-section .wp-block-details > :not(summary) {
	margin-block-start: 0.6em;
}

/* Barre latérale « Fiche technique » : reste visible sous l'en-tête fixe. */
@media (min-width: 782px) {
	.single-hexatenberg_block .wp-block-column:has(.hex-block-facts) > .wp-block-group {
		position: sticky;
		top: 140px;
	}
}

.single-hexatenberg_block .wp-block-column:has(.hex-block-facts) h2 {
	font-size: clamp(22px, 1.8vw, 26px);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

/* Fiche technique sur fond vert : liens et bouton contrastés (WCAG AA). */
.single-hexatenberg_block .wp-block-column:has(.hex-block-facts) a:not(.wp-element-button) {
	color: var(--wp--preset--color--home-black, #202027);
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}
.single-hexatenberg_block .wp-block-column:has(.hex-block-facts) a:not(.wp-element-button):hover { text-decoration-thickness: 3px; }
.single-hexatenberg_block .wp-block-column:has(.hex-block-facts) a:focus-visible { outline: 2px solid var(--wp--preset--color--home-black, #202027); outline-offset: 3px; }
.single-hexatenberg_block .hex-block-facts__action .wp-element-button {
	border-radius: 999px;
	background: var(--wp--preset--color--home-black, #202027);
	color: #fff;
}
.single-hexatenberg_block .hex-block-facts__action .wp-element-button:hover { background: var(--wp--preset--color--home-yellow, #f9d400); color: var(--wp--preset--color--home-black, #202027); }
