/* =========================================================================
   Section « Nos activités » — thème enfant Divi (plandeaudevieure)
   Couleurs charte : vert #146b60 · orange #e94e1b
   ========================================================================= */

/* -------- Partie 2 : grille de cartes (CPT) -------- */
.pdvb-activites__soustitre {
	color: #e94e1b;
	font-weight: 700;
	font-size: clamp(20px, 0.9rem + 1.4vw, 30px);
	line-height: 1.3;
	margin: 0 0 20px;
}
.pdvb-activites-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.pdvb-activite-card {
	position: relative;
	border-radius: 25px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}
.pdvb-activite-link {
	position: absolute;
	inset: 0;
	display: block;
	text-decoration: none;
}
.pdvb-activite-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.pdvb-activite-img--empty {
	background: linear-gradient(135deg, #146b60, #0e4f47);
}
.pdvb-activite-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .5) 100%);
	transition: background .4s ease;
}
.pdvb-activite-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 18px;
}
.pdvb-activite-title {
	color: #fff;
	font-size: clamp(17px, 0.9rem + 0.7vw, 22px);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	line-height: 1.2;
	text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.pdvb-activite-text {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	margin-top: 0;
	color: #fff;
	font-size: 14px;
	line-height: 1.45;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
	transition: max-height .45s ease, opacity .45s ease, margin-top .45s ease;
}
.pdvb-activite-card:hover .pdvb-activite-img,
.pdvb-activite-link:focus-visible .pdvb-activite-img {
	transform: scale(1.08);
}
.pdvb-activite-card:hover .pdvb-activite-text,
.pdvb-activite-link:focus-visible .pdvb-activite-text {
	max-height: 160px;
	opacity: 1;
	margin-top: 10px;
}
.pdvb-activite-card:hover .pdvb-activite-shade,
.pdvb-activite-link:focus-visible .pdvb-activite-shade {
	background: linear-gradient(180deg, rgba(0, 0, 0, .32) 0%, rgba(0, 0, 0, .66) 100%);
}
@media (max-width: 900px) {
	.pdvb-activites-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.pdvb-activites-grid { grid-template-columns: 1fr; }
}

/* -------- Partie 1 : La baignade -------- */
.pdvb-baignade__title {
	color: #146b60;
	font-size: clamp(28px, 1.25rem + 2vw, 42px);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 4px;
}
.pdvb-baignade__subtitle {
	color: #e94e1b;
	font-size: clamp(20px, 0.9rem + 1.4vw, 30px);
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 22px;
}
.pdvb-baignade__cols {
	display: flex;
	gap: 36px;
	align-items: center;
	flex-wrap: wrap;
}
.pdvb-baignade__media {
	flex: 1 1 42%;
	min-width: 280px;
}
.pdvb-baignade__img {
	width: 100%;
	display: block;
	border-radius: 25px;
}
.pdvb-baignade__content {
	flex: 1 1 50%;
	min-width: 280px;
	font-size: clamp(22px, 0.9rem + 0.3vw, 24px);
	line-height: 1.45;
	color: #333;
}
.pdvb-baignade__content :where(ul, ol) {
	margin: 0 0 16px;
	padding-left: 1.2em;
}
.pdvb-baignade__content :where(p, li) {
	margin: 0 0 12px;
}
.pdvb-baignade__content li::marker {
	color: #146b60;
}
@media (max-width: 782px) {
	.pdvb-baignade__cols { flex-direction: column; align-items: stretch; }
	.pdvb-baignade__media,
	.pdvb-baignade__content { flex: 0 0 auto; width: 100%; }
}

/* =========================================================================
   Page « Activités » (modèle hors Divi : page-activites.php)
   ========================================================================= */
.pdv-actpage { overflow-x: clip; }            /* évite le scroll dû au plein largeur */

/* Bandeau (image mise en avant) */
.pdv-actpage-banner { line-height: 0; }
.pdv-actpage-banner-img {
	width: 100%;
	height: clamp(240px, 34vw, 520px);
	object-fit: cover;
	display: block;
}

/* Zone de contenu libre (titre, sous-titre, shortcodes) */
.pdv-actpage-content {
	max-width: 1080px;
	margin: 0 auto;
	padding: 44px 20px 0;
}
.pdv-actpage-content > h1 {
	color: #e94e1b;
	text-transform: uppercase;
	font-size: clamp(28px, 1.4rem + 2vw, 44px);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 16px;
}
/* Sous-titre : paragraphes saisis directement (on exclut le sous-titre du menu) */
.pdv-actpage-content > p:not(.pdvb-activites__soustitre) {
	color: #146A60;
	font-size: clamp(16px, 0.9rem + 0.4vw, 19px);
	line-height: 1.5;
	margin: 0 0 14px;
}

/* -------- Menu d'ancres compact (haut de page) : pastilles -------- */
.pdvactm {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin: 0 0 8px;
}
.pdvactm-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 18px 6px 6px;
	border-radius: 999px;
	background: #f4f4f4;
	text-decoration: none;
	transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.pdvactm-thumb {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: #CBE8E2;
	display: block;
}
.pdvactm-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}
.pdvactm-label {
	color: #146A60;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.1;
	white-space: nowrap;
}
.pdvactm-chip:hover,
.pdvactm-chip:focus-visible {
	background: #CBE8E2;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(20, 106, 96, .18);
}
.pdvactm-chip:hover .pdvactm-img,
.pdvactm-chip:focus-visible .pdvactm-img {
	transform: scale(1.1);
}

/* -------- Liste d'activités (bandes pleine largeur, fond alterné) -------- */
.pdvactl-item {
	width: 100vw;
	margin-left: calc(50% - 50vw);     /* plein largeur même dans le conteneur centré */
	padding: 56px 0;
	scroll-margin-top: 90px;           /* décalage pour les ancres sous le header */
}
.pdvactl-item--green { background: #CBE8E2; }
.pdvactl-item--white { background: #ffffff; }
.pdvactl-inner {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 20px;
}
.pdvactl-cols {
	display: flex;
	gap: 40px;
	align-items: center;
}
.pdvactl-media { flex: 0 0 44%; max-width: 44%; }
.pdvactl-img,
.pdvactl-img--empty {
	width: 100%;
	display: block;
	border-radius: 25px;
	aspect-ratio: 16 / 11;
	object-fit: cover;
}
.pdvactl-img--empty { background: linear-gradient(135deg, #146b60, #0e4f47); }
.pdvactl-body { flex: 1 1 auto; min-width: 0; }
.pdvactl-title {
	color: #146A60;
	font-size: clamp(22px, 1.1rem + 1vw, 30px);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 24px;
	display: flex;
	gap: 10px;
	align-items: baseline;
}
.pdvactl-emoji { flex: 0 0 auto; }
.pdvactl-content {
	color: #333;
	font-size: clamp(16px, 0.9rem + 0.2vw, 18px);
	line-height: 1.6;
}
.pdvactl-content :where(ul, ol) {
	margin: 0 0 14px;
	padding-left: 1.5em;
	list-style-position: outside;
}
.pdvactl-content ul { list-style-type: disc; }
.pdvactl-content ol { list-style-type: decimal; }
.pdvactl-content :where(p, li) { margin: 0 0 10px; }
.pdvactl-content li::marker { color: #146A60; }

@media (max-width: 782px) {
	.pdvactl-cols { flex-direction: column; align-items: stretch; }
	.pdvactl-media, .pdvactl-body { max-width: 100%; flex: 0 0 auto; }
	.pdvactl-item { padding: 36px 0; }
}
