/*
 * Batilys — Styles globaux du design maquette (en-tête, pied de page, typographie, palette).
 * Chargé sur TOUTES les pages. Encapsulé sous body.batilys-theme.
 * Les sections propres à la page d'accueil restent dans batilys-home.css.
 */

body.batilys-theme {
	--batilys-primary: #3552f4;
	--batilys-secondary: #5b63ff;
	--batilys-accent: #6c65ff;
	--batilys-dark: #0e1b47;
	--batilys-light: #f5f6ff;
	--batilys-muted: #59617b;
	--batilys-border: #e5e8f5;
	--batilys-radius-sm: 10px;
	--batilys-radius-md: 16px;
	--batilys-radius-lg: 22px;
	--batilys-shadow-sm: 0 12px 24px rgba(53, 82, 244, 0.24);
	--batilys-shadow-lg: 0 24px 70px rgba(33, 48, 120, 0.18);

	margin: 0;
	font-family: Inter, Arimo, Arial, sans-serif;
	font-size: 16px;
	background: #fff;
}

/* Typographie : Inter partout (le reste de la charte des pages internes est conservé) */
body.batilys-theme h1,
body.batilys-theme h2,
body.batilys-theme h3,
body.batilys-theme h4,
body.batilys-theme h5,
body.batilys-theme h6,
body.batilys-theme p {
	font-family: inherit;
}

@media (prefers-reduced-motion: no-preference) {
	html:has(body.batilys-theme) {
		scroll-behavior: smooth;
	}
}

body.batilys-theme .container {
	width: min(1160px, calc(100% - 40px));
	margin-inline: auto;
}

body.batilys-theme :focus-visible {
	outline: 2px solid var(--batilys-primary);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Lien d'évitement */
body.batilys-theme .skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 12px 20px;
	background: var(--batilys-dark);
	color: #fff;
	font-weight: 700;
	border-radius: 0 0 var(--batilys-radius-sm) 0;
}

body.batilys-theme .skip-link:focus {
	left: 0;
}

body.batilys-theme .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/*===========================
    En-tête
===========================*/
body.batilys-theme .site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(229, 232, 245, 0.8);
}

body.batilys-theme.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.batilys-theme.admin-bar .site-header {
		top: 46px;
	}
}

body.batilys-theme .nav-wrap {
	height: 78px;
	display: flex;
	align-items: center;
	gap: 34px;
}

body.batilys-theme .brand {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
	font-size: 22px;
	color: var(--batilys-dark);
	text-decoration: none;
}

body.batilys-theme .brand-mark {
	display: grid;
	place-items: center;
	width: 26px;
	height: 28px;
	border-radius: 6px 12px 12px 6px;
	background: linear-gradient(145deg, var(--batilys-primary), var(--batilys-accent));
	color: #fff;
	font-weight: 800;
}

body.batilys-theme .brand-logo {
	display: block;
	width: auto;
	height: 36px;
}

/* Logo du footer (fond sombre) : rendu en blanc */
body.batilys-theme .brand-light .brand-logo {
	filter: brightness(0) invert(1);
}

body.batilys-theme .main-nav {
	margin-left: auto;
}

body.batilys-theme .main-nav ul {
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	font-weight: 600;
}

body.batilys-theme .main-nav ul a {
	color: #273057;
	text-decoration: none;
}

body.batilys-theme .main-nav ul li.current-menu-item > a,
body.batilys-theme .main-nav ul li.current_page_item > a,
body.batilys-theme .main-nav ul a:hover {
	color: var(--batilys-primary);
}

