/**
 * INFOMARTIX — Header sticky + Footer blanc
 */

/* ---------- Header ---------- */

/* Le sticky est porté par le template-part (enfant direct de .wp-site-blocks) :
   sur .imx-header, il resterait prisonnier d'un parent de même hauteur. */
.imx-header-shell {
	--imx-shell-top: 0px;
	position: sticky;
	top: var(--imx-shell-top);
	z-index: 1000;
	pointer-events: none;
	transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

body.admin-bar .imx-header-shell {
	--imx-shell-top: 32px;
}

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

@media (max-width: 600px) {
	body.admin-bar .imx-header-shell {
		--imx-shell-top: 0px;
	}
}

@media (max-width: 1099.98px) {
	.imx-header-shell.is-hidden {
		transform: translateY(calc(-100% - var(--imx-shell-top) - 4px));
	}
}

.imx-header {
	position: relative;
	pointer-events: auto;
	background: var(--imx-white);
	border-bottom: 1px solid var(--imx-border);
	box-shadow: 0 1px 0 rgba(6, 26, 54, 0.04);
	transition: box-shadow var(--imx-motion-base), background-color var(--imx-motion-base);
}

.imx-header.is-scrolled {
	box-shadow: 0 10px 30px rgba(6, 26, 54, 0.08);
}

/* Verre plus opaque au défilement (gabarit v3 seulement) : garde le texte ≥ 4,5:1
   au-dessus des sections sombres. */
.imx-v3-page .imx-header.is-scrolled {
	background: rgba(255, 255, 255, 0.92);
}

.imx-header.is-open,
.imx-v3-page .imx-header.is-open {
	background: var(--imx-white);
}

.imx-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	box-sizing: border-box;
	min-height: var(--imx-header-h);
	width: min(calc(100% - 2 * var(--imx-gutter)), var(--imx-container));
	margin-inline: auto;
	padding-block: 0.5rem;
}

.imx-header__brand {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	text-decoration: none;
	flex-shrink: 0;
	border-radius: 8px;
	transition: opacity var(--imx-motion-fast);
}

.imx-header__brand:hover {
	opacity: 0.9;
	text-decoration: none;
}

.imx-header__brand:focus-visible {
	outline: 3px solid var(--imx-blue);
	outline-offset: 3px;
}

.imx-header__logo {
	display: block;
	width: auto;
	height: 48px;
	max-width: none;
}

/* Ligne de progression de lecture */
.imx-header__progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--imx-blue);
	transform: scaleX(var(--imx-progress, 0));
	transform-origin: 0 50%;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--imx-motion-base);
}

.imx-header.is-scrolled .imx-header__progress {
	opacity: 1;
}

.imx-header.is-open .imx-header__progress {
	opacity: 0;
}

/* ---------- Navigation desktop ---------- */
.imx-header__nav-wrap {
	display: none;
}

.imx-header__nav {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.imx-header__nav > li > a,
.imx-nav-item__link {
	position: relative;
	color: var(--imx-text) !important;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	padding: 0.35rem 0;
	white-space: nowrap;
	transition: color var(--imx-motion-fast);
}

.imx-header__nav > li > a::after,
.imx-nav-item__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--imx-blue);
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform var(--imx-motion-base);
}

.imx-header__nav > li > a:hover,
.imx-header__nav > li > a[aria-current="page"],
.imx-nav-item__link:hover,
.imx-nav-item__link[aria-current="page"],
.imx-nav-item--has-sub.is-open .imx-nav-item__link,
.imx-nav-item--has-sub.is-current-parent .imx-nav-item__link {
	color: #0058d6 !important;
}

.imx-header__nav > li > a:hover::after,
.imx-header__nav > li > a[aria-current="page"]::after,
.imx-nav-item__link:hover::after,
.imx-nav-item__link[aria-current="page"]::after,
.imx-nav-item--has-sub.is-current-parent .imx-nav-item__link::after {
	transform: scaleX(1);
}

.imx-header__nav > li > a:focus-visible,
.imx-nav-item__link:focus-visible {
	outline: 3px solid var(--imx-blue);
	outline-offset: 4px;
	border-radius: 4px;
}

