/*
Theme Name: Notre Priorité, c'est Vous
Theme URI: https://notrepriorite-poitiers.fr
Author: LMONE
Author URI: https://lmone.fr
Description: Thème sur mesure pour le site du groupe municipal "Notre Priorité, c'est Vous" (Poitiers). Header/footer/fonctionnalités transverses codés en dur ; contenu riche géré via Elementor + widgets custom.
Version: 0.1.0
Requires PHP: 7.4
Text Domain: npcv
*/

/* ==========================================================================
   Design tokens — issus du handoff Claude Design (brief-refonte-site-npcv.md)
   ========================================================================== */
:root {
	--npcv-teal: #19a3a3;
	--npcv-teal-light: #3ecdcd;
	--npcv-gold: #fcbd29;
	--npcv-green: #01814e;
	--npcv-orange: #eb5b26;

	--npcv-navy: #1a2b4a;
	--npcv-text-secondary: #4a5568;
	--npcv-text-tertiary: #6b7480;
	--npcv-text-muted: #8a94a6;
	--npcv-text-faint: #9aa5a3;

	--npcv-bg: #ffffff;
	--npcv-bg-alt: #fafaf8;
	--npcv-border: #eee;
	--npcv-border-input: #e0ddd5;

	--npcv-radius-card: 16px;
	--npcv-radius-pill: 999px;
	--npcv-shadow-modal: 0 30px 60px rgba(0, 0, 0, 0.25);

	--npcv-container-max: 1440px;
	--npcv-gutter: 56px;
}

@media (max-width: 782px) {
	:root {
		--npcv-gutter: 20px;
	}
}

/* ==========================================================================
   Reset léger
   ========================================================================== */
* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: 'Outfit', sans-serif;
	color: var(--npcv-navy);
	background: var(--npcv-bg);
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	max-width: 100%;
	display: block;
}

.npcv-container {
	max-width: var(--npcv-container-max);
	margin: 0 auto;
	padding-left: var(--npcv-gutter);
	padding-right: var(--npcv-gutter);
	box-sizing: border-box;
}

/* Sécurité mobile : évite que le contenu touche les bords de l'écran si
   une colonne Elementor a été laissée sans marge intérieure sur mobile.
   Ne touche pas les sections "pleine largeur" (hero, images plein cadre). */
@media (max-width: 767px) {
	.elementor-column > .elementor-widget-wrap {
		padding-left: 16px;
		padding-right: 16px;
		box-sizing: border-box;
	}
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: relative;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px var(--npcv-gutter);
	background: var(--npcv-bg);
	border-bottom: 1px solid var(--npcv-border);
}

.site-header__logo {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	flex: none;
}

.site-header__logo-line1 {
	font-size: 20px;
	font-weight: 400;
	color: var(--npcv-teal);
}

.site-header__logo-line2 {
	font-size: 20px;
	font-weight: 600;
	color: #fff;
	background: var(--npcv-teal);
	padding: 2px 10px;
	border-radius: 4px;
	display: inline-block;
	margin-top: 2px;
	width: fit-content;
}

.site-header__nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.site-header__nav ul {
	list-style: none;
	display: flex;
	gap: 44px;
	margin: 0;
	padding: 0;
}

.site-header__nav a {
	font-size: 16px;
	font-weight: 500;
	color: var(--npcv-navy);
}

.site-header__cta {
	flex: none;
	background: var(--npcv-teal);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	padding: 12px 26px;
	border-radius: var(--npcv-radius-pill);
	white-space: nowrap;
}

.site-header__cta:hover {
	opacity: 0.85;
}

.site-header__toggle {
	display: none;
}

/* État transparent — superposé au hero, uniquement sur la page d'accueil */
.has-transparent-header .site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: transparent;
	border-bottom: none;
}

.has-transparent-header .site-header__logo-line1,
.has-transparent-header .site-header__nav a {
	color: #fff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65), 0 1px 12px rgba(0, 0, 0, 0.35);
}

@media (max-width: 960px) {
	.site-header__nav {
		display: none;
	}
	.site-header__nav.is-open {
		display: flex;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--npcv-bg);
		padding: 20px var(--npcv-gutter);
		box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
	}
	.site-header__nav.is-open ul {
		flex-direction: column;
		gap: 18px;
	}
	.has-transparent-header .site-header__nav.is-open a {
		color: var(--npcv-navy);
	}
	.site-header__toggle {
		display: block;
		background: none;
		border: none;
		cursor: pointer;
	}
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background: var(--npcv-navy);
	color: #fff;
	padding: 56px var(--npcv-gutter) 32px;
}

.site-footer__top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 40px;
	padding-bottom: 36px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__intro {
	max-width: 280px;
}

.site-footer__title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 10px;
}

.site-footer__desc {
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.65);
}

.site-footer__columns {
	display: flex;
	gap: 60px;
	flex-wrap: wrap;
}

.site-footer__col-title {
	font-size: 13px;
	font-weight: 600;
	color: var(--npcv-gold);
	margin-bottom: 14px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.site-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.85);
}

