/*
Theme Name: Ergopix
Theme URI: https://www.ergopix.ch
Author: ergopix sàrl
Version: 1.0
*/

html body,
html body *:not(i):not(.fa):not([class*="fa-"]):not([class*="icon"]) {
	font-family: 'Arial', sans-serif !important;
}

html {
	font-size: 1em;
	-webkit-text-size-adjust: 1em;
	-ms-text-size-adjust: 1em;
}

body {
	background-color: #FFF;
	font-weight: 300;
	font-size: 12px;
	color: #999;
}

.alignleft {
	float: left;
}

.alignright {
	float: right;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

figure.wp-caption.alignleft, img.alignleft {
	margin: 7px 24px 7px 0;
}

.wp-caption.alignleft {
	margin: 7px 14px 7px 0;
}

figure.wp-caption.alignright, img.alignright {
	margin: 7px 0 7px 24px;
}

.wp-caption.alignright {
	margin: 7px 0 7px 14px;
}

img.aligncenter, .wp-caption.aligncenter {
	margin-top: 7px;
	margin-bottom: 7px;
}

.wp-caption {
	margin-bottom: 24px;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin: 0;
}

::-webkit-input-placeholder {
	color: #939393;
}

:-moz-placeholder {
	color: #939393;
	opacity: 1;
}

:-ms-input-placeholder {
	color: #939393;
}

.wp-caption, img {
	max-width: 100%;
}

a {
	color: #000;
	text-decoration: none;
}

/* .a-plus: no colour override — link colour comes from the generic `a` rule (black),
   except inside .content_catalogue where .text-col a turns it red italic (see below). */

/* Hover: red on links + menu (client-validated red #A82727) */
a:hover, ul.sidebar-menu li a:hover, .nav-top .navbar-nav li a:hover, .a-plus:hover{
	color: #A82727;
	text-decoration: none;
}

h1,
.date-col {
	color: rgba(0, 0, 0, 0.8);
}

h1 {
	font-size: 22px;
	margin-bottom: 0px;
	padding-bottom: 5px;
}

h2 {
	display: block;
	background-color: rgba(0, 0, 0, 0.1);
	color: rgba(0, 0, 0, 0.7);
	font-size: 14px;
	font-weight: normal;
	padding: 3px 5px;
	margin-bottom: 8px;
	padding-bottom: 3px;
	line-height: 1;
	text-transform: none;
}

span.ch-p-h {
	text-transform: uppercase;
}

span.ch-p-xl {
	font-size: 110%;
}

span.ch-p-s {
	font-size: 80%;
}

span.ch-span {
	font-size: 70%;
}

body .mt-0-imp {
	margin-top: 0 !important;
}

body .pt-0-imp {
	padding-top: 0 !important;
}

.grey-text {
	color: #999;
	font-style: italic;
}

.header-mobile {
	padding: 10px 0;
	background-color: none transparent;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 100;
	left: 0;
	right: 0;
	height: 65px !important;
}

html.fixed .header-menu {
	overflow: hidden;
}

#hamburger {
	display: block;
	width: 42px;
	overflow: hidden;
	float: right;
}

#hamburger span {
	background: #000;
	display: block;
	height: 2px;
	margin: 9px 0;
	position: relative;
	-webkit-transform: rotate(0);
	-ms-transform: rotate(0);
	transform: rotate(0);
	top: 0;
	left: 0;
	opacity: 1;
	filter: alpha(opacity=100);
	-webkit-transition: none .5s ease;
	transition: none .5s ease;
	-webkit-transition-property: -webkit-transform, top, left, opacity;
	transition-property: transform, top, left, opacity;
}

body.menu-open #hamburger span.top-bar {
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
	top: 12px;
}

body.menu-open #hamburger span.middle-bar {
	opacity: 0;
	filter: alpha(opacity=0);
}

body.menu-open #hamburger span.bottom-bar {
	-webkit-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	transform: rotate(-45deg);
	top: -10px;
}

body.menu-open #hamburger span.middle-bar {
	left: -40px;
}

.no-page-header {
	height: 110px;
}

header {
	position: fixed;
	left: 0;
	right: 0;
	bottom: auto;
	height: 110px;
	z-index: 100000000000;
	top: 0;
	transition: opacity 1.4s ease;
	background-color: #fff;
}

.header-menu {
	position: absolute;
	bottom: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 110px;
	background: none transparent;
}

.nav-top,
.nav-bottom {
	display: inline-block;
	width: 100%;
}

