/*
Theme Name: Fix Informatique
Theme URI: https://fixinformatique.fr
Author: Fix Informatique
Description: Thème du site vitrine de Fix Informatique (Pisseleu, Oise). Thème à blocs : tous les textes de l'accueil se modifient depuis Pages > Accueil, les actualités depuis Articles.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fixinfo
*/

/* ---------- Variables ---------- */
:root {
	--navy: #0D3D6D;
	--navy-deep: #082A4C;
	--steel: #AEC3D5;
	--signal: #2F80C8;
	--ok: #2E9E6B;
	--bg: #F5F8FB;
	--surface: #FFFFFF;
	--ink: #10263D;
	--ink-soft: #4A6076;
	--line: #D6E1EB;
	--hero-bg: #0D3D6D;
	--hero-soft: #C5D6E5;
	--display: Archivo, "Arial Narrow", Arial, Helvetica, sans-serif;
	--body: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.wp-site-blocks { padding: 0; display: flex; flex-direction: column; min-height: 100vh; }
.wp-site-blocks > main { flex: 1 0 auto; }
.wp-site-blocks > * { margin-block-start: 0; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 96px; }
h1, h2, h3, .fx-n, .fx-since strong, .fx-c-value { font-stretch: 88%; }

.fx-wrap {
	box-sizing: border-box;
	max-width: 1180px;
	margin-inline: auto !important;
	padding-inline: 24px;
}

/* ---------- Boutons ---------- */
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 2px solid transparent;
	white-space: nowrap;
	text-decoration: none;
}
.fx-btn-remote .wp-block-button__link { background: var(--signal); color: #fff; }
.fx-btn-remote .wp-block-button__link:hover { background: #2870B0; color: #fff; }
.fx-btn-light .wp-block-button__link { background: #fff; color: var(--navy); }
.fx-btn-light .wp-block-button__link:hover { background: var(--steel); color: var(--navy); }
.fx-btn-ghost .wp-block-button__link { background: transparent; border-color: var(--hero-soft); color: #fff; }
.fx-btn-ghost .wp-block-button__link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.fx-btn-large .wp-block-button__link { font-size: 18px; padding: 16px 26px; }

.fx-ico-phone .wp-block-button__link::before,
.fx-ico-monitor .wp-block-button__link::before,
.fx-ico-download .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--fx-icon) center / contain no-repeat;
	mask: var(--fx-icon) center / contain no-repeat;
}
.fx-ico-phone { --fx-icon: url(assets/icons/phone.svg); }
.fx-ico-monitor { --fx-icon: url(assets/icons/monitor.svg); }
.fx-ico-download { --fx-icon: url(assets/icons/download.svg); }

/* ---------- En-tête ---------- */
.fx-top {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--surface) 92%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .fx-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .fx-top { top: 46px; } }
@media (max-width: 600px) {
	.admin-bar .fx-top { top: 0; }
	/* Le flou crée un bloc conteneur qui enfermerait le menu mobile plein écran. */
	.fx-top { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }
}

.fx-top .fx-top-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 76px;
}
.fx-top .fx-top-inner > * { margin: 0; }
.fx-brand { margin: 0; }
.fx-brand img { display: block; height: 50px; width: auto; }
.fx-top .fx-nav { margin-left: auto; }
.fx-nav .wp-block-navigation__container { gap: 26px; }
.fx-nav .wp-block-navigation-item__content {
	color: var(--ink-soft);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}
.fx-nav .wp-block-navigation-item__content:hover { color: var(--ink); }
.fx-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--surface);
	padding: 24px;
}
.fx-nav .is-menu-open .wp-block-navigation-item__content { font-size: 20px; color: var(--ink); }
.fx-nav .wp-block-navigation__responsive-container-open {
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 6px;
	color: var(--ink);
}

