/* --------------------------------------------------------------------------
   AI-FR Services 2 — layout scoped to body
   Palette: bleu #0a4a6e / #0073a8, turquoise #1aa6b8
   -------------------------------------------------------------------------- */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Nunito:wght@400;600;700&display=swap");

body {
	margin: 0;
	background: #f9fafb;
	color: #3c434a;
	font-family: "Nunito", sans-serif;
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body *,
body *::before,
body *::after {
	box-sizing: border-box;
}

body a {
	color: #0073a8;
	text-decoration: none;
}

body a:hover {
	color: #0a4a6e;
}

body a:focus-visible,
body button:focus-visible,
body .ai-fr-btn:focus-visible {
	outline: 3px solid #0a4a6e;
	outline-offset: 2px;
}

body h1,
body h2,
body h3,
body .ai-fr-card__body h3 {
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	color: #0a4a6e;
	text-shadow: none !important;
	margin: 0 0 0.75rem;
	line-height: 1.25;
}

body .ai-fr-hero h1 {
	color: #fff !important;
	text-shadow: none !important;
}

/* Neutralise le CSS additionnel du personnalisateur */
body .floating-post-title,
body .imprint,
body .privacy-policy-link {
	display: none !important;
}

body .skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	padding: 0.75rem 1rem;
	background: #0a4a6e;
	color: #fff;
}

body .skip-link:focus {
	left: 1rem;
	top: 1rem;
}

/* ---- Header ---- */
.ai-fr-topbar {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid #e6eef3;
}

.ai-fr-topbar__inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0.85rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
}

.ai-fr-brand {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	min-width: 0;
	color: inherit;
}

.ai-fr-brand:hover {
	color: inherit;
}

.ai-fr-brand img {
	display: block;
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.ai-fr-brand__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ai-fr-brand__name {
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	color: #0a4a6e;
	line-height: 1.2;
}

.ai-fr-brand__tag {
	font-size: 0.78rem;
	color: #6b7780;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ai-fr-nav {
	display: flex;
	align-items: center;
	gap: 0.35rem 1.1rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.ai-fr-nav__list {
	display: flex;
	align-items: center;
	gap: 0.15rem 1.15rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ai-fr-nav__list a {
	color: #3c434a;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0.35rem 0;
}

.ai-fr-nav__list a[aria-current="page"],
.ai-fr-nav__list a:hover {
	color: #0a4a6e;
}

.ai-fr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.25rem;
	border-radius: 999px;
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	font-size: 0.9rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ai-fr-btn--primary {
	background: #1aa6b8;
	color: #fff !important;
	border-color: #1aa6b8;
}

.ai-fr-btn--primary:hover {
	background: #0a4a6e;
	border-color: #0a4a6e;
	color: #fff !important;
}

.ai-fr-btn--ghost {
	background: transparent;
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.85);
}

.ai-fr-btn--ghost:hover {
	background: #fff;
	color: #0a4a6e !important;
}

.ai-fr-nav-toggle {
	display: none;
	background: #fff;
	border: 1px solid #d5e0e7;
	border-radius: 8px;
	padding: 0.45rem 0.7rem;
	font-weight: 700;
	color: #0a4a6e;
	cursor: pointer;
}

/* ---- Hero ---- */
.ai-fr-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(125deg, #0a4a6e 0%, #0073a8 48%, #1aa6b8 100%);
	color: #fff;
	min-height: 320px;
}

.ai-fr-hero__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	opacity: 0.35;
}

.ai-fr-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 1100px;
	margin: 0 auto;
	padding: 3.25rem 1.25rem 3.5rem;
}

.ai-fr-hero h1 {
	color: #fff;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	max-width: 18ch;
	margin-bottom: 0.85rem;
}

.ai-fr-hero__lead {
	max-width: 38rem;
	font-size: clamp(1.05rem, 2vw, 1.2rem);
	line-height: 1.55;
	margin: 0 0 1.5rem;
	color: rgba(255, 255, 255, 0.94);
}

.ai-fr-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* ---- Main column ---- */
.ai-fr-main {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 3.5rem;
}

.ai-fr-intro {
	max-width: 48rem;
	margin-bottom: 2.5rem;
}

.ai-fr-intro p {
	margin: 0 0 1rem;
	font-size: 1.08rem;
}

.ai-fr-section-title {
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	margin-bottom: 1.25rem;
}

/* ---- Service cards ---- */
.ai-fr-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.1rem;
	margin: 0 0 2.75rem;
	padding: 0;
	list-style: none;
}