.site-footer__col a:hover {
	color: var(--npcv-gold);
}

.site-footer__bottom {
	padding-top: 22px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.5);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.site-footer__bottom a:hover {
	color: #fff;
}

/* ==========================================================================
   Widget — Grille des élu·es
   ========================================================================== */
.npcv-elus-grid {
	display: grid;
	grid-template-columns: repeat(var(--npcv-grid-cols, 4), 1fr);
	gap: 24px;
}

@media (max-width: 780px) {
	.npcv-elus-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.npcv-elu-card {
	background: #fff;
	border-radius: var(--npcv-radius-card);
	overflow: hidden;
	border: 1px solid var(--npcv-border);
}

.npcv-elu-card__photo {
	width: 100%;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--npcv-bg-alt);
}

.npcv-elu-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 22%;
}

.npcv-elu-card__body {
	padding: 16px 18px 20px;
}

.npcv-elu-card__name {
	font-size: 16px;
	font-weight: 600;
	color: var(--npcv-navy);
}

.npcv-elu-card__role {
	font-size: 13px;
	color: var(--npcv-text-muted);
	margin-top: 3px;
}

.npcv-elu-card__delegation {
	font-size: 12.5px;
	color: var(--npcv-teal);
	margin-top: 4px;
	line-height: 1.4;
}

/* ==========================================================================
   Widget — Carte interactive des quartiers
   ========================================================================== */
.npcv-quartiers-map-wrap {
	display: flex;
	gap: 50px;
	flex-wrap: wrap;
	align-items: flex-start;
}

.npcv-quartiers-map {
	flex: none;
	width: 560px;
	max-width: 100%;
	aspect-ratio: 1230 / 980;
	border-radius: 20px;
	background: #f5f0e6;
	position: relative;
	overflow: hidden;
	border: 1px solid var(--npcv-border);
}

.npcv-quartiers-map img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: fill;
}

.npcv-map-point {
	position: absolute;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--npcv-teal);
	border: 2.5px solid #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
	transform: translate(-50%, -50%);
	cursor: pointer;
	padding: 0;
	transition: transform 0.15s ease, background 0.15s ease;
}

.npcv-map-point:hover,
.npcv-map-point.is-active {
	background: var(--npcv-gold);
	transform: translate(-50%, -50%) scale(1.35);
}

.npcv-quartiers-list {
	flex: 1;
	min-width: 280px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.npcv-quartiers-text {
	flex: 1;
	min-width: 280px;
}

.npcv-quartier-item {
	display: block;
	text-align: left;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid var(--npcv-border);
	background: #fff;
	cursor: pointer;
	font-family: inherit;
}

.npcv-quartier-item.is-active {
	border-color: var(--npcv-teal);
	background: rgba(25, 163, 163, 0.06);
}

.npcv-quartier-item__nom {
	font-size: 14px;
	font-weight: 600;
	color: var(--npcv-navy);
}

.npcv-quartier-item__elu {
	font-size: 13px;
	color: var(--npcv-text-muted);
	margin-top: 2px;
}

.npcv-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 30, 40, 0.55);
	z-index: 999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 40px;
}

.npcv-modal-overlay.is-open {
	display: flex;
}

.npcv-modal {
	background: #fff;
	border-radius: 18px;
	max-width: 420px;
	width: 100%;
	padding: 40px 40px 36px;
	position: relative;
	box-shadow: var(--npcv-shadow-modal);
	text-align: center;
}

.npcv-modal__close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #f2f2f0;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: var(--npcv-navy);
	cursor: pointer;
}

.npcv-modal__photo {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--npcv-teal);
	margin: 0 auto 16px;
}

.npcv-modal__name {
	font-size: 20px;
	font-weight: 700;
	color: var(--npcv-navy);
}

.npcv-modal__meta {
	font-size: 14px;
	color: var(--npcv-text-muted);
	margin: 6px 0 22px;
}

.npcv-modal__cta {
	display: inline-block;
	background: var(--npcv-teal);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	padding: 12px 26px;
	border-radius: var(--npcv-radius-pill);
}

/* ==========================================================================
   Widget — Recherche actu
   ========================================================================== */
.npcv-actu-search-bar {
	position: relative;
	max-width: 480px;
	margin-bottom: 24px;
}

.npcv-actu-search-bar input {
	width: 100%;
	font-family: inherit;
	font-size: 15px;
	padding: 13px 20px 13px 44px;
	border-radius: 28px;
	border: 1px solid var(--npcv-border-input);
	background: #fafaf8;
	box-sizing: border-box;
}

.npcv-actu-search-bar input:focus {
	outline: 2px solid var(--npcv-teal);
	outline-offset: 1px;
}

.npcv-actu-search-bar__icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--npcv-text-faint);
	pointer-events: none;
}

.npcv-actu-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
}

