/* ==========================================================================
   Notre Héritage — page « Notre histoire » (code court [nh_notre_histoire])
   Bleu nuit #0F213C · Rouge #C4232C · Blanc — EB Garamond / Montserrat
   ========================================================================== */
/* Chaque règle est préfixée par body.nh-site pour l'emporter sur les styles généraux du thème et de Hello Elementor. */

body.nh-site .nh-histoire {
	--h-bleu: #0F213C;
	--h-bleu-2: #16294A;
	--h-rouge: #C4232C;
	--h-bouton: #B5121B;
	--h-texte: #4A5468;
	--h-trait: rgba(15, 33, 60, 0.12);
	--h-voile: #F5F7FA;
	--h-titre: "EB Garamond", Georgia, "Times New Roman", serif;
	--h-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	--h-largeur: 1240px;
	--h-marge: clamp(20px, 5vw, 48px);
	font-family: var(--h-sans);
	color: var(--h-texte);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
body.nh-site .nh-histoire *,
body.nh-site .nh-histoire *::before,
body.nh-site .nh-histoire *::after { box-sizing: border-box; }
body.nh-site .nh-histoire :where(p,
body.nh-site h1,
body.nh-site h2,
body.nh-site h3,
body.nh-site figure,
body.nh-site blockquote,
body.nh-site ol,
body.nh-site ul) { margin: 0; padding: 0; }
body.nh-site .nh-histoire svg { display: block; width: 100%; height: auto; }
body.nh-site .nh-histoire a { color: inherit; }
body.nh-site .nh-histoire sup { font-size: 0.62em; line-height: 0; vertical-align: 0.5em; }

body.nh-site .nh-histoire h2 {
	font-family: var(--h-titre);
	font-weight: 500;
	font-size: clamp(32px, 3.4vw, 46px);
	line-height: 1.12;
	letter-spacing: -0.005em;
	color: var(--h-bleu);
	margin-bottom: 26px;
}
body.nh-site .nh-h-recit p { font-size: 16.5px; line-height: 1.85; }
body.nh-site .nh-h-recit p + p { margin-top: 18px; }
body.nh-site .nh-h-recit em,
body.nh-site .nh-h-prologue em { font-style: italic; }

body.nh-site .nh-h-surtitre {
	display: flex; align-items: center; gap: 14px;
	font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
	color: #fff; margin-bottom: 28px;
}
body.nh-site .nh-h-surtitre::before { content: ""; width: 36px; height: 2px; background: var(--h-rouge); }
body.nh-site .nh-h-surtitre--rouge { color: var(--h-rouge); margin-bottom: 20px; }

body.nh-site .nh-h-lettrine::first-letter {
	float: left;
	font-family: var(--h-titre);
	font-size: 74px;
	line-height: 0.82;
	padding: 6px 12px 0 0;
	color: var(--h-rouge);
}

body.nh-site .nh-h-fleuron { width: 180px; margin: 0 auto 40px; }
body.nh-site .nh-h-fleuron--petit { width: 120px; margin: 0 auto; opacity: 0.9; }

body.nh-site .nh-h-ouverture {
	position: relative;
	background: radial-gradient(60% 70% at 76% 46%, #182D50 0%, var(--h-bleu) 70%);
	color: #fff;
	border-top: 4px solid var(--h-rouge);
	padding: clamp(72px, 10vw, 130px) var(--h-marge) clamp(80px, 10vw, 130px);
	overflow: hidden;
}
body.nh-site .nh-h-ouverture::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
}
body.nh-site .nh-h-ouverture__grille {
	max-width: var(--h-largeur); margin: 0 auto;
	display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 6vw, 90px); align-items: center;
}
body.nh-site .nh-h-titre {
	font-family: var(--h-titre);
	font-weight: 500;
	font-size: clamp(44px, 6.2vw, 84px);
	line-height: 1.02;
	letter-spacing: -0.012em;
	color: #fff;
	margin-bottom: 30px;
}
body.nh-site .nh-h-titre em { display: block; font-style: italic; color: #F4E9E9; }
body.nh-site .nh-h-chapo { font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.75; color: rgba(255,255,255,0.8); max-width: 560px; }
body.nh-site .nh-h-lire {
	color: #fff !important;
	display: inline-flex; align-items: center; gap: 10px; margin-top: 38px;
	font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
	padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.45);
	transition: border-color .2s, gap .2s;
}
body.nh-site .nh-h-lire:hover { border-color: var(--h-rouge); gap: 14px; }

