/*
Theme Name: NOP Grand Est
Theme URI: https://nopgrandest.org/
Author: CODE-CODEC.FR
Description: Thème bloc du Nouvel Observatoire Photographique du Grand Est et de L'Événement Photographique. Palette sombre, grille à filets, Archivo condensé et IBM Plex Mono.
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 8.2
Version: 1.3.19
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nop
*/

/* ---------- Titres condensés ---------- */
h1, h2, .wp-block-site-title {
	font-stretch: 72%;
	text-transform: uppercase;
	letter-spacing: -0.01em;
}
h3, h4 { font-stretch: 85%; }
.nop-hero-title { font-stretch: 68%; line-height: 0.9; }
.nop-hero-title .nop-accent,
.nop-accent { color: var(--wp--preset--color--accent); }
/* Style de bloc Paragraphe « Lieu et dates » (functions.php) : la règle mono ci-dessous + gris secondaire */
p.is-style-nop-meta { color: var(--wp--preset--color--muted); }

/* ---------- Mono (dates, lieux, légendes) ---------- */
.nop-mono,
.is-style-nop-meta,
.wp-block-post-date,
.wp-element-caption,
.wp-block-image figcaption {
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.02em;
}

/* Légendes et crédits photo (bloc Image) : gris secondaire, comme les dates et les lieux ; texte courant exclu */
.wp-block-image figcaption,
.wp-element-caption { color: var(--wp--preset--color--muted); margin-top: 0.5rem; text-align: left; }

/* ---------- En-tête ---------- */
.nop-header { border-bottom: 1px solid var(--wp--preset--color--muted); }
.nop-header .wp-block-site-logo { margin: 0; line-height: 0; }
.nop-header .wp-block-navigation { font-weight: 600; }
.nop-header .wp-block-navigation a { text-decoration: none; }
.nop-header .wp-block-navigation a:hover,
.nop-header .wp-block-navigation .current-menu-item > a { text-decoration: underline; text-underline-offset: 6px; }
/* Les autres sites (L'Événement, NOP Galerie) : regroupés après un filet */
.nop-header .wp-block-navigation .nop-nav-sites { border-left: 1px solid var(--wp--preset--color--muted); padding-left: 1.25rem; }
.wp-block-navigation__responsive-container.is-menu-open .nop-nav-sites { border-left: 0; padding-left: 0; border-top: 1px solid var(--wp--preset--color--muted); padding-top: 1rem; margin-top: 0.5rem; }

/* ---------- Liens vers un autre site (classe ajoutée dans functions.php) ---------- */
/* La flèche ↗ est un masque posé sur une espace insécable : le navigateur ne peut pas
   la séparer du dernier mot, donc la flèche ne passe jamais seule à la ligne. */
a.nop-external::after {
	content: "\00a0" / " (site externe)";
	font-family: var(--wp--preset--font-family--plex-mono); /* espace de largeur fixe (0,6 em) */
	padding-left: 0.3em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.75' stroke-linecap='square'%3E%3Cpath d='M6 18L18 6M8 6h10v10'/%3E%3C/svg%3E") no-repeat right 0.02em bottom 0.28em / 0.62em 0.62em;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.75' stroke-linecap='square'%3E%3Cpath d='M6 18L18 6M8 6h10v10'/%3E%3C/svg%3E") no-repeat right 0.02em bottom 0.28em / 0.62em 0.62em;
	transition: -webkit-mask-position 0.15s ease, mask-position 0.15s ease;
}
a.nop-external:hover::after,
a.nop-external:focus-visible::after { -webkit-mask-position: right -0.1em bottom 0.4em; mask-position: right -0.1em bottom 0.4em; }
a.nop-external:has(> img)::after { display: none; }
@media (prefers-reduced-motion: reduce) { a.nop-external::after { transition: none; } }
/* WebKit (Safari, et tout navigateur iOS) n'applique pas `mask` sur une boîte en ligne : il peint le fond entier avec
   la flèche en creux. Un inline-block corrigerait le masque mais autoriserait une coupure de ligne juste avant la flèche
   (vérifié : « Visiter les expositions » puis la flèche seule). On garde donc la boîte en ligne et on passe par
   `-webkit-mask-box-image`, qui, lui, fonctionne : l'image est étirée sur toute la boîte (0,9 em × 1,3 em, hauteur fixe
   car la police du pseudo-élément est Plex Mono), donc la position de la flèche est intégrée au SVG (unités : 1/100 em).
   Réservé à WebKit, seul moteur qui comprend le mot-clé `font: -apple-system-body`. Pas de transition au survol. */