.npcv-actu-filter-pill {
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: var(--npcv-radius-pill);
	border: 1px solid var(--npcv-border-input);
	background: #fff;
	color: var(--npcv-text-secondary);
	cursor: pointer;
}

.npcv-actu-filter-pill.is-active {
	background: var(--npcv-navy);
	border-color: var(--npcv-navy);
	color: #fff;
}

.npcv-actu-grid {
	display: grid;
	grid-template-columns: repeat(var(--npcv-actu-cols, 3), 1fr);
	gap: 24px;
}

@media (max-width: 780px) {
	.npcv-actu-grid {
		grid-template-columns: 1fr;
	}
}

.npcv-actu-card {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--npcv-border);
	display: flex;
	flex-direction: column;
}

.npcv-actu-card img.npcv-actu-card__image,
.npcv-actu-card__image {
	display: block;
	width: 100% !important;
	height: 220px !important;
	max-width: 100% !important;
	background: var(--npcv-bg-alt);
	object-fit: cover !important;
	object-position: center;
	margin: 0;
	border: none;
	flex: none;
}

.npcv-actu-card__body {
	padding: 20px 20px 24px;
}

.npcv-actu-card__meta {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-bottom: 12px;
}

.npcv-actu-card__category {
	font-size: 11px;
	font-weight: 600;
	color: var(--npcv-green);
	background: rgba(1, 129, 78, 0.08);
	border: 1px solid rgba(1, 129, 78, 0.2);
	padding: 3px 10px;
	border-radius: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.npcv-actu-card__date {
	font-size: 12px;
	color: var(--npcv-text-faint);
}

.npcv-actu-card__title {
	font-size: 17px;
	font-weight: 600;
	color: var(--npcv-navy);
	line-height: 1.35;
	margin-bottom: 8px;
}

.npcv-actu-card__excerpt {
	font-size: 14px;
	color: var(--npcv-text-tertiary);
	line-height: 1.5;
}

.npcv-actu-empty {
	border: 1px dashed var(--npcv-border-input);
	border-radius: 14px;
	padding: 40px;
	text-align: center;
	color: var(--npcv-text-muted);
	font-size: 15px;
	grid-column: 1 / -1;
}

/* ==========================================================================
   Widget — Bilan 100 premiers jours
   ========================================================================== */
.npcv-bilan-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

@media (max-width: 780px) {
	.npcv-bilan-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.npcv-bilan-card {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: 16px;
	overflow: hidden;
	cursor: pointer;
	border: none;
	padding: 0;
	background: var(--npcv-bg-alt);
	display: block;
	width: 100%;
	transition: box-shadow 0.15s ease;
}

.npcv-bilan-card:hover {
	box-shadow: 0 10px 24px rgba(26, 43, 74, 0.25);
}

.npcv-bilan-card__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.npcv-bilan-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(8, 14, 14, 0) 0%,
		rgba(8, 14, 14, 0) 40%,
		rgba(8, 14, 14, 0.15) 55%,
		rgba(6, 12, 12, 0.55) 72%,
		rgba(4, 8, 8, 0.88) 100%
	);
	pointer-events: none;
}

.npcv-bilan-card__text {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 18px;
	text-align: left;
	pointer-events: none;
}

.npcv-bilan-card__stat {
	font-size: 34px;
	font-weight: 700;
	line-height: 1.05;
	color: #fff;
	letter-spacing: -0.01em;
}

.npcv-bilan-card__titre {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	margin-top: 2px;
}

.npcv-bilan-card.is-active {
	box-shadow: 0 0 0 3px var(--npcv-teal);
}

.npcv-bilan-panel {
	grid-column: 1 / -1;
	position: relative;
	background: var(--npcv-bg-alt);
	border: 1px solid var(--npcv-border);
	border-radius: 16px;
	padding: 32px 40px;
	text-align: left;
	animation: npcv-bilan-panel-in 0.18s ease;
}

@keyframes npcv-bilan-panel-in {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: translateY(0); }
}

.npcv-bilan-panel__close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--npcv-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	color: var(--npcv-navy);
	cursor: pointer;
}

