/* ─── Styles Globaux & Variables ─── */

:root {
	--fcspe-color-orange: #f97316;
	--fcspe-border-header: #1e3a8a;
	--fcspe-border-footer: #b45309;
	--fcspe-color-blue-dark: #19244e;
	--fcspe-color-blue-dark-57: rgba(25, 36, 78, 0.57);
	--fcspe-color-white: #f8fafc;
	--fcspe-color-blue-text-dark: #019dde;
	--fcspe-color-black: #19244e;
	--fcspe-color-white-soft: #f8fafc;
	--fcspe-color-blue-light: #eff6ff;
	--fcspe-color-blue-text-light: #0077b5;
	--fcspe-font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--fcspe-font-display: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--fcspe-font-size-body: 16px;
	--fcspe-font-size-emphasis: 19px;
	--fcspe-font-size-subtitle: clamp(2.3rem, 3.4vw, 2.975rem);
	--fcspe-font-size-title: clamp(2.7rem, 5vw, 3.0625rem);
	--fcspe-font-size-stat: clamp(2.4rem, 4vw, 3rem);
	--fcspe-font-weight-regular: 400;
	--fcspe-font-weight-bold: 700;
	--fcspe-font-weight-extrabold: 800;
	--fcspe-font-weight-black: 900;
	--fcspe-line-height-body: 1.6;
	--fcspe-shadow-soft: 0 12px 36px rgba(2, 8, 23, 0.14);
	--fcspe-shadow-hard: 0 16px 40px rgba(2, 8, 23, 0.32);
}

html {
	font-size: 16px;
	background-color: #e2e8f0;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

.site,
#page,
.site-content,
.content-area,
.site-main,
.inside-article,
.entry-content,
.entry-summary,
.page-header,
.inside-page-header,
.site-footer {
	margin: 0;
	padding: 0;
}

.site,
.site-content,
.content-area,
.site-main {
	display: block !important;
}

.site-content {
	flex: none !important;
}

body {
	font-family: var(--fcspe-font-sans);
	font-size: var(--fcspe-font-size-body);
	line-height: var(--fcspe-line-height-body);
	color: var(--fcspe-color-black);
	background: var(--fcspe-color-white-soft);
	margin: 0 auto;
	padding: 0;
	max-width: 2000px;
	box-shadow: 0 0 60px rgba(0, 0, 0, 0.08);
	position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--fcspe-font-display);
	font-weight: var(--fcspe-font-weight-black);
	color: var(--fcspe-color-black);
	line-height: 1.1;
}

p,
li,
a,
input,
button,
label {
	font-family: var(--fcspe-font-sans);
}

a {
	color: var(--fcspe-color-blue-text-light);
}

.text-strong,
strong,
b {
	font-size: var(--fcspe-font-size-emphasis);
	font-weight: var(--fcspe-font-weight-bold);
}

/* ─── Header et Footer ─── */

.site-header {
	background: var(--fcspe-color-white-soft);
	position: sticky;
	top: 0;
	z-index: 10000;
	box-shadow: var(--fcspe-shadow-hard);
	padding: 1rem;
	transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
	padding: 0.25rem 1rem;
	box-shadow: var(--fcspe-shadow-soft);
}

/* ─── Décalage du header avec barre d'admin WP ─── */
body.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}



@media (max-width: 768px) {

	.site-header,
	.site-footer {
		border-width: 1px;
	}
}


/* ─── Conteneur layout ─── */
.wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0.85rem 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: padding 0.3s ease;
}

.site-header.is-scrolled .wrap {
	padding: 0.4rem 1rem;
}

.site-branding .site-title {
	font-weight: var(--fcspe-font-weight-bold);
	font-size: 1.125rem;
	text-decoration: none;
	color: var(--fcspe-color-black);
}

.site-branding img {
	height: 40px;
	width: auto;
	margin-right: 0.75rem;
	transition: height 0.3s ease;
}

.site-header.is-scrolled .site-branding img {
	height: 32px;
}

.main-navigation {
	margin-top: 0;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1.5rem;
}

.main-navigation a {
	color: var(--fcspe-color-blue-dark);
	text-decoration: none;
	font-weight: var(--fcspe-font-weight-bold);
	position: relative;
	padding-bottom: 0.25rem;
}

/* ─── Survol des liens du menu ─── */
.main-navigation a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 3px;
	background-color: var(--fcspe-color-orange);
	transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
	border-radius: 2px;
}

.main-navigation a:hover::after,
.main-navigation li.current-menu-item>a::after,
.main-navigation li.current-menu-ancestor>a::after {
	width: 75%;
}

/* ─── Actions & Recherche du Header ─── */
.header-actions {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.header-search {
	display: flex;
	align-items: center;
	background: var(--fcspe-color-white);
	border: 1px solid rgba(25, 36, 78, 0.15);
	border-radius: 7px;
	padding: 0 0.35rem 0 0;
	transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, max-width 0.3s ease, padding 0.3s ease;
	max-width: 250px;
	position: relative;
}

.header-search::before {
	content: '';
	position: absolute;
	inset: -1px;
	border-radius: 7px;
	border: 2px solid var(--fcspe-color-orange);
	opacity: 0;
	pointer-events: none;
	z-index: 1;
	clip-path: inset(100% 0 0 0);
	transition: opacity 0.2s ease, clip-path 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.header-search:hover,
.header-search:focus-within {
	box-shadow: 0 8px 24px rgba(2, 6, 23, 0.12);
	transform: translateY(-1px);
}

.header-search:hover::before,
.header-search:focus-within::before {
	opacity: 1;
	clip-path: inset(0 0 0 0);
}

.header-search__input {
	border: none;
	background: transparent;
	outline: none;
	font-size: 0.875rem;
	color: var(--fcspe-color-blue-dark);
	width: 100%;
	padding: 0.6rem 0 0.6rem 1rem;
	margin-right: 0.5rem;
	font-family: var(--fcspe-font-sans);
}

.header-search__input::placeholder {
	color: rgba(25, 36, 78, 0.5);
}

.header-search__button {
	background: transparent;
	border: none;
	border-radius: 5px;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--fcspe-color-orange);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.3s ease, height 0.3s ease;
	flex-shrink: 0;
	padding: 0.2rem;
}

.header-search__button:hover {
	transform: scale(1.12);
	background: transparent;
	box-shadow: none !important;
}

.header-search__button:active {
	transform: scale(0.9);
	transition: transform 0.1s ease;
}

.header-search__icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.header-search__icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	stroke: currentColor;
	transition: color 0.2s ease, filter 0.2s ease, width 0.3s ease, height 0.3s ease;
}