.imx-nav-item__trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.15rem;
}

.imx-nav-item__chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: var(--imx-muted);
	cursor: pointer;
	transition: color var(--imx-motion-fast), background var(--imx-motion-fast);
}

.imx-nav-item__chevron svg {
	transition: transform var(--imx-motion-base);
}

@media (pointer: coarse) {
	.imx-nav-item__chevron {
		position: relative;
	}

	.imx-nav-item__chevron::before {
		content: "";
		position: absolute;
		inset: -8px;
	}
}

.imx-nav-item__chevron:hover,
.imx-nav-item--has-sub.is-open .imx-nav-item__chevron {
	color: var(--imx-blue);
	background: var(--imx-blue-soft);
}

.imx-nav-item--has-sub.is-open .imx-nav-item__chevron svg {
	transform: rotate(180deg);
}

.imx-nav-item__chevron:focus-visible {
	outline: 3px solid var(--imx-blue);
	outline-offset: 2px;
}

/* ---------- Méga-menus ---------- */

/* Positionné par rapport à .imx-header__inner, centré sous la barre */
.imx-nav-item--has-sub {
	position: static;
}

.imx-mega {
	position: absolute;
	top: 100%;
	left: 50%;
	z-index: 1001;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 248px;
	box-sizing: border-box;
	width: min(900px, 100%);
	background: var(--imx-white);
	border: 1px solid var(--imx-border);
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(6, 26, 54, 0.16);
	transform: translateX(-50%);
	max-height: calc(100vh - var(--imx-header-h) - var(--imx-shell-top, 0px) - 1rem);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.imx-mega--compact {
	width: min(700px, 100%);
}

/* Pont de survol entre le lien et le panneau */
.imx-mega::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 1.25rem;
}

.imx-mega[hidden] {
	display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
	.imx-nav-item--has-sub.is-open > .imx-mega {
		animation: imx-mega-in 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
	}
}

@keyframes imx-mega-in {
	from {
		opacity: 0;
		transform: translate(-50%, 8px);
	}
	to {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

.imx-mega__body {
	padding: 1.25rem 1.25rem 1.35rem;
	min-width: 0;
}

.imx-mega__kicker {
	margin: 0 0 0.6rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--imx-muted);
}

.imx-mega__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.2rem 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.imx-mega--compact .imx-mega__list {
	grid-template-columns: minmax(0, 1fr);
}

.imx-mega__link {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	align-items: center;
	gap: 0.8rem;
	padding: 0.65rem 0.75rem;
	border-radius: 12px;
	text-decoration: none;
	color: var(--imx-text) !important;
	transition: background var(--imx-motion-fast);
}

.imx-mega__ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--imx-blue-soft);
	color: #0058d6;
	transition: background var(--imx-motion-fast), color var(--imx-motion-fast);
}

.imx-mega__text {
	display: grid;
	gap: 0.1rem;
	min-width: 0;
}

.imx-mega__title {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--imx-navy);
}

.imx-mega__desc {
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--imx-muted);
}

.imx-mega__link:hover,
.imx-mega__link:focus-visible,
.imx-mega__link[aria-current="page"] {
	background: var(--imx-blue-soft);
	text-decoration: none;
}

.imx-mega__link:hover .imx-mega__ico,
.imx-mega__link:focus-visible .imx-mega__ico,
.imx-mega__link[aria-current="page"] .imx-mega__ico {
	background: var(--imx-blue);
	color: var(--imx-white);
}

.imx-mega__link:focus-visible {
	outline: 3px solid var(--imx-blue);
	outline-offset: 0;
}

.imx-mega__link--all .imx-mega__title {
	color: #0058d6;
}

.imx-mega__link--all .imx-mega__ico {
	background: transparent;
	border: 1px solid var(--imx-border);
	box-sizing: border-box;
}

.imx-mega__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.55rem;
	padding: 1.5rem 1.4rem;
	border-radius: 0 15px 15px 0;
	background: var(--imx-navy);
	color: #eaf1fb;
}

.imx-mega__aside-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--imx-white);
}