.npcv-bilan-panel__eyebrow {
	font-size: 13px;
	font-weight: 600;
	color: var(--npcv-teal);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.npcv-bilan-panel__titre {
	font-size: 24px;
	font-weight: 700;
	color: var(--npcv-navy);
	line-height: 1.25;
	margin-bottom: 14px;
	max-width: 80%;
}

.npcv-bilan-panel__detail {
	font-size: 15.5px;
	line-height: 1.65;
	color: var(--npcv-text-secondary);
	white-space: pre-line;
	max-width: 640px;
}

@media (max-width: 780px) {
	.npcv-bilan-panel {
		padding: 24px;
	}
	.npcv-bilan-panel__titre {
		max-width: 100%;
	}
}

/* ==========================================================================
   Widget — Hero Accueil (plein écran, responsive robuste)
   ========================================================================== */
.npcv-hero {
	position: relative;
	overflow: hidden;
	/* Étirement "full bleed" en largeur : marche peu importe le padding
	   mis par le conteneur Elementor parent, sans jamais le modifier lui-
	   même (les autres sections qui partagent ce même conteneur gardent
	   donc leurs marges intactes). */
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	/* 100vh en repli pour les très vieux navigateurs, 100dvh (dynamic
	   viewport height) ensuite — s'adapte vraiment à l'écran visible sur
	   mobile, sans compter la barre d'adresse qui apparaît/disparaît.
	   ATTENTION : à l'intérieur de l'iframe de l'éditeur Elementor, ces
	   unités peuvent s'afficher de façon trompeuse — vérifier sur le site
	   publié, pas dans l'éditeur. */
	min-height: 100vh;
	min-height: 100dvh;
}

/* Supprime uniquement l'espace vertical au-dessus du hero (le conteneur
   Elementor parent direct), pour que le header transparent se pose bien
   sur la photo dès le sommet de la page. Ne touche pas au padding
   gauche/droite ni au padding des AUTRES sections. */
.e-con:has(> .elementor-widget-npcv_hero_accueil) {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

.npcv-hero__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.npcv-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 20, 20, 0.15) 0%, rgba(8, 16, 16, 0.25) 45%, rgba(6, 12, 12, 0.82) 100%);
	pointer-events: none;
}

.npcv-hero__title {
	position: absolute;
	left: var(--npcv-gutter);
	right: var(--npcv-gutter);
	bottom: var(--npcv-gutter);
	z-index: 2;
	pointer-events: none;
	max-width: 900px;
	/* clamp() : le titre se redimensionne tout seul entre 32px (petit
	   mobile) et 76px (grand écran) en suivant la largeur de la fenêtre —
	   pas besoin de régler chaque breakpoint à la main. */
	font-size: clamp(32px, 6.5vw, 76px);
	font-weight: 700;
	line-height: 1.05;
	color: #fff;
	letter-spacing: -0.01em;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 480px) {
	.npcv-hero {
		min-height: 92vh;
		min-height: 92dvh;
	}
}

/* ==========================================================================
   Chrome de section partagé (utilisé par les widgets "section complète")
   ========================================================================== */
.npcv-section {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 70px var(--npcv-gutter);
	box-sizing: border-box;
}

.npcv-section--grey {
	background: var(--npcv-bg-alt);
}

.npcv-section__inner {
	max-width: var(--npcv-container-max);
	margin: 0 auto;
}

.npcv-section__eyebrow {
	font-size: 13px;
	font-weight: 600;
	color: var(--npcv-teal);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.npcv-section__title {
	font-size: 30px;
	font-weight: 700;
	color: var(--npcv-navy);
	margin: 0 0 12px;
	line-height: 1.25;
}

.npcv-section__desc {
	font-size: 16px;
	line-height: 1.6;
	color: var(--npcv-text-secondary);
	margin: 0;
	max-width: 640px;
}

.npcv-section__header {
	margin-bottom: 34px;
}

.npcv-section__header-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 34px;
	flex-wrap: wrap;
}

.npcv-section__header-row .npcv-section__title {
	margin: 0;
}

.npcv-section__link {
	font-size: 15px;
	font-weight: 600;
	color: var(--npcv-teal);
	white-space: nowrap;
}

.npcv-section__link:hover {
	text-decoration: underline;
}

.npcv-cta-button {
	display: inline-block;
	font-size: 15px;
	font-weight: 600;
	padding: 13px 26px;
	border-radius: var(--npcv-radius-pill);
	background: var(--npcv-gold);
	color: var(--npcv-navy);
	border: none;
	cursor: pointer;
}

.npcv-cta-button:hover {
	opacity: 0.88;
}

@media (max-width: 767px) {
	.npcv-section {
		padding: 44px var(--npcv-gutter);
	}
	.npcv-section__title {
		font-size: 24px;
	}
}

/* Zéro le gap flexbox par défaut du conteneur racine Elementor : chaque
   section gère désormais son propre espacement interne (padding 70px),
   un gap en plus créait une bande grise inutile entre les sections. */
.e-con {
	gap: 0 !important;
}

/* ==========================================================================
   Page Actualités — bandeau recherche + article vedette + grille + réseaux
   ========================================================================== */
.npcv-actupage-header {
	background: var(--npcv-bg-alt);
	border-bottom: 1px solid var(--npcv-border);
	padding: 64px var(--npcv-gutter) 40px;
}

.npcv-actupage-header__title {
	font-size: 44px;
	font-weight: 700;
	color: var(--npcv-navy);
	margin: 0 0 28px;
	max-width: 640px;
	line-height: 1.2;
}

.npcv-actupage-header .npcv-actu-search-bar,
.npcv-actupage-header .npcv-actu-filters {
	max-width: 640px;
}

.npcv-actupage-header .npcv-actu-filters {
	margin-bottom: 0;
}

.npcv-actupage-layout {
	display: grid;
	grid-template-columns: 2fr 1fr;
	align-items: start;
}

