/*
Theme Name: DroNaPix Télémétrie
Theme URI: https://www.dronapix.eu
Author: DroNaPix
Author URI: https://www.dronapix.eu
Description: Thème à blocs de DroNaPix, direction Télémétrie : un viseur, des données réelles en surimpression, un jaune balise pour signaler. Les étiquettes des photos sont remplies à partir des métadonnées DJI (hauteur de vol, position, date).
Requires at least: 6.7
Tested up to: 7.2
Requires PHP: 7.4
Version: 1.1.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dronapix
Tags: block-theme, full-site-editing, photography, blog, one-column, wide-blocks, custom-colors, editor-style
*/

/* -------------------------------------------------------------------------
   Repères
   ------------------------------------------------------------------------- */

:root {
	--dnp-hud: var(--wp--custom--hud--corner, 40px);
	--dnp-hud-w: var(--wp--custom--hud--weight, 3px);
	--dnp-hud-inset: var(--wp--custom--hud--inset, 24px);
	--dnp-mono: var(--wp--preset--font-family--mono);
	--dnp-display: var(--wp--preset--font-family--display);
	--dnp-ink: var(--wp--preset--color--ink);
	--dnp-muted: var(--wp--preset--color--ink-muted);
	--dnp-grid: var(--wp--preset--color--grid);
	--dnp-balise: var(--wp--preset--color--balise);
	--dnp-on-balise: var(--wp--preset--color--on-balise);
	--dnp-focus: var(--wp--preset--color--ink);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--dnp-balise);
	color: var(--dnp-on-balise);
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	text-decoration-thickness: 2px;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--dnp-focus);
	outline-offset: 2px;
}

img {
	border-radius: 0;
}

/* Interlignage et interlettrage des tailles de titre */
.has-display-xl-font-size { line-height: 0.975 !important; letter-spacing: -0.045em; }
.has-display-l-font-size { line-height: 1 !important; letter-spacing: -0.045em; }
.has-title-font-size { line-height: 1.04 !important; letter-spacing: -0.04em; }
.has-heading-font-size { line-height: 1.12 !important; letter-spacing: -0.03em; }
.has-card-title-font-size { line-height: 1.16 !important; letter-spacing: -0.025em; }
.has-lead-font-size { line-height: 1.5 !important; }
.has-body-s-font-size { line-height: 1.56 !important; }
.has-label-font-size,
.has-data-font-size { line-height: 1.5 !important; }

/* -------------------------------------------------------------------------
   En-tête et pied de page
   ------------------------------------------------------------------------- */

.dnp-logotype a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: inherit;
}

.dnp-logotype a::before {
	content: "";
	flex: none;
	width: 32px;
	height: 32px;
	background: url(assets/images/objectif-viseur.svg) center / contain no-repeat;
}

.dnp-pied .dnp-logotype a::before,
.is-style-nuit .dnp-logotype a::before {
	background-image: url(assets/images/objectif-viseur-sombre.svg);
}

.dnp-nav .wp-block-navigation-item__content {
	padding: 6px 0;
}

