/**
 * Pleasetrip — Page Quand partir (saison).
 */

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

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

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

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

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

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

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

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

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

.qdps-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);
}

.qdps-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%);
}

.qdps-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(--qdps-px);
	color: var(--qdps-white);
}

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

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

.qdps-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);
}

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

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

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

.qdps-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;
}

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

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

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

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

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

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

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

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

.qdps-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;
}

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

.qdps-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(--qdps-radius-sm);
	background: var(--qdps-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;
}

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

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

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

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

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

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

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

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

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

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

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

.qdps-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(--qdps-text);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.qdps-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);
}

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

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

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

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

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

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

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

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

.qdps-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;
}

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

.qdps-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;
}

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

.qdps-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;
}

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

.qdps-city__highlight {
	margin: 0;
	font-size: 0.92rem;
	color: var(--qdps-muted, #6b7280);
	line-height: 1.5;
}

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

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

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

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

.qdps-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;
}

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

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

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

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

.qdps-other-seasons .qdps-section-title {
	text-align: center;
}

.qdps-other-seasons__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;
}

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

.qdps-other-seasons__card {
	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(--qdps-radius);
	background: var(--qdps-white);
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.07);
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s ease;
}

.qdps-other-seasons__card:hover {
	transform: translateY(-3px);
}

.qdps-other-seasons__emoji {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.qdps-other-seasons__name {
	font-weight: 800;
	font-size: 1.1rem;
}

.qdps-other-seasons__sub {
	font-size: 0.88rem;
	color: var(--qdps-muted);
	margin-top: 0.35rem;
}

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

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

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

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

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

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

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

.qdps-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);
}

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

.qdps-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;
}

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

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

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

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

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

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

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

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

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