/* =====================================================================
   NEXIS — page Partenaires : types de relation, grille, apports, adhésion
   ===================================================================== */

/* 4 types de relation */
.nexis-ptypes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.nexis-ptype {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 1.9rem 1.7rem 1.6rem;
	border: 1px solid #E6EAEE;
	border-radius: 16px;
	background: #fff;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, border-color 0.3s;
}
.nexis-ptype:hover { transform: translateY(-4px); border-color: var(--wp--preset--color--copper); box-shadow: 0 16px 36px rgba(11, 31, 51, 0.09); }
.nexis-ptype__num {
	position: absolute;
	top: 1.2rem;
	right: 1.4rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 2.2rem;
	font-weight: 800;
	line-height: 1;
	color: #F1E6D3;
}
.nexis-ptype__icon { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 12px; background: #FBF4E8; color: var(--nexis-copper-strong, #B7853F); }
.nexis-ptype__title { margin: 1.1rem 0 0.5rem !important; font-size: 1.1875rem !important; font-weight: 700; }
.nexis-ptype__text { flex: 1; margin: 0 !important; font-size: 0.9375rem; line-height: 1.65; color: var(--wp--preset--color--anthracite); }
.nexis-ptype__frame {
	margin: 1.2rem 0 0 !important;
	padding-top: 0.9rem;
	border-top: 1px dashed #E1E6EB;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--navy);
}
.nexis-ptype__frame::before { content: "§ "; color: var(--wp--preset--color--copper); }

/* Grille des partenaires : état vide */
.nexis-partners-empty {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 2.5rem;
	align-items: center;
	padding: 2.4rem;
	border: 1px solid #E6EAEE;
	border-radius: 18px;
	background: #fff;
}
.nexis-partners-empty > * { margin: 0 !important; }
.nexis-partners-empty__slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.nexis-partners-empty__slots span {
	position: relative;
	height: 6.5rem;
	border: 2px dashed #DCE2E8;
	border-radius: 14px;
	background: var(--wp--preset--color--offwhite);
}
.nexis-partners-empty__slots span::after {
	content: "LOGO";
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	color: #C3CBD3;
}
.nexis-partners-empty__slots span:first-child { border-color: var(--wp--preset--color--copper); background: #FBF4E8; }
.nexis-partners-empty__slots span:first-child::after { content: "+"; font-size: 2rem; letter-spacing: 0; color: var(--wp--preset--color--copper); }
.nexis-partners-empty__title { margin: 0 0 0.7rem !important; font-size: clamp(1.4rem, 2vw, 1.8rem) !important; font-weight: 700; }
.nexis-partners-empty__text { margin: 0 0 1.5rem !important; font-size: 1rem; line-height: 1.7; color: var(--wp--preset--color--anthracite); }
.nexis-partners-section .nexis-partner { height: 100%; background: #fff; }

/* Ce que NEXIS apporte (fond navy) */
.nexis-pbenefits-head { max-width: 760px; margin: 0 0 var(--wp--preset--spacing--50) !important; }
.nexis-pbenefits-head .is-style-eyebrow { margin: 0; }
.nexis-pbenefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nexis-pbenefit {
	padding: 1.8rem 1.7rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.04);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, background 0.3s;
}
.nexis-pbenefit:hover { transform: translateY(-4px); border-color: rgba(198, 146, 74, 0.6); background: rgba(255, 255, 255, 0.07); }
.nexis-pbenefit__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; background: rgba(198, 146, 74, 0.15); color: var(--wp--preset--color--copper); }
.nexis-pbenefit__title { margin: 1.1rem 0 0.4rem !important; font-size: 1.125rem !important; font-weight: 700; color: #fff; }
.nexis-pbenefit__text { margin: 0 !important; font-size: 0.9375rem; line-height: 1.6; color: rgba(255, 255, 255, 0.72); }

/* Devenir partenaire */
.nexis-pjoin { margin: var(--wp--preset--spacing--30) 0 0; padding: 0; list-style: none; }
.nexis-pjoin li { position: relative; display: flex; gap: 1.1rem; padding-bottom: 1.4rem; }
.nexis-pjoin li:not(:last-child)::before {
	content: "";
	position: absolute;
	left: 1.25rem;
	top: 2.7rem;
	bottom: 0.2rem;
	width: 2px;
	background: rgba(198, 146, 74, 0.35);
}
.nexis-pjoin__num {
	display: grid;
	place-items: center;
	flex: none;
	width: 2.5rem;
	height: 2.5rem;
	border: 2px solid var(--wp--preset--color--copper);
	border-radius: 50%;
	background: #fff;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.8125rem;
	font-weight: 800;
	color: var(--wp--preset--color--navy);
}
.nexis-pjoin li:last-child .nexis-pjoin__num { border-color: var(--wp--preset--color--navy); background: var(--wp--preset--color--navy); color: var(--wp--preset--color--copper); }
.nexis-pjoin strong { display: block; margin-top: 0.3rem; font-family: var(--wp--preset--font-family--heading); font-size: 1.0625rem; color: var(--wp--preset--color--navy); }
.nexis-pjoin li div > span { display: block; margin-top: 0.2rem; font-size: 0.9375rem; line-height: 1.6; color: var(--wp--preset--color--anthracite); }

.nexis-pjoin-cta {
	position: relative;
	overflow: hidden;
	padding: 2.6rem 2.4rem;
	border-radius: 18px;
	background:
		radial-gradient(ellipse 70% 60% at 100% 0%, rgba(22, 78, 112, 0.9), transparent 70%),
		var(--wp--preset--color--navy);
	color: rgba(255, 255, 255, 0.8);
}
.nexis-pjoin-cta::after {
	content: "";
	position: absolute;
	right: -60px;
	bottom: -70px;
	width: 260px;
	aspect-ratio: 762 / 512;
	background: url(../img/logo-globe.png) center / contain no-repeat;
	filter: brightness(0) invert(1);
	opacity: 0.06;
	pointer-events: none;
}
.nexis-pjoin-cta > * { position: relative; }
.nexis-pjoin-cta .nexis-icon { width: 3.4rem; height: 3.4rem; border-radius: 12px; background: rgba(198, 146, 74, 0.15); color: var(--wp--preset--color--copper); }
.nexis-pjoin-cta__title { margin: 1.2rem 0 0.6rem !important; font-size: clamp(1.4rem, 2vw, 1.75rem) !important; line-height: 1.25; color: #fff; }
.nexis-pjoin-cta__text { margin: 0 0 1.6rem !important; font-size: 1rem; line-height: 1.65; }

/* Responsive */
@media (max-width: 1100px) {
	.nexis-ptypes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nexis-pbenefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
	.nexis-partners-empty { grid-template-columns: minmax(0, 1fr); padding: 1.6rem; gap: 1.6rem; }
	.nexis-pjoin-cta { margin-top: 1.5rem; }
}
@media (max-width: 600px) {
	.nexis-ptypes, .nexis-pbenefits { grid-template-columns: minmax(0, 1fr); }
	.nexis-partners-empty__slots span { height: 4.5rem; }
	.nexis-pjoin-cta { padding: 1.8rem 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
	.nexis-ptype, .nexis-pbenefit { transition: none; }
}

/* Corrections : l'encart vide remplace le cadre générique « aucun résultat » ; bouton cuivre sur la carte navy */
.nexis-partners-section .wp-block-query-no-results { padding: 0; border: 0; background: none; }
.nexis-partners-section .wp-block-query-no-results .nexis-partners-empty__text { margin: 0 0 1.5rem; font-family: var(--wp--preset--font-family--body); font-size: 1rem; font-weight: 400; color: var(--wp--preset--color--anthracite); }
.nexis-pjoin-cta .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--wp--preset--color--copper); color: var(--wp--preset--color--navy); }
.nexis-pjoin-cta .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--navy); }