.header-search__button:hover .header-search__icon svg {
	color: #ea580c;
	filter: drop-shadow(0 2px 6px rgba(249, 115, 22, 0.35));
}

/* ─── Rétrécissement au scroll ─── */
.site-header.is-scrolled .header-search {
	max-width: 200px;
	padding: 0 0.25rem 0 0;
}

.site-header.is-scrolled .header-search__input {
	padding: 0.4rem 0 0.4rem 0.75rem;
}

.site-header.is-scrolled .header-search__button {
	width: 28px;
	height: 28px;
}

.site-header.is-scrolled .header-search__icon svg {
	width: 14px;
	height: 14px;
}

@media screen and (max-width: 900px) {
	.header-search {
		display: none;
	}
}


/* ─── Menu Mobile (Burger) ─── */
.menu-toggle {
	display: none;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	z-index: 10001;
}

.menu-toggle__line {
	display: block;
	width: 24px;
	height: 3px;
	margin: 5px 0;
	background-color: var(--fcspe-color-blue-dark);
	transition: all 0.3s ease;
	border-radius: 2px;
}

.menu-toggle.is-active .menu-toggle__line:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle__line:nth-child(2) {
	opacity: 0;
}

.menu-toggle.is-active .menu-toggle__line:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

@media screen and (max-width: 900px) {
	.menu-toggle {
		display: block;
	}

	.main-navigation {
		position: fixed;
		top: 0;
		right: -100%;
		width: 100%;
		height: 100vh;
		background: var(--fcspe-color-white-soft);
		z-index: 10000;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	}

	.main-navigation.is-open {
		right: 0;
	}

	.main-navigation ul {
		flex-direction: column;
		gap: 2rem;
		text-align: center;
	}

	.main-navigation a {
		font-size: 1.5rem;
	}

	body.menu-is-open {
		overflow: hidden;
	}
}

/* ─── Boutons interactifs ─── */
.btn-interactive {
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	will-change: transform, box-shadow;
}

.btn-interactive:hover,
.btn-interactive:focus-visible {
	box-shadow: 0 6px 16px rgba(2, 8, 23, 0.12);
	transform: translateY(-1px);
}

.btn-interactive:active {
	transform: translateY(2px);
	box-shadow: 0 1px 2px rgba(2, 8, 23, 0.05);
	transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* ─── Footer ─── */
.site-footer {
	background-color: var(--fcspe-color-blue-dark);
	color: var(--fcspe-color-white);
	font-family: var(--fcspe-font-sans);
	padding: 5rem 1rem 3rem;
}

.site-footer__container {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 3.5rem;
}

/* ─── Footer Haut ─── */
.site-footer__top {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	text-align: center;
}

.site-footer__title {
	color: var(--fcspe-color-white);
	font-size: clamp(1.25rem, 3vw, 1.5rem);
	margin: 0;
}

.site-footer__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.site-footer__linkedin {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background-color: transparent;
	border-radius: 8px;
	text-decoration: none;
	overflow: hidden;
}

.site-footer__linkedin img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.site-footer__separator {
	font-size: 1rem;
	color: var(--fcspe-color-white);
	margin: 0 0.5rem;
}

.site-footer__button {
	display: inline-block;
	background-color: var(--fcspe-color-blue-text-light);
	color: var(--fcspe-color-white);
	padding: 0.75rem 1.5rem;
	border-radius: 24px;
	font-weight: var(--fcspe-font-weight-bold);
	text-decoration: none;
	font-size: 1rem;
}

.site-footer__button:hover,
.site-footer__linkedin:hover {
	background-color: #005a8c;
	color: var(--fcspe-color-white);
}

/* ─── Séparateur ─── */
.site-footer__divider {
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	margin: 0;
	width: 100%;
}

/* ─── Footer Bas ─── */
.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 2rem;
}

.site-footer__branding {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.site-footer__logo {
	height: 40px;
	width: auto;
	object-fit: contain;
}

.site-footer__copyright {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.8);
}

.site-footer__nav {
	display: flex;
}

.site-footer__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.site-footer__nav li {
	margin: 0;
}

.site-footer__nav a {
	color: var(--fcspe-color-white);
	text-decoration: none;
	font-weight: var(--fcspe-font-weight-bold);
	font-size: 0.9375rem;
	transition: opacity 0.2s ease;
}

.site-footer__nav a:hover {
	opacity: 0.8;
}

@media (max-width: 768px) {
	.site-footer__bottom {
		flex-direction: column;
		text-align: center;
	}

	.site-footer__nav ul {
		justify-content: center;
	}

	.site-footer__branding {
		flex-direction: column;
	}
}