/*
Theme Name: Neoflow
Theme URI: https://myneoflow.com
Author: Neoflow LLC
Description: Thème du site Neoflow LLC : conseil, formation et programmes pour s'installer et se développer aux États-Unis et au Canada. Bilingue anglais / français, charte Biophael.
Version: 1.1.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neoflow
*/

:root {
	--nf-sylve: #0B3D2A;
	--nf-emeraude: #009030;
	--nf-or: #E7B24C;
	--nf-ivoire: #FBF7EE;
	--nf-sable: #F2ECDD;
	--nf-encre: #10201A;
	--nf-ligne: rgba(11, 61, 42, .16);
	--nf-doux: #3F5249;
	--nf-sur-sylve: rgba(251, 247, 238, .78);
	--nf-gutter: clamp(16px, 4vw, 40px);
	--nf-radius: 10px;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { -webkit-font-smoothing: antialiased; }
:where(a, button, summary, input, select, textarea):focus-visible { outline: 3px solid var(--nf-or); outline-offset: 3px; }

/* Pas d'espace entre les grandes bandes de couleur */
.wp-site-blocks > * + *,
.nf-main > * + *,
.nf-main .wp-block-post-content > .alignfull { margin-block-start: 0; }
.nf-main .wp-block-post-content { margin: 0; }
.wp-site-blocks, .wp-site-blocks > .nf-site-header, .nf-site-footer { margin-block-start: 0 !important; margin-block-end: 0 !important; }

/* ---------- Boutons ---------- */
.nf-btn,
.wp-block-button .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center;
	font: 600 1rem/1 var(--wp--preset--font-family--body);
	padding: 15px 24px; border-radius: 999px; text-decoration: none;
	border: 2px solid transparent; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.nf-btn-sm { padding: 10px 18px; font-size: .9375rem; }
.nf-btn-gold, .is-style-nf-gold .wp-block-button__link { background: var(--nf-or); color: var(--nf-encre); }
.nf-btn-gold:hover, .is-style-nf-gold .wp-block-button__link:hover { background: #F0C46A; color: var(--nf-encre); }
.is-style-nf-ghost .wp-block-button__link { background: transparent; border-color: rgba(251, 247, 238, .45); color: var(--nf-ivoire); }
.is-style-nf-ghost .wp-block-button__link:hover { border-color: var(--nf-ivoire); }
.nf-btn-deep, .is-style-nf-deep .wp-block-button__link { background: var(--nf-sylve); color: var(--nf-ivoire); }
.nf-btn-deep:hover, .is-style-nf-deep .wp-block-button__link:hover { background: var(--nf-emeraude); color: var(--nf-ivoire); }

/* ---------- En-tête ---------- */
.nf-site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(11, 61, 42, .97);
	border-bottom: 1px solid rgba(251, 247, 238, .08);
}
.admin-bar .nf-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .nf-site-header { top: 0; } }
.nf-header-row {
	max-width: 1160px; margin: 0 auto; padding: 0 var(--nf-gutter);
	height: 72px; display: flex; align-items: center; gap: 24px;
}
.nf-wordmark {
	font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 1.35rem;
	letter-spacing: .06em; line-height: 1; text-decoration: none; color: var(--nf-ivoire) !important;
	display: inline-flex; align-items: center; flex: none;
}
.nf-ring { width: .78em; height: .78em; border: .15em solid var(--nf-or); border-radius: 50%; margin: 0 .1em; box-sizing: border-box; }
.nf-nav { display: flex; gap: 26px; margin-left: auto; }
.nf-nav a, .nf-menu nav a { color: var(--nf-sur-sylve); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.nf-nav a:hover, .nf-menu nav a:hover { color: var(--nf-ivoire); }
.nf-actions { display: flex; align-items: center; gap: 12px; }
.nf-lang {
	font: 600 .875rem/1 var(--wp--preset--font-family--body); color: var(--nf-ivoire) !important;
	border: 1px solid rgba(251, 247, 238, .35); border-radius: 999px; padding: 9px 12px; text-decoration: none;
}
.nf-lang:hover { border-color: var(--nf-or); color: var(--nf-or) !important; }
.nf-menu { display: none; position: relative; }
.nf-menu summary {
	list-style: none; cursor: pointer; color: var(--nf-ivoire); font-weight: 600; font-size: .9375rem;
	padding: 9px 12px; border: 1px solid rgba(251, 247, 238, .35); border-radius: 999px;
}
.nf-menu summary::-webkit-details-marker { display: none; }
.nf-menu nav {
	position: absolute; right: 0; top: calc(100% + 12px); min-width: 230px;
	background: var(--nf-sylve); border: 1px solid rgba(251, 247, 238, .15); border-radius: var(--nf-radius);
	padding: 10px; display: grid; box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}
.nf-menu nav a { padding: 12px 14px; border-radius: 6px; font-size: 1rem; }
.nf-menu nav a:hover { background: rgba(251, 247, 238, .08); }
.nf-skip { position: absolute; left: -9999px; top: 8px; background: var(--nf-or); color: var(--nf-encre); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.nf-skip:focus { left: 8px; }

/* ---------- Bandes ---------- */
.nf-section { padding-top: clamp(72px, 10vw, 128px); padding-bottom: clamp(72px, 10vw, 128px); }
.nf-sand { background: var(--nf-sable); }
.nf-dark { background: var(--nf-sylve); color: var(--nf-ivoire); }
.nf-dark a { color: var(--nf-ivoire); }
.nf-section > h2 { max-width: 22ch; margin-bottom: 0; }
.nf-section-lead { font-size: 1.1875rem; color: var(--nf-doux); max-width: 60ch; }
/* Titres et chapôs alignés à gauche de la grille (et non centrés) */
.nf-section > h2, .nf-section > .nf-section-lead, .nf-section > .nf-note {
	margin-left: max(0px, calc((100% - 1160px) / 2)) !important; margin-right: auto !important;
}

/* ---------- Héros ---------- */
.nf-hero { overflow: hidden; padding-top: clamp(48px, 8vw, 112px); padding-bottom: clamp(64px, 10vw, 128px); }
.nf-hero-cols { align-items: center !important; gap: 32px; }
@media (min-width: 782px) {
	.nf-hero-cols > .wp-block-column:first-child { flex: 0 1 56% !important; }
	.nf-hero-cols > .wp-block-column:last-child { flex: 1 1 0 !important; min-width: 0; }
}
.nf-hero-title { font-size: clamp(2.4rem, 5.4vw, 4.4rem) !important; letter-spacing: -0.035em !important; line-height: 1.02 !important; max-width: 15ch; }
.nf-lead { font-size: clamp(1.0625rem, 1.5vw, 1.2rem); color: var(--nf-sur-sylve); max-width: 56ch; margin-top: 28px !important; }
.nf-hero .wp-block-buttons { margin-top: 32px; gap: 12px; }

.nf-halo { width: 100%; height: auto; overflow: visible; display: block; }
.nf-halo .o3, .nf-halo .o2 { fill: none; stroke: rgba(251, 247, 238, .16); stroke-width: 1.5; }
.nf-halo .o2 { stroke: rgba(251, 247, 238, .26); }
.nf-halo .ring { fill: none; stroke: var(--nf-or); stroke-width: 10; }
.nf-halo .path { fill: none; stroke: var(--nf-emeraude); stroke-width: 4; stroke-linecap: round; }
.nf-halo .core { fill: var(--nf-or); }
.nf-halo text { font-family: var(--wp--preset--font-family--edito); font-style: italic; font-size: 19px; fill: rgba(251, 247, 238, .62); text-anchor: middle; }
@media (prefers-reduced-motion: no-preference) {
	.nf-halo .path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: nf-draw 1.6s .3s cubic-bezier(.6, .05, .2, 1) forwards; }
	.nf-halo .ring { stroke-dasharray: 1; stroke-dashoffset: 1; animation: nf-draw 1.2s 1.6s ease-out forwards; }
	.nf-halo .core { transform-origin: 300px 260px; transform: scale(0); animation: nf-pop .5s 1.75s cubic-bezier(.3, 1.6, .5, 1) forwards; }
}
@keyframes nf-draw { to { stroke-dashoffset: 0; } }
@keyframes nf-pop { to { transform: scale(1); } }

/* ---------- Publics ---------- */
.nf-aud { margin-top: 56px !important; gap: clamp(24px, 3vw, 44px) !important; }
.nf-aud > .wp-block-column { border-top: 2px solid var(--nf-sylve); padding-top: 22px; }
.nf-aud h3 { font-size: 1.4rem; margin: 0 0 12px; }
.nf-aud p { color: var(--nf-doux); margin: 0; }

/* ---------- Programmes : 1, 2, 3 anneaux = image, message, marché ---------- */
.nf-exp-list { margin-top: 48px !important; }
.nf-exp-list > * + * { margin-block-start: 0 !important; }
.nf-exp { position: relative; padding: 36px 0 36px 116px !important; border-top: 1px solid var(--nf-ligne); }
.nf-exp:last-child { border-bottom: 1px solid var(--nf-ligne); }
.nf-exp > * { margin-left: 0 !important; max-width: none !important; }
.nf-exp h3 { font-size: clamp(1.4rem, 2.4vw, 1.875rem); margin: 0 0 10px; }
.nf-exp p { color: var(--nf-doux); max-width: 60ch !important; margin: 0; }
.nf-exp::before, .nf-exp::after { content: ""; position: absolute; border-radius: 50%; box-sizing: border-box; }
.nf-exp::before { left: 23px; top: 47px; width: 26px; height: 26px; border: 5px solid var(--nf-or); }
.nf-m2::after { left: 11px; top: 35px; width: 50px; height: 50px; border: 1.5px solid var(--nf-sylve); }
.nf-m3::after { left: 11px; top: 35px; width: 50px; height: 50px; border: 1.5px solid var(--nf-sylve); box-shadow: 0 0 0 10px var(--nf-sable), 0 0 0 11.5px rgba(11, 61, 42, .45); }

.nf-dots { list-style: none; padding: 0 !important; margin: 18px 0 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; }
.nf-dots li { position: relative; padding-left: 20px; font-weight: 500; }
.nf-dots li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--nf-emeraude); }