body.nh-site .nh-h-medaillon { position: relative; width: min(460px, 100%); aspect-ratio: 1; justify-self: center; }
body.nh-site .nh-h-medaillon__couronne { position: absolute; inset: 12% 12% 6%; opacity: 0.5; }
body.nh-site .nh-h-medaillon__anneau { position: absolute; inset: 0; animation: nh-h-tourne 90s linear infinite; }
body.nh-site .nh-h-medaillon__anneau text { font-family: var(--h-sans); font-size: 12px; font-weight: 600; fill: rgba(255,255,255,0.62); }
body.nh-site .nh-h-medaillon__blason { position: absolute; width: 46%; left: 27%; top: 25%; filter: drop-shadow(0 18px 40px rgba(0,0,0,0.35)); }
@keyframes nh-h-tourne { to { transform: rotate(360deg); } }

body.nh-site .nh-h-prologue { max-width: 820px; margin: 0 auto; padding: clamp(80px, 9vw, 120px) var(--h-marge) clamp(56px, 6vw, 80px); text-align: center; }
body.nh-site .nh-h-exergue {
	font-family: var(--h-titre); font-style: italic; font-weight: 400;
	font-size: clamp(27px, 3vw, 38px); line-height: 1.32; color: var(--h-bleu);
	margin-bottom: 36px;
}
body.nh-site .nh-h-prologue__texte p { font-size: 17px; line-height: 1.9; }
body.nh-site .nh-h-prologue__texte p + p { margin-top: 18px; }

body.nh-site .nh-h-frise { max-width: var(--h-largeur); margin: 0 auto clamp(40px, 6vw, 70px); padding: 0 var(--h-marge); }
body.nh-site .nh-h-frise__titre {
	text-align: center; font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
	color: var(--h-bleu); margin-bottom: 22px;
}
body.nh-site .nh-h-frise__liste {
	list-style: none; display: grid; grid-template-columns: repeat(6, 1fr);
	border-top: 1px solid var(--h-trait); border-bottom: 1px solid var(--h-trait);
	position: relative;
}
body.nh-site .nh-h-frise__liste li + li { border-left: 1px solid var(--h-trait); }
body.nh-site .nh-h-frise__liste a {
	display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
	padding: 26px 10px 24px; text-decoration: none; position: relative; transition: background .25s;
}
body.nh-site .nh-h-frise__liste a::after {
	content: ""; position: absolute; left: 50%; bottom: -1px; width: 0; height: 2px; background: var(--h-rouge);
	transition: width .3s, left .3s;
}
body.nh-site .nh-h-frise__liste a:hover { background: var(--h-voile); }
body.nh-site .nh-h-frise__liste a:hover::after { width: 60%; left: 20%; }
body.nh-site .nh-h-frise__num { font-family: var(--h-titre); font-size: 26px; line-height: 1; color: var(--h-rouge); }
body.nh-site .nh-h-frise__date { font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--h-texte); }
body.nh-site .nh-h-frise__nom { font-family: var(--h-titre); font-size: 21px; line-height: 1.15; color: var(--h-bleu); }

body.nh-site .nh-h-chapitre {
	max-width: var(--h-largeur); margin: 0 auto;
	padding: clamp(56px, 6.5vw, 88px) var(--h-marge);
	display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 100px); align-items: center;
}
body.nh-site .nh-h-chapitre--inverse { grid-template-columns: 6fr 5fr; }
body.nh-site .nh-h-chapitre--inverse .nh-h-figure { order: 2; }

