/*
Theme Name: Reve de Montagne Modern
Theme URI: https://revedemontagne.fr/
Author: ABCduWeb
Author URI: https://abcduweb.fr/
Description: Theme WordPress moderne pour transformer Reve de Montagne en portail communautaire montagne : topos, sorties, photos, articles, carte et espace membres.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.8
Text Domain: reve-de-montagne
*/

:root {
	--rdm-ink: #0f2330;
	--rdm-muted: #667685;
	--rdm-bg: #f4f8fa;
	--rdm-surface: #ffffff;
	--rdm-line: #d8e5eb;
	--rdm-blue: #2f6f8f;
	--rdm-blue-dark: #174c66;
	--rdm-green: #4f8f48;
	--rdm-green-soft: #e8f5e7;
	--rdm-snow: #f8fbfc;
	--rdm-shadow: 0 14px 36px rgba(15, 35, 48, .11);
	--rdm-shadow-soft: 0 8px 22px rgba(15, 35, 48, .08);
	--rdm-radius: 8px;
	--rdm-container: 1180px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--rdm-bg);
	color: var(--rdm-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}

body.rdm-menu-open {
	overflow: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--rdm-blue-dark);
	text-decoration-thickness: .08em;
	text-underline-offset: .18em;
}

a:hover {
	color: var(--rdm-green);
}

button,
input,
textarea,
select {
	font: inherit;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.rdm-container {
	width: min(100% - 40px, var(--rdm-container));
	margin-inline: auto;
}

.rdm-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(216, 229, 235, .8);
	transition: box-shadow .2s ease, background .2s ease;
}

.rdm-site-header.is-scrolled {
	box-shadow: var(--rdm-shadow-soft);
	background: rgba(255, 255, 255, .98);
}

.rdm-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 76px;
	gap: 24px;
}

.rdm-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--rdm-ink);
	text-decoration: none;
	min-width: 0;
}

.rdm-brand-mark {
	display: grid;
	place-items: center;
	width: 54px;
	height: 42px;
	background: linear-gradient(145deg, #f7fbfd, #ddeef5);
	border: 1px solid var(--rdm-line);
	border-radius: var(--rdm-radius);
	box-shadow: 0 8px 18px rgba(47, 111, 143, .13);
}

.rdm-brand-mark svg {
	width: 42px;
	height: 28px;
	fill: var(--rdm-blue-dark);
}

.rdm-brand-mark svg path:nth-child(2) {
	fill: #f4b548;
}

.rdm-brand-text {
	display: grid;
	line-height: 1.15;
}

.rdm-brand-text strong {
	font-size: 1.18rem;
	letter-spacing: 0;
}

.rdm-brand-text small {
	color: var(--rdm-muted);
	font-size: .78rem;
	max-width: 260px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rdm-brand-logo img {
	max-height: 58px;
	width: auto;
}

.rdm-primary-nav {
	display: flex;
	align-items: center;
}

.rdm-menu,
.rdm-menu ul {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.rdm-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 13px;
	border-radius: var(--rdm-radius);
	color: var(--rdm-ink);
	font-weight: 700;
	font-size: .94rem;
	text-decoration: none;
}

.rdm-menu a:hover,
.rdm-menu .current-menu-item > a,
.rdm-menu .current_page_item > a {
	background: var(--rdm-green-soft);
	color: #245f28;
}

.rdm-nav-toggle {
	display: none;
	align-items: center;
	gap: 7px;
	min-height: 42px;
	padding: 0 12px;
	border: 1px solid var(--rdm-line);
	border-radius: var(--rdm-radius);
	background: var(--rdm-surface);
	color: var(--rdm-ink);
	cursor: pointer;
}

.rdm-nav-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 999px;
}

.rdm-nav-toggle em {
	font-style: normal;
	font-weight: 800;
	font-size: .9rem;
}

.rdm-main {
	min-height: 62vh;
}

.rdm-hero {
	min-height: 620px;
	background-size: cover;
	background-position: center;
	color: #fff;
	display: flex;
	align-items: center;
	position: relative;
	isolation: isolate;
}

.rdm-hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 36%;
	background: linear-gradient(0deg, rgba(244, 248, 250, 1), rgba(244, 248, 250, 0));
	z-index: -1;
}