@supports (font: -apple-system-body) and (-webkit-appearance: none) {
	a.nop-external::after {
		content: "\2060" / " (site externe)"; /* gluon de mots : insécable comme l'espace, mais WebKit ne le souligne pas au survol */
		padding-left: 0.9em;
		-webkit-mask: none;
		mask: none;
		transition: none;
		-webkit-mask-box-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 130' fill='none' stroke='black' stroke-width='7.1' stroke-linecap='square'%3E%3Cpath d='M41.5 86.5L72.5 55.5M46.67 55.5H72.5V81.33'/%3E%3C/svg%3E") 0 stretch;
	}
	a.nop-external:hover::after,
	a.nop-external:focus-visible::after { -webkit-mask-box-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 130' fill='none' stroke='black' stroke-width='7.1' stroke-linecap='square'%3E%3Cpath d='M53.5 74.5L84.5 43.5M58.67 43.5H84.5V69.33'/%3E%3C/svg%3E") 0 stretch; }
}

/* Bandeau croisé entre les deux sites */
.nop-crossbar { font-family: var(--wp--preset--font-family--plex-mono); font-size: 0.8125rem; }
.nop-crossbar a { color: inherit; }
.nop-crossbar > .alignwide { row-gap: 0.5rem; }
.nop-crossbar p { margin: 0; }

/* ---------- Clair / sombre ---------- */
/* Le sombre est la palette de theme.json. Le clair redéfinit les six jetons sur <html data-scheme="light"> :
   tout ce qui passe par un slug de la palette suit, rien d'autre à faire. L'attribut est posé dans le <head>
   (functions.php) d'après le choix mémorisé, sinon le réglage du système ; assets/scheme.js gère le sélecteur. */
:root { color-scheme: dark; }
html[data-scheme="light"] {
	color-scheme: light;
	--wp--preset--color--ink: #16181B;
	--wp--preset--color--paper: #F7F6F2;
	--wp--preset--color--accent: #C8373C; /* plus foncé que #E5484D : 4,8:1 en texte sur fond clair et sous texte clair */
	--wp--preset--color--stone: #EDEBE5;
	--wp--preset--color--silver: #D9D6CE;
	--wp--preset--color--muted: #575C64; /* 6,2:1 sur le fond clair (le #616873 du sombre y paraissait délavé) */
}
/* Un seul logo (clair, média 2633) : inversé en mode clair, comme le filigrane et le visuel d'attente */
html[data-scheme="light"] .wp-block-site-logo img,
html[data-scheme="light"] .nop-thumb-default img,
html[data-scheme="light"] img[src$="placeholder.svg"] { filter: invert(1); }
@media print {
	html {
		--wp--preset--color--ink: #16181B;
		--wp--preset--color--paper: #FFFFFF;
		--wp--preset--color--accent: #C8373C;
		--wp--preset--color--stone: #EDEBE5;
		--wp--preset--color--silver: #D9D6CE;
	}
	.wp-block-site-logo img, .nop-thumb-default img { filter: invert(1); }
	.nop-scheme { display: none; }
}

/* Sélecteur : deux options à filets, la retenue en plein. Masqué sans JavaScript (attribut hidden). */
.nop-scheme {
	display: inline-flex;
	margin-left: auto;
	border: 1px solid var(--wp--preset--color--muted);
	line-height: 1.4;
}
.nop-scheme[hidden] { display: none; }
.nop-scheme__btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 1.625rem;
	background: transparent;
	color: inherit;
	border: 0;
	border-radius: 0;
	padding: 0;
	cursor: pointer;
}
.nop-scheme__btn svg { display: block; }
.nop-scheme__btn + .nop-scheme__btn { border-left: 1px solid var(--wp--preset--color--muted); }
.nop-scheme__btn:hover { background: var(--wp--preset--color--silver); }
.nop-scheme__btn[aria-pressed="true"] {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	cursor: default;
}
/* Texte réservé aux lecteurs d'écran (nom des options du sélecteur) */
.nop-sr { position: absolute; 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; }
.nop-scheme__btn:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: -2px; }