body.nh-site .nh-h-figure { margin: 0; }
body.nh-site .nh-h-figure__cadre {
	position: relative; background: var(--h-voile);
	padding: clamp(28px, 4.5vw, 58px);
	aspect-ratio: 1 / 1.02; display: flex; align-items: center; justify-content: center;
}
body.nh-site .nh-h-figure__cadre::before {
	content: ""; position: absolute; inset: 12px; border: 1px solid var(--h-trait); pointer-events: none;
}
body.nh-site .nh-h-figure__cadre svg { max-height: 100%; }
body.nh-site .nh-h-medaille { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; margin: 0 auto; }
body.nh-site .nh-h-medaille svg { position: absolute; inset: 0; }
body.nh-site .nh-h-medaille__img { position: absolute; left: 12.5%; top: 12.5%; width: 75%; height: 75%; border-radius: 50%; object-fit: cover; }
body.nh-site .nh-h-medaille__img--blason { left: 15%; top: 15%; width: 70%; height: 70%; border-radius: 0; object-fit: contain; }
body.nh-site .nh-h-figure figcaption {
	margin-top: 16px; text-align: center;
	font-family: var(--h-titre); font-style: italic; font-size: 16.5px; color: var(--h-texte);
}

body.nh-site .nh-h-repere { display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; }
body.nh-site .nh-h-repere__num { font-family: var(--h-titre); font-size: 58px; line-height: 0.9; color: var(--h-rouge); }
body.nh-site .nh-h-repere__date { font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--h-bleu); }

body.nh-site .nh-h-encadre {
	margin-top: 30px; padding: 22px 26px; background: var(--h-voile); border-top: 2px solid var(--h-rouge);
}
body.nh-site .nh-h-encadre__titre {
	font-size: 11.5px !important; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--h-bleu); margin-bottom: 8px; line-height: 1.5 !important;
}
body.nh-site .nh-h-encadre p:not(.nh-h-encadre__titre) { font-size: 15.5px; line-height: 1.75; margin-top: 0; }

body.nh-site .nh-h-chant { margin-top: 30px; padding-left: 26px; border-left: 1px solid var(--h-trait); position: relative; }
body.nh-site .nh-h-chant::before {
	content: "«"; position: absolute; left: -14px; top: -4px; background: #fff; padding: 0 4px;
	font-family: var(--h-titre); font-size: 34px; line-height: 1; color: var(--h-rouge);
}
body.nh-site .nh-h-chant p { font-family: var(--h-titre) !important; font-style: italic; font-size: 25px !important; line-height: 1.4 !important; color: var(--h-bleu); }

body.nh-site .nh-h-citation {
	position: relative; overflow: hidden; background: var(--h-bleu); color: #fff;
	padding: clamp(80px, 9vw, 124px) var(--h-marge); text-align: center; margin-top: clamp(30px, 4vw, 50px);
}
body.nh-site .nh-h-citation__fond { position: absolute; width: min(760px, 120%); left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0.07; pointer-events: none; }
body.nh-site .nh-h-citation blockquote { position: relative; max-width: 900px; margin: 0 auto; }
body.nh-site .nh-h-citation blockquote::before {
	content: "«"; display: block; font-family: var(--h-titre); font-size: 96px; line-height: 0.6; color: var(--h-rouge); margin-bottom: 26px;
}
body.nh-site .nh-h-citation blockquote p { font-family: var(--h-titre); font-style: italic; font-size: clamp(25px, 2.9vw, 38px); line-height: 1.38; color: #FBF8F3; }
body.nh-site .nh-h-citation footer {
	margin-top: 34px; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.65);
}
body.nh-site .nh-h-citation cite { font-style: normal; }

body.nh-site .nh-h-nous { max-width: var(--h-largeur); margin: 0 auto; padding: clamp(80px, 10vw, 130px) var(--h-marge) clamp(40px, 5vw, 60px); }
body.nh-site .nh-h-nous__grille { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
body.nh-site .nh-h-nous__devise {
	margin-top: 30px !important; padding-top: 26px; border-top: 1px solid var(--h-trait);
	font-family: var(--h-titre); font-size: 24px !important; line-height: 1.45 !important; color: var(--h-bleu);
}
body.nh-site .nh-h-nous__embleme { position: relative; width: min(420px, 100%); aspect-ratio: 1; justify-self: center; }
body.nh-site .nh-h-nous__couronne { position: absolute; inset: 0; opacity: 0.9; }
body.nh-site .nh-h-nous__embleme img { position: absolute; width: 58%; left: 21%; top: 19%; }

body.nh-site .nh-h-engagements {
	list-style: none; margin-top: clamp(70px, 8vw, 110px) !important;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px);
}
body.nh-site .nh-h-engagements li { border-top: 1px solid var(--h-bleu); padding-top: 26px; }
body.nh-site .nh-h-engagements__picto { display: block; width: 50px; margin-bottom: 18px; }
body.nh-site .nh-h-engagements h3 { font-family: var(--h-titre); font-weight: 500; font-size: 23px; line-height: 1.2; color: var(--h-bleu); margin-bottom: 10px; }
body.nh-site .nh-h-engagements p { font-size: 15px; line-height: 1.75; }

