/*
 * Nédellec & Associés : ajustements chargés après le CSS du site.
 * Tevennec Digital, nov. 2026.
 */

/* ===== En-tête desktop : même hauteur avant et après le défilement ===== */
@media (min-width: 981px) {
	html #main-header.et-fixed-header #logo { height: 58px !important; max-height: none !important; margin: 14px 0 !important; }
	html #main-header.et-fixed-header #top-menu > li > a { padding-top: 30px !important; padding-bottom: 30px !important; }
	html #main-header.et-fixed-header .logo_container,
	html #main-header.et-fixed-header #et-top-navigation { transition: none !important; }
}

/* ===== FAQ : le « + » reste aligné sur la première ligne de la question ===== */
.nd-faq summary { align-items: flex-start !important; }
.nd-faq summary::after {
	flex: 0 0 1em;
	width: 1em;
	height: 1em;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	margin-top: .12em;
	transform-origin: 50% 50%;
}

/* ===== Pied de page mobile : identité pleine largeur, puis blocs en deux colonnes ===== */
@media (max-width: 980px) {
	html .nd-foot__in { grid-template-columns: 1fr 1fr !important; gap: 30px 22px !important; }
	html .nd-foot__in > div:first-child { grid-column: 1 / -1; }
	html .nd-foot h4 { margin-top: 0 !important; }
}

/* ===== Blog : barre latérale à droite, fixe au défilement (articles) ===== */
@media (min-width: 981px) {
	body.single-post #main-content .container::before { display: none !important; }
	body.single-post #content-area {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 56px;
		align-items: start;
	}
	body.single-post #content-area::before,
	body.single-post #content-area::after { display: none !important; content: none !important; }
	body.single-post #left-area {
		width: auto !important;
		max-width: none !important;
		margin: 0 !important;
		float: none !important;
	}
	body.single-post #sidebar {
		position: sticky;
		top: calc(var(--nd-hh, 120px) + 16px);
		width: auto !important;
		float: none !important;
		margin: 0 !important;
		padding: 0 4px 0 0 !important;
		max-height: calc(100vh - var(--nd-hh, 120px) - 32px);
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		scrollbar-color: rgba(12, 31, 91, .25) transparent;
	}
}

/* ===== Blog : espace sous l'en-tête et largeur utile ===== */
body.single-post #main-content { padding-top: 0 !important; }
body.single-post #main-content .container { padding-top: 40px !important; }
@media (max-width: 980px) {
	body.single-post #main-content .container { padding-top: 24px !important; }
	body.single-post #main-content .container,
	body.blog #main-content .container,
	body.archive #main-content .container,
	body.search #main-content .container { width: calc(100% - 40px) !important; max-width: none !important; }
	body.single-post #left-area { max-width: none !important; }
}