/* ---------- Filets et grilles ---------- */
.nop-rule-top { border-top: 1px solid var(--wp--preset--color--muted); }
.nop-rule-y { border-top: 1px solid var(--wp--preset--color--muted); border-bottom: 1px solid var(--wp--preset--color--muted); }

/* Portes d'entrée : 3 colonnes séparées par des filets */
.nop-doors { gap: 0 !important; }
.nop-doors > .wp-block-column { padding: 2.25rem 2rem; }
.nop-doors > .wp-block-column + .wp-block-column { border-left: 1px solid var(--wp--preset--color--muted); }
.nop-doors h3 { font-size: 2.125rem; line-height: 1; font-weight: 800; margin: 0.5rem 0; }
.nop-doors h3 a { text-decoration: none; }
@media (max-width: 781px) {
	.nop-doors > .wp-block-column + .wp-block-column { border-left: 0; border-top: 1px solid var(--wp--preset--color--muted); }
}

/* Listes à filets : style de bloc « À filets » (.is-style-nop-ruled, plus bas) */

.nop-rows > * { margin: 0 !important; padding: 1.5rem 0; border-bottom: 1px solid var(--wp--preset--color--muted); }
.nop-rows { border-top: 1px solid var(--wp--preset--color--muted); }
.nop-rows .wp-block-columns { margin: 0; align-items: baseline; }
.nop-rows h3 { font-size: 1.875rem; font-weight: 800; line-height: 1.05; margin: 0; }

/* Cartes de lieux sur fond noir */
.nop-venue { border: 1px solid var(--wp--preset--color--muted); padding: 1.5rem; box-sizing: border-box; }
/* Pleine hauteur seulement quand la carte est seule dans sa colonne (grille du parcours) */
.wp-block-column > .nop-venue:only-child { height: 100%; }
.nop-venue > * { margin: 0 0 0.5rem; }

/* Grille d'artistes (boucle de requête ou colonnes) */
.nop-artists .wp-block-post-title,
.nop-artists h3 { font-size: 1.25rem; font-weight: 700; text-transform: none; margin: 0.6rem 0 0.2rem; }
.nop-artists a { text-decoration: none; }
/* Cartes de l'accueil : léger zoom de la photo au survol ou au focus de la carte, cadre fixe.
   Le sélecteur « > a > img » exclut l'image par défaut (logo en filigrane), qui garde son propre survol. */
.nop-artists .wp-block-post-featured-image { overflow: hidden; }
.nop-artists .wp-block-post-featured-image > a > img {
	transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1);
	transform-origin: center;
}
.nop-artists .wp-block-post:hover .wp-block-post-featured-image > a > img,
.nop-artists .wp-block-post:focus-within .wp-block-post-featured-image > a > img { transform: scale(1.04); }
.nop-artists .wp-block-post:hover .wp-block-post-title a { text-decoration: underline; text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
	.nop-artists .wp-block-post-featured-image > a > img { transition: none; }
	.nop-artists .wp-block-post:hover .wp-block-post-featured-image > a > img,
	.nop-artists .wp-block-post:focus-within .wp-block-post-featured-image > a > img { transform: none; }
}

/* Boucles de requête en grille : l'image à la une ne doit pas prendre toute la hauteur de la carte */
.wp-block-post-template .wp-block-post-featured-image,
.wp-block-post-template .wp-block-post-featured-image a { height: auto; }

/* Image par défaut (functions.php) : aplat Surface, filet, logo en filigrane */
.nop-thumb-default {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	background: var(--wp--preset--color--stone);
	border: 1px solid var(--wp--preset--color--silver);
}
.nop-thumb-default img { width: 55%; max-width: 220px; height: auto; opacity: 0.3; }
.wp-block-post-featured-image a:hover .nop-thumb-default img { opacity: 0.5; }