.header-menu .navbar-nav,
.header-menu .navbar-nav li {
	display: inline-block;
}

.header-menu .navbar-nav li {
	margin: 0 16px;
}

.header-menu .navbar-nav li:first-child {
	margin-left: 0;
}

.header-menu .navbar-nav li:last-child {
	margin-right: 0;
}

.navbar-nav li a {
	color: #000;
	text-decoration: none !important;
	padding-top: 0;
	padding-bottom: 0;
}

.nav-top .navbar-nav li a {
	font-size: 12px;
	font-weight: 300;
	line-height: 20px;
	text-transform: lowercase;
	color: rgba(0, 0, 0, 0.4);
}

.navbar-nav li a.active, .navbar-nav li a.active:hover {
	color: rgba(0, 0, 0, 0.8);
	font-weight: bold;
}

html.fixed header {
	height: 65px;
}

html.fixed header a#logo-link {
	margin-top: 10px;
}

html.fixed .header-menu {
	position: fixed;
	background-image: none;
	top: 0;
	z-index: 10000;
	height: 65px;
	padding-top: 0 !important;
}

html.fixed .nav-bottom ul {
	margin-top: 7px;
}

html.fixed .col-logo {
	padding-top: 0 !important;
}

a#logo-link {
	padding-left: 0;
}

.header-mask {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #fff;
	z-index: 0;
	opacity: 1 !important;
}

.page h1 {
	display: none;
}

.section {
	margin-top: 30px;
}

.page .row-section-content div:nth-child(1) {
	margin-top: 0 !important;
}

.a-reference a img {
	filter: grayscale(100%);
	-webkit-filter: grayscale(100%);
	-moz-filter: grayscale(100%);
	-o-filter: grayscale(100%);
	-ms-filter: grayscale(100%);
	transition: all .7s ease;
	margin-bottom: 5px;
}

.a-reference a:hover img {
	filter: grayscale(0%);
	-webkit-filter: grayscale(0%);
	-moz-filter: grayscale(0%);
	-o-filter: grayscale(0%);
	-ms-filter: grayscale(0%);
}

.a-reference a .ref-content {
	opacity: 0;
	transition: all .7s ease;
	font-size: 10px;
	line-height: 12px;
}

.a-reference a .ref-content br {
	line-height: 16px;
	height: 16px;
}

.a-reference a:hover .ref-content {
	opacity: 1;
	color: rgba(0, 0, 0, 0.8);
}

.sidebar-label {
	color: #999;
	text-transform: lowercase;
	line-height: 24px;
}

.sidebar-label.active {
	font-weight: bold;
	color: #000;
}

ul.sidebar-menu li {
	list-style: none;
	font-size: 12px;
	font-weight: 300;
	line-height: 17px;
}

/* Desktop: the main menu stays flat and the sub-categories of the active section are printed
   as a separate block *below* it — flush-aligned with the main menu, after a blank line.
   Mirrors piuz-ortlieb.ch (references.html / liste.html). Mobile keeps them nested, see #menu-mobile. */
.nav-top ul.sidebar-menu.sub-nav {
	list-style: none;
	padding-left: 0;
	margin-top: 50px;
	margin-bottom: 0;
}

/* Domaines / Thèmes sub-category page: the active sub-category title, shown below the
   flat menu on desktop only (bold, flush-aligned with the menu). Mirrors piuz-ortlieb.ch. */
.nav-top .sub-nav-title {
	margin-top: 50px;
	font-size: 12px;
	font-weight: bold;
	line-height: 17px;
	color: rgba(0, 0, 0, 0.8);
	text-transform: lowercase;
}

/* Mobile slide-out only: sub-items stay nested under their parent item */
#menu-mobile .nav-top .navbar-nav > li > ul.sidebar-menu {
	display: block !important;
	margin-bottom: 8px;
}

ul.sidebar-menu li.active a, ul.sidebar-menu li.active a:hover{
	color: #000;
	font-weight: bold;
}

ul.sidebar-menu li a,
ul.sidebar-menu li span {
	font-size: 12px;
	font-weight: 300;
	line-height: 17px;
	text-transform: lowercase;
	display: inline-block;
	color: #999;
}

.col-3 .position-fixed{
	max-width: 210px;
}

footer {
	left: 0;
	top: auto;
	right: 0;
	bottom: 0;
	width: 100%;
	z-index: 1;
	font-size: 12px;
	line-height: 16px;
}

.ginput_container_name {
	width: 100% !important;
}

