/**
 * Pleasetrip — Page (mois).
 */

:root {
	--qdpm-max: 1200px;
	--qdpm-px: clamp(1rem, 4vw, 2rem);
	--qdpm-radius: 1rem;
	--qdpm-radius-sm: 0.75rem;
	--qdpm-text: #1a1a2e;
	--qdpm-muted: #6b7280;
	--qdpm-white: #fff;
	--qdpm-link: var(--pt-link);
	--qdpm-hero-fallback: #0f172a;
}

.page-template-template-quand-partir-mois .site-content,
.site-content:has(#pleasetrip-quand-partir-mois) {
	padding-top: 0;
}

#pleasetrip-quand-partir-mois {
	overflow-x: clip;
	width: 100%;
}

.qdpm-container {
	max-width: var(--qdpm-max);
	margin-inline: auto;
	padding-inline: var(--qdpm-px);
}

.qdpm-container--narrow {
	max-width: 960px;
}

.qdpm-section-title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.5rem, 3.2vw, 2.1rem);
	font-weight: 800;
	color: var(--qdpm-text);
}

.qdpm-eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--qdpm-link);
}

.qdpm-intro {
	margin: 0 0 1.5rem;
	max-width: 52rem;
	color: var(--qdpm-muted);
	line-height: 1.6;
	font-size: 1.02rem;
}

/* ── Héros ─────────────────────────────────────────────────────────────────── */
.qdpm-hero {
	position: relative;
	min-height: clamp(380px, 62vh, 640px);
	background: var(--qdpm-hero-fallback);
	overflow: hidden;
}

.qdpm-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	background-color: #0f172a;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	filter: saturate(1.06);
}

.qdpm-hero__split {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: flex;
	width: 100%;
	height: 100%;
}

.qdpm-hero__half {
	flex: 1 1 50%;
	min-width: 0;
	background-color: #0f172a;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	filter: saturate(1.06);
}

.qdpm-hero__half--right {
	border-left: 2px solid rgba(255, 255, 255, 0.12);
}

.qdpm-hero:not(.qdpm-hero--split) .qdpm-hero__split {
	display: none;
}

.qdpm-hero--split .qdpm-hero__bg {
	display: none;
}

.qdpm-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(8, 12, 20, 0.28) 0%, rgba(8, 12, 20, 0.62) 100%);
}

.qdpm-hero__content {
	position: relative;
	z-index: 2;
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	padding: clamp(2.5rem, 8vw, 4.5rem) var(--qdpm-px);
	color: var(--qdpm-white);
}

.qdpm-hero__icon,
.qdpm-hero__icon-svg {
	display: inline-flex;
	margin-bottom: 0.75rem;
	color: rgba(255, 255, 255, 0.95);
}

.qdpm-hero__icon-el {
	width: 48px;
	height: 48px;
	object-fit: contain;
	border-radius: 50%;
}

.qdpm-hero__title {
	font-size: clamp(1.85rem, 4.5vw, 2.85rem);
	font-weight: 800;
	margin: 0 0 0.5rem;
	color: #fff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.qdpm-hero__tagline {
	font-size: clamp(0.95rem, 2vw, 1.15rem);
	margin: 0 0 0.75rem;
	font-weight: 600;
	opacity: 0.95;
}

.qdpm-hero__desc {
	font-size: clamp(0.9rem, 1.8vw, 1.05rem);
	margin: 0 0 1.5rem;
	line-height: 1.55;
	opacity: 0.92;
}

.qdpm-hero__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	justify-content: center;
}

