/**
 * Page Communauté PEPS / Peps Community — design PEPS 2026.
 */

.peps-community-page {
	background-color: #ffeffc !important;
	padding: clamp(24px, 3vw, 40px) 5% clamp(32px, 4vw, 56px) 5% !important;
	margin: 0 !important;
}

.peps-community__panel {
	background: linear-gradient(165deg, #fff 0%, #fff8fc 42%, #ffe8f4 100%);
	border: 1px solid rgba(232, 77, 138, 0.18);
	border-radius: 36px;
	box-shadow: 0 20px 50px rgba(232, 77, 138, 0.08);
	overflow: visible;
}

/* —— Hero —— */
.peps-community__hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
	gap: clamp(16px, 3vw, 36px);
	align-items: center;
	padding: clamp(36px, 4.5vw, 56px) clamp(24px, 3vw, 44px) clamp(28px, 3.5vw, 40px);
	overflow: visible;
}

.peps-community__kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px !important;
	font-family: Poppins, "Trebuchet MS", Arial, sans-serif !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	color: #e84d8a !important;
}

.peps-community__kicker-paw {
	display: inline-block;
	font-size: 14px;
	animation: peps-community-wag 2.4s ease-in-out infinite;
}

.peps-community-page .peps-community__title,
.peps-community-page h1.peps-community__title,
.peps-community__title {
	margin: 0 0 16px !important;
	font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
	font-size: clamp(2rem, 3.4vw, 3.1rem) !important;
	font-weight: 500 !important;
	line-height: 1.08 !important;
	color: #3d2b32 !important;
	text-transform: none !important;
}

.peps-community__intro {
	margin: 0 0 22px !important;
	font-family: Poppins, "Trebuchet MS", Arial, sans-serif !important;
	font-size: clamp(14px, 1.25vw, 16px) !important;
	line-height: 1.65 !important;
	color: #5a4f55 !important;
	max-width: 36em;
}

.peps-community__intro p {
	margin: 0 0 0.7em !important;
}

.peps-community__intro p:last-child {
	margin-bottom: 0 !important;
}

.peps-community__hero-actions {
	margin: 0 !important;
}

.peps-community__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 26px !important;
	border-radius: 999px !important;
	background: #e84d8a !important;
	color: #fff !important;
	font-family: Poppins, "Trebuchet MS", Arial, sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	box-shadow: 0 12px 28px rgba(232, 77, 138, 0.28);
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.peps-community__cta:hover,
.peps-community__cta:focus-visible {
	background: #d63d78 !important;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 16px 32px rgba(232, 77, 138, 0.35);
}

.peps-community__hero-visual {
	position: relative;
	min-height: clamp(240px, 28vw, 340px);
	padding: 12px 8px;
	pointer-events: none;
	overflow: visible;
}

.peps-community__blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(0.5px);
}

.peps-community__blob--a {
	inset: 12% 8% 18% 18%;
	background: radial-gradient(circle at 40% 40%, rgba(255, 182, 203, 0.7), rgba(255, 239, 252, 0) 70%);
	animation: peps-community-breathe 6s ease-in-out infinite;
}

.peps-community__blob--b {
	inset: 28% 22% 8% 5%;
	background: radial-gradient(circle at 60% 55%, rgba(232, 77, 138, 0.22), transparent 65%);
	animation: peps-community-breathe 7.5s ease-in-out infinite reverse;
}

.peps-community__float {
	position: absolute;
	width: clamp(72px, 10vw, 120px);
	height: clamp(72px, 10vw, 120px);
	border-radius: 22px;
	border: 3px solid #fff;
	box-shadow: 0 14px 30px rgba(96, 69, 81, 0.12);
	background-color: #ffe0ef;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center 18%;
}

.peps-community__float--1 {
	top: 22%;
	right: 12%;
	transform: rotate(-8deg);
	background-image: url("https://peps4pets.fr/wp-content/uploads/2026/07/Client-coker-avec-collier-ELEGANCE-ILUNA3.jpg");
	background-position: center 22%;
	animation: peps-community-float 5.5s ease-in-out infinite;
}

.peps-community__float--2 {
	bottom: 10%;
	right: 2%;
	width: clamp(88px, 12vw, 140px);
	height: clamp(88px, 12vw, 140px);
	transform: rotate(7deg);
	background-image: url("https://peps4pets.fr/wp-content/uploads/2026/07/Ace-avec-collier-couronne.jpg");
	background-position: center top;
	animation: peps-community-float 6.2s ease-in-out infinite 0.4s;
}