.dnp-nav .current-menu-item > .wp-block-navigation-item__content,
.dnp-nav .wp-block-navigation-item__content[aria-current="page"] {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.dnp-pied a {
	color: inherit;
	text-decoration: none;
}

.dnp-pied a:hover {
	text-decoration: underline;
}

.dnp-pied .is-style-surtitre {
	color: #A7AEB4;
}

.dnp-pied .has-body-s-font-size,
.dnp-pied .dnp-liste-nue {
	font-size: 15px;
	line-height: 1.6 !important;
}

.dnp-pied__bas {
	border-top: 1px solid #2E3236;
}

.dnp-pied .dnp-pied__meta {
	color: #A7AEB4;
}

.dnp-pied .dnp-pied__meta p {
	margin: 0;
}

ul.dnp-liste-nue {
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.dnp-liste-nue li {
	margin: 0 0 6px;
}

/* -------------------------------------------------------------------------
   Viseur : coins, croix, étiquette (images et images mises en avant)
   ------------------------------------------------------------------------- */

:is(.is-style-viseur, .is-style-viseur-encre, .is-style-viseur-heros) {
	--dnp-hud-color: #FFFFFF;
	position: relative;
}

.is-style-viseur-encre {
	--dnp-hud-color: #15171A;
}

:is(.is-style-viseur, .is-style-viseur-encre, .is-style-viseur-heros, .is-style-vignette) img {
	display: block;
}

:is(.is-style-viseur, .is-style-viseur-encre, .is-style-viseur-heros)::after {
	content: "";
	position: absolute;
	inset: var(--dnp-hud-inset);
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(var(--dnp-hud-color), var(--dnp-hud-color)) left top / var(--dnp-hud) var(--dnp-hud-w),
		linear-gradient(var(--dnp-hud-color), var(--dnp-hud-color)) left top / var(--dnp-hud-w) var(--dnp-hud),
		linear-gradient(var(--dnp-hud-color), var(--dnp-hud-color)) right top / var(--dnp-hud) var(--dnp-hud-w),
		linear-gradient(var(--dnp-hud-color), var(--dnp-hud-color)) right top / var(--dnp-hud-w) var(--dnp-hud),
		linear-gradient(var(--dnp-hud-color), var(--dnp-hud-color)) left bottom / var(--dnp-hud) var(--dnp-hud-w),
		linear-gradient(var(--dnp-hud-color), var(--dnp-hud-color)) left bottom / var(--dnp-hud-w) var(--dnp-hud),
		linear-gradient(var(--dnp-hud-color), var(--dnp-hud-color)) right bottom / var(--dnp-hud) var(--dnp-hud-w),
		linear-gradient(var(--dnp-hud-color), var(--dnp-hud-color)) right bottom / var(--dnp-hud-w) var(--dnp-hud);
	background-repeat: no-repeat;
}

/* Croix centrale : réservée aux photos de héros */
.is-style-viseur-heros::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	pointer-events: none;
	background:
		linear-gradient(#FFFFFF, #FFFFFF) 50% 0 / 2.5px 16px,
		linear-gradient(#FFFFFF, #FFFFFF) 50% 100% / 2.5px 16px,
		linear-gradient(#FFFFFF, #FFFFFF) 0 50% / 16px 2.5px,
		linear-gradient(#FFFFFF, #FFFFFF) 100% 50% / 16px 2.5px;
	background-repeat: no-repeat;
}

/* Étiquette balise : la légende de l'image, ou les métadonnées de la photo */
:is(.is-style-viseur, .is-style-viseur-encre, .is-style-viseur-heros) > figcaption,
:is(.is-style-viseur, .is-style-viseur-encre, .is-style-viseur-heros) .wp-element-caption {
	position: absolute;
	left: calc(var(--dnp-hud-inset) + var(--dnp-hud) + 16px);
	bottom: calc(var(--dnp-hud-inset) + 10px);
	z-index: 2;
	max-width: calc(100% - 2 * (var(--dnp-hud-inset) + var(--dnp-hud) + 16px));
	margin: 0;
	padding: 7px 10px;
	background: var(--dnp-balise);
	color: var(--dnp-on-balise);
	font-family: var(--dnp-mono);
	font-size: 13px;
	font-weight: 700;
	line-height: 16px;
	letter-spacing: 0.01em;
	text-align: left;
	text-transform: uppercase;
}

/* Étiquette claire : vignettes de cartes et photos secondaires */
.is-style-vignette {
	position: relative;
}

.is-style-vignette > figcaption,
.is-style-vignette .wp-element-caption {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 2;
	max-width: calc(100% - 24px);
	margin: 0;
	padding: 4px 7px;
	background: #FFFFFF;
	color: #15171A;
	font-family: var(--dnp-mono);
	font-size: 11px;
	font-weight: 700;
	line-height: 14px;
	text-align: left;
	text-transform: uppercase;
}

.wp-block-image :is(.is-style-viseur, .is-style-viseur-encre, .is-style-viseur-heros, .is-style-vignette) a,
:is(.is-style-viseur, .is-style-viseur-encre, .is-style-viseur-heros, .is-style-vignette) > a {
	display: block;
}

/* -------------------------------------------------------------------------
   Paragraphes : étiquette, surtitre, encadré, donnée
   ------------------------------------------------------------------------- */

p.is-style-etiquette {
	box-sizing: border-box;
	width: fit-content;
	padding: 7px 10px;
	background: var(--dnp-balise);
	color: var(--dnp-on-balise);
	font-family: var(--dnp-mono);
	font-size: 13px;
	font-weight: 700;
	line-height: 16px;
	text-transform: uppercase;
}

.is-style-surtitre {
	color: var(--dnp-muted);
	font-family: var(--dnp-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 18px;
	text-transform: uppercase;
}

.is-style-surtitre a {
	color: inherit;
	text-decoration: none;
}

/* Le métier et les zones : un vrai titre H1, présenté comme un surtitre */
:is(h1, h2, h3, h4).wp-block-heading.is-style-surtitre {
	margin: 0;
	font-family: var(--dnp-mono);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 20px;
	text-transform: uppercase;
}

.wp-block-heading.dnp-metier {
	color: var(--dnp-ink);
}

p.dnp-accroche {
	margin: 0;
	color: var(--dnp-ink);
	text-wrap: balance;
}

p.is-style-encadre {
	box-sizing: border-box;
	padding: 22px 24px;
	background: var(--dnp-balise);
	color: var(--dnp-on-balise);
	font-size: 21px;
	font-weight: 500;
	line-height: 32px;
}

p.is-style-encadre a {
	color: inherit;
}

p.is-style-donnee {
	color: var(--dnp-muted);
	font-family: var(--dnp-mono);
	font-size: 13px;
	line-height: 20px;
	text-transform: uppercase;
}

/* -------------------------------------------------------------------------
   Intertitres numérotés dans les récits (01, 02…)
   ------------------------------------------------------------------------- */

body.single-post .wp-block-post-content {
	counter-reset: dnp-intertitre;
}

body.single-post .wp-block-post-content > h2:not(.is-style-sans-index) {
	counter-increment: dnp-intertitre;
}

body.single-post .wp-block-post-content > h2:not(.is-style-sans-index)::before {
	content: counter(dnp-intertitre, decimal-leading-zero);
	display: block;
	margin-bottom: 8px;
	color: var(--dnp-muted);
	font-family: var(--dnp-mono);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1;
}

.wp-block-post-content > h2 {
	font-size: var(--wp--preset--font-size--heading);
	line-height: 1.12;
	letter-spacing: -0.03em;
	margin-block-start: 48px;
}

.wp-block-post-content > h3 {
	font-size: var(--wp--preset--font-size--card-title);
	line-height: 1.16;
	letter-spacing: -0.025em;
	margin-block-start: 36px;
}

/* Photos larges dans un récit ou une page simple : de l'air autour */
:is(.single, .page-template-default, .page-template-page-nuit) .wp-block-post-content > :is(.alignwide, .alignfull) {
	margin-block-start: var(--wp--preset--spacing--16);
	margin-block-end: var(--wp--preset--spacing--16);
}

:is(.single, .page-template-default, .page-template-page-nuit) .wp-block-post-content > :is(.alignwide, .alignfull) + * {
	margin-block-start: 0;
}

/* Page composée : un temps de respiration avant le pied de page */
.page-template-page-libre .wp-block-post-content > :last-child:not(.alignfull) {
	margin-block-end: var(--wp--preset--spacing--24);
}

/* -------------------------------------------------------------------------
   Boutons
   ------------------------------------------------------------------------- */

.wp-block-button .wp-block-button__link {
	min-height: 44px;
}

.wp-block-button.is-style-secondaire .wp-block-button__link {
	background: var(--wp--preset--color--graphite);
	color: var(--wp--preset--color--on-graphite);
}

.wp-block-button.is-style-lien .wp-block-button__link {
	min-height: 0;
	padding: 0;
	background: transparent;
	color: var(--dnp-ink);
	font-size: 13px;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

.wp-block-button.is-style-lien .wp-block-button__link:hover {
	text-decoration-thickness: 3px;
}

/* -------------------------------------------------------------------------
   Grille : chapitres, services, fiches
   ------------------------------------------------------------------------- */

.wp-block-columns.is-style-grille {
	gap: 0 !important;
	border-top: 1px solid var(--dnp-ink);
	border-left: 1px solid var(--dnp-grid);
}

.wp-block-columns.is-style-grille > .wp-block-column {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 26px;
	margin: 0 !important;
	padding: 18px 20px 28px;
	border-right: 1px solid var(--dnp-grid);
	border-bottom: 1px solid var(--dnp-grid);
	transition: background-color 0.15s ease;
}

.wp-block-columns.is-style-grille > .wp-block-column > * {
	margin: 0;
}

.wp-block-columns.is-style-grille > .wp-block-column:hover {
	background: var(--wp--preset--color--surface-alt);
}

.wp-block-columns.is-style-grille > .wp-block-column a {
	color: inherit;
	text-decoration: none;
}

.wp-block-columns.is-style-grille > .wp-block-column a::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* Chapitres : catégories du blog, numérotées CH 01, CH 02… */
.wp-block-categories-list.is-style-chapitres,
.wp-block-categories.is-style-chapitres {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--dnp-ink);
	border-left: 1px solid var(--dnp-grid);
	counter-reset: dnp-chapitre;
}

.is-style-chapitres > li {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin: 0;
	padding: 20px 22px 26px;
	border-right: 1px solid var(--dnp-grid);
	border-bottom: 1px solid var(--dnp-grid);
	counter-increment: dnp-chapitre;
	font-family: var(--dnp-display);
	font-size: clamp(24px, 2.6vw, 30px);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
	transition: background-color 0.15s ease;
}

.is-style-chapitres > li::before {
	content: "CH " counter(dnp-chapitre, decimal-leading-zero);
	color: var(--dnp-muted);
	font-family: var(--dnp-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 18px;
}

.is-style-chapitres > li:hover,
.is-style-chapitres > li.current-cat {
	background: var(--wp--preset--color--surface-alt);
}

.is-style-chapitres > li.current-cat {
	box-shadow: inset 0 -3px 0 var(--dnp-balise);
}

.is-style-chapitres > li a {
	color: inherit;
	text-decoration: none;
}

.is-style-chapitres > li a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.is-style-chapitres .children {
	display: none;
}

/* Fiche : lignes libellé / valeur (récit, tirage) */
.dnp-fiche {
	border-top: 1px solid var(--dnp-ink);
	font-family: var(--dnp-mono);
	font-size: 13px;
	line-height: 20px;
}

.dnp-fiche > .dnp-fiche__ligne {
	gap: 12px;
	margin: 0 !important;
	padding: 10px 0;
	border-bottom: 1px solid var(--dnp-grid);
}

.dnp-fiche__ligne > p {
	margin: 0;
}

.dnp-fiche__libelle {
	color: var(--dnp-muted);
	text-transform: uppercase;
}

.dnp-fiche__valeur {
	text-align: right;
}

.dnp-fiche__ligne:has(> .dnp-fiche__valeur:empty) {
	display: none !important;
}

.dnp-fiche:not(:has(.dnp-fiche__valeur:not(:empty))) {
	display: none;
}

.wp-block-table.is-style-fiche table {
	width: 100%;
	border-collapse: collapse;
	border-top: 1px solid var(--dnp-ink);
	font-family: var(--dnp-mono);
	font-size: 13px;
	line-height: 20px;
}

.wp-block-table.is-style-fiche :is(td, th) {
	padding: 9px 0;
	border: 0;
	border-bottom: 1px solid var(--dnp-grid);
	text-align: right;
}

.wp-block-table.is-style-fiche :is(td, th):first-child {
	color: var(--dnp-muted);
	font-weight: 400;
	text-align: left;
	text-transform: uppercase;
}

.wp-block-table.is-style-fiche thead {
	display: none;
}

.wp-block-table figcaption {
	text-align: left;
}

/* -------------------------------------------------------------------------
   Cartes récit (boucles de requête)
   ------------------------------------------------------------------------- */

.dnp-carte {
	position: relative;
	height: 100%;
}

.dnp-carte .wp-block-post-featured-image {
	margin: 0;
	overflow: hidden;
	background: var(--wp--preset--color--surface-alt);
}

.dnp-carte .wp-block-post-featured-image img {
	transition: transform 0.4s ease;
}

.dnp-carte:hover .wp-block-post-featured-image img {
	transform: scale(1.03);
}

.dnp-carte .wp-block-post-title {
	margin: 0;
}

.dnp-carte .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.dnp-carte .wp-block-post-terms {
	position: relative;
	z-index: 2;
	width: fit-content;
}

.dnp-carte .wp-block-post-featured-image figcaption {
	pointer-events: none;
}

.dnp-carte .wp-block-post-excerpt {
	font-size: 16px;
	line-height: 25px;
	color: var(--dnp-muted);
}

.dnp-carte--sans-photo .wp-block-post-featured-image:empty {
	display: none;
}

/* Ligne catégorie et date au-dessus du titre d'un récit */
.dnp-recit-meta > * {
	margin: 0;
}

.dnp-recit-meta .wp-block-post-date {
	color: var(--dnp-muted);
	font-family: var(--dnp-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 18px;
}

.dnp-recit-meta .wp-block-post-terms + .wp-block-post-date::before {
	content: "· ";
}

/* Récit suivant */
.dnp-suivant .post-navigation-link-previous,
.dnp-suivant .post-navigation-link-next {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dnp-suivant .post-navigation-link__label {
	color: var(--dnp-muted);
	font-family: var(--dnp-mono);
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
}

.dnp-suivant a {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: clamp(28px, 3.6vw, 40px);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.05;
	text-decoration: none;
}

.dnp-suivant a:hover {
	text-decoration: underline;
}

/* Colonnes souples : titre large + colonne étroite qui passe dessous sur mobile */
.dnp-volets {
	align-items: flex-end;
}

.dnp-volets > .dnp-volets__large {
	flex: 999 1 600px;
	min-width: 0;
}

.dnp-volets > .dnp-volets__etroit {
	flex: 1 1 280px;
	min-width: 0;
}

/* -------------------------------------------------------------------------
   Section Nuit : galeries et pages photo
   ------------------------------------------------------------------------- */

.is-style-nuit,
body.dnp-nuit {
	--wp--preset--color--surface: #15171A;
	--wp--preset--color--surface-alt: #1E2124;
	--wp--preset--color--grid: #2E3236;
	--wp--preset--color--ink: #F2F3F1;
	--wp--preset--color--ink-muted: #A7AEB4;
	--wp--preset--color--graphite: #0B0C0E;
	--wp--preset--color--on-graphite: #F2F3F1;
	--wp--preset--color--danger: #FF8A80;
	--dnp-focus: var(--wp--preset--color--balise);
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
}

.is-style-nuit :where(h1, h2, h3, h4, h5, a:not(.wp-block-button__link)),
body.dnp-nuit :where(h1, h2, h3, h4, h5, a:not(.wp-block-button__link)) {
	color: var(--wp--preset--color--ink);
}

body.dnp-nuit .dnp-logotype a::before {
	background-image: url(assets/images/objectif-viseur-sombre.svg);
}

/* -------------------------------------------------------------------------
   Formulaires (Contact Form 7, recherche)
   ------------------------------------------------------------------------- */

:where(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="number"], textarea, select),
.wp-block-search__input {
	padding: 12px 14px;
	border: 1px solid var(--dnp-ink);
	border-radius: 0;
	background: var(--wp--preset--color--surface);
	color: var(--dnp-ink);
	font-family: var(--dnp-display);
	font-size: 17px;
}

.wpcf7 label {
	display: block;
	font-family: var(--dnp-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--dnp-muted);
}

.wpcf7 :is(input, textarea, select):not([type="submit"]) {
	width: 100%;
	margin-top: 6px;
	text-transform: none;
	letter-spacing: 0;
}

.wpcf7 input[type="submit"] {
	padding: 15px 22px;
	border: 0;
	border-radius: 0;
	background: var(--dnp-balise);
	color: var(--dnp-on-balise);
	font-family: var(--dnp-mono);
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
}

.wpcf7-not-valid-tip,
.wpcf7 form .wpcf7-response-output {
	color: var(--wp--preset--color--danger);
	font-family: var(--dnp-mono);
	font-size: 13px;
}

/* -------------------------------------------------------------------------
   Récits construits avec WPBakery (mise en page « dnp-article »)
   Leur contenu n'est pas modifié : le thème leur donne la typographie Télémétrie.
   ------------------------------------------------------------------------- */

body.dnp-ancien .wp-block-post-content > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: var(--wp--style--global--wide-size);
}

.wp-block-post-content .dnp-article {
	counter-reset: dnp-intertitre;
}

.wp-block-post-content .dnp-article :is(p, li) {
	color: var(--dnp-ink);
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.63;
}

.wp-block-post-content .dnp-article :is(ul, ol) {
	padding-left: 0;
}

.wp-block-post-content .dnp-article .dnp-chapo p {
	color: var(--dnp-ink);
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.5;
}

.wp-block-post-content .dnp-article h2 {
	margin: 56px auto 16px;
	color: var(--dnp-ink);
	font-family: var(--dnp-display);
	font-size: var(--wp--preset--font-size--heading);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.12;
	text-transform: none;
	counter-increment: dnp-intertitre;
}

.wp-block-post-content .dnp-article h2::before {
	content: counter(dnp-intertitre, decimal-leading-zero);
	display: block;
	margin-bottom: 8px;
	color: var(--dnp-muted);
	font-family: var(--dnp-mono);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1;
}

.wp-block-post-content .dnp-article h3 {
	color: var(--dnp-ink);
	font-family: var(--dnp-display);
	font-size: var(--wp--preset--font-size--card-title);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.16;
}

.wp-block-post-content .dnp-article a {
	color: var(--dnp-ink);
	text-decoration: underline;
}

.wp-block-post-content .dnp-article .dnp-box {
	border: 0;
	border-top: 1px solid var(--dnp-ink);
	border-radius: 0;
	background: var(--wp--preset--color--surface-alt);
}

.wp-block-post-content .dnp-article .dnp-box-title {
	color: var(--dnp-muted);
	font-family: var(--dnp-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 18px;
	text-transform: uppercase;
}

.wp-block-post-content .dnp-article .dnp-cap p {
	color: var(--dnp-muted);
	font-family: var(--dnp-mono);
	font-size: 12px;
	font-style: normal;
	line-height: 18px;
	text-align: left;
}

.wp-block-post-content .dnp-article .wpb_single_image img,
.wp-block-post-content .dnp-article .vc_single_image-wrapper {
	border-radius: 0;
}

.wp-block-post-content .dnp-article .dnp-next {
	border-top-color: var(--dnp-ink);
}

.wp-block-post-content .dnp-article .vc_message_box {
	border: 1px solid var(--dnp-grid);
	border-left: 3px solid var(--dnp-ink);
	border-radius: 0;
	background: var(--wp--preset--color--surface-alt);
	color: var(--dnp-ink);
}

.wp-block-post-content .dnp-article .vc_message_box-icon {
	color: var(--dnp-ink);
}

.wp-block-post-content .dnp-article .vc_toggle_title h4 {
	color: var(--dnp-ink);
	font-family: var(--dnp-display);
	font-weight: 700;
}

.wp-block-post-content .dnp-article :is(td, th) {
	border-color: var(--dnp-grid);
	color: var(--dnp-ink);
}

/* -------------------------------------------------------------------------
   Mobile
   ------------------------------------------------------------------------- */

@media (max-width: 640px) {
	:root {
		--dnp-hud: 26px;
		--dnp-hud-inset: 12px;
	}

	:is(.is-style-viseur, .is-style-viseur-encre, .is-style-viseur-heros) > figcaption,
	:is(.is-style-viseur, .is-style-viseur-encre, .is-style-viseur-heros) .wp-element-caption {
		left: calc(var(--dnp-hud-inset) + var(--dnp-hud) + 8px);
		bottom: calc(var(--dnp-hud-inset) + 6px);
		max-width: calc(100% - 2 * (var(--dnp-hud-inset) + var(--dnp-hud) + 8px));
		padding: 4px 7px;
		font-size: 11px;
		line-height: 14px;
	}

	.is-style-viseur-heros::before {
		display: none;
	}

	.dnp-etiquette__pos {
		display: none;
	}

	:is(.wp-block-image, .wp-block-post-featured-image).alignwide:is(.is-style-viseur, .is-style-viseur-encre, .is-style-viseur-heros) img {
		aspect-ratio: 4 / 3 !important;
	}

	.dnp-nav {
		font-size: 12px !important;
		row-gap: 4px !important;
		column-gap: 16px !important;
	}

	.dnp-logotype a::before {
		width: 28px;
		height: 28px;
	}

	.wp-block-site-title.dnp-logotype {
		font-size: 24px !important;
	}

	p.is-style-encadre {
		font-size: 19px;
		line-height: 29px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dnp-carte .wp-block-post-featured-image img {
		transition: none;
	}
}

/* Carte sans photo mise en avant : aplat calme et symbole */
.dnp-carte:not(:has(> .wp-block-post-featured-image))::before {
	content: "";
	display: block;
	height: 260px;
	background: var(--wp--preset--color--surface-alt) url(assets/images/objectif-viseur.svg) center / 64px no-repeat;
}

/* Pas d'écart entre l'en-tête, le contenu et le pied de page */
.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin-block-start: 0;
}
