/* ==========================================================================
   Natextra : feuille de style principale
   Valeurs mesurées sur le site d'origine (écran large) :
   - texte : Roboto 300, 16/25,6 px, #332d2d ; vert de marque #5c9424
   - titres : Ubuntu 700 34 px (h1), Roboto 300 30 px (h2), Roboto 400 20 px (h3)
   - boutons : PT Sans, majuscules ; en-tête 88 px ; conteneur 1400 px max (87 %)
   ========================================================================== */

/* ---------- Polices hébergées localement (Roboto et PT Sans : OFL 1.1 ; Ubuntu : Ubuntu Font Licence 1.0, voir assets/fonts/LICENSES.txt) ---------- */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/roboto-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/roboto-latin-ext-300-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/ubuntu-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ubuntu-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ubuntu-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/pt-sans-latin-400-normal.woff2") format("woff2"); }

/* ---------- Variables ---------- */
:root {
	--nx-green: #5c9424;
	--nx-green-dark: #4a7a1c;
	--nx-text: #332d2d;
	--nx-line: #e4e1d2;
	--nx-header-bg: rgba(249, 249, 249, 0.75);
	--nx-header-bg-compact: rgba(249, 249, 249, 0.95);
	--nx-header-h: 88px;
	--nx-header-h-compact: 58px;
	--nx-font-body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--nx-font-head: "Ubuntu", "Roboto", system-ui, Arial, sans-serif;
	--nx-font-btn: "PT Sans", "Roboto", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
	margin: 0;
	font-family: var(--nx-font-body);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.6;
	color: var(--nx-text);
	background: #fff;
}
body.nx-inner { padding-top: var(--nx-header-h); }

img { max-width: 100%; height: auto; }
a { color: var(--nx-green); }
a:hover { color: var(--nx-green-dark); }
strong, b { font-weight: 700; }
em, i { font-style: italic; font-weight: 400; }

[id] { scroll-margin-top: calc(var(--nx-header-h-compact) + 24px); }

:focus-visible { outline: 2px solid var(--nx-green); outline-offset: 2px; }
.nx-hero :focus-visible, .nx-band :focus-visible, .nx-footer :focus-visible { outline-color: #fff; }

.nx-skip {
	position: absolute; left: 8px; top: -60px; z-index: 300;
	background: #fff; color: var(--nx-text); padding: 10px 16px; border: 2px solid var(--nx-green);
}
.nx-skip:focus { top: 8px; }

.nx-wrap { width: min(1400px, 87%); margin-inline: auto; }
.nx-main:focus { outline: none; }

/* ---------- En-tête ---------- */
.nx-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	height: var(--nx-header-h);
	background: var(--nx-header-bg);
	transition: height 0.25s ease, background-color 0.25s ease;
}
body.admin-bar .nx-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nx-header { top: 46px; } }

.nx-header__row { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nx-header.is-compact { height: var(--nx-header-h-compact); background: var(--nx-header-bg-compact); }

.nx-logo { display: inline-flex; align-items: center; }
.nx-logo__img { height: 47px; width: auto; display: block; }
.nx-logo__img--sticky, .nx-logo__img--mobile { display: none; }
.nx-header.is-compact .nx-logo__img--desktop { display: none; }
.nx-header.is-compact .nx-logo__img--sticky { display: block; height: 36px; }

.nx-nav { display: flex; align-items: center; gap: 18px; height: 100%; }
.nx-nav nav:not(.nx-lang) { height: 100%; }
.nx-menu { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; }
.nx-menu li { display: flex; margin: 0; }
.nx-menu a {
	position: relative; display: flex; align-items: center;
	height: 100%; padding: 0 11px;
	font-family: var(--nx-font-head); font-size: 15px; font-weight: 300;
	color: var(--nx-text); text-decoration: none; white-space: nowrap;
}
.nx-menu a::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
	background: var(--nx-green); transform: scaleY(0); transform-origin: top; transition: transform 0.2s ease;
}
.nx-menu a:hover, .nx-menu a:focus-visible, .nx-menu .current-menu-item > a, .nx-menu a[aria-current="page"] { color: var(--nx-green); }
.nx-menu a:hover::before, .nx-menu a:focus-visible::before, .nx-menu .current-menu-item > a::before, .nx-menu a[aria-current="page"]::before { transform: scaleY(1); }