/* ===== Formulaires Gravity Forms ===== */
html .nd-form .gform_wrapper.gform-theme--framework .gform_fields { row-gap: 18px !important; }
html .nd-form .gform_wrapper.gform-theme--framework input:not([type=submit]):not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),
html .nd-form .gform_wrapper.gform-theme--framework select {
	height: auto !important;
	min-height: 48px !important;
	line-height: 1.4 !important;
	padding: 12px 14px !important;
	font-size: 15px !important;
	color: #112337 !important;
}
html .nd-form .gform_wrapper.gform-theme--framework textarea {
	line-height: 1.5 !important;
	padding: 12px 14px !important;
	font-size: 15px !important;
}
html .nd-form .gform_wrapper.gform-theme--framework select {
	-webkit-appearance: none !important;
	appearance: none !important;
	padding-right: 44px !important;
	background-color: #fff !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c1f5b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	background-size: 16px 16px !important;
	cursor: pointer;
	text-overflow: ellipsis;
}
html .nd-form .gform_wrapper.gform-theme--framework select:focus,
html .nd-form .gform_wrapper.gform-theme--framework input:focus,
html .nd-form .gform_wrapper.gform-theme--framework textarea:focus {
	border-color: #c8a47b !important;
	box-shadow: 0 0 0 3px rgba(200, 164, 123, .25) !important;
	outline: none !important;
}
html .nd-form .gform_wrapper.gform-theme--framework .gfield_label { margin-bottom: 6px !important; }
/* Case de consentement RGPD */
html .nd-form .gform_wrapper .gfield--type-consent .ginput_container_consent { display: flex; align-items: flex-start; gap: 10px; }
html .nd-form .gform_wrapper .gfield--type-consent input[type=checkbox] { flex: 0 0 18px; width: 18px !important; height: 18px !important; margin-top: 2px !important; accent-color: #0c1f5b; }
html .nd-form .gform_wrapper .gfield--type-consent .gfield_consent_label { font-size: 14px !important; line-height: 1.5 !important; color: #5f5f5f !important; font-weight: 400 !important; }
html .nd-form .gform_wrapper .gfield--type-consent .gfield_consent_label a { color: #0c1f5b !important; text-decoration: underline; }

/* ===== Menu mobile par panneaux ===== */
@media (max-width: 980px) {
	html #main-header #mobile_menu.et_mobile_menu.nd-drill {
		display: flex !important;
		flex-direction: column;
		padding: 0 !important;
		min-height: 0 !important;
		max-height: none !important;
		overflow: hidden !important;
	}
	html #main-header #mobile_menu.nd-drill > li.nd-moved,
	html #main-header #mobile_menu.nd-drill .sub-menu-toggle { display: none !important; }

	/* Premier niveau */
	html #main-header #mobile_menu.nd-drill > li.menu-item { padding: 0 22px !important; flex: 0 0 auto; }
	html #main-header #mobile_menu.nd-drill > li.menu-item:first-of-type,
	html #main-header #mobile_menu.nd-drill > li.nd-mclose + li.menu-item { margin-top: 14px; }
	html #main-header #mobile_menu.nd-drill li.nd-parent { position: static !important; }
	html #main-header #mobile_menu.nd-drill li > a {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		gap: 14px;
		padding: 17px 2px !important;
		border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
		background: none !important;
		color: #fff !important;
		font-size: 18px !important;
		font-weight: 500 !important;
		line-height: 1.3 !important;
		letter-spacing: 0 !important;
	}
	html #main-header #mobile_menu.nd-drill li > a::after { content: none !important; }
	html #main-header #mobile_menu.nd-drill .nd-go { flex: 0 0 22px; width: 22px; height: 22px; color: #c8a47b; display: inline-flex; }
	html #main-header #mobile_menu.nd-drill .nd-go svg { width: 22px; height: 22px; }

	/* Panneaux (sous-niveaux) */
	html #main-header #mobile_menu.nd-drill ul.sub-menu {
		display: block !important;
		position: absolute !important;
		top: 0;
		left: 0;
		right: 0;
		bottom: var(--nd-mfoot, 0px);
		width: auto !important;
		margin: 0 !important;
		padding: 10px 22px 28px !important;
		border: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		background: #0c1f5b !important;
		overflow-y: auto;
		overscroll-behavior: contain;
		transform: translateX(100%);
		visibility: hidden;
		transition: transform .32s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .32s;
		z-index: 3;
	}
	/* Un sous-panneau se place dans le panneau parent, qui exclut déjà le bas du menu */
	html #main-header #mobile_menu.nd-drill ul.sub-menu ul.sub-menu { z-index: 4; bottom: 0; }
	html #main-header #mobile_menu.nd-drill ul.sub-menu:has(> li.nd-open) { overflow: hidden; }
	html #main-header #mobile_menu.nd-drill li.nd-open > ul.sub-menu {
		transform: none;
		visibility: visible;
		transition: transform .32s cubic-bezier(.4, 0, .2, 1), visibility 0s;
	}
	html #main-header #mobile_menu.nd-drill ul.sub-menu > li { padding: 0 !important; border: 0 !important; }
	html #main-header #mobile_menu.nd-drill ul.sub-menu > li > a {
		font-size: 16px !important;
		font-weight: 400 !important;
		color: #e3e7f3 !important;
		padding: 15px 2px !important;
	}
	html #main-header #mobile_menu.nd-drill ul.sub-menu > li.nd-parent > a { color: #fff !important; font-weight: 500 !important; }

	/* En-tête de panneau : retour, titre, lien vers la page */
	html #main-header #mobile_menu.nd-drill li.nd-phead { padding: 0 0 4px !important; }
	html #main-header #mobile_menu.nd-drill .nd-back {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		margin: 6px 0 0;
		padding: 8px 0;
		background: none;
		border: 0;
		color: #c8a47b;
		font-family: 'DM Sans', sans-serif;
		font-size: 13px;
		font-weight: 700;
		letter-spacing: .12em;
		text-transform: uppercase;
		cursor: pointer;
	}
	html #main-header #mobile_menu.nd-drill .nd-back svg { width: 18px; height: 18px; }
	html #main-header #mobile_menu.nd-drill .nd-ptitle {
		display: block;
		margin: 10px 0 6px;
		color: #fff;
		font-family: 'Philosopher', Georgia, serif;
		font-size: 27px;
		font-weight: 700;
		line-height: 1.2;
	}
	html #main-header #mobile_menu.nd-drill li.nd-seepage > a {
		display: inline-block !important;
		padding: 2px 0 16px !important;
		border: 0 !important;
		color: #c8a47b !important;
		font-size: 14.5px !important;
		font-weight: 500 !important;
		text-decoration: underline !important;
		text-underline-offset: 3px;
	}

	/* Bas du menu : paiement et téléphones */
	html #main-header #mobile_menu.nd-drill > li.nd-mfoot {
		margin-top: auto;
		padding: 16px 22px calc(18px + env(safe-area-inset-bottom)) !important;
		border-top: 1px solid rgba(255, 255, 255, .12) !important;
		background: #0c1f5b;
		position: relative;
		z-index: 5;
	}
	html #main-header #mobile_menu.nd-drill .nd-mfoot__pay {
		justify-content: center !important;
		padding: 15px 20px !important;
		border: 0 !important;
		border-radius: 999px;
		background: #c8a47b !important;
		color: #fff !important;
		font-size: 16px !important;
		font-weight: 600 !important;
	}
	html #main-header #mobile_menu.nd-drill .nd-mfoot__tels {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		margin-top: 12px;
	}
	html #main-header #mobile_menu.nd-drill .nd-mfoot__tel {
		display: flex !important;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 5px;
		padding: 11px 12px !important;
		border: 1px solid rgba(255, 255, 255, .18) !important;
		border-radius: 12px;
		font-size: 15px !important;
	}
	html #main-header #mobile_menu.nd-drill .nd-mfoot__tel span { font-size: 12px; line-height: 1.3; color: #c9d0e6; }
	html #main-header #mobile_menu.nd-drill .nd-mfoot__tel strong { margin-top: auto; font-size: 16px; font-weight: 700; color: #fff; white-space: nowrap; }
	html #main-header #mobile_menu.nd-drill .nd-mfoot__tel.is-urg strong { color: #c8a47b; }

	/* La barre d'actions fixe du bas s'efface quand le menu est ouvert */
	html.nd-menu-open .nd-mbar { opacity: 0 !important; pointer-events: none !important; }
}

