/* =========================================================
   Éléments communs
   ========================================================= */

.nf-kicker {
	margin: 0 0 18px;
	font-size: 15px;
	font-weight: 600;
	color: var(--nf-signal);
	letter-spacing: 0;
}
.nf-on-dark .nf-kicker, .nf-hero .nf-kicker { color: var(--nf-glacier); }
.nf-lead { font-size: var(--wp--preset--font-size--lead); line-height: 1.55; color: var(--nf-slate); max-width: 62ch; }
.nf-section { padding-block: var(--nf-section); }
.nf-section--mist { background: var(--nf-mist); }
.nf-section__head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.nf-section__head h2 { margin: 0; max-width: 18ch; }
.nf-section__head p { margin: 0; color: var(--nf-slate); max-width: 52ch; }
@media (max-width: 900px) { .nf-section__head { grid-template-columns: 1fr; } }

.nf-display { font-size: var(--wp--preset--font-size--display) !important; font-stretch: 118%; font-weight: 720; letter-spacing: -.03em; line-height: 1 !important; }

/* Boutons (bloc Bouton) */
.wp-block-button .wp-block-button__link { transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .3s var(--nf-ease); }
.wp-block-button.is-style-nf-primary .wp-block-button__link { background: var(--nf-signal); color: #fff; }
.wp-block-button.is-style-nf-primary .wp-block-button__link:hover { background: var(--nf-signal-dark); }
.wp-block-button.is-style-nf-light .wp-block-button__link { background: #fff; color: var(--nf-ink); }
.wp-block-button.is-style-nf-light .wp-block-button__link:hover { background: var(--nf-glacier); color: var(--nf-ink); }
.wp-block-button.is-style-nf-outline .wp-block-button__link { background: transparent; color: var(--nf-ink); box-shadow: inset 0 0 0 1.5px rgba(0, 67, 84, .28); }
.wp-block-button.is-style-nf-outline .wp-block-button__link:hover { box-shadow: inset 0 0 0 1.5px var(--nf-ink); color: var(--nf-ink); background: transparent; }
.wp-block-button.is-style-nf-outline-light .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.wp-block-button.is-style-nf-outline-light .wp-block-button__link:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px #fff; color: #fff; }
.wp-block-button.is-style-nf-link .wp-block-button__link { background: none; color: var(--nf-signal); padding: 14px 4px; display: inline-flex; align-items: center; gap: 10px; }
.wp-block-button.is-style-nf-link .wp-block-button__link::after {
	content: "";
	width: 18px;
	height: 18px;
	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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .3s var(--nf-ease);
}
.wp-block-button.is-style-nf-link .wp-block-button__link:hover { background: none; color: var(--nf-ink); }
.wp-block-button.is-style-nf-link .wp-block-button__link:hover::after { transform: translateX(4px); }
.wp-block-buttons { gap: 12px; }

/* Liste à coches */
.wp-block-list.is-style-nf-checks { list-style: none; padding: 0; display: grid; gap: 12px; }
.wp-block-list.is-style-nf-checks li { position: relative; padding-left: 32px; }
.wp-block-list.is-style-nf-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .2em;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #FBEDE3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230075B2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.wp-block-image.is-style-nf-rounded img { border-radius: var(--nf-r-l); }

/* Verre dépoli */
.wp-block-group.is-style-nf-glass, .nf-glass {
	background: rgba(255, 255, 255, .66);
	-webkit-backdrop-filter: blur(22px) saturate(150%);
	backdrop-filter: blur(22px) saturate(150%);
	border: 1px solid rgba(255, 255, 255, .7);
	border-radius: 24px;
	box-shadow: 0 40px 80px -40px rgba(0, 52, 64, .45);
	padding: clamp(28px, 3vw, 40px);
}
.wp-block-group.is-style-nf-card {
	background: #fff;
	border: 1px solid var(--nf-line);
	border-radius: var(--nf-r-m);
	padding: clamp(24px, 3vw, 36px);
}

/* Icônes de rubrique (sur un titre via classe nf-ico-*) */
[class*="nf-ico-"]::before {
	content: "";
	display: block;
	width: 52px;
	height: 52px;
	margin-bottom: 22px;
	border-radius: 16px;
	background-color: var(--nf-ink);
	-webkit-mask: none;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 26px;
}
.nf-ico-shield::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.4 8.3-8 9-4.6-.7-8-4.5-8-9V6l8-3z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.nf-ico-mountain::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20l6.5-11 4 6.5 2.5-4L21 20z'/%3E%3Cpath d='M8 11.5l1.5 1 1.5-1'/%3E%3C/svg%3E"); background-color: var(--nf-signal) !important; }
.nf-ico-scale::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M7 21h10M5 7h14'/%3E%3Cpath d='M5 7l-3 6a3 3 0 0 0 6 0zM19 7l-3 6a3 3 0 0 0 6 0z'/%3E%3C/svg%3E"); }
.nf-ico-wifi::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9a15 15 0 0 1 20 0M5.5 12.5a10 10 0 0 1 13 0M9 16a5 5 0 0 1 6 0'/%3E%3Ccircle cx='12' cy='19.5' r='1'/%3E%3C/svg%3E"); }
.nf-ico-clock::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 3'/%3E%3C/svg%3E"); }
.nf-on-dark [class*="nf-ico-"]::before { background-color: rgba(242, 177, 132, .16); }

/* =========================================================
   Héro vidéo (page d'accueil)
   ========================================================= */

.wp-block-cover.nf-hero {
	min-height: 100vh !important;
	min-height: 100svh !important;
	padding: calc(var(--nf-topbar-h) + var(--nf-bar-h) + 48px) var(--nf-gutter) clamp(56px, 10vh, 120px) !important;
	align-items: flex-end;
	overflow: hidden;
}
.nf-hero .wp-block-cover__video-background,
.nf-hero .wp-block-cover__image-background { transform: scale(1.04); }
.nf-hero .wp-block-cover__inner-container { width: 100%; max-width: var(--nf-wrap) !important; margin-inline: auto; color: #fff; }
.nf-hero__content { max-width: 860px; }
.nf-hero h1 { color: #fff; margin: 0 0 28px; max-width: 15ch; }
.nf-hero .nf-lead { color: rgba(255, 255, 255, .86); margin: 0 0 40px; max-width: 54ch; }
.nf-pill {
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	margin: 0 0 28px;
	padding: 8px 16px 8px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .22);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}
.nf-pill::before {
	content: "";
	width: 20px;
	height: 20px;
	border-radius: 5px;
	background: #DA291C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='white' d='M13 6h6v7h7v6h-7v7h-6v-7H6v-6h7z'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.nf-scrollcue {
	position: absolute;
	right: max(var(--nf-gutter), calc((100vw - var(--nf-wrap)) / 2));
	bottom: clamp(56px, 10vh, 120px);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	color: rgba(255, 255, 255, .8);
	font-size: 13px;
	font-weight: 600;
	writing-mode: vertical-rl;
}
.nf-scrollcue::after {
	content: "";
	width: 1px;
	height: 64px;
	background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, 0));
	animation: nf-cue 2.4s var(--nf-ease) infinite;
	transform-origin: top;
}
.nf-scrollcue:hover { color: #fff; }
@keyframes nf-cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 760px) { .nf-scrollcue { display: none; } }

/* Héro des pages intérieures */
.wp-block-cover.nf-page-hero {
	min-height: clamp(460px, 66vh, 720px) !important;
	padding: calc(var(--nf-topbar-h) + var(--nf-bar-h) + 40px) var(--nf-gutter) clamp(48px, 8vh, 96px) !important;
	align-items: flex-end;
	overflow: hidden;
}
.nf-page-hero .wp-block-cover__inner-container { width: 100%; max-width: var(--nf-wrap) !important; margin-inline: auto; color: #fff; }
.nf-page-hero h1 { color: #fff; margin: 0 0 20px; max-width: 18ch; font-size: clamp(2.5rem, 5vw, 4.5rem); font-stretch: 116%; letter-spacing: -.03em; line-height: 1.02; }
.nf-page-hero .nf-lead { color: rgba(255, 255, 255, .86); margin: 0; }
.nf-crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.nf-crumbs a { color: inherit; }
.nf-crumbs a:hover { color: #fff; }

/* Bandeau titre (pages sans héro) */
.nf-titlebar { padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 4vw, 56px); background: linear-gradient(180deg, var(--nf-mist), #fff); }
.nf-titlebar .nf-crumbs { color: var(--nf-muted); }
.nf-titlebar .nf-crumbs a:hover { color: var(--nf-ink); }
.nf-titlebar__title { margin: 0; font-size: clamp(2.4rem, 5vw, 4rem); font-stretch: 116%; letter-spacing: -.03em; }
.nf-titlebar__lead, .nf-titlebar__meta { margin: 16px 0 0; color: var(--nf-slate); font-size: var(--wp--preset--font-size--lead); }

/* =========================================================
   Section « profondeur » (parallaxe)
   ========================================================= */

.wp-block-cover.nf-depth {
	min-height: 0 !important;
	padding: clamp(120px, 15vw, 220px) var(--nf-gutter) clamp(120px, 14vw, 200px) !important;
	overflow: hidden;
	align-items: flex-start;
}
.nf-parallax .wp-block-cover__image-background,
.nf-parallax .wp-block-cover__video-background { top: -18% !important; height: 136% !important; will-change: transform; }
.nf-depth .wp-block-cover__inner-container { width: 100%; max-width: var(--nf-wrap) !important; margin-inline: auto; color: var(--nf-ink); position: relative; }
.nf-depth__intro { max-width: 820px; }
.nf-depth__intro h2 { margin: 0 0 28px; font-size: clamp(2.4rem, 5vw, 4.4rem); font-stretch: 116%; letter-spacing: -.03em; line-height: 1.02; }
.nf-depth__intro .nf-lead { color: #234055; }
.nf-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(64px, 9vw, 120px); align-items: start; }
.nf-pillars > :nth-child(2) { margin-top: 56px; }
.nf-pillars > :nth-child(3) { margin-top: 112px; }
.nf-pillars h3 { margin: 0 0 12px; font-size: 24px; }
.nf-pillars p { margin: 0; color: #2F4556; }
@media (max-width: 900px) {
	.nf-pillars { grid-template-columns: 1fr; }
	.nf-pillars > :nth-child(n) { margin-top: 0; }
}
.nf-floaters { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.nf-float { position: absolute; display: block; }
.nf-float--a { width: 220px; right: -2%; top: 4%; opacity: .9; }
.nf-float--b { width: 120px; left: 46%; top: 36%; opacity: .55; filter: blur(2px); }
.nf-float--c { width: 380px; right: 30%; bottom: -12%; opacity: .25; filter: blur(8px); }
.nf-depth .nf-depth__intro, .nf-depth .nf-pillars { position: relative; z-index: 1; }
@media (max-width: 900px) { .nf-float--b, .nf-float--c { display: none; } .nf-float--a { width: 140px; top: -2%; } }

/* Apparition (uniquement pour les éléments marqués nf-reveal) */
html.js .nf-reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--nf-ease), transform 1.1s var(--nf-ease); }
html.js .nf-reveal.is-in { opacity: 1; transform: none; }
html.js .nf-pillars > .nf-reveal:nth-child(2) { transition-delay: .12s; }
html.js .nf-pillars > .nf-reveal:nth-child(3) { transition-delay: .24s; }