.ginput_container_name p {
	width: 50% !important;
	float: right !important;
	margin-bottom: 0;
}

.ginput_container_name p span {
	width: 100% !important;
	padding: 0 !important;
}

html div.ginput_complex.ginput_container_name span.name_last {
	width: calc(100% - 8px) !important;
}

html div.ginput_complex.ginput_container.gf_name_has_2 span.name_first,
html div.ginput_complex.ginput_container_name span.name_first {
	width: calc(100% - 8px) !important;
	margin-left: 8px !important;
}

.gform_wrapper select {
	min-height: 39px;
}

.gform_wrapper .ginput_container_select select option:first-child {
	min-height: 39px;
	line-height: 39px;
}

.ginput_container_name br,
.gfield_checkbox li br {
	display: none;
}

.ergopix-donation-form_wrapper li.gfield_price ul.gfield_radio li {
	display: inline-block;
	width: 80px !important;
	height: 80px !important;
	background-color: #333;
	position: relative;
}

.ergopix-donation-form_wrapper li.gfield_price ul.gfield_radio li input {
	display: block;
	width: 80px !important;
	height: 80px !important;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	cursor: pointer;
	opacity: 0;
	margin: 0;
}

.ergopix-donation-form_wrapper li.gfield_price ul.gfield_radio li label {
	display: block;
	width: 80px !important;
	height: 80px !important;
	max-width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999;
	cursor: pointer;
	opacity: 1;
	margin: 0;
	color: #fff;
	text-align: center;
	padding: 8px;
}

.ergopix-donation-form_wrapper.gform_wrapper li.gfield_price ul.gfield_radio li input[type="radio"]:checked + label {
	background-color: #000;
	font-weight: 500;
}

.scroll-sidebar {
	background-color: #333;
	color: #fff;
	right: -56px;
	width: 56px;
	top: 40%;
	position: fixed;
	left: auto;
	bottom: auto;
	z-index: 10000000;
	-webkit-transition: all .5s ease;
	transition: all .5s ease;
	text-align: center;
}

html.fixed .scroll-sidebar {
	right: 15px;
}

.scroll-sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.scroll-sidebar ul li {
	margin: 10px 0;
}

.scroll-sidebar ul li a {
	color: #fff;
	font-size: 30px;
}

#backtotopBtn {
	display: none;
	position: fixed;
	bottom: 32px;
	right: 15px;
	z-index: 99999;
	border: none;
	outline: none;
	color: #fff;
	background-color: #333;
	cursor: pointer;
	height: 56px;
	width: 56px;
}

#backtotopBtn:hover {
	background-color: #000;
}

.facetwp-template {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	margin-right: -15px;
	margin-left: -15px;
}

.facetwp-facet {
	margin-bottom: 0px;
}

.facetwp-type-fselect .fs-option .fs-option-label {
	white-space: inherit !important;
	word-break: break-word;
}

@media (max-width: 1199.98px) {
	.btn, .naf-pc-element .btn {
		border-radius: 20px;
		padding: 8px 20px 5px 20px;
		line-height: 25px;
		font-size: 12px;
		letter-spacing: 2px;
	}
}

@media (max-width: 991.98px) {
	.small-h1 {
		font-size: 15px;
		line-height: 17px;
	}

	header,
	.header-menu {
		height: 65px;
	}

	.no-page-header {
		height: 65px;
	}
}

@media (max-width: 647px) {
	body {
		padding: 0 20px;
	}
	
	.header-mobile {
		padding: 29px 20px 29px 20px;
	}
	
	header, .header-mobile{
		height: 77px!important;
	}
	
	#hamburger {
		width: 18.9px;
	}
	
	#hamburger span {
		margin: 6px 0;
		height: 1px;
	}
	
	.no-page-header {
		height: 77px;
	}
	
	.a-reference.mb-5 {
		margin-bottom: calc(3rem - 13px) !important;
	}
	
	.a-reference a img {
		max-width: 269px;
	}
	
	#hamburger span {
		left: 2px;
	}
	
	body.menu-open #hamburger span.top-bar {
		top: 4px;
	}
	
	html.fixed .header-menu {
		padding-top: 29px !important;
	}
	
	.container-reference {
		max-width: 299px;
	}
	
	.container {
		max-width: 100%;
	}
}