@media (max-width: 900px) {
	.npcv-actupage-layout {
		grid-template-columns: 1fr;
	}
}

.npcv-actupage-main {
	padding: 56px var(--npcv-gutter) 70px;
	border-right: 1px solid var(--npcv-border);
}

@media (max-width: 900px) {
	.npcv-actupage-main {
		border-right: none;
		padding: 40px var(--npcv-gutter) 20px;
	}
}

.npcv-actupage-results-label {
	font-size: 14px;
	color: var(--npcv-text-muted);
	margin-bottom: 28px;
}

.npcv-actupage-featured {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 30px;
	align-items: stretch;
	border: 1px solid var(--npcv-border);
	border-radius: 18px;
	overflow: hidden;
	margin-bottom: 40px;
}

@media (max-width: 640px) {
	.npcv-actupage-featured {
		grid-template-columns: 1fr;
	}
}

.npcv-actupage-featured__image {
	position: relative;
	min-height: 280px;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: var(--npcv-bg-alt);
}

.npcv-actupage-featured__body {
	padding: 32px 32px 32px 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

@media (max-width: 640px) {
	.npcv-actupage-featured__body {
		padding: 24px;
	}
}

.npcv-actupage-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

@media (max-width: 640px) {
	.npcv-actupage-grid {
		grid-template-columns: 1fr;
	}
}

.npcv-actupage-sidebar {
	padding: 56px 40px 70px;
	background: var(--npcv-bg-alt);
}

.npcv-actupage-sidebar__title {
	font-size: 19px;
	font-weight: 700;
	color: var(--npcv-navy);
	margin: 0 0 6px;
}

.npcv-actupage-sidebar__desc {
	font-size: 13.5px;
	color: var(--npcv-text-muted);
	line-height: 1.5;
	margin: 0 0 26px;
}

.npcv-social-post {
	background: #fff;
	border: 1px solid var(--npcv-border);
	border-radius: 14px;
	padding: 16px 18px;
	margin-bottom: 16px;
}

.npcv-social-post__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.npcv-social-post__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex: none;
}

.npcv-social-post__platform {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--npcv-navy);
}

.npcv-social-post__time {
	font-size: 12px;
	color: var(--npcv-text-faint);
	margin-left: auto;
}

.npcv-social-post__text {
	font-size: 13.5px;
	color: var(--npcv-text-secondary);
	line-height: 1.5;
}

.npcv-social-post--link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.npcv-social-post--link:hover {
	opacity: 0.9;
}

/* ==========================================================================
   Page article (single.php géré via index.php)
   ========================================================================== */
.npcv-article-progress {
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--npcv-border);
	z-index: 100;
}

.npcv-article-progress__bar {
	height: 100%;
	background: var(--npcv-teal);
	width: 0%;
}

.npcv-article-hero-framed {
	width: 100%;
	max-height: 460px;
	overflow: hidden;
	border-radius: 16px;
	background: var(--npcv-bg-alt);
	margin-bottom: 28px;
}

.npcv-article-hero-framed img {
	width: 100%;
	height: 100%;
	max-height: 460px;
	object-fit: cover;
	display: block;
}

@media (max-width: 767px) {
	.npcv-article-hero-framed {
		max-height: 260px;
	}
}

.npcv-article-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 56px;
	padding: 56px var(--npcv-gutter) 40px;
	align-items: start;
	max-width: var(--npcv-container-max);
	margin: 0 auto;
	box-sizing: border-box;
}

.npcv-article-layout--no-toc {
	grid-template-columns: 1fr;
	max-width: 900px;
}

@media (max-width: 900px) {
	.npcv-article-layout {
		grid-template-columns: 1fr;
	}
	.npcv-article-toc {
		display: none;
	}
}

.npcv-article-main {
	max-width: 680px;
}

.npcv-article-layout--no-toc .npcv-article-main {
	max-width: 100%;
}

.npcv-article-date {
	font-size: 14px;
	color: var(--npcv-text-faint);
	margin-bottom: 36px;
}

.npcv-article-title {
	font-size: 38px;
	font-weight: 700;
	color: var(--npcv-navy);
	line-height: 1.2;
	margin: 18px 0 12px;
}

.npcv-article-content h2 {
	font-size: 22px;
	font-weight: 700;
	color: var(--npcv-navy);
	margin: 0 0 14px;
	scroll-margin-top: 70px;
}

.npcv-article-content p {
	font-size: 16px;
	line-height: 1.75;
	color: #3d4759;
	margin: 0 0 16px;
}

.npcv-article-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.npcv-article-share {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 26px 0;
	margin-top: 10px;
	border-top: 1px solid var(--npcv-border);
}

.npcv-article-share__label {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--npcv-text-muted);
	margin-right: 4px;
}

.npcv-article-share__btn {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--npcv-bg-alt);
	border: 1px solid var(--npcv-border-input);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	color: var(--npcv-navy);
	flex: none;
	cursor: pointer;
}