.qdpm-hero__pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1rem;
	border-radius: 2rem;
	border: 2px solid transparent;
	box-sizing: border-box;
	background: var(--pt-btn-primary-bg, #facc15);
	color: var(--pt-btn-primary-fg, #171717);
	font-weight: 600;
	font-size: 0.85rem;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s, color 0.2s;
}

.qdpm-hero__pill:hover {
	background: var(--pt-btn-primary-bg-hover, #e0b400);
	color: var(--pt-btn-primary-fg-hover, #fff);
}

/* ── Stats ─────────────────────────────────────────────────────────────────── */
.qdpm-stats {
	padding: clamp(1.25rem, 3vw, 2rem) 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.qdpm-stats__inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	text-align: center;
}

.qdpm-stats__value {
	display: block;
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 800;
	color: var(--qdpm-link);
	line-height: 1.1;
}

.qdpm-stats__label {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--qdpm-muted);
}

@media (max-width: 640px) {
	.qdpm-stats__inner {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ── Mois ──────────────────────────────────────────────────────────────────── */
.qdpm-months {
	padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.qdpm-months .qdpm-section-title {
	text-align: center;
}

.qdpm-months__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 1rem;
	list-style: none;
	margin: clamp(1.5rem, 4vw, 2rem) 0 0;
	padding: 0;
}

.qdpm-months__item {
	flex: 0 1 168px;
	max-width: 100%;
	min-width: 0;
	display: flex;
}

.qdpm-months__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	flex: 1 1 auto;
	width: 100%;
	text-align: center;
	padding: 1.15rem 1rem;
	border-radius: var(--qdpm-radius-sm);
	background: var(--qdpm-white);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	text-decoration: none;
	color: inherit;
	min-height: 100%;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.qdpm-months__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.qdpm-months__emoji {
	font-size: 1.75rem;
	margin-bottom: 0.35rem;
}

.qdpm-months__name {
	font-weight: 800;
	font-size: 1.05rem;
	color: var(--qdpm-text);
}

.qdpm-months__hint {
	font-size: 0.82rem;
	color: var(--qdpm-muted);
	margin-top: 0.25rem;
}

/* ── Grille destinations A ─────────────────────────────────────────────────── */
.qdpm-grid-a {
	padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.qdpm-grid-a__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
	margin-top: clamp(1.5rem, 4vw, 2rem);
}

.qdpm-grid-a__card {
	display: flex;
	flex-direction: column;
	border-radius: var(--qdpm-radius);
	overflow: hidden;
	background: var(--qdpm-white);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.qdpm-grid-a__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: #e5e7eb;
	overflow: hidden;
}

.qdpm-grid-a__media:focus-visible {
	outline: 2px solid var(--qdpm-link);
	outline-offset: 2px;
}

.qdpm-grid-a__img-el {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.qdpm-grid-a__media-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
	pointer-events: none;
}

.qdpm-grid-a__badge {
	position: absolute;
	bottom: 0.75rem;
	left: 0.75rem;
	padding: 0.35rem 0.6rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.95);
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--qdpm-text);
}

.qdpm-grid-a__body {
	padding: 1rem 1.1rem 1.2rem;
}

.qdpm-grid-a__region {
	margin: 0 0 0.35rem;
	font-size: 1.1rem;
	font-weight: 800;
}

.qdpm-grid-a__climate {
	margin: 0 0 0.5rem;
	font-size: 0.85rem;
	color: var(--qdpm-muted);
}

.qdpm-grid-a__excerpt {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--qdpm-text);
}

.qdpm-grid-a__hub {
	margin-top: 2rem;
	text-align: center;
}

/* ── Outdoor ───────────────────────────────────────────────────────────────── */
.qdpm-outdoor {
	padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.qdpm-outdoor__cta-top {
	text-align: center;
	margin: 0 0 1.5rem;
}

.qdpm-outdoor__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.5rem;
}

@media (max-width: 960px) {
	.qdpm-outdoor__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.qdpm-outdoor__grid {
		grid-template-columns: 1fr;
	}
}

.qdpm-outdoor__card {
	border-radius: var(--qdpm-radius-sm);
	background: var(--qdpm-white);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.qdpm-outdoor__card-link {
	display: block;
	text-decoration: none;
	color: inherit;
	height: 100%;
	transition: box-shadow 0.15s ease;
}

.qdpm-outdoor__card-link:hover {
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.qdpm-outdoor__card-inner {
	padding: 1.15rem 1.1rem;
}

.qdpm-outdoor__name {
	margin: 0 0 0.25rem;
	font-size: 1.1rem;
	font-weight: 800;
}

.qdpm-outdoor__country {
	margin: 0 0 0.5rem;
	font-size: 0.88rem;
	color: var(--qdpm-muted);
}

.qdpm-outdoor__meta {
	margin: 0.15rem 0;
	font-size: 0.85rem;
}

.qdpm-outdoor__bottom {
	margin: 0.65rem 0 0;
	font-size: 0.9rem;
	line-height: 1.45;
}

/* ── City breaks ───────────────────────────────────────────────────────────── */
.qdpm-city {
	padding: clamp(2.5rem, 6vw, 4rem) 0;
	background: var(--qdpm-white);
}

.qdpm-eyebrow--city {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: #60a5fa;
}

.qdpm-eyebrow__icon {
	flex-shrink: 0;
}

.qdpm-city__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2.5vw, 1.5rem);
	margin-top: clamp(1.5rem, 4vw, 2rem);
}

.qdpm-city__card {
	border-radius: var(--qdpm-radius);
	overflow: hidden;
	background: var(--qdpm-white);
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.qdpm-city__card:hover {
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
	transform: translateY(-2px);
}

.qdpm-city__card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.qdpm-city__card-link:hover {
	color: inherit;
}

.qdpm-city__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: #e5e7eb;
	overflow: hidden;
}

.qdpm-city__img-el {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.qdpm-city__media-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.72) 100%);
	pointer-events: none;
}