body.batilys-theme .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 0;
	border-radius: 999px;
	padding: 15px 24px;
	background: linear-gradient(135deg, #3153f7, #5c59f8);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	box-shadow: var(--batilys-shadow-sm);
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.batilys-theme .btn:hover {
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 16px 30px rgba(53, 82, 244, 0.3);
}

@media (prefers-reduced-motion: reduce) {
	body.batilys-theme .btn {
		transition: none;
	}

	body.batilys-theme .btn:hover {
		transform: none;
	}
}

body.batilys-theme .btn-sm {
	padding: 12px 19px;
	font-size: 13px;
}

body.batilys-theme .menu-toggle {
	display: none;
	margin-left: auto;
	border: 0;
	background: none;
	font-size: 28px;
	line-height: 1;
	color: var(--batilys-dark);
	cursor: pointer;
	padding: 8px;
}

/*===========================
    Pied de page
===========================*/
body.batilys-theme .site-footer {
	background: linear-gradient(135deg, #354deb, #5246db);
	color: #fff;
	padding: 68px 0 22px;
}

body.batilys-theme .brand-light {
	color: #fff;
}

body.batilys-theme .footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 50px;
}

body.batilys-theme .site-footer h3,
body.batilys-theme .site-footer h4 {
	margin: 5px 0 18px;
	font-size: 17px;
	color: #fff;
}

body.batilys-theme .site-footer .footer-grid a {
	display: block;
	margin: 9px 0;
	color: #eef0ff;
	font-size: 14px;
	text-decoration: none;
}

body.batilys-theme .site-footer .footer-grid a:hover {
	color: #fff;
	text-decoration: underline;
}

body.batilys-theme .site-footer p {
	color: #dfe3ff;
	font-size: 14px;
	line-height: 1.7;
	margin: 14px 0;
}

body.batilys-theme .site-footer p a {
	display: inline;
	margin: 0;
}

body.batilys-theme .site-footer .footer-grid a.brand {
	display: flex;
	margin: 0 0 4px;
	font-size: 22px;
}

body.batilys-theme .site-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.batilys-theme .socials {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}

body.batilys-theme .socials a {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	display: grid !important;
	place-items: center;
	margin: 0 !important;
}

body.batilys-theme .socials a:hover {
	background: rgba(255, 255, 255, 0.3);
}

body.batilys-theme .footer-bottom {
	display: flex;
	justify-content: space-between;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	margin-top: 40px;
	padding-top: 20px;
	font-size: 12px;
	color: #dce0ff;
}

body.batilys-theme .footer-bottom span:last-child {
	display: flex;
	gap: 24px;
}

body.batilys-theme .footer-bottom a {
	color: #dce0ff;
	text-decoration: none;
}

body.batilys-theme .footer-bottom a:hover {
	color: #fff;
	text-decoration: underline;
}

/*===========================
    Reskin des pages internes
===========================*/

/* Bandeau de page : l'en-tête n'est plus en position absolue, on réduit le padding
   et on aligne le dégradé sur la palette de la maquette */
body.batilys-theme .page-banner {
	padding: 85px 0 70px;
	background: linear-gradient(120deg, #3551f5, #6458f6);
}

body.batilys-theme .page-banner h1 {
	color: #fff;
	letter-spacing: -0.03em;
}

body.batilys-theme .page-banner .breadcrumb .breadcrumb-item.active {
	color: #cdd5ff;
}

@media (max-width: 767px) {
	body.batilys-theme .page-banner {
		padding: 55px 0 50px;
	}
}

/* Boutons historiques des pages internes alignés sur le style maquette */
body.batilys-theme .main-btn {
	background: linear-gradient(135deg, #3153f7, #5c59f8);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 16px 30px;
	font-size: 16px;
	box-shadow: var(--batilys-shadow-sm);
}

body.batilys-theme .main-btn:hover {
	color: #fff;
}

body.batilys-theme .main-btn.border-btn {
	background: #fff;
	color: var(--batilys-primary);
	border: 1px solid #8f9cff;
	box-shadow: none;
}

/* Liens du contenu éditorial dans la couleur primaire de la maquette */
body.batilys-theme .entry-content a {
	color: var(--batilys-primary);
}

/* Bandeau des pages "style accueil" (autonome, sans Bootstrap ni style.css) */
body.batilys-theme .page-hero {
	background: linear-gradient(120deg, #3551f5, #6458f6);
	color: #fff;
	text-align: center;
	padding: 74px 0 66px;
}

body.batilys-theme .page-hero .crumbs {
	font-size: 13px;
	color: #cdd5ff;
	margin-bottom: 14px;
}

body.batilys-theme .page-hero .crumbs a {
	color: #e8eaff;
	text-decoration: none;
}

body.batilys-theme .page-hero .crumbs a:hover {
	text-decoration: underline;
}

body.batilys-theme .page-hero h1 {
	color: #fff;
	font-size: clamp(32px, 4vw, 46px);
	line-height: 1.1;
	letter-spacing: -0.03em;
	font-weight: 800;
	margin: 0 0 14px;
}

body.batilys-theme .page-hero .lead {
	color: #e6e9ff;
	max-width: 740px;
	margin: 0 auto;
	font-size: 18px;
	line-height: 1.65;
}

@media (max-width: 600px) {
	body.batilys-theme .page-hero {
		padding: 52px 0 46px;
	}

	body.batilys-theme .page-hero .lead {
		font-size: 16px;
	}
}

/* Pastille d'icône, dans le style des cartes de la page d'accueil */
body.batilys-theme .icon-bubble {
	width: 62px;
	height: 62px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #eff1ff;
	color: var(--batilys-primary);
	display: grid;
	place-items: center;
}

body.batilys-theme .icon-bubble svg {
	width: 30px;
	height: 30px;
}

body.batilys-theme .entry-content .feature-heading {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 45px 0 18px;
}

body.batilys-theme .entry-content .feature-heading h2 {
	margin: 0;
}

@media (max-width: 600px) {
	body.batilys-theme .entry-content .feature-heading {
		gap: 14px;
	}

	body.batilys-theme .entry-content .feature-heading .icon-bubble {
		width: 50px;
		height: 50px;
	}

	body.batilys-theme .entry-content .feature-heading .icon-bubble svg {
		width: 25px;
		height: 25px;
	}
}

body.batilys-theme .entry-content a.main-btn {
	color: #fff;
}

/*===========================
    Responsive en-tête / pied de page
===========================*/
@media (max-width: 900px) {
	body.batilys-theme .main-nav {
		position: absolute;
		top: 78px;
		left: 20px;
		right: 20px;
		display: none;
		background: #fff;
		padding: 22px;
		border-radius: var(--batilys-radius-md);
		box-shadow: 0 18px 45px rgba(24, 39, 102, 0.15);
	}

	body.batilys-theme .main-nav.open {
		display: block;
	}

	body.batilys-theme .main-nav ul {
		flex-direction: column;
		gap: 16px;
		font-size: 16px;
	}

	body.batilys-theme .menu-toggle {
		display: block;
	}

	body.batilys-theme .nav-wrap > .nav-cta {
		display: none;
	}

	body.batilys-theme .footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	body.batilys-theme .container {
		width: min(100% - 26px, 1160px);
	}

	body.batilys-theme .nav-wrap {
		height: 70px;
	}

	body.batilys-theme .main-nav {
		top: 70px;
	}

	body.batilys-theme .footer-grid {
		grid-template-columns: 1fr;
	}

	body.batilys-theme .footer-bottom {
		flex-direction: column;
		gap: 15px;
	}

	body.batilys-theme .footer-bottom span:last-child {
		flex-direction: column;
		gap: 2px;
	}
}

/*===========================
    Onglets flottants (démo + appel)
===========================*/
body.batilys-theme .batilys-fcta {
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 60;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-end;
}

body.batilys-theme .batilys-fcta-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 15px 9px;
	color: #fff;
	text-decoration: none;
	border-radius: 12px 0 0 12px;
	box-shadow: -6px 8px 22px rgba(20, 30, 80, 0.28);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body.batilys-theme .batilys-fcta-btn.is-demo {
	background: linear-gradient(180deg, #3153f7, #5c59f8);
}

body.batilys-theme .batilys-fcta-btn.is-call {
	background: linear-gradient(180deg, #17a866, #0f8f57);
}

body.batilys-theme .batilys-fcta-btn:hover,
body.batilys-theme .batilys-fcta-btn:focus-visible {
	color: #fff;
	transform: translateX(-3px);
	box-shadow: -10px 10px 28px rgba(20, 30, 80, 0.34);
	filter: brightness(1.05);
}

body.batilys-theme .batilys-fcta-txt {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

body.batilys-theme .batilys-fcta-ico {
	line-height: 0;
}

body.batilys-theme .batilys-fcta-ico svg {
	width: 20px;
	height: 20px;
	display: block;
}

@media (prefers-reduced-motion: reduce) {
	body.batilys-theme .batilys-fcta-btn {
		transition: none;
	}

	body.batilys-theme .batilys-fcta-btn:hover,
	body.batilys-theme .batilys-fcta-btn:focus-visible {
		transform: none;
	}
}

/* Mobile : barre fixe en bas (boutons côte à côte) au lieu des onglets verticaux */
@media (max-width: 768px) {
	body.batilys-theme {
		padding-bottom: 54px;
	}

	body.batilys-theme .batilys-fcta {
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		transform: none;
		flex-direction: row;
		gap: 0;
		align-items: stretch;
		box-shadow: 0 -6px 20px rgba(20, 30, 80, 0.22);
	}

	body.batilys-theme .batilys-fcta-btn {
		flex: 1 1 0;
		flex-direction: row;
		justify-content: center;
		gap: 9px;
		padding: 15px 10px;
		border-radius: 0;
		box-shadow: none;
	}

	body.batilys-theme .batilys-fcta-btn:hover,
	body.batilys-theme .batilys-fcta-btn:focus-visible {
		transform: none;
		box-shadow: none;
	}

	body.batilys-theme .batilys-fcta-txt {
		writing-mode: horizontal-tb;
		transform: none;
		font-size: 15px;
	}

	body.batilys-theme .batilys-fcta-ico svg {
		width: 19px;
		height: 19px;
	}
}