.peps-community__float--3 {
	top: 48%;
	left: 4%;
	width: clamp(64px, 9vw, 100px);
	height: clamp(64px, 9vw, 100px);
	transform: rotate(-4deg);
	background-image: url("https://peps4pets.fr/wp-content/uploads/2026/07/Client-avec-collier-Aviron-Bayonnais-.jpg");
	background-position: center 20%;
	animation: peps-community-float 4.8s ease-in-out infinite 0.8s;
}

/* —— Form —— */
.peps-community__form-section {
	padding: 0 clamp(20px, 3vw, 40px) clamp(28px, 3.5vw, 44px);
	scroll-margin-top: 100px;
}

.peps-community__form-card {
	background: #fff;
	border: 1px solid rgba(232, 77, 138, 0.16);
	border-radius: 28px;
	padding: clamp(22px, 3vw, 36px);
	box-shadow: 0 12px 36px rgba(232, 77, 138, 0.07);
}

.peps-community__section-title {
	margin: 0 0 10px !important;
	font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
	font-size: clamp(1.55rem, 2.2vw, 2rem) !important;
	font-weight: 500 !important;
	line-height: 1.15 !important;
	color: #3d2b32 !important;
	text-transform: none !important;
}

.peps-community__form-intro,
.peps-community__gallery-intro {
	margin: 0 0 20px !important;
	font-family: Poppins, "Trebuchet MS", Arial, sans-serif !important;
	font-size: 14px !important;
	line-height: 1.6 !important;
	color: #5a4f55 !important;
}

.peps-community__form-intro p,
.peps-community__gallery-intro p {
	margin: 0 0 0.6em !important;
}

.peps-community__notice {
	margin: 0 0 18px !important;
	padding: 12px 16px;
	border-radius: 14px;
	font-family: Poppins, "Trebuchet MS", Arial, sans-serif !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
}

.peps-community__notice--ok {
	background: #e8f8ef;
	color: #1f6b3a;
	border: 1px solid rgba(31, 107, 58, 0.2);
}

.peps-community__notice--err {
	background: #fff0f3;
	color: #9b1c3a;
	border: 1px solid rgba(155, 28, 58, 0.2);
}

.peps-community__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.peps-community__form {
	position: relative;
	margin: 0;
}

.peps-community__fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 16px;
	margin: 0 0 18px;
}

.peps-community__field {
	margin: 0 !important;
}

.peps-community__field--full {
	grid-column: 1 / -1;
}

.peps-community__field label {
	display: block;
	margin: 0 0 6px !important;
	font-family: Poppins, "Trebuchet MS", Arial, sans-serif !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
	color: #7a6570 !important;
}

.peps-community__field--check label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	text-transform: none !important;
	letter-spacing: 0 !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1.45 !important;
	color: #5a4f55 !important;
	cursor: pointer;
}

.peps-community__field--check input {
	margin-top: 3px;
	flex-shrink: 0;
	accent-color: #e84d8a;
}