.ai-fr-card {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	background: #fff;
	border: 1px solid #e3ebf0;
	border-radius: 14px;
	padding: 1.25rem 1.35rem;
	box-shadow: 0 1px 2px rgba(10, 74, 110, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	color: inherit;
	height: 100%;
}

a.ai-fr-card:hover {
	border-color: #1aa6b8;
	box-shadow: 0 4px 14px rgba(10, 74, 110, 0.08);
	transform: translateY(-1px);
	color: inherit;
}

.ai-fr-card__icon {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 12px;
	background: #f0f8fb;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.ai-fr-card__icon img {
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.ai-fr-card__body h3 {
	font-size: 1.05rem;
	margin: 0 0 0.4rem;
	color: #0a4a6e;
}

.ai-fr-card__body p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #5a6570;
}

.ai-fr-card__more {
	display: inline-block;
	margin-top: 0.55rem;
	font-weight: 700;
	font-size: 0.88rem;
	color: #1aa6b8;
}

/* ---- Contact band ---- */
.ai-fr-contact {
	background: #0a4a6e;
	color: #fff;
	border-radius: 16px;
	padding: 1.75rem 1.5rem;
	margin-bottom: 2.75rem;
}

.ai-fr-contact h2 {
	color: #fff;
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
}

.ai-fr-contact p {
	margin: 0 0 0.35rem;
	color: rgba(255, 255, 255, 0.95);
}

.ai-fr-contact a {
	color: #9fe3ec;
	font-weight: 600;
}

.ai-fr-contact a:hover {
	color: #fff;
}

/* ---- FAQ ---- */
.ai-fr-faq {
	max-width: 48rem;
}

.ai-fr-faq h2 {
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	margin-bottom: 1.25rem;
}

.ai-fr-faq details {
	background: #fff;
	border: 1px solid #e3ebf0;
	border-radius: 12px;
	padding: 0.9rem 1.1rem;
	margin-bottom: 0.65rem;
}

.ai-fr-faq summary {
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	color: #0a4a6e;
	cursor: pointer;
	list-style: none;
}

.ai-fr-faq summary::-webkit-details-marker {
	display: none;
}

.ai-fr-faq summary::after {
	content: "+";
	float: right;
	color: #1aa6b8;
	font-weight: 700;
}

.ai-fr-faq details[open] summary::after {
	content: "−";
}

.ai-fr-faq details p {
	margin: 0.75rem 0 0.15rem;
	color: #5a6570;
}

/* ---- Footer ---- */
.ai-fr-footer {
	background: #e8eef2;
	border-top: 1px solid #d7e1e8;
	padding: 1.5rem 1.25rem;
	text-align: center;
}

.ai-fr-footer a {
	color: #0a4a6e;
	font-weight: 600;
}

.ai-fr-credits {
	margin: 0;
	font-size: 0.8rem;
	color: #5a6570;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
	.ai-fr-brand__tag {
		display: none;
	}

	.ai-fr-nav__list {
		gap: 0.15rem 0.85rem;
	}
}

@media (max-width: 700px) {
	.ai-fr-topbar__inner {
		flex-wrap: wrap;
	}

	.ai-fr-nav-toggle {
		display: inline-flex;
		margin-left: auto;
	}

	.ai-fr-nav {
		display: none;
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}

	.ai-fr-nav.is-open {
		display: flex;
	}

	.ai-fr-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.35rem;
	}

	.ai-fr-btn--contact {
		width: 100%;
	}

	.ai-fr-cards {
		grid-template-columns: 1fr;
	}

	.ai-fr-hero__inner {
		padding: 2.5rem 1.25rem 2.75rem;
	}

	.ai-fr-hero h1 {
		max-width: none;
	}
}

/* --------------------------------------------------------------------------
   Site-wide content, menu WP, pages, blog, pictos
   -------------------------------------------------------------------------- */

body.admin-bar .ai-fr-topbar {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .ai-fr-topbar {
		top: 46px;
	}
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: #0a4a6e;
	clip: auto !important;
	clip-path: none;
	color: #fff;
	display: block;
	font-size: 0.95rem;
	height: auto;
	left: 1rem;
	top: 1rem;
	width: auto;
	z-index: 100000;
	padding: 0.75rem 1rem;
}

/* WP nav list + submenus */
.ai-fr-nav__list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.15rem 0.85rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ai-fr-nav__list > li {
	position: relative;
	margin: 0;
}

.ai-fr-nav__list a {
	color: #3c434a;
	font-weight: 600;
	font-size: 0.92rem;
	padding: 0.35rem 0;
	display: inline-block;
}

.ai-fr-nav__list a:hover,
.ai-fr-nav__list .current-menu-item > a,
.ai-fr-nav__list .current_page_item > a {
	color: #0a4a6e;
}

.ai-fr-nav__list .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	margin: 0.35rem 0 0;
	padding: 0.5rem 0;
	list-style: none;
	background: #fff;
	border: 1px solid #e3ebf0;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(10, 74, 110, 0.1);
	z-index: 120;
}

.ai-fr-nav__list > li:hover > .sub-menu,
.ai-fr-nav__list > li:focus-within > .sub-menu {
	display: block;
}

.ai-fr-nav__list .sub-menu a {
	display: block;
	padding: 0.45rem 1rem;
	font-size: 0.9rem;
	white-space: nowrap;
}