.imx-mega__aside-text {
	margin: 0 0 0.35rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #a9b8cf;
}

.imx-mega__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 0.4rem;
	padding: 0.6rem 0.95rem;
	border-radius: 10px;
	background: var(--imx-blue);
	color: var(--imx-white) !important;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: background var(--imx-motion-fast);
}

.imx-mega__cta:hover {
	background: #0058d6;
	text-decoration: none;
}

.imx-mega__aside-link {
	font-size: 0.875rem;
	font-weight: 500;
	color: #5ab0ff !important;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.imx-mega__aside-link:hover {
	color: var(--imx-white) !important;
}

.imx-mega__cta:focus-visible,
.imx-mega__aside-link:focus-visible {
	outline: 3px solid #5ab0ff;
	outline-offset: 2px;
	border-radius: 6px;
}

/* ---------- Actions ---------- */
.imx-header__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

.imx-header__phone {
	display: none;
}

/* Boutons d’appel compacts, calés sur la hauteur de la navbar */
.imx-header__phone,
.imx-header__phone-mobile {
	box-sizing: border-box;
	min-height: 40px;
	border-width: 1px;
	border-radius: 10px;
}

/* Aligné sur le bouton menu, cible tactile conservée */
.imx-header__phone-mobile {
	display: inline-flex;
	width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 0;
}

.imx-header__portal {
	display: none;
}

.imx-header__portal,
.imx-header__portal-mobile {
	box-sizing: border-box;
	min-height: 40px;
	border-width: 1px;
	border-radius: 10px;
}

.imx-header__portal-mobile {
	display: inline-flex;
	width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 0;
}

.imx-header__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--imx-border);
	border-radius: 10px;
	background: var(--imx-white);
	color: var(--imx-navy);
	cursor: pointer;
	padding: 0;
	transition: background var(--imx-motion-fast), border-color var(--imx-motion-fast);
}

.imx-header.is-open .imx-header__toggle {
	background: var(--imx-blue-soft);
	border-color: #cfe3ff;
}

.imx-header__toggle:focus-visible {
	outline: 3px solid var(--imx-blue);
	outline-offset: 2px;
}

.imx-header__toggle-bars {
	position: relative;
	display: block;
	width: 18px;
	height: 14px;
}

.imx-header__toggle-bars > span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform var(--imx-motion-base), opacity var(--imx-motion-fast), top var(--imx-motion-base);
}

.imx-header__toggle-bars > span:nth-child(1) {
	top: 0;
}

.imx-header__toggle-bars > span:nth-child(2) {
	top: 6px;
}

.imx-header__toggle-bars > span:nth-child(3) {
	top: 12px;
}

.imx-header.is-open .imx-header__toggle-bars > span:nth-child(1) {
	top: 6px;
	transform: rotate(45deg);
}

.imx-header.is-open .imx-header__toggle-bars > span:nth-child(2) {
	opacity: 0;
}

.imx-header.is-open .imx-header__toggle-bars > span:nth-child(3) {
	top: 6px;
	transform: rotate(-45deg);
}

/* ---------- Tiroir mobile (superposé sous la barre) ---------- */
.imx-header__drawer {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	box-sizing: border-box;
	height: calc(100vh - var(--imx-header-h) - 1px - var(--imx-shell-top, 0px));
	height: calc(100dvh - var(--imx-header-h) - 1px - var(--imx-shell-top, 0px));
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 0.75rem var(--imx-gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--imx-border);
	background: var(--imx-white);
	box-shadow: 0 24px 48px rgba(6, 26, 54, 0.12);
}

.imx-header__drawer[hidden] {
	display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
	.imx-header.is-open .imx-header__drawer {
		animation: imx-drawer-in 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
	}

	.imx-drawer-item--has-sub.is-open .imx-drawer-sub {
		animation: imx-drawer-sub-in 0.2s ease both;
	}
}

@keyframes imx-drawer-in {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes imx-drawer-sub-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Sur html seulement : un overflow sur body en ferait le conteneur de défilement
   et la barre perdrait son sticky. */
html.imx-nav-open {
	overflow: hidden;
}

.imx-header__drawer-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.25rem;
}