.nx-lang { display: flex; gap: 2px; font-family: var(--nx-font-head); font-size: 13px; }
.nx-lang a { padding: 3px 7px; border: 1px solid transparent; color: var(--nx-text); text-decoration: none; line-height: 1.4; }
.nx-lang a:hover { color: var(--nx-green); }
.nx-lang a[aria-current="true"] { color: var(--nx-green); border-color: var(--nx-green); }

.nx-burger {
	display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
	flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nx-burger__bar { display: block; width: 24px; height: 2px; background: var(--nx-text); transition: transform 0.2s ease, opacity 0.2s ease; }
.nx-header.is-open .nx-burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nx-header.is-open .nx-burger__bar:nth-child(2) { opacity: 0; }
.nx-header.is-open .nx-burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1240px) {
	:root { --nx-header-h: 70px; }
	.nx-logo__img--desktop { display: none; }
	.nx-logo__img--mobile, .nx-header.is-compact .nx-logo__img--sticky { display: block; height: 38px; }
	.nx-header.is-compact .nx-logo__img--mobile { display: none; }
	.nx-burger { display: flex; }
	.nx-nav {
		position: absolute; top: 100%; left: 0; right: 0; height: auto;
		display: none; flex-direction: column; align-items: stretch; gap: 8px;
		padding: 8px 6.5% 20px; background: rgba(249, 249, 249, 0.98); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
	}
	.nx-header.is-open .nx-nav { display: flex; }
	.nx-nav nav { height: auto; }
	.nx-menu { flex-direction: column; height: auto; }
	.nx-menu a { height: 48px; padding: 0 4px; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
	.nx-menu a::before { top: auto; bottom: 0; left: 0; right: auto; width: 4px; height: 100%; transform: scaleX(0); transform-origin: left; }
	.nx-menu a:hover::before, .nx-menu a:focus-visible::before, .nx-menu .current-menu-item > a::before, .nx-menu a[aria-current="page"]::before { transform: scaleX(1); }
	.nx-lang { padding-top: 6px; }
}

/* ---------- Bandeau décoratif des pages intérieures ---------- */
.nx-titlebar {
	height: 60px;
	background: #e9efdf var(--nx-titlebar-bg, none) center / cover no-repeat;
}

/* ---------- Boutons ---------- */
.nx-btn {
	display: inline-block; font-family: var(--nx-font-btn); font-size: 14px; font-weight: 400; line-height: 17px;
	text-transform: uppercase; text-decoration: none; text-align: center; cursor: pointer;
	padding: 13px 29px; border: 1px solid transparent; border-radius: 0;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nx-btn--outline { color: var(--nx-green); border-color: #6f9233; background: transparent; }
.nx-btn--outline:hover { color: #fff; background: var(--nx-green); border-color: var(--nx-green); }
.nx-btn--solid { color: #fff; background: var(--nx-green); border-color: var(--nx-green); }
.nx-btn--solid:hover { color: #fff; background: var(--nx-green-dark); border-color: var(--nx-green-dark); }
.nx-btn--ghost { color: var(--nx-green); border-color: var(--nx-green); background: transparent; }
.nx-btn--ghost:hover { color: #fff; background: var(--nx-green); }
.nx-btn--light { font-size: 18px; line-height: 21px; padding: 17px 40px; color: #fff; border-color: rgba(255, 255, 255, 0.8); background: transparent; }
.nx-btn--light:hover { color: #fff; background: rgba(255, 255, 255, 0.18); border-color: #fff; }

/* ---------- Accueil : hero ---------- */
.nx-hero {
	position: relative; min-height: 100vh; min-height: 100svh;
	display: flex; align-items: center; justify-content: center; text-align: center;
	color: #fff;
	background: #3f6a1a var(--nx-hero-bg, none) center / cover no-repeat;
}
.nx-hero__inner { width: min(1400px, 87%); padding: calc(var(--nx-header-h) + 20px) 0 80px; }
.nx-hero__title {
	margin: 0; font-family: var(--nx-font-body); font-weight: 300;
	font-size: clamp(52px, 10.1vw, 145px); line-height: 1.2; color: rgba(255, 255, 255, 0.9);
}
.nx-hero__subtitle {
	display: flex; align-items: center; margin: 14px 0 34px;
	font-size: clamp(22px, 2.8vw, 40px); font-weight: 300; line-height: 1.2; color: #fff;
}
.nx-hero__subtitle::before, .nx-hero__subtitle::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.65); }
.nx-hero__subtitle span { padding: 0 clamp(16px, 3.1vw, 45px); }
.nx-hero__down {
	position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
	display: grid; place-items: center; width: 44px; height: 44px; color: #fff;
}
.nx-hero__down svg { width: 28px; height: 28px; }

/* ---------- Accueil : bandeau d'introduction ---------- */
.nx-band {
	background: var(--nx-green) var(--nx-bg, none) center / cover no-repeat;
	color: #fff; padding: 60px 0 70px;
}
.nx-band__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4%; align-items: center; min-height: 386px; }
.nx-band h1 { margin: 0 0 22px; font-family: var(--nx-font-head); font-size: 34px; font-weight: 700; line-height: 1.1; color: #fff; }
.nx-band h4 { margin: 0 0 40px; font-size: 20px; font-weight: 300; line-height: 30px; color: #fff; max-width: 40em; }
.nx-band__media { justify-self: end; width: 100%; max-width: 600px; }
.nx-band__media img { display: block; width: 100%; height: auto; }

/* ---------- Accueil : piliers + carrousel ---------- */
.nx-pillars { background: #fff var(--nx-bg, none) center / cover no-repeat; padding: 50px 0 0; }
.nx-pillars h2, .nx-process h2, .nx-certs h2 {
	margin: 0 0 14px; text-align: center; font-size: 30px; font-weight: 300; line-height: 36px; color: var(--nx-green);
}
.nx-pillars__intro, .nx-process__intro, .nx-certs__intro { margin: 0 auto; text-align: center; max-width: 1000px; }
.nx-pillars__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4%; margin-top: 56px; }
.nx-pillar { text-align: center; }
.nx-pillar img { display: block; height: 170px; width: auto; max-width: 100%; margin: 0 auto 22px; }
.nx-pillar h3 { margin: 0 0 12px; font-size: 20px; font-weight: 400; line-height: 24px; color: var(--nx-green); }
.nx-pillar p { margin: 0 0 22px; }

.nx-carousel { position: relative; margin-top: 72px; }
.nx-carousel__track {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none;
}
.nx-carousel__track::-webkit-scrollbar { display: none; }
.nx-carousel__item { flex: 0 0 25%; scroll-snap-align: start; margin: 0; }
.nx-carousel__item img { display: block; width: 100%; aspect-ratio: 600 / 366; object-fit: cover; }
.nx-carousel__btn {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 34px; height: 34px; padding: 0; border: 0; cursor: pointer;
	display: grid; place-items: center; color: #fff; background: rgba(51, 45, 45, 0.5);
}
.nx-carousel__btn:hover:not(:disabled) { background: rgba(51, 45, 45, 0.8); }
.nx-carousel__btn:disabled { opacity: 0.3; cursor: default; }
.nx-carousel__btn--prev { left: 0; }
.nx-carousel__btn--next { right: 0; }
.nx-carousel__btn svg { width: 14px; height: 14px; }

/* ---------- Accueil : processus + certifications ---------- */
.nx-process { background: #fff var(--nx-bg, none) center / cover no-repeat; border: 1px solid #e6e6e6; padding: 50px 0 60px; text-align: center; }
.nx-process__media { margin: 34px auto 30px; max-width: min(100%, 980px); }
.nx-process__media img { display: block; margin: 0 auto; }
.nx-certs { padding: 50px 0 60px; text-align: center; }
.nx-certs__media { margin: 30px auto 28px; }
.nx-certs__media img { display: inline-block; width: 300px; max-width: 100%; height: auto; }

@media (hover: hover) and (min-width: 1025px) {
	.nx-hero, .nx-band, .nx-pillars, .nx-process { background-attachment: fixed; }
}

/* ---------- Pages intérieures : typographie ---------- */
.nx-content { padding: 55px 0 90px; }
.nx-content h1 { margin: 0 0 24px; font-family: var(--nx-font-head); font-size: 34px; font-weight: 700; line-height: 1.1; color: var(--nx-green); }
.nx-content h2 { margin: 44px 0 14px; font-size: 30px; font-weight: 300; line-height: 36px; color: var(--nx-green); }
.nx-content h3 { margin: 30px 0 10px; font-size: 20px; font-weight: 400; line-height: 24px; color: var(--nx-green); }
.nx-content h4 { margin: 0 0 14px; font-size: 20px; font-weight: 300; line-height: 30px; color: var(--nx-green); }
.nx-content p { margin: 0 0 1.1em; }
.nx-content ul, .nx-content ol { margin: 0 0 1.4em; padding-left: 32px; }
.nx-content li { margin: 0 0 4px; }
.nx-content .wp-block-image { margin: 0 0 1.4em; }
.nx-content .wp-block-image img { display: block; height: auto; }
.nx-content p.nx-subhead { margin: 18px 0 8px; }

.nx-cols { display: grid; grid-template-columns: minmax(0, 58.4%) minmax(0, 37.6%); justify-content: space-between; align-items: start; }
.nx-cols > .wp-block-group__inner-container { display: contents; }
.nx-col--aside .wp-block-image { margin: 0; }

/* Encadré d'appel à l'action */
.nx-cta { margin: 70px 0 0; padding: 26px 25px 30px; border: 1px solid var(--nx-line); background: #fff; }
.nx-cta__title { margin: 0 0 14px !important; font-size: 20px; font-weight: 700 !important; line-height: 24px; color: var(--nx-green); }
.nx-cta p { margin: 0 0 22px; }

/* Galerie + lightbox */
.nx-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nx-gallery__link { display: block; aspect-ratio: 5 / 4; overflow: hidden; background: #e9efdf; }
.nx-gallery__link img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.nx-gallery__link:hover img { transform: scale(1.04); }

dialog.nx-lightbox {
	width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; color: #fff;
}
dialog.nx-lightbox::backdrop { background: rgba(0, 0, 0, 0.88); }
.nx-lightbox__stage { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 56px 64px; }
.nx-lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.nx-lightbox__btn {
	position: absolute; width: 44px; height: 44px; padding: 0; border: 0; cursor: pointer; display: grid; place-items: center;
	color: #fff; background: rgba(255, 255, 255, 0.14); font-size: 22px; line-height: 1;
}
.nx-lightbox__btn:hover { background: rgba(255, 255, 255, 0.3); }
.nx-lightbox__btn:focus-visible { outline-color: #fff; }
.nx-lightbox__btn--close { top: 12px; right: 12px; }
.nx-lightbox__btn--prev { left: 10px; top: 50%; transform: translateY(-50%); }
.nx-lightbox__btn--next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Formulaire de contact ---------- */
.nx-form p { margin: 0 0 18px; }
.nx-form label { display: block; margin-bottom: 4px; }
.nx-form input[type="text"], .nx-form input[type="email"], .nx-form textarea {
	display: block; width: 100%; padding: 8px 10px; font: inherit; color: var(--nx-text);
	background: #fff; border: 1px solid #b9b9b9; border-radius: 0;
}
.nx-form textarea { min-height: 150px; resize: vertical; }
.nx-form input:focus, .nx-form textarea:focus { outline: 2px solid var(--nx-green); outline-offset: 0; border-color: var(--nx-green); }
.nx-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.nx-form__notice { font-size: 14px; }
.nx-form .nx-btn { font-size: 16px; padding: 14px 30px; }
.nx-form__status { margin: 0 0 22px; padding: 12px 16px; border: 1px solid; }
.nx-form__status--ok { color: #2f5a0f; background: #eef5e4; border-color: var(--nx-green); }
.nx-form__status--error { color: #8a1c14; background: #fbeceb; border-color: #b3261e; }

/* ---------- Carte (chargée après un clic) ---------- */
.nx-map { margin-top: 56px; min-height: 400px; background: #e9efdf; }
.nx-map iframe { display: block; width: 100%; height: 400px; border: 0; }
.nx-map__placeholder { display: grid; place-content: center; justify-items: center; gap: 14px; min-height: 400px; padding: 30px 20px; text-align: center; }
.nx-map__placeholder p { margin: 0; }
.nx-map__consent { max-width: 36em; font-size: 14px; }
.nx-map__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Pied de page ---------- */
.nx-footer { background: var(--nx-green); color: #fff; padding: 16px 0; text-align: center; font-size: 14px; line-height: 1.7; }
.nx-footer p { margin: 0; }
.nx-footer a { color: #fff; text-decoration: none; }
.nx-footer a:hover { color: #fff; text-decoration: underline; }

/* ---------- Retour en haut ---------- */
.nx-totop {
	position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 44px; height: 44px; padding: 0;
	display: grid; place-items: center; border: 0; border-radius: 4px; cursor: pointer;
	color: #fff; background: rgba(51, 45, 45, 0.85);
}
.nx-totop:hover { background: var(--nx-text); }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 1100px) {
	.nx-pillars__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
}
@media (max-width: 900px) {
	.nx-band__grid { grid-template-columns: 1fr; gap: 36px; }
	.nx-band__media { justify-self: center; max-width: 480px; }
	.nx-cols { grid-template-columns: 1fr; gap: 40px; }
	.nx-col--aside { order: 2; }
	.nx-carousel__item { flex-basis: 33.3334%; }
	.nx-hero__subtitle::before, .nx-hero__subtitle::after { display: none; }
	.nx-hero__subtitle { justify-content: center; }
	.nx-hero__subtitle span { padding: 0; }
}
@media (max-width: 600px) {
	.nx-wrap, .nx-hero__inner { width: 88%; }
	.nx-pillars__grid { grid-template-columns: 1fr; }
	.nx-carousel__item { flex-basis: 70%; }
	.nx-band { padding: 44px 0 50px; }
	.nx-band h1 { font-size: 28px; }
	.nx-content { padding: 36px 0 60px; }
	.nx-content h1 { font-size: 28px; }
	.nx-content h2, .nx-pillars h2, .nx-process h2, .nx-certs h2 { font-size: 24px; line-height: 30px; }
	.nx-btn--light { padding: 15px 28px; }
	.nx-lightbox__stage { padding: 56px 12px; }
	.nx-lightbox__btn--prev { left: 4px; }
	.nx-lightbox__btn--next { right: 4px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.nx-gallery__link:hover img { transform: none; }
}

/* ---------- Ajustements après comparaison avec l'ancien site ---------- */
.nx-form p { margin: 0 0 20px; }
.nx-form input[type="text"], .nx-form input[type="email"] { height: 29px; padding: 0 15px; font-size: 13px; font-weight: 400; border-color: #d2d2d2; }
.nx-form textarea { height: 150px; min-height: 150px; padding: 8px 15px; font-size: 13px; font-weight: 400; border-color: #d2d2d2; }
.nx-form .nx-btn { font-size: 14px; padding: 13px 29px; }
.nx-addr { margin: 0 0 30px; padding: 10px 30px 2px; border: 1px solid #afc39b; }
.nx-addr h3 { margin: 10px 0 8px; }
.nx-aside-img img { width: 300px; max-width: 100%; margin-inline: auto; }
@media (max-width: 900px) {
	.nx-pillars__grid { grid-template-columns: 1fr; }
	.nx-pillar img { height: 120px; }
}
@media (max-width: 1240px) { .nx-header, .nx-header.is-compact { background: rgba(249, 249, 249, 0.97); } }
@media (max-width: 600px) { .nx-form input[type="text"], .nx-form input[type="email"], .nx-form textarea { font-size: 16px; } }

/* ---------- Mise en page d'après mesures sur l'ancien site ---------- */
@media (min-width: 601px) {
	.nx-content { padding-top: 78px; }
	.nx-content h1 { margin-bottom: 27px; }
}
.nx-cta { margin-top: 120px; }
.nx-col--aside .wp-block-image { width: 90%; margin-inline: auto; }
.nx-gallery { width: 87%; margin: 10px auto 0; }
@media (min-width: 901px) {
	.nx-content:has(.nx-cols--wide) { width: auto; margin-inline: 4.84%; }
	.nx-cols--wide { grid-template-columns: minmax(0, 57.9%) minmax(0, 37.3%); }
	.nx-cols--wide .nx-col--aside { margin-top: -23px; }
	.nx-cols--wide .nx-col--aside .wp-block-image { width: 100%; }
	.nx-cols--contact .nx-col--aside { margin-top: 7px; }
	.nx-cols--contact .nx-addr { width: 94.5%; margin-left: 4.5%; }
}

/* ---------- Accueil : espacements mesurés sur l'ancien site ---------- */
.nx-pillars h2, .nx-process h2, .nx-certs h2 { margin-top: 36px; }
.nx-pillars__intro, .nx-process__intro, .nx-certs__intro { max-width: none; }
.nx-pillars__grid { margin-top: 58px; }
.nx-carousel { margin-top: 80px; }
.nx-process__media { max-width: min(100%, 1089px); margin: 58px auto 42px; }
.nx-process { padding-bottom: 81px; }
.nx-certs__media { margin: 42px auto 42px; }
.nx-certs { padding-bottom: 100px; }

/* ---------- Corrections issues de l'audit responsive ---------- */
.nx-logo { flex-shrink: 0; min-height: 44px; }
@media (min-width: 961px) and (max-width: 1240px) {
	.nx-logo__img--desktop { display: block; }
	.nx-logo__img--mobile { display: none; }
}
@media (max-width: 960px) { .nx-logo__img--mobile { height: 29px; } }
@media (min-width: 1241px) and (max-width: 1330px) { .nx-header .nx-wrap { width: 94%; } }
@media (min-width: 1241px) { body.nx-lang-en .nx-menu a { padding: 0 9px; font-size: 14px; } }
@media (min-width: 1241px) and (max-width: 1330px) { body.nx-lang-en .nx-logo__img--desktop { height: 39px; } }
@media (max-width: 1240px) { .nx-lang a { padding: 13px 14px; } }
.nx-carousel__btn { width: 44px; height: 44px; }
.nx-content .wp-block-image img[sizes="300px"] { width: 300px; }
.nx-lightbox__img { max-width: calc(100vw - 128px); max-height: calc(100vh - 112px); }
@supports (height: 100dvh) { .nx-lightbox__img { max-height: calc(100dvh - 112px); } }
@media (max-width: 600px) { .nx-lightbox__img { max-width: calc(100vw - 24px); } }
@media (max-width: 1024px) {
	.nx-form input[type="text"], .nx-form input[type="email"] { height: 44px; font-size: 16px; }
	.nx-form textarea { font-size: 16px; }
}

/* ---------- Accessibilité : vert de marque plus foncé (contraste AA) ---------- */
:root { --nx-green: #4a7a1c; --nx-green-dark: #3b6316; }
.nx-btn--outline { border-color: var(--nx-green); }
/* Voile léger sur la photo du bandeau d'introduction : voile pour le contraste du texte blanc (AA) */
.nx-band { background-image: linear-gradient(rgba(25, 50, 10, 0.2), rgba(25, 50, 10, 0.2)), var(--nx-bg, none); }