.qdpm-city__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	padding: 1rem 1.1rem 1.05rem;
	pointer-events: none;
}

.qdpm-city__badge {
	display: inline-block;
	margin: 0 0 0.45rem;
	padding: 0.28rem 0.6rem;
	border-radius: 999px;
	background: #3b82f6;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.2;
}

.qdpm-city__name {
	margin: 0;
	font-size: clamp(1.15rem, 2vw, 1.35rem);
	font-weight: 800;
	color: #fff;
	line-height: 1.15;
}

.qdpm-city__country {
	margin: 0.2rem 0 0;
	font-size: 0.88rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.92);
	line-height: 1.3;
}

.qdpm-city__body {
	padding: 1rem 1.1rem 1.2rem;
}

.qdpm-city__must-see {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0 0 0.4rem;
	font-size: 0.8rem;
	font-weight: 700;
	color: #3b82f6;
}

.qdpm-city__must-see-icon {
	font-size: 0.95rem;
	line-height: 1;
}

.qdpm-city__highlight {
	margin: 0;
	font-size: 0.92rem;
	color: var(--qdpm-muted);
	line-height: 1.5;
}

.qdpm-city__hub {
	margin-top: 2rem;
	text-align: center;
}

@media (max-width: 960px) {
	.qdpm-city__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.qdpm-city__grid {
		grid-template-columns: 1fr;
	}
}

/* ── Tips ──────────────────────────────────────────────────────────────────── */
.qdpm-tips {
	padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.qdpm-tips__list {
	list-style: none;
	margin: clamp(1.5rem, 4vw, 2rem) 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1rem;
}

.qdpm-tips__item {
	padding: 1.15rem 1.2rem;
	border-radius: var(--qdpm-radius-sm);
	background: var(--qdpm-white);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.qdpm-tips__item-title {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	font-weight: 800;
}

.qdpm-tips__item-text {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--qdpm-muted);
}

/* ── Zones climatiques ─────────────────────────────────────────────────────── */
.qdpm-climate {
	padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.qdpm-climate .qdpm-section-title {
	text-align: center;
}

.qdpm-climate .qdpm-intro {
	margin-inline: auto;
	text-align: center;
}

.qdpm-climate__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.25rem;
	margin-top: clamp(1.5rem, 4vw, 2rem);
	list-style: none;
	padding: 0;
}

.qdpm-climate__card {
	display: flex;
	flex-direction: column;
	border-radius: var(--qdpm-radius);
	overflow: hidden;
	background: var(--qdpm-white);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s ease;
}

.qdpm-climate__card:hover {
	transform: translateY(-2px);
}

.qdpm-climate__visual {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e5e7eb;
}

.qdpm-climate__visual::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.05) 0%, rgba(255, 255, 255, 0.25) 45%, rgba(15, 23, 42, 0.15) 100%);
	clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
	pointer-events: none;
	mix-blend-mode: multiply;
}

.qdpm-climate__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.qdpm-climate__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 11rem;
	background: linear-gradient(135deg, #93c5fd 0%, #fcd34d 100%);
}

.qdpm-climate__body {
	padding: 1.1rem 1.15rem 1.35rem;
}

.qdpm-climate__zone {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
	font-weight: 800;
}

.qdpm-climate__text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--qdpm-muted);
}