.imx-header__drawer-nav a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.85rem 0.25rem;
	color: var(--imx-text) !important;
	text-decoration: none;
	font-weight: 600;
	border-bottom: 1px solid var(--imx-border);
	-webkit-tap-highlight-color: transparent;
	transition: color var(--imx-motion-fast);
}

.imx-header__drawer-nav a:hover,
.imx-header__drawer-nav a:active {
	color: #0058d6 !important;
}

.imx-header__drawer-nav a:focus-visible {
	outline: 3px solid var(--imx-blue);
	outline-offset: -3px;
	border-radius: 6px;
}

/* Page courante : texte bleu + point aligné sur les chevrons, sans aplat */
.imx-header__drawer-nav a[aria-current="page"] {
	color: #0058d6 !important;
}

.imx-header__drawer-nav a[aria-current="page"]::after {
	content: "";
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	margin-right: 3px;
	border-radius: 50%;
	background: var(--imx-blue);
}

.imx-drawer-item__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin: 0;
	padding: 0.85rem 0.25rem;
	border: none;
	border-bottom: 1px solid var(--imx-border);
	background: transparent;
	color: var(--imx-text);
	font: inherit;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: color var(--imx-motion-fast);
}

.imx-drawer-item__toggle:hover,
.imx-drawer-item__toggle:active {
	color: #0058d6;
}

.imx-drawer-item__toggle svg {
	flex-shrink: 0;
	transition: transform var(--imx-motion-fast);
}

.imx-drawer-item--has-sub.is-open .imx-drawer-item__toggle {
	color: var(--imx-navy);
}

.imx-drawer-item--has-sub.is-current-parent .imx-drawer-item__toggle {
	color: #0058d6;
}

.imx-drawer-item--has-sub.is-open .imx-drawer-item__toggle svg {
	transform: rotate(180deg);
}

.imx-drawer-item__toggle:focus-visible {
	outline: 3px solid var(--imx-blue);
	outline-offset: -3px;
	border-radius: 6px;
}

.imx-drawer-sub {
	list-style: none;
	margin: 0;
	padding: 0.15rem 0 0.35rem 0.85rem;
}

.imx-drawer-sub[hidden] {
	display: none !important;
}

.imx-drawer-sub a {
	font-weight: 500;
	font-size: 0.9375rem;
	border-bottom-color: rgba(229, 234, 241, 0.7);
}

.imx-header__drawer-actions {
	display: grid;
	gap: 0.6rem;
	margin-top: auto;
}

.imx-header__drawer-actions .imx-btn {
	justify-content: center;
	width: 100%;
	min-height: 48px;
	box-sizing: border-box;
}

/* ---------- Desktop ---------- */
@media (min-width: 1100px) {
	/* Hauteur réservée constante : la barre se compacte sans décaler la page */
	.imx-header-shell {
		height: calc(var(--imx-header-h) + 1px);
	}

	.imx-header__inner {
		transition: min-height 0.28s cubic-bezier(0.22, 1, 0.36, 1);
	}

	.imx-header__logo {
		height: 56px;
		transition: height 0.28s cubic-bezier(0.22, 1, 0.36, 1);
	}

	.imx-header.is-scrolled .imx-header__inner {
		min-height: 60px;
	}

	.imx-header.is-scrolled .imx-header__logo {
		height: 44px;
	}

	.imx-header__nav-wrap {
		flex: 1;
		display: flex;
		justify-content: center;
		min-width: 0;
	}

	.imx-header__nav {
		flex-wrap: nowrap;
		gap: 0.15rem 1rem;
	}

	.imx-header__phone {
		display: inline-flex;
		font-size: 0.875rem;
		padding-block: 0;
		padding-inline: 0.9rem;
	}

	.imx-header__portal {
		display: inline-flex;
		font-size: 0.875rem;
		padding-block: 0;
		padding-inline: 0.85rem;
	}

	.imx-header__phone-mobile,
	.imx-header__portal-mobile,
	.imx-header__toggle,
	.imx-header__drawer {
		display: none !important;
	}
}