@media (min-width: 648px) and (max-width: 819px) {
	body {
		padding: 0 20px;
	}
	
	.header-mobile {
		padding: 29px 20px 29px 20px;
	}
	
	.container {
		max-width: 100%;
	}
	
	.logo img{
		width: 448px;
	}
	
	#hamburger {
		width: 31.28px;
	}
	
	#hamburger span {
		margin: 10px 0;
		height: 1px;
	}
	
	header, .header-mobile{
		height: 100px!important;
	}
	
	html.fixed .header-menu {
		padding-top: 29px !important;
	}
	
	.a-reference.mb-5 {
		margin-bottom: calc(3rem - 6px) !important;
	}
	
	.a-reference a img {
		max-width: 293px;
	}
	
	.container-reference {
		max-width: 478px;
	}
}

@media (min-width: 820px) and (max-width: 991px) {
	body {
		padding: 0 20px;
	}
	
	.header-mobile {
		padding: 29px 20px 29px 20px;
	}
	
	.container {
		max-width: 657px;
		margin-left: 0;
	}
	
	.logo img{
		width: 448px;
	}
	
	#hamburger {
		width: 31.28px;
	}
	
	#hamburger span {
		margin: 10px 0;
		height: 1px;
	}
	
	header, .header-mobile{
		height: 100px!important;
	}
	
	html.fixed .header-menu {
		padding-top: 29px !important;
	}
	
	.a-reference.mb-5 {
		margin-bottom: calc(3rem - 6px) !important;
	}
	
	.a-reference a img {
		max-width: 293px;
	}
	
	.container-reference {
		max-width: 657px;
	}
}

@media (min-width: 1200px) {
	.container {
		width: 94%;
		max-width: 1180px;
	}
	.col-3 .position-fixed{
		max-width: 255px;
	}
}

@media (min-width: 1300px) {
	.container {
		width: 96%;
		max-width: 1220px;
	}
}

@media (min-width: 1440px) {}

.container .container {
	width: 100%;
}

body.single-reference .row-section-content div:first-child{
	margin-top: 0!important;
}

/* Reset gray band for h2 used as inline body text (inside .ct-text rich content) */
.ct-text h2 {
	background-color: transparent;
	color: #000000;
	font-size: 12px;
	font-weight: normal;
	padding: 0;
	margin-bottom: 1em;
	line-height: 1.5;
	border: none;
}

.row {
  margin-right: -12.5px;
  margin-left: -12.5px;
}

.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
  padding-right: 12.5px;
  padding-left: 12.5px;
}

.mb-4, .my-4 {
  margin-bottom: 25px!important;
}

.ct-text *:last-child{
	margin-bottom: 0;
}

.content_1_col.naf-pc-element.mt-4{
	margin-top: 0!important;
}

.mb-5, .my-5 {
  margin-bottom: 25px !important;
}

/* Section labels inside page content (domaines-activite, themes-specifiques) */
.sidebar-label.content-menu {
	display: block;
	background-color: rgba(0, 0, 0, 0.1);
	color: rgba(0, 0, 0, 0.7);
	font-size: 14px;
	font-weight: normal;
	padding: 3px 5px;
	margin-bottom: 8px;
	line-height: 1;
	text-transform: none;
}

p:has(> .sidebar-label.content-menu) {
	margin-bottom: 0;
}

ul.sidebar-menu.content-menu {
	margin-bottom: 40px;
	padding-left: 5px;
}

/* Inline CTA links inside lists ("voir projets", "CV complet", etc.) */
a.inline-cta,
ul.sidebar-menu li a.inline-cta {
	color: #A82727;
	font-style: italic;
}
a.inline-cta:hover,
ul.sidebar-menu li a.inline-cta:hover {
	color: #000;
}

/* ---- Editable content (the_content output) — structural CSS so the client edits via native WP buttons ---- */
/* Italic text stays italic (plain), color inherits from body — links in italics remain black */
/* Red italic CTA is now scoped to the "Catalogue complet" page only (see .content_catalogue rules below) */

/* Plain <ul> in editable content area — same look as .sidebar-menu.content-menu */
/* :not([class]) targets only client-typed lists (no class), preserves Bootstrap navbar-nav / sidebar-menu etc. */
/* padding-left: 5px aligns li text with the h2 text (h2 has padding: 3px 5px), not with the grey band edge */
.col-12.col-lg-9 ul:not([class]) {
	list-style: none;
	padding-left: 5px;
	margin-bottom: 40px;
}
.col-12.col-lg-9 ul:not([class]) > li {
	font-size: 12px;
	font-weight: 300;
	line-height: 17px;
	color: #000; /* content text in black (bureau, liens, etc.), like the historic site */
}