.rdm-hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 430px;
	align-items: end;
	gap: 42px;
	padding: 110px 0 100px;
}

.rdm-hero-copy {
	max-width: 760px;
}

.rdm-kicker,
.rdm-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--rdm-green);
	font-size: .82rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0;
}

.rdm-hero .rdm-kicker {
	color: #b7f0a2;
}

.rdm-kicker::before,
.rdm-eyebrow::before {
	content: "";
	width: 24px;
	height: 2px;
	background: currentColor;
	border-radius: 999px;
}

.rdm-hero h1 {
	margin: 12px 0 18px;
	max-width: 760px;
	font-size: 4rem;
	line-height: 1.05;
	letter-spacing: 0;
}

.rdm-hero p {
	max-width: 700px;
	margin: 0;
	color: rgba(255, 255, 255, .9);
	font-size: 1.18rem;
}

.rdm-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.rdm-button,
.rdm-search-form button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: var(--rdm-radius);
	font-weight: 900;
	text-decoration: none;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.rdm-button:hover,
.rdm-search-form button:hover,
.wp-block-button__link:hover {
	transform: translateY(-1px);
}

.rdm-button-primary,
.rdm-search-form button,
.wp-block-button__link {
	background: var(--rdm-green);
	color: #fff;
	box-shadow: 0 12px 24px rgba(79, 143, 72, .28);
}

.rdm-button-primary:hover,
.rdm-search-form button:hover,
.wp-block-button__link:hover {
	background: #3d7d37;
	color: #fff;
}

.rdm-button-ghost {
	background: rgba(255, 255, 255, .12);
	border-color: rgba(255, 255, 255, .32);
	color: #fff;
}

.rdm-button-ghost:hover {
	background: rgba(255, 255, 255, .2);
	color: #fff;
}

.rdm-button-full {
	width: 100%;
}

.rdm-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.rdm-stat {
	padding: 18px;
	background: rgba(255, 255, 255, .92);
	border: 1px solid rgba(255, 255, 255, .72);
	border-radius: var(--rdm-radius);
	color: var(--rdm-ink);
	box-shadow: var(--rdm-shadow-soft);
}

.rdm-stat strong {
	display: block;
	font-size: 2rem;
	line-height: 1;
	color: var(--rdm-blue-dark);
}

.rdm-stat span {
	color: var(--rdm-muted);
	font-weight: 800;
	font-size: .9rem;
}

.rdm-search-panel {
	display: grid;
	grid-template-columns: 1fr minmax(320px, 520px);
	align-items: center;
	gap: 28px;
	margin-top: -54px;
	padding: 28px;
	background: var(--rdm-surface);
	border: 1px solid var(--rdm-line);
	border-radius: var(--rdm-radius);
	box-shadow: var(--rdm-shadow);
	position: relative;
	z-index: 4;
}

.rdm-search-panel h2 {
	margin: 0 0 4px;
	font-size: 1.55rem;
}

.rdm-search-panel p {
	margin: 0;
	color: var(--rdm-muted);
}

.rdm-search-form {
	display: flex;
	gap: 10px;
	width: 100%;
}

.rdm-search-form label {
	flex: 1;
	min-width: 0;
}

.rdm-search-field {
	width: 100%;
	min-height: 46px;
	border: 1px solid var(--rdm-line);
	border-radius: var(--rdm-radius);
	background: var(--rdm-snow);
	color: var(--rdm-ink);
	padding: 0 14px;
	outline: none;
}

.rdm-search-field:focus {
	border-color: var(--rdm-blue);
	box-shadow: 0 0 0 3px rgba(47, 111, 143, .14);
}