/* ===== Exposants (1er, 2e…) : vraie taille d'exposant ===== */
html body sup { font-size: .62em !important; line-height: 0 !important; vertical-align: baseline !important; position: relative !important; top: -.55em !important; }

/* ===== Pieds de page (Theme Builder : site et blog) ===== */
.nd-ft { color: #c9d0e6; font-size: 14px; line-height: 1.7; }
.nd-ft .nd-ft-top { width: 90% !important; max-width: 1280px !important; padding: 70px 0 44px !important; row-gap: 36px; }
.nd-ft .nd-ft-bottom { width: 90% !important; max-width: 1280px !important; padding: 20px 0 26px !important; border-top: 1px solid rgba(255, 255, 255, .12); }
.nd-ft .et_pb_text, .nd-ft .et_pb_text p, .nd-ft .et_pb_text li, .nd-ft .et_pb_text a { font-size: 14px !important; line-height: 1.7 !important; color: #c9d0e6; }
.nd-ft .et_pb_text p { padding: 0 0 10px; margin: 0; }
.nd-ft .et_pb_text a { color: #c9d0e6 !important; transition: color .2s; }
.nd-ft .et_pb_text a:hover { color: #fff !important; }
.nd-ft .et_pb_text .nd-ft-title { color: #c8a47b !important; font-size: 13px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 0 0 14px; }
.nd-ft .et_pb_text .nd-ft-name { color: #fff !important; font-family: 'Philosopher', serif; font-size: 1.15rem !important; line-height: 1.35 !important; }
.nd-ft .nd-ft-links { list-style: none; padding: 0 !important; margin: 0; }
.nd-ft .et_pb_text .nd-ft-links li { padding: 3px 0; }
.nd-ft .nd-ft-tel { display: flex; flex-direction: column; }
.nd-ft .et_pb_text .nd-ft-tel span { font-size: 12px !important; color: #9aa3c4; line-height: 1.4 !important; }
.nd-ft .et_pb_text .nd-ft-tel a { color: #fff !important; font-weight: 700; font-size: 1.05rem !important; }
.nd-ft .et_pb_text .nd-ft-tel.is-urg a { color: #d9bb93 !important; font-size: 1.45rem !important; line-height: 1.3 !important; }
.nd-ft .et_pb_text .nd-ft-office strong { color: #fff; }
.nd-ft .nd-ft-cta { padding-top: 8px !important; }
.nd-ft .et_pb_text .nd-ft-cta a.nd-btn { color: #fff !important; }
.nd-ft .et_pb_text .nd-ft-cta a.nd-btn:hover { background: #fff !important; color: var(--nd-navy) !important; }
.nd-ft .et_pb_text.nd-ft-legal p, .nd-ft .et_pb_text.nd-ft-legal a { font-size: 13px !important; color: #9aa3c4 !important; padding: 2px 0; }
.nd-ft .et_pb_text.nd-ft-legal a:hover { color: #fff !important; }
@media (min-width: 981px) {
	.nd-ft .nd-ft-legal .et_pb_text_inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; }
	.nd-ft .nd-ft-c1 { padding-right: 24px; }
}
@media (max-width: 767px) {
	.nd-ft .nd-ft-top { width: calc(100% - 40px) !important; padding: 48px 0 28px !important; row-gap: 28px; }
	.nd-ft .nd-ft-bottom { width: calc(100% - 40px) !important; }
	.nd-ft .et_pb_text .nd-ft-links li { padding: 4px 0; }
}

/* ===== En-tête : masqué en descendant, réaffiché en remontant ===== */
html.nd-hdr-auto #main-header { transition: transform .35s ease, background-color .3s ease, box-shadow .3s ease !important; will-change: transform; }
html.nd-hdr-hidden #main-header { transform: translate3d(0, -100%, 0) !important; box-shadow: none !important; }
@media (max-width: 980px) {
	html.nd-hdr-auto #main-header { position: fixed !important; top: 0 !important; left: 0; right: 0; width: 100%; }
}
.ndb-aside { transition: top .35s ease; }
html.nd-hdr-hidden .ndb-aside { top: 20px; }
@media (prefers-reduced-motion: reduce) {
	html.nd-hdr-auto #main-header, .ndb-aside { transition: none !important; }
}