.npcv-article-share__copied {
	font-size: 12.5px;
	color: var(--npcv-teal);
	font-weight: 600;
}

.npcv-article-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 20px;
}

@media (max-width: 600px) {
	.npcv-article-nav {
		grid-template-columns: 1fr;
	}
}

.npcv-article-nav__card {
	border: 1px solid var(--npcv-border);
	border-radius: 14px;
	padding: 20px;
	display: block;
}

.npcv-article-nav__card--next {
	text-align: right;
}

.npcv-article-nav__label {
	font-size: 12px;
	font-weight: 600;
	color: var(--npcv-text-faint);
	margin-bottom: 8px;
}

.npcv-article-nav__title {
	font-size: 15px;
	font-weight: 600;
	color: var(--npcv-navy);
	line-height: 1.35;
}

.npcv-article-toc {
	position: sticky;
	top: 24px;
}

.npcv-article-toc__label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--npcv-text-faint);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 16px;
}

.npcv-article-toc__list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	border-left: 2px solid var(--npcv-border);
}

.npcv-article-toc__link {
	display: block;
	padding: 8px 0 8px 18px;
	margin-left: -2px;
	font-size: 14px;
	font-weight: 500;
	color: var(--npcv-text-tertiary);
	border-left: 2px solid transparent;
}

.npcv-article-toc__link.is-active {
	font-weight: 600;
	color: var(--npcv-teal);
	border-left-color: var(--npcv-teal);
}

/* ==========================================================================
   Widget — Carte des quartiers v2 (étiquette + sélection inline)
   ========================================================================== */
.npcv-map-marker {
	position: absolute;
	transform: translate(-50%, calc(-100% - 8px));
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
	z-index: 10;
}

.npcv-map-marker.is-active {
	z-index: 20;
}

.npcv-map-marker__pill {
	font-family: inherit;
	font-size: 10.5px;
	font-weight: 700;
	color: var(--npcv-navy);
	background: #fff;
	padding: 2.5px 8px;
	border-radius: 8px;
	white-space: nowrap;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
	margin-bottom: 4px;
	border: none;
	cursor: pointer;
}

.npcv-map-marker__dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--npcv-navy);
	border: 2px solid #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s ease, background 0.15s ease;
}

.npcv-map-marker.is-active .npcv-map-marker__dot {
	background: var(--npcv-gold);
	transform: scale(1.3);
}

.npcv-referent-card {
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--npcv-bg-alt);
	border: 1px solid var(--npcv-border);
	border-radius: 14px;
	padding: 18px 20px;
	max-width: 460px;
}

.npcv-referent-card[hidden] {
	display: none;
}

.npcv-referent-card__photo {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	flex: none;
}

.npcv-referent-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 15%;
}

.npcv-referent-card__body {
	flex: 1;
}

.npcv-referent-card__nom {
	font-size: 16px;
	font-weight: 600;
	color: var(--npcv-navy);
}

.npcv-referent-card__quartier {
	font-size: 13.5px;
	color: var(--npcv-teal);
	font-weight: 600;
	margin-top: 2px;
	margin-bottom: 12px;
}

/* ==========================================================================
   Mode édition des positions (admin uniquement)
   ========================================================================== */
.npcv-map-edit-toggle {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 30;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	background: #fff;
	color: var(--npcv-navy);
	border: 1px solid var(--npcv-border-input);
	border-radius: 20px;
	padding: 8px 14px;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.npcv-map-edit-save {
	position: absolute;
	bottom: 14px;
	right: 14px;
	z-index: 30;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	background: var(--npcv-teal);
	color: #fff;
	border: none;
	border-radius: 20px;
	padding: 10px 18px;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.npcv-map-edit-save:disabled {
	opacity: 0.7;
	cursor: default;
}

.npcv-quartiers-map.is-editing {
	outline: 2px dashed var(--npcv-teal);
	outline-offset: -2px;
}

.npcv-quartiers-map.is-editing .npcv-map-marker {
	cursor: grab;
}

.npcv-quartiers-map.is-editing .npcv-map-marker:active {
	cursor: grabbing;
}

.npcv-quartiers-map.is-editing .npcv-map-marker__pill {
	pointer-events: none;
}

/* ==========================================================================
   Qui sommes-nous — aperçu accueil + page complète
   ========================================================================== */
.npcv-quisommesnous-teaser {
	display: flex;
	gap: 56px;
	align-items: center;
}

@media (max-width: 900px) {
	.npcv-quisommesnous-teaser {
		flex-direction: column;
		align-items: flex-start;
	}
}

.npcv-quisommesnous-teaser__text {
	flex: 1;
	max-width: 760px;
}

.npcv-quisommesnous-teaser__photo {
	flex: none;
	width: 340px;
	height: 340px;
	border-radius: 50%;
	overflow: hidden;
	border: 8px solid var(--npcv-bg-alt);
	box-shadow: 0 16px 40px rgba(26, 43, 74, 0.18);
}

.npcv-quisommesnous-teaser__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
}

@media (max-width: 600px) {
	.npcv-quisommesnous-teaser__photo {
		width: 200px;
		height: 200px;
		align-self: center;
	}
}

/* Page complète */

/* Étirement "full bleed" partagé par toutes les sections de cette page,
   même technique que le hero de l'accueil : marche peu importe le padding
   mis par le conteneur Elementor parent. */
.npcv-qsn-hero,
.npcv-qsn-row,
.npcv-qsn-stats,
.npcv-qsn-methode,
.npcv-qsn-ambition {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	box-sizing: border-box;
}

.npcv-qsn-hero {
	padding: 80px var(--npcv-gutter) 60px;
	background: var(--npcv-bg-alt);
	border-bottom: 1px solid var(--npcv-border);
}

.npcv-qsn-hero__title {
	font-size: 48px;
	font-weight: 700;
	color: var(--npcv-navy);
	margin: 0;
	max-width: 760px;
	line-height: 1.15;
}

.npcv-qsn-row {
	padding: 70px var(--npcv-gutter);
	display: flex;
	gap: 56px;
	align-items: center;
	border-bottom: 1px solid var(--npcv-border);
}

.npcv-qsn-row--grey {
	background: var(--npcv-bg-alt);
}

.npcv-qsn-intro__text {
	flex: 1;
	max-width: 640px;
	font-size: 19px;
	line-height: 1.7;
	color: var(--npcv-navy);
	font-weight: 500;
	margin: 0;
}

.npcv-qsn-intro__photo {
	flex: none;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	overflow: hidden;
	border: 6px solid var(--npcv-bg-alt);
	box-shadow: 0 12px 30px rgba(26, 43, 74, 0.14);
}

.npcv-qsn-intro__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
}