/* ---------- Héros ---------- */
.fx-hero {
	position: relative;
	overflow: hidden;
	background: var(--hero-bg);
	color: #fff;
}
.fx-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(174, 195, 213, .07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(174, 195, 213, .07) 1px, transparent 1px);
	background-size: 32px 32px;
	pointer-events: none;
}
.fx-hero .fx-hero-grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 48px;
	align-items: center;
	padding-top: 84px;
	padding-bottom: 92px;
}
.fx-hero .fx-hero-grid > *,
.fx-hero .fx-hero-text > * { margin: 0; }
.fx-hero h1 {
	color: #fff;
	font-size: clamp(40px, 5.6vw, 72px);
	font-weight: 900;
	font-stretch: 80%;
}
.fx-hero .fx-hero-text .fx-lede { margin-top: 24px; max-width: 34em; color: var(--hero-soft); font-size: 19px; }
.fx-hero .fx-hero-text .fx-actions { margin-top: 36px; gap: 12px; }
.fx-hero .fx-hero-text .fx-since {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin-top: 40px;
	color: var(--hero-soft);
	font-size: 15px;
}
.fx-since strong {
	color: #fff;
	font-family: var(--display);
	font-size: 34px;
	font-style: italic;
	font-weight: 900;
	font-stretch: 80%;
	line-height: 1;
}
.fx-topo { margin: 0; }
.fx-topo img { display: block; width: 100%; height: auto; }

/* ---------- Sections ---------- */
.fx-section { padding: 96px 0; }
.fx-section.fx-pt0 { padding-top: 0; }
.fx-section .fx-sec-head {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 48px;
	align-items: end;
	margin-bottom: 56px;
}
.fx-section .fx-sec-head > * { margin: 0; }
.fx-sec-head h2,
.fx-about-text h2 { color: var(--navy); font-size: clamp(32px, 3.8vw, 48px); }
.fx-sec-head p { max-width: 36em; color: var(--ink-soft); font-size: 18px; }

/* ---------- Services ---------- */
.fx-services .fx-services-list { border-top: 2px solid var(--navy); }
.fx-services .fx-services-list > * { margin: 0; }
.fx-services .fx-svc {
	display: grid;
	grid-template-columns: 72px 1fr 1.3fr;
	gap: 32px;
	align-items: start;
	padding: 34px 0;
	border-bottom: 1px solid var(--line);
}
.fx-services .fx-svc > *,
.fx-services .fx-svc-text > * { margin: 0; }
.fx-svc-icon {
	display: grid !important;
	place-items: center;
	width: 56px;
	height: 56px;
	box-sizing: border-box;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
}
.fx-svc-icon img { width: 28px; height: 28px; }
.fx-svc h3 { font-size: 28px; }
.fx-services .fx-svc-text p { margin-top: 8px; color: var(--ink-soft); }
.fx-services .fx-svc ul {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.fx-svc li { position: relative; margin: 0; padding-left: 18px; font-size: 16px; }
.fx-svc li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .62em;
	width: 8px;
	height: 2px;
	background: var(--signal);
}