.ai-fr-nav__list .submenu-expand,
.ai-fr-nav__list .mobile-parent-nav-menu-item,
.ai-fr-nav__list .menu-item-link-return,
.ai-fr-nav__list button {
	display: none !important;
}

/* Page hero (pages / articles hors Services 2 & accueil) */
.ai-fr-page-hero {
	background: linear-gradient(125deg, #0a4a6e 0%, #0073a8 55%, #1aa6b8 100%);
	color: #fff;
}

.ai-fr-page-hero__inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2rem 1.25rem 2.15rem;
}

.ai-fr-page-hero__title {
	margin: 0 !important;
	color: #fff !important;
	font-family: "Montserrat", sans-serif;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 700;
	line-height: 1.2;
	text-shadow: none !important;
	max-width: 40rem;
}

/* Contenu principal */
.site-content {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2rem 1.25rem 3rem;
}

body.home .site-content,
body.page-template-template-services-2 .site-content {
	max-width: none;
	padding: 0;
}

body.home .entry .entry-content {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2rem 1.25rem 3rem;
}

body.page-template-template-services-2 .ai-fr-main {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 3.5rem;
}

.entry .entry-content,
.entry .entry-summary {
	margin: 0;
}

.entry .entry-content > *,
.entry .entry-summary > *,
.entry .entry-content > .wp-block-group > .wp-block-group__inner-container > * {
	max-width: none;
}

/* Évite le double H1 (hero AI-FR + entry-header parent) */
body.singular:not(.home):not(.page-template-template-services-2) .entry-header,
body.singular:not(.home):not(.page-template-template-services-2) .site-featured-image {
	display: none !important;
}

body h1,
body h2,
body h3,
body h4 {
	font-family: "Montserrat", sans-serif;
	text-shadow: none !important;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
	color: #0a4a6e;
}

/* Pictos accueil modernisés */
.picto-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1rem;
	text-align: center;
	padding: 0.5rem 0 1.5rem;
}

.picto-grid a {
	text-decoration: none !important;
	font-weight: 600;
	color: inherit;
}

.picto-item {
	background: #fff;
	padding: 1rem 0.75rem;
	border: 1px solid #e3ebf0;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(10, 74, 110, 0.04) !important;
	min-height: 0 !important;
	text-transform: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.picto-item:hover {
	transform: translateY(-2px) !important;
	border-color: #1aa6b8;
	box-shadow: 0 4px 14px rgba(10, 74, 110, 0.08) !important;
}

.picto-item img {
	width: 64px !important;
	height: 64px !important;
	object-fit: contain;
	margin: 0 auto 0.65rem !important;
	display: block;
}

.picto-item p {
	font-size: 0.9rem !important;
	color: #0a4a6e !important;
	margin: 0 !important;
	font-weight: 700;
	font-family: "Montserrat", sans-serif;
}

.bloc-light-blue {
	background: #0a4a6e !important;
	color: #fff;
	border-radius: 16px;
	padding: 1.5rem !important;
	margin: 1.5rem 0 !important;
}

.bloc-light-blue h3,
.bloc-light-blue p {
	color: #fff !important;
	text-shadow: none !important;
}

/* Blog / archives */
.archive .content-area,
.blog .content-area,
.search .content-area,
.category .content-area,
.single-post .content-area {
	max-width: 900px;
	margin: 0 auto;
}

.archive article,
.blog article,
.search article,
.category article {
	background: #fff;
	border: 1px solid #e3ebf0;
	border-radius: 14px;
	padding: 1.25rem;
	margin: 0 0 1.25rem;
	box-shadow: 0 1px 2px rgba(10, 74, 110, 0.04);
}

.archive article .post-thumbnail img,
.blog article .post-thumbnail img {
	border-radius: 10px;
	width: 100%;
	height: auto;
	box-shadow: none !important;
}

.entry-footer,
.entry-meta,
.imprint,
.privacy-policy-link,
.floating-post-title {
	display: none !important;
}

.ai-fr-footer-nav {
	margin-bottom: 0.75rem;
}

.ai-fr-footer-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ai-fr-footer-menu a {
	font-size: 0.85rem;
}

/* Parent Twenty Nineteen leftovers */
.site-header,
#circuitCanvas {
	display: none !important;
}

@media (max-width: 960px) {
	.ai-fr-nav-toggle {
		display: inline-flex;
		margin-left: auto;
	}

	.ai-fr-nav {
		display: none;
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}

	.ai-fr-nav.is-open {
		display: flex;
	}

	.ai-fr-nav__list {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.ai-fr-nav__list .sub-menu {
		position: static;
		display: block;
		border: 0;
		box-shadow: none;
		padding: 0.25rem 0 0.25rem 0.85rem;
		background: transparent;
	}

	.ai-fr-topbar__inner {
		flex-wrap: wrap;
	}
}