.rdm-section {
	padding: 72px 0 0;
}

.rdm-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}

.rdm-section-heading h2,
.rdm-panel-heading h2 {
	margin: 8px 0 0;
	font-size: 2rem;
	line-height: 1.15;
}

.rdm-feature-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.rdm-feature-card {
	min-height: 185px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 22px;
	background:
		linear-gradient(145deg, rgba(255,255,255,.96), rgba(244,248,250,.96)),
		linear-gradient(145deg, var(--rdm-blue), var(--rdm-green));
	border: 1px solid var(--rdm-line);
	border-radius: var(--rdm-radius);
	color: var(--rdm-ink);
	text-decoration: none;
	box-shadow: var(--rdm-shadow-soft);
}

.rdm-feature-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--rdm-shadow);
	color: var(--rdm-ink);
}

.rdm-feature-card span {
	color: var(--rdm-blue);
	font-size: .86rem;
	font-weight: 900;
	text-transform: uppercase;
}

.rdm-feature-card strong {
	font-size: 1.08rem;
	line-height: 1.35;
}

.rdm-home-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.rdm-panel,
.rdm-side-panel,
.rdm-comments {
	background: var(--rdm-surface);
	border: 1px solid var(--rdm-line);
	border-radius: var(--rdm-radius);
	box-shadow: var(--rdm-shadow-soft);
}

.rdm-panel {
	padding: 24px;
}

.rdm-panel-wide {
	padding: 28px;
}

.rdm-panel-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 20px;
}

.rdm-panel-heading h2 {
	font-size: 1.45rem;
}

.rdm-panel-heading a {
	font-weight: 900;
	white-space: nowrap;
}

.rdm-list-cards {
	display: grid;
	gap: 14px;
}

.rdm-post-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
	align-content: start;
}

.rdm-card {
	background: var(--rdm-surface);
	border: 1px solid var(--rdm-line);
	border-radius: var(--rdm-radius);
	overflow: hidden;
	box-shadow: var(--rdm-shadow-soft);
}

.rdm-card-media {
	display: block;
	aspect-ratio: 16 / 10;
	background: #dcecf2;
	overflow: hidden;
}

.rdm-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .22s ease;
}

.rdm-card:hover .rdm-card-media img {
	transform: scale(1.03);
}

.rdm-card-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, rgba(23, 76, 102, .74), rgba(79, 143, 72, .62)),
		url("assets/img/hero-mountains.png") center / cover;
}

.rdm-card-body {
	padding: 20px;
}

.rdm-card h3 {
	margin: 8px 0;
	font-size: 1.25rem;
	line-height: 1.25;
}

.rdm-card h3 a {
	color: var(--rdm-ink);
	text-decoration: none;
}

.rdm-card p {
	margin: 0;
	color: var(--rdm-muted);
}

.rdm-card-compact {
	display: grid;
	grid-template-columns: 132px 1fr;
	min-height: 132px;
}

.rdm-card-compact .rdm-card-media {
	aspect-ratio: auto;
	height: 100%;
}

.rdm-card-compact .rdm-card-body {
	padding: 16px;
}

.rdm-card-compact h3 {
	font-size: 1rem;
	margin: 4px 0 6px;
}

.rdm-card-compact p {
	display: none;
}

.rdm-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.rdm-chip {
	display: inline-grid;
	gap: 1px;
	padding: 7px 9px;
	background: var(--rdm-snow);
	border: 1px solid var(--rdm-line);
	border-radius: var(--rdm-radius);
	color: var(--rdm-ink);
	font-weight: 900;
	font-size: .85rem;
	line-height: 1.1;
}

.rdm-chip small {
	color: var(--rdm-muted);
	font-weight: 700;
	font-size: .7rem;
	text-transform: uppercase;
}

.rdm-clean-list {
	display: grid;
	gap: 12px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.rdm-clean-list li {
	display: grid;
	gap: 2px;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--rdm-line);
}