/* ---------- Boutons ---------- */
/* Texte foncé (fond) sur rouge et sur clair : le texte clair sur rouge #E5484D ne contraste qu'à 3:1. */
.wp-block-button.is-style-nop-accent .wp-block-button__link { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--paper); }
.wp-block-button.is-style-nop-accent .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--paper); }
.wp-block-button.is-style-nop-ink .wp-block-button__link { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--paper); }
.wp-block-button.is-style-nop-ink .wp-block-button__link:hover { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--paper); }
.wp-block-button.is-style-nop-ghost .wp-block-button__link { background: transparent; color: currentColor; border: 1px solid currentColor; }
.wp-block-button.is-style-nop-ghost .wp-block-button__link:hover { color: var(--wp--preset--color--paper); background: var(--wp--preset--color--ink); }

/* Pastille "appel en cours" */
.nop-dot::before {
	content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%;
	background: var(--wp--preset--color--accent); margin-right: 10px; vertical-align: 1px;
}

/* Page Partenaires : grille de cartes (logo, nom, description). Les logos sont des PNG noirs sur fond transparent :
   inversés en mode sombre, tels quels en mode clair et à l'impression. */
.nop-partners { gap: 1.25rem; }
.nop-partner { border: 1px solid var(--wp--preset--color--muted); padding: 1.25rem; box-sizing: border-box; }
.nop-partner > * { margin: 0; }
.nop-partner .nop-partner-logo { height: 6rem; margin-bottom: 1rem; }
.nop-partner .nop-partner-logo a { display: block; height: 100%; }
.nop-partner .nop-partner-logo img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: left center; filter: invert(1); }
html[data-scheme="light"] .nop-partner .nop-partner-logo img { filter: none; }
/* Logo en couleur (classe nop-logo-couleur sur l'image, ex. Code-CodeC) : jamais inversé. */
.nop-partner .nop-partner-logo.nop-logo-couleur img { filter: none; }
.nop-partner h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.nop-partner p { font-size: 0.9375rem; line-height: 1.45; }
/* Survol : cadre en couleur du texte, léger zoom du logo, nom en couleur d'accent. Le lien du logo est étendu à toute la carte
   (pseudo-élément ::before, le ::after de la flèche « site externe » reste libre). */
.nop-partner { position: relative; transition: border-color 0.2s ease; }
.nop-partner .nop-partner-logo a::before { content: ""; position: absolute; inset: 0; }
.nop-partner .nop-partner-logo img { transition: transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1); transform-origin: left center; }
.nop-partner h3 { transition: color 0.2s ease; }
.nop-partner:hover,
.nop-partner:has(a:focus-visible) { border-color: var(--wp--preset--color--ink); }
.nop-partner:hover .nop-partner-logo img,
.nop-partner:has(a:focus-visible) .nop-partner-logo img { transform: scale(1.06); }
.nop-partner:hover h3,
.nop-partner:has(a:focus-visible) h3 { color: var(--wp--preset--color--accent); }
.nop-partner:has(a:focus-visible) { outline: 2px solid var(--wp--preset--color--ink); outline-offset: 2px; }
.nop-partner .nop-partner-logo a:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) {
	.nop-partner, .nop-partner h3, .nop-partner .nop-partner-logo img { transition: none; }
	.nop-partner:hover .nop-partner-logo img, .nop-partner:has(a:focus-visible) .nop-partner-logo img { transform: none; }
}
@media print { .nop-partner .nop-partner-logo img { filter: none; } }

/* Logo « Membres du Réseau LUX » du pied de page : texte noir avec halo magenta (fichier d'origine, halo conservé).
   Inversé en mode sombre (texte clair, halo vert), tel quel en mode clair et à l'impression. */
.nop-footer .nop-member { margin: 1.5rem 0 0; }
.nop-footer-logo { margin: 0.5rem 0 1rem; }
.nop-footer-logo img { filter: invert(1); }
html[data-scheme="light"] .nop-footer-logo img { filter: none; }
@media print { .nop-footer-logo img { filter: none; } }

/* Échantillon de couleur (page Design system) */
.nop-swatch {
	min-height: 11rem;
	padding: 1.25rem;
	border: 1px solid var(--wp--preset--color--muted);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.25rem;
	box-sizing: border-box;
}
.nop-swatch > * { margin: 0 !important; }