@media (min-width: 1280px) {
	.imx-header__nav {
		gap: 0.25rem 1.4rem;
	}

	.imx-header__nav > li > a,
	.imx-nav-item__link {
		font-size: 0.9375rem;
	}

	.imx-header__phone {
		font-size: 0.9375rem;
		padding-inline: 1rem;
	}

	.imx-header__portal {
		font-size: 0.9375rem;
		padding-inline: 1rem;
	}
}

@media (min-width: 1440px) {
	.imx-header__nav {
		gap: 0.25rem 1.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.imx-header-shell,
	.imx-header,
	.imx-header__inner,
	.imx-header__logo,
	.imx-header__brand,
	.imx-header__progress,
	.imx-header__nav > li > a,
	.imx-header__nav > li > a::after,
	.imx-nav-item__link,
	.imx-nav-item__link::after,
	.imx-nav-item__chevron,
	.imx-nav-item__chevron svg,
	.imx-mega__link,
	.imx-mega__ico,
	.imx-header__toggle,
	.imx-header__toggle-bars > span,
	.imx-drawer-item__toggle svg {
		transition: none;
	}
}

/* Override TT4 site title in custom header context */
.imx-header .wp-block-site-title a {
	color: var(--imx-navy);
	font-weight: 700;
	text-decoration: none;
}

/* Pied de page (refait le 16 nov. 2026) : contenu adapté à la page (inc/footer.php).
   Téléphone : une seule colonne, tout centré, rubriques l'une sous l'autre ; tablette : 4 colonnes ;
   ordinateur : présentation + 4 colonnes. */
.imx-footer {
	background: var(--imx-white);
	border-top: 1px solid var(--imx-border);
	color: var(--imx-text);
	padding-block: var(--imx-space-5) var(--imx-space-3);
	width: 100%;
	text-align: left;
}

.imx-footer__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem 1.25rem;
	width: min(calc(100% - 2 * var(--imx-gutter)), var(--imx-container));
	margin-inline: auto;
}

.imx-footer__intro {
	grid-column: 1 / -1;
}

@media (min-width: 768px) {
	.imx-footer__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 2.25rem 1.5rem;
	}
}

@media (min-width: 1100px) {
	.imx-footer__grid {
		grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
	}

	.imx-footer__intro {
		grid-column: auto;
	}
}

.imx-theme .imx-footer a.imx-footer__brand {
	display: inline-block;
	font-weight: 700;
	font-size: 1.125rem;
	color: var(--imx-navy) !important;
	text-decoration: none;
	margin: 0 0 0.6rem;
}

.imx-footer__about {
	margin: 0;
	color: var(--imx-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
	max-width: 24rem;
}

.imx-footer__col-title {
	margin: 0 0 0.8rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--imx-navy);
}

.imx-footer__links,
.imx-footer__contact,
.imx-footer__hours {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.45rem;
	font-size: 0.9rem;
	line-height: 1.45;
}

.imx-footer__links a {
	color: var(--imx-muted) !important;
	text-decoration: none;
}

.imx-footer__links a:hover,
.imx-footer__legal a:hover {
	color: var(--imx-blue) !important;
}

/* Page en cours : repérable sans dépendre de la couleur seule (graisse + trait). */
.imx-footer .imx-footer__links a[aria-current="page"],
.imx-footer .imx-footer__legal a[aria-current="page"] {
	color: var(--imx-navy) !important;
	font-weight: 600;
	text-decoration: underline 2px var(--imx-blue);
	text-underline-offset: 4px;
}

.imx-footer__address {
	font-style: normal;
	font-size: 0.9rem;
	line-height: 1.45;
	margin: 0 0 0.6rem;
}

.imx-footer__address a {
	color: var(--imx-text) !important;
	text-decoration: none;
}

