/* Thème Cyprès : contenu des articles (publications juridiques). */
.single-post .wp-block-post-content { font-size: 1.0625rem; line-height: 1.75; color: var(--wp--preset--color--texte); }
.single-post .wp-block-post-content > * + * { margin-top: 1.1em; }
.single-post .wp-block-post-content h2 { margin-top: 2.6em; font-size: clamp(1.625rem, 2.6vw, 2rem); line-height: 1.2; }
.single-post .wp-block-post-content h3 { margin-top: 1.8em; font-size: 1.3125rem; line-height: 1.3; }
.single-post .wp-block-post-content h4 { margin-top: 1.4em; font-size: 1.125rem; }
.single-post .wp-block-post-content strong { color: var(--wp--preset--color--encre); }
.single-post .wp-block-post-content a { color: var(--wp--preset--color--cypres); text-underline-offset: 3px; }

.cy-chapo { font-size: clamp(1.1875rem, 1.8vw, 1.375rem); line-height: 1.55; color: var(--wp--preset--color--texte); }
.cy-reference {
	display: inline-block; font: 500 14px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	padding: 8px 14px; border-radius: 8px; background: var(--wp--preset--color--sauge); color: var(--wp--preset--color--cypres-fonce);
}
.cy-signature { font-size: 0.875rem; font-style: italic; color: var(--wp--preset--color--gris); padding-top: 20px; border-top: 1px solid var(--wp--preset--color--ligne); }

/* Encadrés */
.cy-encadre {
	background: var(--wp--preset--color--gris-clair); border-radius: 12px; padding: 28px;
	margin-top: 2em !important; margin-bottom: 2em; font-size: 1rem; line-height: 1.65;
}
.cy-encadre > * + * { margin-top: .8em; }
.cy-encadre .cy-encadre { background: var(--wp--preset--color--blanc); border: 1px solid var(--wp--preset--color--ligne); padding: 20px; margin: 1em 0 0 !important; }
.cy-encadre h3, .cy-encadre h4 { margin-top: .2em !important; }
.cy-intertitre { font-family: var(--wp--preset--font-family--inter-tight); font-size: 1.125rem; font-weight: 600; line-height: 1.3; color: var(--wp--preset--color--encre); }
.cy-encadre > .cy-intertitre:first-child { margin-bottom: .2em; }
.cy-encadre > .cy-num { font-size: 0.9375rem; margin-bottom: -.4em; }
.cy-grille { gap: 16px; margin-top: 1em; }
.cy-grille > p { margin: 0; }
.cy-chiffre { font-family: var(--wp--preset--font-family--inter-tight); font-size: clamp(1.625rem, 3vw, 2.125rem); font-weight: 600; line-height: 1.1; color: var(--wp--preset--color--cypres); }

/* Tableaux */
.cy-tableau { overflow-x: auto; margin-top: 1.6em; margin-bottom: 1.6em; container-type: inline-size; }
.cy-tableau table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.cy-tableau th { text-align: left; font-weight: 600; color: var(--wp--preset--color--encre); background: var(--wp--preset--color--sauge); }
.cy-tableau th, .cy-tableau td { padding: 12px 14px; border: 1px solid var(--wp--preset--color--ligne); vertical-align: top; }
.cy-tableau tbody tr:nth-child(even) td { background: #FAFBFA; }
.cy-encadre .cy-tableau { margin: 0; }
.cy-encadre .cy-tableau tbody tr td { background: var(--wp--preset--color--blanc); }
/* Tableau étroit (téléphone) : chaque ligne devient une fiche, le libellé de colonne précède chaque valeur. */
@container (width < 520px) {
	.cy-tableau table { min-width: 0; }
	.cy-tableau :is(table, thead, tbody, tr, th, td) { display: block; }
	.cy-tableau thead { display: none; }
	.cy-tableau tbody tr { border: 1px solid var(--wp--preset--color--ligne); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
	.cy-tableau tbody tr :is(td, th) { border: 0; border-top: 1px solid var(--wp--preset--color--ligne); background: var(--wp--preset--color--blanc) !important; }
	.cy-tableau tbody tr > :first-child { border-top: 0; background: var(--wp--preset--color--sauge) !important; font-weight: 600; color: var(--wp--preset--color--encre); }
	.cy-tableau [data-label]::before { content: attr(data-label); display: block; font-size: 0.8125rem; font-weight: 600; letter-spacing: .02em; color: var(--wp--preset--color--gris); margin-bottom: 2px; }
	.cy-tableau tbody tr > :first-child[data-label]::before { content: none; }
}

/* Images et questions */
.single-post .wp-block-image img { border-radius: 12px; }
.single-post .wp-block-image figcaption { font-size: 0.875rem; color: var(--wp--preset--color--gris); text-align: center; }
.single-post .wp-block-post-content .wp-block-details { font-size: 1rem; }
.single-post .wp-block-post-content .wp-block-details + .wp-block-details { margin-top: 0; }

/* Liste : lien « Retour aux publications » et appel à l'action en fin d'article */
.cy-fin-article { border-radius: 16px; padding: 32px; }
.cy-fin-article p { margin: 0; }

@media (max-width: 600px) {
	.single-post .wp-block-post-content { font-size: 1rem; }
	.cy-encadre { padding: 20px; }
}
.cy-grille > .cy-case { display: flex; flex-direction: column; gap: 6px; }
.cy-grille > .cy-case > * { margin: 0 !important; }
.cy-encadre .cy-grille > .cy-case { background: var(--wp--preset--color--blanc); border-radius: 10px; padding: 18px; }

/* Pour aller plus loin */
.cy-plus-loin { margin-top: 3em !important; padding-top: 2em; border-top: 1px solid var(--wp--preset--color--ligne); }
.single-post .wp-block-post-content .cy-plus-loin h2 { margin-top: 0; font-size: 1.5rem; }
.cy-plus-loin-domaines { font-size: 1rem; }
.single-post .wp-block-post-content .cy-plus-loin-sous-titre { margin-top: 1.4em; font-size: 1.125rem; }
.cy-plus-loin .cy-carte-article a { color: var(--wp--preset--color--encre); text-decoration: none; }
.single-post .wp-block-post-content .cy-carte-article h3 { margin-top: 0; font-size: 1.125rem; line-height: 1.35; }
.single-post .wp-block-post-content .cy-carte-article p { margin: 0; }

/* Encadré auteur */
.cy-auteur { border: 1px solid var(--wp--preset--color--ligne); border-radius: 12px; padding: 24px 28px; font-size: 0.9375rem; line-height: 1.6; color: var(--wp--preset--color--texte); }
.cy-auteur p { margin: 0; }
.cy-auteur-nom { font-family: var(--wp--preset--font-family--inter-tight); font-size: 1.1875rem !important; font-weight: 600; }
.cy-auteur-nom a { color: var(--wp--preset--color--encre); text-decoration: none; }
.cy-auteur a { color: var(--wp--preset--color--cypres); text-underline-offset: 3px; }

/* Articles : une seule taille pour tous les titres de niveau 2 de la page. */
.single-post main h2.wp-block-heading:not(.screen-reader-text), .single-post .cy-plus-loin h2 { font-size: clamp(1.625rem, 2.6vw, 2rem) !important; }