/* ---------- Pagination des listes et de la recherche ---------- */
/* Grille à 3 zones fixes : précédent | numéros | suivant, même si un des liens manque (première ou dernière page). */
nav.wp-block-query-pagination {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	margin-top: var(--wp--preset--spacing--50);
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--muted);
	font-weight: 600;
}
nav.wp-block-query-pagination > .wp-block-query-pagination-previous { grid-column: 1; justify-self: start; margin: 0; }
nav.wp-block-query-pagination > .wp-block-query-pagination-numbers { grid-column: 2; display: flex; gap: 0.375rem; margin: 0; }
nav.wp-block-query-pagination > .wp-block-query-pagination-next { grid-column: 3; justify-self: end; margin: 0; }
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next { text-decoration: none; white-space: nowrap; }
.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover { text-decoration: underline; text-underline-offset: 6px; }
.wp-block-query-pagination-numbers .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding: 0 0.5rem;
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--plex-mono);
	text-decoration: none;
}
.wp-block-query-pagination-numbers a.page-numbers:hover { border-color: var(--wp--preset--color--ink); }
.wp-block-query-pagination-numbers .page-numbers.current { background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); color: var(--wp--preset--color--paper); }
.wp-block-query-pagination-numbers .page-numbers.dots { border-color: transparent; min-width: 1.5rem; padding: 0; }
@media (max-width: 600px) {
	/* Numéros sur leur propre ligne, précédent/suivant en dessous */
	nav.wp-block-query-pagination { grid-template-columns: 1fr; gap: 0.75rem; }
	nav.wp-block-query-pagination > .wp-block-query-pagination-numbers { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
	nav.wp-block-query-pagination > .wp-block-query-pagination-previous { grid-column: 1; grid-row: 2; }
	nav.wp-block-query-pagination > .wp-block-query-pagination-next { grid-column: 1; grid-row: 3; }
}

/* Navigation par année des listes d'articles (bloc Archives, modèles index et archive) : pastilles à filets */
.nop-years { margin-top: 0.75rem; }
.nop-years .nop-mono { margin: 0; }
.nop-years .wp-block-archives-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0; padding: 0; }
.nop-years .wp-block-archives-list a {
	display: inline-flex;
	align-items: center;
	min-height: 2rem;
	padding: 0 0.625rem;
	border: 1px solid var(--wp--preset--color--muted);
	text-decoration: none;
}
.nop-years .wp-block-archives-list a:hover { border-color: var(--wp--preset--color--ink); }
.nop-years .wp-block-archives-list a[aria-current] { background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); color: var(--wp--preset--color--paper); }

/* Résultats de recherche : liste à filets, titre + extrait */
.nop-search .wp-block-query-total { color: var(--wp--preset--color--ink); margin-top: 0.5rem; }
.nop-search-results { list-style: none; padding: 0; border-top: 1px solid var(--wp--preset--color--muted); }
.nop-search-results > li { margin: 0; padding: 1.5rem 0; border-bottom: 1px solid var(--wp--preset--color--muted); }
.nop-search-results .wp-block-post-title { margin: 0 0 0.5rem; text-transform: none; font-stretch: 85%; }
.nop-search-results .wp-block-post-title a { text-decoration: none; }
.nop-search-results .wp-block-post-title a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nop-search-results .wp-block-post-excerpt { margin: 0; max-width: 46rem; }
.nop-search-results .wp-block-post-excerpt__excerpt { margin: 0; }
/* La liste finit déjà par un filet : pas de second filet au-dessus de la pagination */
.nop-search-results + nav.wp-block-query-pagination { border-top: 0; padding-top: 0; }

/* ---------- Pied de page ---------- */
.nop-footer a { color: inherit; }
.nop-footer .wp-block-site-logo { margin-bottom: 1.25rem; line-height: 0; }

/* ---------- Accessibilité ---------- */
:where(a, button, input, .wp-block-button__link):focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Style de liste "À filets" sélectionnable dans l'éditeur */
.wp-block-list.is-style-nop-ruled { list-style: none; padding: 0; border-top: 1px solid var(--wp--preset--color--muted); }
.wp-block-list.is-style-nop-ruled li { padding: 0.875rem 0; border-bottom: 1px solid var(--wp--preset--color--muted); }