.rdm-clean-list li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.rdm-clean-list a {
	color: var(--rdm-ink);
	font-weight: 900;
	text-decoration: none;
}

.rdm-clean-list span {
	color: var(--rdm-muted);
	font-size: .9rem;
}

.rdm-page-hero,
.rdm-single-hero {
	background: linear-gradient(135deg, var(--rdm-blue-dark), #0f3345);
	color: #fff;
	padding: 96px 0 74px;
}

.rdm-page-hero h1,
.rdm-single-hero h1 {
	max-width: 880px;
	margin: 10px 0 0;
	font-size: 3.15rem;
	line-height: 1.08;
	letter-spacing: 0;
}

.rdm-page-hero p,
.rdm-single-hero p {
	max-width: 760px;
	margin: 16px 0 0;
	color: rgba(255, 255, 255, .82);
	font-size: 1.08rem;
}

.rdm-single-hero {
	background-size: cover;
	background-position: center;
}

.rdm-content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 310px;
	gap: 28px;
	padding: 52px 0 88px;
}

.rdm-single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 30px;
	padding: 56px 0 88px;
	align-items: start;
}

.rdm-page-content {
	padding: 56px 0 88px;
}

.rdm-page-content-wide {
	width: min(100% - 40px, 1320px);
}

.rdm-entry {
	background: var(--rdm-surface);
	border: 1px solid var(--rdm-line);
	border-radius: var(--rdm-radius);
	box-shadow: var(--rdm-shadow-soft);
	padding: 34px;
}

.rdm-entry-content > *:first-child {
	margin-top: 0;
}

.rdm-entry-content > *:last-child {
	margin-bottom: 0;
}

.rdm-entry-content h2,
.rdm-entry-content h3,
.rdm-entry-content h4 {
	line-height: 1.2;
	margin-top: 1.8em;
}

.rdm-entry-content p,
.rdm-entry-content li {
	color: #263b48;
}

.rdm-entry-content a {
	font-weight: 800;
}

.rdm-page-featured {
	margin: -34px -34px 28px;
	border-radius: var(--rdm-radius) var(--rdm-radius) 0 0;
	overflow: hidden;
}

.rdm-page-featured img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
}

.rdm-sidebar,
.rdm-single-aside {
	display: grid;
	gap: 18px;
	align-content: start;
}

.rdm-side-panel {
	padding: 20px;
}

.rdm-side-panel h2,
.rdm-side-panel h3 {
	margin: 0 0 14px;
	font-size: 1.1rem;
}

.rdm-side-panel .rdm-stats {
	grid-template-columns: 1fr;
}

.rdm-side-panel .rdm-stat {
	padding: 14px;
	box-shadow: none;
	border-color: var(--rdm-line);
}

.rdm-map-frame {
	display: grid;
	place-items: center;
	min-height: 520px;
	margin-bottom: 28px;
	background:
		linear-gradient(135deg, rgba(23, 76, 102, .13), rgba(79, 143, 72, .12)),
		var(--rdm-snow);
	border: 1px dashed var(--rdm-blue);
	border-radius: var(--rdm-radius);
	color: var(--rdm-blue-dark);
	font-weight: 900;
	text-align: center;
	padding: 26px;
}

.rdm-pagination {
	grid-column: 1 / -1;
	margin-top: 18px;
}

.rdm-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rdm-pagination a,
.rdm-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 0 12px;
	background: var(--rdm-surface);
	border: 1px solid var(--rdm-line);
	border-radius: var(--rdm-radius);
	text-decoration: none;
	font-weight: 900;
}

.rdm-pagination .current {
	background: var(--rdm-blue-dark);
	color: #fff;
}

.rdm-empty,
.rdm-comments {
	grid-column: 1 / -1;
	padding: 28px;
}

.rdm-comments {
	margin-bottom: 88px;
}

