/* =========================================================
   Netfine — feuille de styles du thème
   ========================================================= */

:root {
	--nf-ink: #004354;
	--nf-night: #00222B;
	--nf-signal: #D06A27;
	--nf-signal-dark: #B0561A;
	--nf-glacier: #F2B184;
	--nf-mist: #F1F5F6;
	--nf-line: #DCE6E8;
	--nf-slate: #34505A;
	--nf-muted: #587079;
	--nf-white: #FFFFFF;
	--nf-wrap: 1280px;
	--nf-gutter: clamp(20px, 4vw, 48px);
	--nf-ease: cubic-bezier(.2, .7, .2, 1);
	--nf-r-s: 12px;
	--nf-r-m: 18px;
	--nf-r-l: 28px;
	--nf-topbar-h: 40px;
	--nf-bar-h: 84px;
	--nf-section: clamp(88px, 11vw, 168px);
	--nf-shadow: 0 30px 60px -30px rgba(0, 52, 64, .38);
	--nf-shadow-soft: 0 18px 40px -24px rgba(0, 52, 64, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nf-bar-h) + 16px); -webkit-text-size-adjust: 100%; }
body { font-feature-settings: "ss01", "kern"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: var(--nf-signal); color: #fff; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--nf-signal); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-stretch: 112%; text-wrap: balance; }
p { text-wrap: pretty; }
img { height: auto; }

.nf-wrap { width: min(100% - 2 * var(--nf-gutter), var(--nf-wrap)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nf-skip { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--nf-ink); color: #fff; padding: 12px 18px; border-radius: 10px; transition: top .2s; }
.nf-skip:focus { top: 16px; color: #fff; }

/* Le contenu des pages pleine largeur : pas d'espacement automatique entre sections */
.nf-main { margin: 0; }
.nf-main > .wp-block-post-content > *,
.nf-main > * { margin-block: 0; }
.nf-main > .wp-block-post-content > * + * { margin-block-start: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.nf-header-part, .nf-footer-part { margin: 0; }

/* =========================================================
   En-tête
   ========================================================= */

.nf-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	color: var(--nf-ink);
	font-size: 15px;
	line-height: 1.4;
}
.admin-bar .nf-header { top: var(--wp-admin--admin-bar--height, 32px); }
.admin-bar .nf-drawer { top: var(--wp-admin--admin-bar--height, 32px); }
/* Barre supérieure : se replie en douceur au défilement */
.nf-topbar {
	display: grid;
	grid-template-rows: 1fr;
	background: var(--nf-night);
	color: #CADADE;
	font-size: 13.5px;
	transition: grid-template-rows .5s var(--nf-ease), opacity .4s ease, background-color .4s ease;
}
.nf-topbar__clip { overflow: hidden; min-height: 0; }
.nf-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--nf-topbar-h); }
.nf-topbar__tag { margin: 0; display: inline-flex; align-items: center; gap: 10px; }
.nf-topbar__links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; }
.nf-topbar__links a { color: inherit; display: inline-flex; align-items: center; gap: 8px; transition: color .25s; }
.nf-topbar__links a:hover { color: #fff; }
.nf-swiss { flex: none; border-radius: 3px; }
.nf-header.is-scrolled .nf-topbar { grid-template-rows: 0fr; opacity: 0; }

.nf-lang { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.nf-lang a { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: inherit; }
.nf-lang a.is-current { background: rgba(255, 255, 255, .18); color: #fff; }

/* Barre principale */
.nf-bar {
	position: relative;
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: saturate(170%) blur(18px);
	backdrop-filter: saturate(170%) blur(18px);
	box-shadow: 0 1px 0 rgba(0, 67, 84, .08);
	transition: background-color .45s ease, box-shadow .45s ease, color .45s ease;
}
.nf-bar__inner { display: flex; align-items: center; gap: 28px; height: var(--nf-bar-h); transition: height .45s var(--nf-ease); }
.nf-header.is-scrolled .nf-bar__inner { height: 72px; }
.nf-header.is-scrolled .nf-bar { box-shadow: 0 1px 0 rgba(0, 67, 84, .08), 0 18px 40px -28px rgba(0, 52, 64, .35); }

.nf-logo { display: inline-flex; color: var(--nf-ink); flex: none; transition: color .45s ease, opacity .2s; }
.nf-logo__svg { width: 168px; height: auto; display: block; }
.nf-header.is-scrolled .nf-logo__svg { width: 150px; }
.nf-logo__svg { transition: width .45s var(--nf-ease); }

/* En-tête transparent au-dessus d'un héro */
body.nf-has-hero .nf-header:not(.is-scrolled):not(.is-mega) .nf-topbar { background: rgba(0, 34, 43, .32); }
body.nf-has-hero .nf-header:not(.is-scrolled):not(.is-mega) .nf-topbar__clip { border-bottom: 1px solid rgba(255, 255, 255, .1); }
body.nf-has-hero .nf-header:not(.is-scrolled):not(.is-mega) .nf-bar {
	background: transparent;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	color: #fff;
}
body.nf-has-hero .nf-header:not(.is-scrolled):not(.is-mega) .nf-logo,
body.nf-has-hero .nf-header:not(.is-scrolled):not(.is-mega) .nf-nav__link { color: #fff; }
body.nf-has-hero .nf-header:not(.is-scrolled):not(.is-mega) .nf-nav__link:hover { color: var(--nf-glacier); }
body.nf-has-hero .nf-header:not(.is-scrolled):not(.is-mega) .nf-burger span { background: #fff; }
body.nf-has-hero .nf-header:not(.is-scrolled):not(.is-mega) .nf-bar__cta { background: #fff; color: var(--nf-ink); }
body.nf-has-hero .nf-header:not(.is-scrolled):not(.is-mega) .nf-bar__cta:hover { background: var(--nf-glacier); }

/* Pages sans héro : réserver la hauteur de l'en-tête */
body.nf-no-hero .nf-main { padding-top: calc(var(--nf-topbar-h) + var(--nf-bar-h)); }

/* Navigation de bureau */
.nf-nav { margin-left: auto; }
.nf-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nf-nav__item { position: static; }
.nf-nav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 14px;
	color: var(--nf-ink);
	font-weight: 560;
	font-size: 15.5px;
	letter-spacing: -.005em;
	transition: color .25s ease;
}
.nf-nav__link::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 6px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .4s var(--nf-ease);
}
.nf-nav__link:hover,
.nf-nav__item.is-open > .nf-nav__link,
.nf-nav__item.is-current > .nf-nav__link { color: var(--nf-signal); }
.nf-nav__link:hover::after,
.nf-nav__item.is-open > .nf-nav__link::after,
.nf-nav__item.is-current > .nf-nav__link::after { transform: scaleX(1); }
.nf-nav__link .nf-ico { transition: transform .35s var(--nf-ease); opacity: .7; }
.nf-nav__item.is-open > .nf-nav__link .nf-ico { transform: rotate(180deg); }

.nf-bar__actions { display: flex; align-items: center; gap: 10px; }

/* Boutons du thème (hors blocs) */
.nf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 22px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	border: 0;
	cursor: pointer;
	transition: background-color .25s ease, color .25s ease, transform .25s var(--nf-ease);
}
.nf-btn--primary { background: var(--nf-signal); color: #fff; }
.nf-btn--primary:hover { background: var(--nf-signal-dark); color: #fff; }
.nf-btn--block { width: 100%; }

/* Méga-menu */
.nf-mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: #fff;
	color: var(--nf-ink);
	border-top: 1px solid var(--nf-line);
	box-shadow: 0 50px 80px -50px rgba(0, 34, 43, .5);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity .22s ease, transform .4s var(--nf-ease), visibility 0s linear .4s;
	pointer-events: none;
}
.nf-nav__item.is-open > .nf-mega {
	opacity: 1;
	visibility: visible;
	transform: none;
	pointer-events: auto;
	transition: opacity .28s ease, transform .45s var(--nf-ease), visibility 0s;
}
.nf-mega__inner { display: grid; grid-template-columns: 220px 1fr 320px; gap: 48px; padding: 40px 0 48px; }
.nf-mega__intro { display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--nf-line); padding-right: 32px; }
.nf-mega__title { margin: 0; font-size: 30px; font-weight: 700; font-stretch: 115%; letter-spacing: -.02em; line-height: 1.05; color: var(--nf-ink); }
.nf-mega__all { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--nf-signal); }
.nf-mega__all .nf-ico { transition: transform .3s var(--nf-ease); }
.nf-mega__all:hover .nf-ico { transform: translateX(4px); }
.nf-mega__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 32px; align-content: start; }
.nf-mega__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nf-mega__heading { margin: 0 0 8px; padding: 0 14px; font-size: 13px; font-weight: 600; color: var(--nf-muted); }
.nf-mega__link { display: grid; gap: 2px; padding: 11px 14px; border-radius: 12px; color: var(--nf-ink); transition: background-color .2s ease; }
.nf-mega__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; transition: color .2s ease; }
.nf-mega__label .nf-ico { opacity: 0; transform: translateX(-6px); transition: opacity .25s ease, transform .3s var(--nf-ease); color: var(--nf-signal); }
.nf-mega__desc { font-size: 14px; line-height: 1.45; color: var(--nf-muted); }
.nf-mega__link:hover, .nf-mega__link:focus-visible { background: var(--nf-mist); }
.nf-mega__link:hover .nf-mega__label { color: var(--nf-signal); }
.nf-mega__link:hover .nf-ico { opacity: 1; transform: none; }
.nf-mega__feature {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px;
	border-radius: var(--nf-r-m);
	background: linear-gradient(150deg, #00405C 0%, var(--nf-night) 100%);
	color: #fff;
	isolation: isolate;
}
.nf-mega__feature::before {
	content: "";
	position: absolute;
	right: -40px;
	bottom: -50px;
	width: 200px;
	height: 200px;
	background: url("../img/netfine-prism.svg") center / contain no-repeat;
	opacity: .35;
	z-index: -1;
	transition: transform .8s var(--nf-ease);
}
.nf-mega__feature:hover::before { transform: translate(-8px, -8px) rotate(-4deg); }
.nf-mega__feature-title { font-size: 21px; font-weight: 700; font-stretch: 112%; line-height: 1.2; }
.nf-mega__feature-text { font-size: 14.5px; color: #CADADE; line-height: 1.5; }
.nf-mega__feature-cta { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--nf-glacier); }
.nf-mega__feature:hover { color: #fff; }

.nf-header.is-mega .nf-bar { background: #fff; color: var(--nf-ink); }

.nf-scrim {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: rgba(0, 34, 43, .38);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity .35s ease;
}
.nf-scrim.is-visible { opacity: 1; }

/* Burger */
.nf-burger { display: none; position: relative; width: 46px; height: 46px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.nf-burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--nf-ink); transition: transform .35s var(--nf-ease), opacity .2s, background-color .3s; }
.nf-burger span:nth-child(1) { top: 16px; }
.nf-burger span:nth-child(2) { top: 22px; }
.nf-burger span:nth-child(3) { top: 28px; }

/* Tiroir (tablette & mobile) */
.nf-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; transition: visibility 0s linear .5s; }
.nf-drawer.is-open { visibility: visible; transition: visibility 0s; }
.nf-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 34, 43, .5); opacity: 0; transition: opacity .4s ease; }
.nf-drawer.is-open .nf-drawer__backdrop { opacity: 1; }
.nf-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(460px, 100%);
	background: #fff;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform .55s var(--nf-ease);
	box-shadow: -30px 0 60px -30px rgba(0, 34, 43, .4);
}
.nf-drawer.is-open .nf-drawer__panel { transform: none; }
.nf-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--nf-line); }
.nf-logo--drawer .nf-logo__svg { width: 140px; }
.nf-drawer__close { width: 46px; height: 46px; border: 0; border-radius: 999px; background: var(--nf-mist); color: var(--nf-ink); display: grid; place-items: center; cursor: pointer; }
.nf-drawer__nav { flex: 1; overflow-y: auto; padding: 8px 24px 24px; overscroll-behavior: contain; }
.nf-acc { list-style: none; margin: 0; padding: 0; }
.nf-acc__item { border-bottom: 1px solid var(--nf-line); }
.nf-acc__btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 0;
	min-height: 56px;
	background: none;
	border: 0;
	font: inherit;
	font-size: 21px;
	font-weight: 650;
	font-stretch: 110%;
	letter-spacing: -.01em;
	color: var(--nf-ink);
	text-align: left;
	cursor: pointer;
}
.nf-acc__btn .nf-ico { transition: transform .35s var(--nf-ease); color: var(--nf-signal); }
.nf-acc__btn[aria-expanded="true"] { color: var(--nf-signal); }
.nf-acc__btn[aria-expanded="true"] .nf-ico { transform: rotate(180deg); }
.nf-acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--nf-ease); }
.nf-acc__btn[aria-expanded="true"] + .nf-acc__panel { grid-template-rows: 1fr; }
.nf-acc__inner { overflow: hidden; min-height: 0; }
.nf-acc__inner > :last-child { margin-bottom: 20px; }
.nf-acc__all { display: inline-block; margin-bottom: 8px; font-weight: 600; }
.nf-acc__heading { margin: 14px 0 4px; font-size: 13px; font-weight: 600; color: var(--nf-muted); }
.nf-acc__inner ul { list-style: none; margin: 0; padding: 0; }
.nf-acc__inner li a { display: block; padding: 9px 0; font-size: 17px; color: var(--nf-ink); }
.nf-acc__feature { display: block; margin-top: 12px; padding: 16px 18px; border-radius: 14px; background: var(--nf-mist); font-weight: 600; color: var(--nf-ink); }
.nf-drawer__foot { padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--nf-line); display: grid; gap: 16px; background: #fff; }
.nf-drawer__contact { display: grid; gap: 10px; }
.nf-drawer__contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--nf-ink); font-weight: 500; }
.nf-drawer__foot .nf-lang { justify-self: start; background: var(--nf-mist); color: var(--nf-ink); }
.nf-drawer__foot .nf-lang a.is-current { background: var(--nf-ink); color: #fff; }
html.nf-lock, html.nf-lock body { overflow: hidden; }

@media (max-width: 1139px) {
	.nf-nav { display: none; }
	.nf-burger { display: block; }
	.nf-bar__actions { margin-left: auto; }
	.nf-topbar__links li:nth-child(3) { display: none; }
}
@media (max-width: 760px) {
	:root { --nf-bar-h: 70px; --nf-topbar-h: 36px; }
	.nf-topbar__tag { display: none; }
	.nf-topbar__inner { justify-content: center; }
	.nf-topbar__links { gap: 16px; }
	.nf-topbar__links li:nth-child(2) span { display: none; }
	.nf-bar__cta { display: none; }
	.nf-logo__svg, .nf-header.is-scrolled .nf-logo__svg { width: 138px; }
	.nf-header.is-scrolled .nf-bar__inner { height: 64px; }
}