body.nh-site .nh-h-final { text-align: center; padding: clamp(80px, 9vw, 120px) var(--h-marge) clamp(90px, 10vw, 140px); }
body.nh-site .nh-h-final h2 { font-size: clamp(36px, 4.4vw, 58px); margin-bottom: 18px; }
body.nh-site .nh-h-final > p { font-size: 17px; line-height: 1.8; max-width: 560px; margin: 0 auto; }
body.nh-site .nh-h-final__actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 18px 34px; justify-content: center; align-items: center; }
body.nh-site .nh-h-bouton {
	display: inline-flex; align-items: center; justify-content: center; text-align: center;
	background: var(--h-bouton); color: #fff !important; text-decoration: none;
	padding: 19px 38px; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
	transition: background .2s, transform .2s;
}
body.nh-site .nh-h-bouton:hover { background: #8F0E15; transform: translateY(-1px); }
body.nh-site .nh-h-lien {
	font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--h-bleu);
	padding-bottom: 5px; border-bottom: 1px solid var(--h-bleu);
}
body.nh-site .nh-h-lien:hover { color: var(--h-rouge); border-color: var(--h-rouge); }

@media (prefers-reduced-motion: reduce) {
	body.nh-site .nh-h-medaillon__anneau { animation: none; }
}

@media (max-width: 960px) {
	body.nh-site .nh-h-ouverture__grille { grid-template-columns: 1fr; }
	body.nh-site .nh-h-chapitre--inverse { grid-template-columns: 1fr; }
	body.nh-site .nh-h-medaillon { width: min(340px, 82%); order: -1; margin-bottom: 8px; }
	body.nh-site .nh-h-ouverture__texte { text-align: center; }
	body.nh-site .nh-h-ouverture .nh-h-surtitre { justify-content: center; }
	body.nh-site .nh-h-chapo { margin: 0 auto; }
	body.nh-site .nh-h-chapitre { grid-template-columns: 1fr; gap: 36px; }
	body.nh-site .nh-h-chapitre--inverse .nh-h-figure { order: 0; }
	body.nh-site .nh-h-figure { max-width: 520px; width: 100%; margin: 0 auto; }
	body.nh-site .nh-h-frise__liste { grid-template-columns: repeat(3, 1fr); }
	body.nh-site .nh-h-frise__liste li:nth-child(4) { border-left: 0; }
	body.nh-site .nh-h-frise__liste li:nth-child(n+4) { border-top: 1px solid var(--h-trait); }
	body.nh-site .nh-h-nous__grille { grid-template-columns: 1fr; }
	body.nh-site .nh-h-nous__embleme { width: min(320px, 80%); order: -1; }
	body.nh-site .nh-h-engagements { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
	body.nh-site .nh-h-prologue__texte { text-align: left; }
	body.nh-site .nh-h-frise__liste { grid-template-columns: repeat(2, 1fr); }
	body.nh-site .nh-h-frise__liste li:nth-child(odd) { border-left: 0; }
	body.nh-site .nh-h-frise__liste li:nth-child(4) { border-left: 1px solid var(--h-trait); }
	body.nh-site .nh-h-frise__liste li:nth-child(n+3) { border-top: 1px solid var(--h-trait); }
	body.nh-site .nh-h-frise__liste a { padding: 20px 8px 18px; }
	body.nh-site .nh-h-engagements { grid-template-columns: 1fr; }
	body.nh-site .nh-h-recit p { font-size: 16px; }
	body.nh-site .nh-h-lettrine::first-letter { font-size: 62px; }
	body.nh-site .nh-h-repere__num { font-size: 48px; }
	body.nh-site .nh-h-chant p { font-size: 22px !important; }
	body.nh-site .nh-h-final__actions { flex-direction: column; }
	body.nh-site .nh-h-bouton { width: 100%; }
}

body.nh-site .nh-histoire [id] { scroll-margin-top: 24px; }
html:has(.nh-histoire) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(.nh-histoire) { scroll-behavior: auto; } }