.rdm-comments h2 {
	margin-top: 0;
}

.comment-list {
	padding-left: 22px;
}

.rdm-site-footer {
	background: #0d2230;
	color: rgba(255, 255, 255, .78);
	padding: 58px 0 24px;
}

.rdm-footer-grid {
	display: grid;
	grid-template-columns: 1.2fr repeat(3, 1fr);
	gap: 30px;
}

.rdm-site-footer h2,
.rdm-site-footer h3 {
	margin: 0 0 14px;
	color: #fff;
}

.rdm-site-footer p {
	margin: 0;
}

.rdm-site-footer ul {
	display: grid;
	gap: 8px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.rdm-site-footer a {
	color: rgba(255, 255, 255, .82);
	text-decoration: none;
}

.rdm-site-footer a:hover {
	color: #b7f0a2;
}

.rdm-site-footer .rdm-search-field {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .18);
	color: #fff;
}

.rdm-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 40px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, .13);
	font-size: .9rem;
}

@media (max-width: 1024px) {
	.rdm-hero-inner,
	.rdm-content-grid,
	.rdm-single-layout,
	.rdm-search-panel {
		grid-template-columns: 1fr;
	}

	.rdm-feature-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rdm-home-grid,
	.rdm-post-grid,
	.rdm-footer-grid {
		grid-template-columns: 1fr;
	}

	.rdm-hero {
		min-height: 720px;
	}
}

@media (max-width: 840px) {
	.rdm-container {
		width: min(100% - 28px, var(--rdm-container));
	}

	.rdm-header-inner {
		min-height: 68px;
	}

	.rdm-brand-text small {
		display: none;
	}

	.rdm-nav-toggle {
		display: inline-flex;
	}

	.rdm-primary-nav {
		position: fixed;
		inset: 68px 14px auto;
		display: none;
		background: var(--rdm-surface);
		border: 1px solid var(--rdm-line);
		border-radius: var(--rdm-radius);
		box-shadow: var(--rdm-shadow);
		padding: 10px;
	}

	.rdm-primary-nav.is-open {
		display: block;
	}

	.rdm-menu,
	.rdm-menu ul {
		display: grid;
		gap: 4px;
	}

	.rdm-menu a {
		width: 100%;
	}

	.rdm-hero {
		min-height: auto;
	}

	.rdm-hero-inner {
		padding: 82px 0 92px;
	}

	.rdm-hero h1 {
		font-size: 2.7rem;
	}

	.rdm-page-hero h1,
	.rdm-single-hero h1 {
		font-size: 2.25rem;
	}

	.rdm-search-form {
		flex-direction: column;
	}

	.rdm-card-compact {
		grid-template-columns: 108px 1fr;
	}

	.rdm-entry {
		padding: 24px;
	}

	.rdm-page-featured {
		margin: -24px -24px 24px;
	}
}

@media (max-width: 560px) {
	body {
		font-size: 15px;
	}

	.rdm-brand-mark {
		width: 46px;
		height: 38px;
	}

	.rdm-brand-text strong {
		font-size: 1rem;
	}

	.rdm-hero h1 {
		font-size: 2.25rem;
	}

	.rdm-hero p {
		font-size: 1rem;
	}

	.rdm-hero-actions,
	.rdm-footer-bottom,
	.rdm-panel-heading,
	.rdm-section-heading {
		align-items: stretch;
		flex-direction: column;
	}

	.rdm-button {
		width: 100%;
	}

	.rdm-stats,
	.rdm-feature-grid {
		grid-template-columns: 1fr;
	}

	.rdm-search-panel {
		margin-top: -34px;
		padding: 20px;
	}

	.rdm-card-compact {
		grid-template-columns: 1fr;
	}

	.rdm-card-compact .rdm-card-media {
		aspect-ratio: 16 / 9;
	}

	.rdm-page-hero,
	.rdm-single-hero {
		padding: 66px 0 52px;
	}
}
