/*
Theme Name: Montains
Theme URI: https://www.ergopix.com
Update URI: https://www.ergopix.com
Author: ergopix sàrl
Version: 5.4
*/
body {
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

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

body.mm-wrapper--opened .hamburger span.top-bar {
	transform: rotate(45deg);
	top: 12px;
}

body.mm-wrapper--opened .hamburger span.middle-bar {
	opacity: 0;
}

body.mm-wrapper--opened .hamburger span.bottom-bar {
	transform: rotate(-45deg);
	top: -10px;
}

body.mm-wrapper--opened .hamburger span.middle-bar {
	left: -40px;
}

.mm-listview {
	margin-top: calc((var(--mm-listitem-size) - var(--mm-lineheight))/ 2);
}

.mm-listitem::after {
	display: none;
}

.mm-navbar__title img {
	padding: 15px 0;
}

.btn-search {
	font-size: 1.500rem;
	cursor: pointer;
}

.the-content ul {}

.the-content ol {}

.the-content ul li, .the-content ol li {}

.the-content *:last-child {
	margin-bottom: 0;
}

.list-inline li {
	display: inline-block;
}

.list-inline li:not(:last-child) {
	margin-right: .5rem;
}

.main-menu li a {
	display: inline-block;
	text-decoration: none;
}

.accordion-body .the-content p:last-child, .content-with-bg p:last-child {
	margin-bottom: 0;
}

body .gform_confirmation_wrapper {
	border-radius: 0;
	border: 1px solid var(--bs-success-border-subtle);
	box-shadow: none;
	padding: 16px;
	position: relative;
	background-color: var(--bs-success-bg-subtle);
	width: 100%;
	color: var(--bs-success-text-emphasis);
	text-align: center;
}

.space {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

.global-carousel .slick-track {
	display: flex !important;
}

.global-carousel .slick-slide {
	height: inherit !important;
	margin-left: .75rem;
	margin-right: .75rem;
}

.slick-dots {
	list-style-type: none;
	padding: 0;
	margin: 54px 0 0px 0;
	line-height: 0;
	text-align: center;
	height: max-content;
}

.slick-dots li {
	display: inline-block;
	margin-right: 12px;
}

.slick-dots li:last-child {
	margin-right: 0;
}

.slick-dots button {
	font-size: 0;
	padding: 0;
	width: 10px;
	height: 10px;
	line-height: 0;
	border-radius: 9999px;
	border: 1px solid var(--bs-primary);
	background-color: transparent;
	transition: all ease 0.4s;
	position: relative;
}

.slick-dots .slick-active button {
	background-color: var(--bs-primary);
}

.slick-arrow {
	--pos-x: -30px;
	display: inline-block;
	padding: 0;
	background-color: var(--bs-primary);
	color: var(--bs-white);
	position: absolute;
	top: 247px;
	border: none;
	border-radius: 50%;
	right: var(--pos-x, 58px);
	width: var(--icon-size, 80px);
	height: var(--icon-size, 80px);
	line-height: var(--icon-size, 80px);
	font-size: var(--icon-font-size, 18px);
	margin-top: calc(var(--icon-size, 80px) / -1);
	z-index: 2;
	opacity: 1;
	transition: .5s;
}

.slick-arrow.default {
	position: relative;
	--pos-x: 0;
	margin-top: 0;
}

.slick-arrow.slick-prev {
	right: auto;
	left: var(--pos-x, 58px);
}

.slick-arrow:hover {
	opacity: 1;
	background-color: var(--bs-btn-hover-border-color);
	color: var(--bs-btn-hover-color);
}

.arrow-margin .slick-arrow {
	top: calc(50% - 30px);
}

.logo-grid .logo-item {
	aspect-ratio: 2/1;
	background: #FFF;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	border: 1px solid #e9ecef;
	position: relative;
	top: 0;
}

.logo-grid img {
	object-fit: contain;
	width: 100%;
	height: 100%;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-button{
	font-size: 1.25rem;
}

@media (max-width: 1200px) {
	.slick-arrow {
		--pos-x: 42px;
	}
}

@media (max-width: 1199px) {
	.slick-arrow {
		--icon-size: 60px;
		--pos-x: -20px;
		top: 176px;
	}
}

@media (max-width: 991px) {
	.slick-dots {
		margin: 1.5rem 0 0 0;
	}

	.icon-box .slick-arrow {
		margin-right: 0;
	}
}

@media (max-width: 1399.98px) {}

@media (max-width: 1199.98px) {}

@media (max-width: 991.98px) {
	.space {
		padding-top: 2rem;
		padding-bottom: 2rem;
	}
}

@media (max-width: 767.98px) {}

@media (max-width: 575.98px) {}

/* ─── Montains ──────────────────────────────────────────────────────────────
   La mise en page utilise la grille et les utilitaires Bootstrap 5.
   On ne garde ici que ce que BS ne couvre pas : thème (variables --bs-*),
   polices, cadre dessiné des portraits et décalage du logo. */
:root {
	--m-cream: #fef5f2;
	--m-ink: #1d1d1b;
	/* Thème Bootstrap */
	--bs-body-bg: var(--m-cream);
	--bs-body-color: var(--m-ink);
	--bs-body-color-rgb: 29, 29, 27;
	--bs-body-line-height: 1.6;
	--bs-body-font-family: "futura-pt", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--bs-emphasis-color: var(--m-ink);
	--bs-secondary-color: #6f6e69;
}

/* Polices Typekit (kit wbo3klj) :
   - corps de texte = futura-pt (sans)
   - titres / citation / lien « À propos » / nom du portrait sur les cartes = panel (slab serif) */
h1, h2, h3, h4, h5, h6,
.portrait-citation,
.site-about,
.portrait-back,
.portrait-card__link .bg-white > .fw-bold {
	font-family: "panel", Georgia, serif;
}

/* Nom du portrait dans la grille (et légende dessous, en plus discret). */
.portrait-card__link .bg-white > .fw-bold {
	font-size: 1.5rem;
	line-height: 1.2;
}
.portrait-card__link .bg-white > .d-block:not(.fw-bold) {
	font-size: 1.4rem;
	line-height: 1.3;
}

/* Paragraphes des contenus (fiche portrait + pages). */
.portrait-single p,
.page-content p {
	font-size: 1.5rem;
}

/* Titre de section de l'interview (slab serif imposant). */
.portrait-single h2 {
	font-size: 3rem;
	line-height: 1.1;
}

body {
	overflow-x: clip; /* l'arbre du logo déborde dans la gouttière */
}

/* ── Header ── */
.site-logo {
	width: 700px;
	max-width: 100%;
	height: auto;
	margin-left: -3px;
}

.site-about {
	color: var(--m-ink);
	text-underline-offset: 6px;
	text-decoration-thickness: 2px;
}

.site-about:hover {
	color: var(--m-ink);
	text-decoration-thickness: 3px;
}

.portrait-back {
	color: var(--m-ink);
	text-decoration: none;
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.portrait-back:hover {
	color: var(--bs-secondary-color);
}

.portrait-back.is-loading {
	opacity: .5;
	cursor: wait;
}

/* « À propos du projet » : plus petit sur mobile pour rester à côté du logo. */
.site-about {
	white-space: nowrap;
}

@media (max-width: 767.98px) {
	.site-about {
		font-size: 0.9rem !important;
	}
}

@media (max-width: 480px) {
	.site-about {
		font-size: 0.75rem !important;
	}
}

/* Liens dans les contenus (the_content + champs wysiwyg ACF — tous enveloppés en .the-content par ergopix). */
.the-content a {
	color: var(--m-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.the-content a:hover {
	color: var(--bs-secondary-color);
	text-decoration-thickness: 2px;
}

/* ── Grille de portraits ── */
.portrait-card__link,
.portrait-card__link:hover {
	color: var(--m-ink);
}

.portrait-frame {
	aspect-ratio: 1 / 1;
}

/* Fiche portrait : format portrait (pas le listing). */
.portrait-single .portrait-frame {
	aspect-ratio: 345.03 / 388.913;
}

.portrait-photo {
	inset: 2%;
	width: 96%;
	height: 96%;
}

.portrait-cadre {
	pointer-events: none;
	transition: transform .35s ease;
}

/* Au survol : petite rotation aléatoire du cadre (variable --cadre-rot
   injectée sur le lien par le PHP). */
.portrait-card__link:hover .portrait-cadre {
	transform: rotate(var(--cadre-rot, 0deg));
}

@media (prefers-reduced-motion: reduce) {
	.portrait-cadre {
		transition: none;
	}
	.portrait-card__link:hover .portrait-cadre {
		transform: none;
	}
}

.portrait-name {
	font-size: 0.95rem;
	line-height: 1.2;
}

.portrait-legende {
	font-size: 0.78rem;
	line-height: 1.3;
}

/* ── Illustration village ── */
.village__img {
	max-width: 1600px;
}

/* ── Responsive ── */
@media (max-width: 1399.98px) {
	/* Sous le breakpoint xxl : plus de débord, logo réduit. */
	.site-logo {
		width: 550px;
		margin-left: 0;
	}
}

@media (min-width: 768px) and (max-width: 991.98px) {
	.site-logo {
		width: 320px;
	}
}

@media (max-width: 767.98px) {
	.site-logo {
		width: 240px;
	}
}

/* ─── Header allégé sur les pages non-home (≥ 992 uniquement) ─────────────
   < 992 : le header garde l'apparence de la home (logo, marges, padding). */
@media (min-width: 992px) {
	body:not(.home) .site-header {
		padding-top: 1.5rem !important;
		padding-bottom: 1.5rem !important;
	}

	body:not(.home) .site-logo {
		width: 400px;
		margin-left: 0;
	}

	body:not(.home) .site-about {
		font-size: 1.25rem !important;
	}
}

@media (min-width: 1400px) {
	body:not(.home) .site-logo {
		margin-left: 44px;
	}
}

@media (min-width: 992px) and (max-width: 1399.98px) {
	body:not(.home) .site-logo { width: 320px; }
}

.mx-card-custom{
	margin-left: 2%;
	margin-right: 2%;
}