/* ---------- Formulaires Ninja Forms (contact, candidatures) : champs, bouton et messages aux couleurs du thème ---------- */
.nf-form-cont { max-width: 100%; }
.nf-form-cont .nf-field-label label,
.nf-form-cont .nf-field-label .nf-label-span { font-weight: 600; font-size: var(--wp--preset--font-size--medium); }
.nf-form-cont .nf-form-fields-required,
.nf-form-cont .nf-field-description { color: var(--wp--preset--color--ink); font-size: var(--wp--preset--font-size--small); }
.nf-form-cont .ninja-forms-req-symbol { color: var(--wp--preset--color--accent); }
.nf-form-cont .nf-field-element input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
.nf-form-cont .nf-field-element textarea,
.nf-form-cont .nf-field-element select {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--muted);
	border-radius: 0;
	padding: 0.75rem 1rem;
	height: auto;
	font: inherit;
	box-shadow: none;
}
.nf-form-cont .nf-field-element input::placeholder,
.nf-form-cont .nf-field-element textarea::placeholder { color: var(--wp--preset--color--ink); opacity: 0.6; }
.nf-form-cont .nf-field-element input:focus-visible,
.nf-form-cont .nf-field-element textarea:focus-visible,
.nf-form-cont .nf-field-element select:focus-visible { outline: 2px solid var(--wp--preset--color--ink); outline-offset: 2px; }
.nf-form-cont .nf-field-element input[type="checkbox"] { accent-color: var(--wp--preset--color--ink); width: 1.125rem; height: 1.125rem; }
.nf-form-cont .checkbox-container label { font-weight: 400; }
.nf-form-cont .nf-field-element input[type="submit"],
.nf-form-cont .nf-field-element input[type="button"] {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	border: 0;
	border-radius: 0;
	padding: 0.875rem 1.375rem;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	height: auto;
	cursor: pointer;
}
.nf-form-cont .nf-field-element input[type="submit"]:hover,
.nf-form-cont .nf-field-element input[type="button"]:hover { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--paper); }
.nf-form-cont .nf-error .ninja-forms-field { border-color: var(--wp--preset--color--accent); }
.nf-form-cont .nf-error-msg,
.nf-form-cont .nf-form-errors .nf-error-msg { color: var(--wp--preset--color--accent); }
.nf-form-cont .nf-response-msg { font-size: var(--wp--preset--font-size--large); }

/* ---------- Champ de recherche (bloc Rechercher) ---------- */
.wp-block-search__input {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--muted);
	border-radius: 0;
	padding: 0.75rem 1rem;
	font: inherit;
}
.wp-block-search__input::placeholder { color: var(--wp--preset--color--ink); opacity: 0.6; }
.wp-block-search__input:focus-visible { outline: 2px solid var(--wp--preset--color--ink); outline-offset: 2px; }
.wp-block-search__button { border-radius: 0; margin-left: 0.5rem; }

/* ---------- Transition entre deux pages du site ---------- */
/* API View Transitions (Chrome, Edge, Safari récents ; les autres navigateurs changent de page normalement).
   Dans l'esprit de « A Collection of Page Transitions » (Codrops, moveToRight / moveFromLeft) : la page quittée sort
   vers la droite pendant que la nouvelle entre depuis le bord gauche, 600 ms ; l'en-tête et le pied restent en place. */
@view-transition { navigation: auto; }
header.wp-block-template-part { view-transition-name: nop-entete; }
footer.wp-block-template-part { view-transition-name: nop-pied; }
::view-transition-group(nop-entete),
::view-transition-group(nop-pied) { animation: none; }
::view-transition-old(nop-entete),
::view-transition-new(nop-entete) { animation: none; }
::view-transition-image-pair(root) { isolation: auto; }
::view-transition-old(root) { animation: nop-sortie 600ms ease both; }
::view-transition-new(root) { animation: nop-entree 600ms ease both; }
@keyframes nop-sortie { to { transform: translateX(100%); } }
@keyframes nop-entree { from { transform: translateX(-100%); } }
/* Un changement de page sur deux, le sens est inversé (type posé par le script de nop_transition_head) :
   la page quittée sort vers la gauche, la nouvelle entre depuis le bord droit. */
@keyframes nop-sortie-retour { to { transform: translateX(-100%); } }
@keyframes nop-entree-retour { from { transform: translateX(100%); } }
html:active-view-transition-type(nop-retour)::view-transition-old(root) { animation-name: nop-sortie-retour; }
html:active-view-transition-type(nop-retour)::view-transition-new(root) { animation-name: nop-entree-retour; }
@media (prefers-reduced-motion: reduce) {
	@view-transition { navigation: none; }
}