.imx-footer__contact a,
.imx-footer__reviews a {
	color: var(--imx-blue) !important;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.imx-footer__address a:hover,
.imx-footer__contact a:hover,
.imx-footer__reviews a:hover {
	text-decoration: underline;
}

.imx-footer__hours {
	margin-top: 0.9rem;
	color: var(--imx-muted);
	font-size: 0.85rem;
}

.imx-footer__hours strong {
	display: block;
	color: var(--imx-navy);
	font-weight: 600;
}

.imx-footer__hint {
	font-size: 0.8rem;
}

.imx-footer__reviews {
	margin: 0.9rem 0 0;
	font-size: 0.85rem;
	font-weight: 600;
}

.imx-footer__bottom {
	width: min(calc(100% - 2 * var(--imx-gutter)), var(--imx-container));
	margin: var(--imx-space-4) auto 0;
	padding-top: var(--imx-space-3);
	border-top: 1px solid var(--imx-border);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
	font-size: 0.8125rem;
	color: var(--imx-muted);
}

.imx-footer__bottom p {
	margin: 0;
}

@media (min-width: 768px) {
	.imx-footer__bottom {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: center;
	}
}

.imx-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
}

.imx-footer__legal a {
	color: var(--imx-muted) !important;
	text-decoration: none;
}

/* Téléphone : une colonne centrée, rubriques l'une sous l'autre (demande du 16 nov. 2026).
   Cibles tactiles confortables (WCAG 2.5.8 : 24 px au moins). */
@media (max-width: 767px) {
	.imx-footer {
		text-align: center;
	}

	.imx-footer__grid {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		gap: 1.75rem;
	}

	.imx-footer__about {
		margin-inline: auto;
	}

	.imx-footer__links,
	.imx-footer__contact,
	.imx-footer__hours {
		justify-items: center;
	}

	.imx-footer__bottom {
		align-items: center;
	}

	.imx-footer__legal {
		justify-content: center;
	}

	.imx-footer__links a,
	.imx-footer__contact a,
	.imx-footer__legal a {
		display: inline-block;
		padding-block: 0.15rem;
	}
}

/* Soften default TT4 footer if pattern still used */
.imx-theme footer.wp-block-template-part,
.imx-theme .imx-footer-shell {
	background: var(--imx-white);
}

/* Bandeau de consentement aux cookies (assets/js/consent.js, 18 nov. 2026). */
.imx-consent {
	position: fixed;
	z-index: 9999;
	left: 16px;
	right: 16px;
	bottom: 16px;
	max-width: 26rem;
	background: var(--imx-white);
	color: var(--imx-text);
	border: 1px solid var(--imx-border);
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(6, 26, 54, 0.18);
	text-align: left;
}

.imx-consent[hidden] {
	display: none;
}

.imx-consent__inner {
	padding: 1.1rem 1.2rem 1.15rem;
}

.imx-consent p.imx-consent__title {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--imx-navy);
}

.imx-consent p.imx-consent__text {
	margin: 0 0 0.95rem;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--imx-muted);
}

.imx-consent__text a {
	color: var(--imx-blue);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.imx-consent__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.6rem;
}

.imx-consent__btn {
	min-height: 44px;
	padding: 0.6rem 1rem;
	border-radius: 10px;
	border: 1px solid var(--imx-blue);
	background: var(--imx-white);
	color: var(--imx-blue);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
}

.imx-consent__btn[data-choice="granted"] {
	background: var(--imx-blue);
	color: var(--imx-white);
}

.imx-consent__btn:hover {
	filter: brightness(0.95);
}

.imx-consent__btn:focus-visible {
	outline: 3px solid var(--imx-navy);
	outline-offset: 2px;
}

/* Lien « Gérer les cookies » du pied de page : un bouton qui a l'air d'un lien. */
.imx-footer__legal button.imx-footer__consent {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: var(--imx-muted);
	cursor: pointer;
}

.imx-footer__legal button.imx-footer__consent:hover {
	color: var(--imx-blue);
}

@media (max-width: 767px) {
	.imx-footer__legal button.imx-footer__consent {
		padding-block: 0.15rem;
	}
}

/* Bouton « Modifier mon choix sur les cookies » de la page Cookies. */
button.imx-consent-reopen {
	min-height: 44px;
	padding: 0.6rem 1.1rem;
	border: 1px solid var(--imx-blue);
	border-radius: 10px;
	background: var(--imx-white);
	color: var(--imx-blue);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

button.imx-consent-reopen:hover {
	background: var(--imx-blue);
	color: var(--imx-white);
}