/* ---------- Formation des équipes ---------- */
.nf-team-cols { gap: clamp(32px, 6vw, 96px) !important; align-items: center !important; }
.nf-team-cols h2 { margin-bottom: 24px; }
.nf-team-cols p { color: var(--nf-doux); max-width: 54ch; }
.nf-team-cols .wp-block-buttons { margin-top: 28px; }
.nf-checks { list-style: none; padding: 0 !important; margin: 0 !important; border-top: 1px solid var(--nf-ligne); }
.nf-checks li {
	position: relative; padding: 20px 0 20px 44px; border-bottom: 1px solid var(--nf-ligne);
	font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em;
}
.nf-checks li::before {
	content: ""; position: absolute; left: 0; top: 21px; width: 26px; height: 26px; border-radius: 50%;
	background: var(--nf-emeraude) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23FBF7EE' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---------- Formats ---------- */
.nf-fmt { margin-top: 48px !important; gap: clamp(20px, 3vw, 36px) !important; }
.nf-fmt > .wp-block-column { background: #fff; border: 1px solid var(--nf-ligne); border-radius: var(--nf-radius); padding: 32px; }
.nf-fmt h3 { font-size: 1.5rem; margin: 0 0 12px; color: var(--nf-sylve); }
.nf-fmt p { margin: 0; color: var(--nf-doux); }

/* ---------- Méthode : vraie séquence, donc numérotée ---------- */
.nf-steps { counter-reset: nf-step; margin-top: 56px !important; gap: 32px !important; position: relative; }
.nf-steps::before { content: ""; position: absolute; top: 26px; left: 26px; right: 14%; height: 2px; background: linear-gradient(90deg, var(--nf-or), rgba(231, 178, 76, .15)); }
.nf-steps > .wp-block-column { counter-increment: nf-step; position: relative; }
.nf-steps > .wp-block-column::before {
	content: counter(nf-step); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
	background: var(--nf-sylve); border: 2px solid var(--nf-or); color: var(--nf-or);
	font: 800 1.25rem/1 var(--wp--preset--font-family--display); position: relative; margin-bottom: 24px;
}
.nf-steps h3 { font-size: 1.375rem; margin: 0 0 10px; }
.nf-steps p { color: var(--nf-sur-sylve); margin: 0; }
.nf-note { margin-top: 56px !important; padding-top: 20px; border-top: 1px solid rgba(251, 247, 238, .16); font-size: .9375rem; color: var(--nf-sur-sylve); max-width: 70ch; }

/* ---------- À propos ---------- */
.nf-about-cols { gap: clamp(40px, 6vw, 96px) !important; align-items: center !important; }
.nf-about-cols h2 { margin-bottom: 28px; }
.nf-about-cols p { color: var(--nf-doux); max-width: 56ch; }
.nf-mission {
	position: relative; padding-top: 52px;
	font-family: var(--wp--preset--font-family--edito); font-style: italic;
	font-size: clamp(1.6rem, 3vw, 2.4rem) !important; line-height: 1.25; color: var(--nf-sylve) !important; max-width: none !important;
}
.nf-mission::before { content: ""; position: absolute; top: 0; left: 0; width: 34px; height: 34px; border-radius: 50%; border: 6px solid var(--nf-or); box-sizing: border-box; }

/* ---------- Contact ---------- */
.nf-contact-cols { gap: clamp(40px, 6vw, 88px) !important; }
@media (min-width: 782px) {
	.nf-contact-cols > .wp-block-column:first-child { flex: 0 1 38% !important; }
	.nf-contact-cols > .wp-block-column:last-child { flex: 1 1 0 !important; min-width: 0; }
}
.nf-contact-cols h2 { margin-bottom: 24px; }
.nf-contact-cols p { color: var(--nf-doux); max-width: 44ch; }
.nf-contact-mail a { font-weight: 600; text-decoration-color: var(--nf-or); text-underline-offset: 4px; }
.nf-form { background: #fff; border: 1px solid var(--nf-ligne); border-radius: var(--nf-radius); padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; }
.nf-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.nf-field { display: grid; gap: 7px; }
.nf-field > span { font-size: .9375rem; font-weight: 600; color: var(--nf-sylve); }
.nf-field input, .nf-field select, .nf-field textarea {
	width: 100%; box-sizing: border-box; font: 400 1rem/1.4 var(--wp--preset--font-family--body); color: var(--nf-encre);
	background: var(--nf-ivoire); border: 1px solid rgba(11, 61, 42, .28); border-radius: 8px; padding: 12px 14px;
}
.nf-field textarea { resize: vertical; min-height: 130px; }
.nf-field input:focus, .nf-field select:focus, .nf-field textarea:focus { outline: 2px solid var(--nf-emeraude); outline-offset: 0; border-color: var(--nf-emeraude); }
.nf-consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; color: var(--nf-doux); }
.nf-consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--nf-emeraude); flex: none; }
.nf-form .nf-btn { justify-self: start; font-size: 1rem; }
.nf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nf-form-status { margin: 0; padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.nf-form-status.is-ok { background: rgba(0, 144, 48, .1); color: #006B24; }
.nf-form-status.is-error { background: rgba(179, 38, 30, .08); color: #B3261E; }

/* ---------- Pages simples, mentions légales, blog ---------- */
.nf-page-hero { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.nf-page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--nf-ivoire); margin: 0; }
.nf-page-body { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.nf-page-body h2 { font-size: 1.6rem; margin-top: 48px; }
.nf-page-body p, .nf-page-body li { color: var(--nf-doux); }
.nf-facts { list-style: none; padding: 0 !important; }
.nf-facts li { padding: 8px 0; border-bottom: 1px solid var(--nf-ligne); }
.nf-facts strong { color: var(--nf-sylve); }
.nf-post-date { color: var(--nf-doux); font-size: .9375rem; }
.nf-page-hero .nf-post-date { color: var(--nf-sur-sylve); }
.nf-posts h3 a { text-decoration: none; }
.nf-posts h3 a:hover { text-decoration: underline; text-decoration-color: var(--nf-or); }
.nf-posts .wp-block-post-featured-image img { border-radius: var(--nf-radius); }
.nf-404 { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }

/* ---------- Pied de page ---------- */
.nf-site-footer { background: var(--nf-encre); color: rgba(251, 247, 238, .7); font-size: .9375rem; }
.nf-footer-row { max-width: 1160px; margin: 0 auto; padding: 40px var(--nf-gutter); display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; }
.nf-footer-meta { margin: 0; }
.nf-footer-nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.nf-footer-nav a { color: rgba(251, 247, 238, .7); text-decoration: none; }
.nf-footer-nav a:hover { color: var(--nf-or); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) and (min-width: 782px) {
	.nf-aud, .nf-steps { flex-wrap: wrap !important; }
	.nf-aud > .wp-block-column, .nf-steps > .wp-block-column { flex-basis: calc(50% - 24px) !important; flex-grow: 0 !important; }
	.nf-steps::before { display: none; }
}
@media (max-width: 1020px) {
	.nf-nav { display: none; }
	.nf-actions { margin-left: auto; }
	.nf-menu { display: block; }
}
@media (max-width: 781px) {
	.nf-hero-cols > .wp-block-column:last-child { max-width: 380px; margin-left: auto; margin-right: -24px; }
	.nf-steps::before { display: none; }
	.nf-steps, .nf-aud, .nf-fmt { gap: 40px !important; }
	.nf-exp { padding-left: 0 !important; padding-top: 112px !important; }
	.nf-exp::before { left: 23px; top: 47px; }
	.nf-dots { grid-template-columns: 1fr; }
	.nf-field-row { grid-template-columns: 1fr; }
	.nf-footer-nav { margin-left: 0; }
}
@media (max-width: 520px) {
	.nf-actions .nf-btn-sm { display: none; }
	.nf-wordmark { font-size: 1.15rem; }
	.nf-hero .wp-block-button { width: 100%; }
	.nf-hero .wp-block-button__link { width: 100%; }
}

/* ---------- Offres ---------- */
.nf-offers { margin-top: 48px !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.nf-offers > * { margin: 0 !important; }
.nf-offer {
	background: #fff; border: 1px solid var(--nf-ligne); border-radius: var(--nf-radius);
	padding: 32px !important; display: flex !important; flex-direction: column; gap: 0;
}
.nf-offer > * { margin: 0 !important; }
.nf-offer-price { font: 800 2.6rem/1 var(--wp--preset--font-family--display); letter-spacing: -0.03em; color: var(--nf-sylve); }
.nf-offer-format { margin-top: 10px !important; font-size: .9375rem; font-weight: 600; color: var(--nf-emeraude); }
.nf-offer h3 { margin-top: 22px !important; font-size: 1.35rem; color: var(--nf-encre); }
.nf-offer h3 + p { margin-top: 10px !important; color: var(--nf-doux); }
.nf-offer .nf-dots { grid-template-columns: 1fr; margin-top: 20px !important; padding-top: 20px !important; border-top: 1px solid var(--nf-ligne); }
.nf-offer .wp-block-buttons { margin-top: auto !important; padding-top: 28px; }
.nf-offer .wp-block-button__link { font-size: .9375rem; padding: 12px 20px; }
.nf-offer-workshop { background: var(--nf-sylve); border-color: var(--nf-sylve); color: var(--nf-ivoire); }
.nf-offer-workshop .nf-offer-price, .nf-offer-workshop h3 { color: var(--nf-ivoire); }
.nf-offer-workshop .nf-offer-format { color: var(--nf-or); }
.nf-offer-workshop h3 + p, .nf-offer-workshop li { color: var(--nf-sur-sylve); }
.nf-offer-workshop .nf-dots { border-top-color: rgba(251, 247, 238, .16); }
.nf-offer-workshop .nf-dots li::before { border-color: var(--nf-or); }
.nf-offer-workshop .wp-block-button__link { background: var(--nf-or); color: var(--nf-encre); }
.nf-offer-note { margin-top: 24px !important; font-size: .9375rem; color: var(--nf-doux); margin-left: max(0px, calc((100% - 1160px) / 2)) !important; }
@media (min-width: 1100px) {
	.nf-offers { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.nf-offers > * { grid-column: span 2; }
	.nf-offers > .nf-offer-diagnostic, .nf-offers > .nf-offer-workshop { grid-column: span 3; }
}