.npcv-qsn-team__photo {
	flex: none;
	width: 44%;
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: 18px;
	overflow: hidden;
}

.npcv-qsn-team__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.npcv-qsn-team__text {
	flex: 1;
	max-width: 600px;
}

.npcv-qsn-team__text p {
	font-size: 16px;
	line-height: 1.75;
	color: var(--npcv-text-secondary);
	margin: 0;
}

@media (max-width: 900px) {
	.npcv-qsn-row {
		flex-direction: column;
	}
	.npcv-qsn-team__photo {
		width: 100%;
	}
}

.npcv-qsn-stats {
	padding: 80px var(--npcv-gutter);
	text-align: center;
	border-bottom: 1px solid var(--npcv-border);
}

.npcv-qsn-stats__number {
	font-size: 110px;
	font-weight: 700;
	color: var(--npcv-navy);
	line-height: 1;
	margin-bottom: 18px;
}

.npcv-qsn-stats__desc {
	font-size: 19px;
	line-height: 1.7;
	color: var(--npcv-text-secondary);
	margin: 0 auto 34px;
	max-width: 700px;
}

.npcv-qsn-stats__tags {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 820px;
	margin: 0 auto;
}

.npcv-qsn-stats__tag {
	font-size: 14px;
	font-weight: 600;
	color: var(--npcv-navy);
	background: var(--npcv-bg-alt);
	border: 1px solid var(--npcv-border-input);
	padding: 9px 18px;
	border-radius: 20px;
}

.npcv-qsn-methode {
	padding: 70px var(--npcv-gutter);
	background: var(--npcv-bg-alt);
	border-bottom: 1px solid var(--npcv-border);
}

.npcv-qsn-methode__header {
	max-width: 640px;
	margin-bottom: 40px;
}

.npcv-qsn-methode__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 767px) {
	.npcv-qsn-methode__grid {
		grid-template-columns: 1fr;
	}
}

.npcv-qsn-methode__card {
	background: #fff;
	border: 1px solid var(--npcv-border);
	border-radius: 16px;
	padding: 30px;
}

.npcv-qsn-methode__numero {
	font-size: 34px;
	font-weight: 700;
	color: var(--npcv-teal);
	margin-bottom: 14px;
}

.npcv-qsn-methode__titre {
	font-size: 18px;
	font-weight: 700;
	color: var(--npcv-navy);
	margin-bottom: 10px;
}

.npcv-qsn-methode__texte {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--npcv-text-tertiary);
}

.npcv-qsn-ambition {
	padding: 80px var(--npcv-gutter);
	background: var(--npcv-navy);
	position: relative;
	overflow: hidden;
}

.npcv-qsn-ambition__inner {
	max-width: 760px;
	position: relative;
	z-index: 1;
}

.npcv-qsn-ambition__eyebrow {
	font-size: 13px;
	font-weight: 600;
	color: var(--npcv-gold);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 16px;
}

.npcv-qsn-ambition__text {
	font-size: 26px;
	line-height: 1.5;
	color: #fff;
	margin: 0;
	font-weight: 500;
}

@media (max-width: 767px) {
	.npcv-qsn-hero__title {
		font-size: 32px;
	}
	.npcv-qsn-stats__number {
		font-size: 68px;
	}
	.npcv-qsn-ambition__text {
		font-size: 20px;
	}
}