/* ── Autres mois ───────────────────────────────────────────────────────────── */
.qdpm-other-months {
	padding: clamp(2.5rem, 6vw, 4rem) 0;
	background: #f8fafc;
}

.qdpm-other-months .qdpm-section-title {
	text-align: center;
}

.qdpm-other-months .qdpm-intro {
	margin-inline: auto;
	text-align: center;
}

.qdpm-other-months__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 1rem;
	list-style: none;
	margin: clamp(1.5rem, 4vw, 2rem) 0 0;
	padding: 0;
}

.qdpm-other-months__item {
	flex: 0 1 200px;
	max-width: 100%;
	min-width: 0;
	display: flex;
}

.qdpm-other-months__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	flex: 1 1 auto;
	width: 100%;
	text-align: center;
	padding: 1.35rem 1rem;
	border-radius: var(--qdpm-radius);
	background: var(--qdpm-white);
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.07);
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s ease;
}

.qdpm-other-months__link:hover {
	transform: translateY(-3px);
}

.qdpm-other-months__emoji {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.75rem;
	height: 3.75rem;
	border-radius: 50%;
	background: #eff6ff;
	font-size: 1.85rem;
	margin-bottom: 0.5rem;
}

.qdpm-other-months__name {
	font-weight: 800;
	font-size: 1.1rem;
}

.qdpm-other-months__hub {
	margin-top: 2rem;
	text-align: center;
}

/* ── Prose ───────────────────────────────────────────────────────────────────── */
.qdpm-prose {
	padding: clamp(2rem, 5vw, 3.5rem) 0;
	color: var(--qdpm-text);
}

.qdpm-prose__inner {
	font-size: 1.02rem;
	line-height: 1.65;
}

.qdpm-prose__inner > *:first-child {
	margin-top: 0;
}

/* ── CTA footer ──────────────────────────────────────────────────────────────── */
.qdpm-cta-footer {
	padding: clamp(2.5rem, 6vw, 4rem) 0;
	color: #fff;
	text-align: center;
}

.qdpm-cta-footer__inner {
	max-width: 640px;
	margin-inline: auto;
}

.qdpm-cta-footer__icon {
	margin-bottom: 0.75rem;
}

.qdpm-cta-footer__icon-el {
	width: 56px;
	height: 56px;
	object-fit: contain;
	border-radius: 50%;
}

.qdpm-cta-footer__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 800;
	color: #fff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.qdpm-cta-footer__desc {
	margin: 0 0 1.25rem;
	opacity: 0.95;
	line-height: 1.55;
}

.qdpm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.35rem;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.qdpm-btn--outline {
	border: 2px solid var(--qdpm-link);
	color: var(--qdpm-link);
	background: transparent;
}

.qdpm-btn--outline:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.qdpm-btn--on-gradient {
	background: #fff;
	color: #1a1a2e;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.qdpm-btn--on-gradient:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
}

/* Placeholders (ACF vide) */
.qdpm-hero__bg--placeholder {
	background-image: linear-gradient(135deg, #64748b 0%, #94a3b8 45%, #cbd5e1 100%);
	background-size: cover;
	background-position: center;
}

.qdpm-placeholder-img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 8rem;
	background: linear-gradient(145deg, #d1d5db 0%, #9ca3af 100%);
}

.qdpm-grid-a__media .qdpm-placeholder-img,
.qdpm-city__media .qdpm-placeholder-img {
	position: absolute;
	inset: 0;
	min-height: 0;
}

/* Liens texte : survol gris clair (pas de violet global) */
#pleasetrip-quand-partir-mois a:where(:not(.btn):not(.qdpm-hero__pill):not(.qdpm-card__link):not(.qdpm-city__card-link):not(.qdpm-grid-a__media):not(.qdpm-city__media):not(.qdpm-climate__card):not(.qdpm-other-months__link)):where(:link, :visited) {
	color: var(--qdpm-text);
}

#pleasetrip-quand-partir-mois a:where(:not(.btn):not(.qdpm-hero__pill):not(.qdpm-card__link):not(.qdpm-city__card-link):not(.qdpm-grid-a__media):not(.qdpm-city__media):not(.qdpm-climate__card):not(.qdpm-other-months__link)):where(:hover) {
	color: color-mix(in srgb, currentColor 72%, #fff 28%);
}