/* Mobile & tablet (< 992px): no hover cue on link text — spread items apart so they read as separate entries */
@media (max-width: 991.98px) {
	.col-12.col-lg-9 ul:not([class]) > li,
	ul.sidebar-menu.content-menu > li {
		margin-bottom: 12px;
	}
	.col-12.col-lg-9 ul:not([class]) > li:last-child,
	ul.sidebar-menu.content-menu > li:last-child {
		margin-bottom: 0;
	}
}

/* Catalogue items — desktop: date left, text right (Bootstrap col-lg-2 / col-lg-10 handle sizing).
   Mobile & tablet (< 992px): date stacked above text — override Bootstrap col-md-3 / col-md-9. */
@media (max-width: 991.98px) {
	.content_catalogue .row .date-col,
	.content_catalogue .row .text-col {
		flex: 0 0 100%;
		max-width: 100%;
	}
}
.content_catalogue .row.mb-2 {
	margin-bottom: 25px !important;
	/* Shift the whole row +5px so the date column aligns with the section title *text*
	   (the grey band h2 has padding: 3px 5px), not with the grey band edge. */
	padding-left: 5px;
}

/* Catalogue colors: dates in light grey, text in black, links in red italic */
.content_catalogue .date-col {
	color: #999;
}
.content_catalogue .text-col {
	color: #000;
}
.content_catalogue .text-col a {
	color: #A82727;
	font-style: italic;
}
.content_catalogue .text-col a:hover {
	color: #000;
}

/* Red italic links are restricted to the Catalogue complet content only (see .content_catalogue below) */

/* ====================================================================
   Mobile menu — custom slide-out (replaces mmenu plugin)
   ==================================================================== */

#menu-mobile {
	position: fixed;
	top: 0;
	right: 0;
	width: 320px;
	max-width: 85vw;
	max-height: 100vh;
	background: #fff;
	box-shadow: -2px 0 12px rgba(0, 0, 0, 0.08);
	transform: translateX(100%);
	transition: transform 0.3s ease;
	z-index: 100000000002; /* above .header (z-index: 100000000000) */
	overflow-y: auto;
	padding: 65px 30px 30px 30px;
}

body.menu-open #menu-mobile {
	transform: translateX(0);
}

#menu-mobile-close {
	position: absolute;
	top: 30px;
	right: 30px;
	width: 42px;
	height: 42px;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 0;
	font-size: 0;
	color: transparent;
	overflow: hidden;
}
#menu-mobile-close::before,
#menu-mobile-close::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 42px;
	height: 1px;
	background: #000;
}
#menu-mobile-close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}
#menu-mobile-close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}
@media (max-width: 647px) {
	#menu-mobile-close {
		width: 18.9px;
		height: 18.9px;
	}
	#menu-mobile-close::before,
	#menu-mobile-close::after {
		width: 18.9px;
		height: 1px;
	}
}

/* Comfortable spacing inside the mobile slide-out (overrides the compact desktop sidebar) */
#menu-mobile .nav-top {
	margin: 0;
}
#menu-mobile .navbar-nav {
	padding-left: 0;
	margin: 0;
	list-style: none;
}
#menu-mobile .navbar-nav > li {
	display: block;
	margin-bottom: 15px;
	line-height: 1;
}
#menu-mobile .navbar-nav > li:last-child {
	margin-bottom: 0;
}
#menu-mobile .navbar-nav > li > a {
	display: inline-block;
	font-size: 12px;
	line-height: 1.3;
}
/* Parent link (only when it has a sub-list) gets a 15px margin to space it from its children */
#menu-mobile .navbar-nav > li:has(ul.sidebar-menu) > a {
	margin-bottom: 15px;
}
#menu-mobile ul.sidebar-menu {
	margin: 0;
	padding-left: 22px !important;
	list-style: none;
}
#menu-mobile ul.sidebar-menu li {
	margin-bottom: 10px;
	font-size: 12px;
	line-height: 1.3;
}
#menu-mobile ul.sidebar-menu li:last-child {
	margin-bottom: 0;
}
#menu-mobile ul.sidebar-menu li a {
	font-size: 12px;
	line-height: 1.3;
}

#menu-mobile-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 100000000001; /* between header and #menu-mobile */
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

body.menu-open #menu-mobile-overlay {
	opacity: 1;
	pointer-events: auto;
}

body.menu-open {
	overflow: hidden;
}

/* Hide slide-out on desktop (top sidebar is already visible there) */
@media (min-width: 992px) {
	#menu-mobile,
	#menu-mobile-overlay {
		display: none !important;
	}
}