/* ==========================================================================
   Page Contact
   ========================================================================== */
.npcv-contact-hero {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 64px var(--npcv-gutter) 44px;
	background: var(--npcv-bg-alt);
	border-bottom: 1px solid var(--npcv-border);
	box-sizing: border-box;
}

.npcv-contact-hero__title {
	font-size: 44px;
	font-weight: 700;
	color: var(--npcv-navy);
	margin: 0 0 14px;
	max-width: 680px;
	line-height: 1.2;
}

.npcv-contact-hero__desc {
	font-size: 17px;
	line-height: 1.6;
	color: var(--npcv-text-secondary);
	margin: 0;
	max-width: 600px;
}

.npcv-contact-layout {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	align-items: start;
	box-sizing: border-box;
}

@media (max-width: 900px) {
	.npcv-contact-layout {
		grid-template-columns: 1fr;
	}
}

.npcv-contact-main {
	padding: 56px var(--npcv-gutter) 70px;
	border-right: 1px solid var(--npcv-border);
}

@media (max-width: 900px) {
	.npcv-contact-main {
		border-right: none;
	}
}

.npcv-contact-step-label {
	font-size: 15px;
	font-weight: 600;
	color: var(--npcv-navy);
	margin-bottom: 16px;
}

.npcv-contact-sujets {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 36px;
}

.npcv-contact-sujet {
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: 20px;
	cursor: pointer;
	background: #fff;
	color: var(--npcv-navy);
	border: 1.5px solid var(--npcv-border-input);
}

.npcv-contact-sujet.is-active {
	background: var(--npcv-teal);
	color: #fff;
	border-color: var(--npcv-teal);
}

.npcv-contact-quartier-block {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 28px;
	margin-bottom: 36px;
	align-items: start;
}

@media (max-width: 560px) {
	.npcv-contact-quartier-block {
		grid-template-columns: 1fr;
	}
}

.npcv-contact-quartier-map {
	position: relative;
	width: 220px;
	height: 170px;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--npcv-border);
	flex: none;
}

@media (max-width: 560px) {
	.npcv-contact-quartier-map {
		width: 100%;
	}
}

.npcv-contact-quartier-map img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.npcv-contact-quartier-map__dot {
	position: absolute;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--npcv-teal);
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	transform: translate(-50%, -50%);
	cursor: pointer;
	padding: 0;
}

.npcv-contact-quartier-map__dot.is-active {
	background: var(--npcv-gold);
	transform: translate(-50%, -50%) scale(1.4);
}

.npcv-contact-quartier-select {
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 500;
	padding: 12px 16px;
	border-radius: 10px;
	border: 1.5px solid var(--npcv-border-input);
	color: var(--npcv-navy);
	background: #fff;
	width: 100%;
	box-sizing: border-box;
	height: fit-content;
}

.npcv-contact-referent-card {
	display: flex;
	gap: 18px;
	align-items: center;
	background: var(--npcv-bg-alt);
	border: 1px solid var(--npcv-border);
	border-radius: 14px;
	padding: 20px;
	margin-bottom: 36px;
}

.npcv-contact-referent-card__photo {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	flex: none;
}

.npcv-contact-referent-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 15%;
}

.npcv-contact-referent-card__nom {
	font-size: 16px;
	font-weight: 600;
	color: var(--npcv-navy);
}

.npcv-contact-referent-card__quartier {
	font-size: 13.5px;
	color: var(--npcv-teal);
	font-weight: 600;
	margin-top: 2px;
}

.npcv-contact-referent-card__email {
	font-size: 13px;
	color: var(--npcv-text-muted);
	margin-top: 2px;
}

.npcv-contact-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 560px;
}

.npcv-contact-form__row {
	display: flex;
	gap: 16px;
}

@media (max-width: 480px) {
	.npcv-contact-form__row {
		flex-direction: column;
	}
}

.npcv-contact-form input,
.npcv-contact-form textarea {
	flex: 1;
	box-sizing: border-box;
	padding: 14px 16px;
	font-size: 14.5px;
	font-family: inherit;
	border: 1.5px solid var(--npcv-border-input);
	border-radius: 10px;
	outline: none;
	color: var(--npcv-navy);
}

.npcv-contact-form textarea {
	resize: vertical;
}

.npcv-contact-form__submit {
	background: var(--npcv-teal);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	padding: 14px 28px;
	border-radius: 24px;
	width: fit-content;
	cursor: pointer;
	border: none;
	font-family: inherit;
}

.npcv-contact-form__submit:disabled {
	opacity: 0.7;
	cursor: default;
}

.npcv-contact-form__feedback {
	font-size: 14px;
	font-weight: 600;
}

.npcv-contact-form__feedback.is-success {
	color: var(--npcv-teal);
}

.npcv-contact-form__feedback.is-error {
	color: #c0392b;
}

.npcv-contact-sidebar {
	padding: 56px 40px 70px;
	background: var(--npcv-bg-alt);
}