.peps-community__field input[type="text"],
.peps-community__field input[type="email"],
.peps-community__field textarea,
.peps-community__field input[type="file"] {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid rgba(232, 77, 138, 0.22);
	border-radius: 14px;
	background: #fffafc;
	font-family: Poppins, "Trebuchet MS", Arial, sans-serif !important;
	font-size: 15px !important;
	color: #3d2b32 !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.peps-community__field input[type="text"],
.peps-community__field input[type="email"],
.peps-community__field textarea {
	padding: 12px 14px;
}

.peps-community__field textarea {
	resize: vertical;
	min-height: 88px;
}

.peps-community__field input[type="file"] {
	padding: 12px;
	background: #fff;
	cursor: pointer;
}

.peps-community__field input:focus,
.peps-community__field textarea:focus {
	outline: none;
	border-color: #e84d8a;
	box-shadow: 0 0 0 3px rgba(232, 77, 138, 0.15);
}

.peps-community__submit-wrap {
	margin: 0 !important;
}

.peps-community__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: linear-gradient(135deg, #e84d8a 0%, #f06a9e 100%) !important;
	color: #fff !important;
	font-family: Poppins, "Trebuchet MS", Arial, sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(232, 77, 138, 0.28);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.peps-community__submit:hover,
.peps-community__submit:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 16px 32px rgba(232, 77, 138, 0.35);
}

/* —— Gallery —— */
.peps-community__gallery {
	padding: clamp(8px, 1.5vw, 16px) clamp(16px, 2.5vw, 32px) clamp(36px, 4vw, 56px);
	background: linear-gradient(180deg, transparent 0%, rgba(255, 240, 250, 0.65) 18%, #fff0fa 100%);
}

.peps-community__gallery-head {
	text-align: center;
	max-width: 40em;
	margin: 0 auto 28px;
	padding: 0 8px;
}

.peps-community__gallery-empty {
	text-align: center;
	font-family: Poppins, "Trebuchet MS", Arial, sans-serif !important;
	color: #7a6570 !important;
}

.peps-community__grid {
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: clamp(10px, 1.6vw, 18px);
}

.peps-community__grid-item {
	margin: 0 !important;
	aspect-ratio: 1;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 10px 24px rgba(96, 69, 81, 0.1);
	transform-origin: center center;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.peps-community__grid-item--1 { transform: rotate(-1.4deg); }
.peps-community__grid-item--2 { transform: rotate(1.1deg); }
.peps-community__grid-item--3 { transform: rotate(-0.6deg); }
.peps-community__grid-item--4 { transform: rotate(1.6deg); }
.peps-community__grid-item--5 { transform: rotate(-1deg); }

.peps-community__grid-item:hover,
.peps-community__grid-item:focus-within {
	transform: rotate(0deg) scale(1.04);
	z-index: 2;
	box-shadow: 0 18px 36px rgba(232, 77, 138, 0.22);
}

.peps-community__grid-link {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.peps-community__grid-img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	transition: transform 0.45s ease;
}

.peps-community__grid-item:hover .peps-community__grid-img {
	transform: scale(1.06);
}

/* —— Lightbox —— */
body.peps-community-lb-open {
	overflow: hidden;
}

.peps-community-lb[hidden] {
	display: none !important;
}

.peps-community-lb {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.peps-community-lb__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(40, 24, 32, 0.82);
	backdrop-filter: blur(4px);
}

.peps-community-lb__figure {
	position: relative;
	z-index: 1;
	margin: 0;
	max-width: min(92vw, 980px);
	max-height: 86vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.peps-community-lb__img {
	display: block;
	max-width: 100%;
	max-height: calc(86vh - 36px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	background: #1a1216;
}

.peps-community-lb__cap {
	font-family: Poppins, "Trebuchet MS", Arial, sans-serif;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.85);
}

.peps-community-lb__close,
.peps-community-lb__nav {
	position: absolute;
	z-index: 2;
	border: 0;
	cursor: pointer;
	color: #fff;
	background: rgba(232, 77, 138, 0.92);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, background 0.2s ease;
}

.peps-community-lb__close:hover,
.peps-community-lb__nav:hover,
.peps-community-lb__close:focus-visible,
.peps-community-lb__nav:focus-visible {
	background: #d63d78;
	transform: scale(1.05);
	outline: none;
}

.peps-community-lb__close {
	top: max(12px, env(safe-area-inset-top));
	right: max(12px, env(safe-area-inset-right));
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 28px;
	line-height: 1;
}

.peps-community-lb__nav {
	top: 50%;
	translate: 0 -50%;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	font-size: 32px;
	line-height: 1;
	font-family: Georgia, serif;
	padding: 0 0 4px;
}

.peps-community-lb__nav--prev {
	left: max(10px, env(safe-area-inset-left));
}

.peps-community-lb__nav--next {
	right: max(10px, env(safe-area-inset-right));
}

@keyframes peps-community-wag {
	0%, 100% { transform: rotate(0deg); }
	30% { transform: rotate(-12deg); }
	60% { transform: rotate(10deg); }
}

@keyframes peps-community-breathe {
	0%, 100% { transform: scale(1); opacity: 0.9; }
	50% { transform: scale(1.06); opacity: 1; }
}

@keyframes peps-community-float {
	0%, 100% { translate: 0 0; }
	50% { translate: 0 -6px; }
}

@media (max-width: 820px) {
	.peps-community__hero {
		grid-template-columns: 1fr;
	}

	.peps-community__hero-visual {
		min-height: 180px;
		order: -1;
	}

	.peps-community__float--3 {
		left: auto;
		right: 42%;
	}
}

@media (max-width: 560px) {
	.peps-community__fields {
		grid-template-columns: 1fr;
	}

	.peps-community__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.peps-community__grid-item--1,
	.peps-community__grid-item--2,
	.peps-community__grid-item--3,
	.peps-community__grid-item--4,
	.peps-community__grid-item--5 {
		transform: none;
	}
}