/* ---------- Méthode ---------- */
.fx-method {
	background: var(--surface);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.fx-method .fx-steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.fx-method .fx-steps > * { margin: 0; }
.fx-method .fx-step { padding: 0 28px 0 0; }
.fx-method .fx-step + .fx-step { padding-left: 28px; border-left: 1px solid var(--line); }
.fx-method .fx-step > * { margin: 0; }
.fx-step .fx-n {
	color: var(--steel);
	font-family: var(--display);
	font-size: 56px;
	font-style: italic;
	font-weight: 900;
	font-stretch: 75%;
	line-height: 1;
}
.fx-method .fx-step h3 { margin-top: 14px; font-size: 22px; }
.fx-method .fx-step p:not(.fx-n) { margin-top: 10px; color: var(--ink-soft); font-size: 16px; }

/* ---------- Assistance à distance ---------- */
.fx-remote { padding: 96px 0; }
.fx-remote .fx-remote-box {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 40px;
	align-items: center;
	padding: 56px;
	border-radius: 14px;
	background: var(--navy);
	color: #fff;
}
.fx-remote .fx-remote-box > *,
.fx-remote .fx-remote-text > *,
.fx-remote .fx-remote-cta > * { margin: 0; }
.fx-remote h2 { color: #fff; font-size: clamp(30px, 3.4vw, 42px); }
.fx-remote .fx-remote-text p { margin-top: 16px; max-width: 34em; color: var(--hero-soft); }
.fx-remote .fx-remote-text ol { margin-top: 22px; padding-left: 20px; color: var(--hero-soft); }
.fx-remote .fx-remote-text ol li { margin: 4px 0; }
.fx-remote .fx-remote-cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.fx-remote .fx-remote-cta p { color: var(--hero-soft); font-size: 14px; }

/* ---------- La société ---------- */
.fx-about .fx-about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; }
.fx-about .fx-about-grid > *,
.fx-about .fx-about-text > * { margin: 0; }
.fx-about .fx-about-text h2 { margin-bottom: 28px; }
.fx-about .fx-about-text p { max-width: 38em; }
.fx-about .fx-about-text p + p { margin-top: 18px; }
.fx-facts { margin: 0; }
.fx-facts table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--navy); }
.fx-facts td {
	padding: 16px 0;
	border: 0;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}
.fx-facts td:first-child { color: var(--ink-soft); padding-right: 20px; }
.fx-facts td:last-child { font-weight: 600; text-align: right; }

/* ---------- Actualités ---------- */
.fx-news .fx-news-grid,
.fx-news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.fx-news-grid > li { margin: 0; }
.fx-news-card {
	box-sizing: border-box;
	height: 100%;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
}
.fx-news-card > * { margin: 0; }
.fx-news-card .wp-block-post-date { color: var(--ink-soft); font-size: 14px; }
.fx-news-card .wp-block-post-title { margin-top: 10px; font-size: 22px; }
.fx-news-card .wp-block-post-title a { color: var(--ink); text-decoration: none; }
.fx-news-card .wp-block-post-title a:hover { color: var(--signal); }
.fx-news-card .wp-block-post-excerpt { margin-top: 10px; color: var(--ink-soft); font-size: 16px; }
.fx-news-card .wp-block-post-excerpt__excerpt { margin: 0; }
.fx-news .fx-news-more { margin-top: 32px; }
.fx-news-empty { color: var(--ink-soft); }

/* ---------- Contact ---------- */
.fx-contact { background: var(--surface); border-top: 1px solid var(--line); }
.fx-contact .fx-contact-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 12px;
}
.fx-contact .fx-contact-grid > * { margin: 0; }
.fx-contact .fx-c-item { padding: 32px; background: var(--bg); }
.fx-contact .fx-c-item + .fx-c-item { border-left: 1px solid var(--line); }
.fx-contact .fx-c-item > * { margin: 0; }
.fx-c-label { color: var(--ink-soft); font-size: 15px; }
.fx-contact .fx-c-item .fx-c-value {
	margin-top: 8px;
	color: var(--ink);
	font-family: var(--display);
	font-size: clamp(20px, 1.8vw, 24px);
	font-style: italic;
	font-weight: 800;
	line-height: 1.15;
	overflow-wrap: anywhere;
}
.fx-c-value a { color: inherit; text-decoration: none; }
.fx-c-value a:hover { color: var(--signal); }
.fx-contact .fx-c-item .fx-c-cta { margin-top: 10px; color: var(--signal); font-size: 15px; font-weight: 600; }
.fx-c-cta a { color: inherit; }
.fx-contact .fx-c-item .fx-c-note { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }

/* ---------- Pied de page ---------- */
.fx-footer { padding: 48px 0 32px; background: var(--navy-deep); color: var(--hero-soft); font-size: 14px; }
.fx-footer .fx-foot { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.fx-footer .fx-foot > *,
.fx-footer .fx-foot > * > * { margin: 0; }
.fx-footer .fx-foot p + p { margin-top: 4px; }
.fx-footer .fx-foot .fx-foot-about { margin-top: 14px; max-width: 26em; }
.fx-plate { display: inline-block; margin: 0; padding: 6px 10px; border-radius: 8px; background: #fff; }
.fx-plate img { display: block; height: 44px; width: auto; }
.fx-footer h2 {
	margin: 0 0 10px;
	color: #fff;
	font-family: var(--body);
	font-size: 15px;
	font-style: normal;
	font-weight: 600;
	font-stretch: 100%;
	letter-spacing: 0;
}
.fx-footer a { color: #fff; }
.fx-footer a:hover { color: var(--steel); }
.fx-footer .fx-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-top: 36px;
	padding-top: 20px;
	border-top: 1px solid rgba(174, 195, 213, .2);
}
.fx-footer .fx-legal > * { margin: 0; }

/* ---------- Pages et articles ---------- */
.fx-page { padding: 72px 0 96px; }
.fx-page .fx-page-title { margin: 0 0 32px; }
.fx-page .fx-meta { margin: 0 0 12px; color: var(--ink-soft); font-size: 15px; }
.fx-page .fx-back { margin-top: 48px; }
.fx-page .wp-block-post-featured-image { margin-bottom: 32px; }
.fx-page .wp-block-post-featured-image img { border-radius: 12px; }
.fx-page .wp-block-query-pagination { margin-top: 40px; }
.fx-prose h2 { margin-top: 1.6em; }
.fx-prose h3 { margin-top: 1.4em; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.fx-hero .fx-hero-grid,
	.fx-section .fx-sec-head,
	.fx-about .fx-about-grid,
	.fx-remote .fx-remote-box { grid-template-columns: 1fr; }
	.fx-section .fx-sec-head { gap: 20px; }
	.fx-services .fx-svc { grid-template-columns: 56px 1fr; }
	.fx-services .fx-svc ul { grid-column: 1 / -1; }
	.fx-method .fx-steps { grid-template-columns: 1fr 1fr; gap: 36px 0; }
	.fx-method .fx-step:nth-child(3) { padding-left: 0; border-left: 0; }
	.fx-news .fx-news-grid, .fx-news-grid { grid-template-columns: 1fr 1fr; }
	.fx-contact .fx-contact-grid { grid-template-columns: 1fr; }
	.fx-contact .fx-c-item + .fx-c-item { border-left: 0; border-top: 1px solid var(--line); }
	.fx-footer .fx-foot { grid-template-columns: 1fr 1fr; }
	.fx-remote .fx-remote-box { padding: 40px 28px; }
}
@media (max-width: 820px) {
	.fx-top .fx-top-inner { gap: 12px; }
	.fx-top .fx-remote-head .wp-block-button__link { font-size: 0; gap: 0; padding: 10px 12px; }
}
@media (max-width: 560px) {
	.fx-section, .fx-remote { padding: 68px 0; }
	.fx-section.fx-pt0 { padding-top: 0; }
	.fx-services .fx-svc ul { grid-template-columns: 1fr; }
	.fx-method .fx-steps { grid-template-columns: 1fr; }
	.fx-method .fx-step, .fx-method .fx-step + .fx-step { padding: 0; border-left: 0; }
	.fx-news .fx-news-grid, .fx-news-grid { grid-template-columns: 1fr; }
	.fx-footer .fx-foot { grid-template-columns: 1fr; }
	.fx-brand img { height: 40px; }
}
.fx-news-card h2.wp-block-post-title { font-size: 22px; }

/* ---------- Éditeur : sections de l'accueil en pleine largeur ---------- */
.is-root-container > .fx-hero,
.is-root-container > .fx-section,
.is-root-container > .fx-remote {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
