/*
Theme Name: Fête d'Anniversaire du Chat
Author: WordPress Telex
Description: A whimsical, confetti-strewn celebration theme for the most important birthday of the year — your cat's. Warm peach tones, playful typography, and joyful layouts.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: telex-fete-anniversaire-chat
Tags: block-theme, full-site-editing
*/

/* ── Animations ── */

@keyframes confetti-drift {
	0% { transform: translateY(0) rotate(0deg); opacity: 0.85; }
	50% { transform: translateY(-12px) rotate(8deg); opacity: 1; }
	100% { transform: translateY(0) rotate(0deg); opacity: 0.85; }
}

@keyframes confetti-drift-alt {
	0% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
	50% { transform: translateY(-8px) rotate(-6deg); opacity: 1; }
	100% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
}

@keyframes fade-in-up {
	from { opacity: 0; transform: translateY(30px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes gentle-wobble {
	0%, 100% { transform: rotate(-2deg); }
	50% { transform: rotate(2deg); }
}

@keyframes float-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

/* ── Global ── */

body {
	overflow-x: hidden;
}

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* ── Header ── */

.site-header-inner {
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.site-header-inner a {
	text-decoration: none !important;
}

.site-header-inner .wp-block-site-title a {
	transform: rotate(-3deg);
	display: inline-block;
	transition: transform 0.3s ease;
}

.site-header-inner .wp-block-site-title a:hover {
	transform: rotate(0deg);
}

/* ── Confetti decorations ── */

.confetti-dot {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	z-index: 5;
	animation: confetti-drift 4s ease-in-out infinite;
}

.confetti-square {
	position: absolute;
	border-radius: 3px;
	pointer-events: none;
	z-index: 5;
	animation: confetti-drift-alt 5s ease-in-out infinite;
}

/* ── Invitation card ── */

.invitation-card {
	background: rgba(255, 248, 242, 0.88);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 3px dashed #F4A7B9;
	border-radius: 30px;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12), inset 0 0 0 8px rgba(255, 255, 255, 0.5);
	animation: fade-in-up 0.8s ease-out both;
	animation-delay: 0.4s;
	max-width: 400px;
}

.rsvp-form-wrapper.invitation-card {
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

/* ── Torn paper divider ── */

.torn-paper-divider {
	position: relative;
	overflow: hidden;
}

.torn-paper-divider::before {
	content: "";
	display: block;
	width: 100%;
	height: 50px;
	background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,30 Q30,10 60,28 T120,25 T180,30 T240,22 T300,28 T360,20 T420,30 T480,25 T540,28 T600,20 T660,30 T720,22 T780,28 T840,25 T900,30 T960,22 T1020,28 T1080,25 T1140,30 T1200,22 L1200,60 L0,60 Z' fill='%23FFF8F2'/%3E%3C/svg%3E") repeat-x bottom / 1200px 60px;
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	z-index: 10;
}

.torn-paper-divider-pink::before {
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,30 Q30,10 60,28 T120,25 T180,30 T240,22 T300,28 T360,20 T420,30 T480,25 T540,28 T600,20 T660,30 T720,22 T780,28 T840,25 T900,30 T960,22 T1020,28 T1080,25 T1140,30 T1200,22 L1200,60 L0,60 Z' fill='%23FDE8ED'/%3E%3C/svg%3E");
}

.torn-paper-divider-mint::before {
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,30 Q30,10 60,28 T120,25 T180,30 T240,22 T300,28 T360,20 T420,30 T480,25 T540,28 T600,20 T660,30 T720,22 T780,28 T840,25 T900,30 T960,22 T1020,28 T1080,25 T1140,30 T1200,22 L1200,60 L0,60 Z' fill='%23E0F7ED'/%3E%3C/svg%3E");
}

/* ── Equal cards ── */

.equal-cards > .wp-block-column {
	display: flex;
	flex-direction: column;
	flex-grow: 0;
}

.equal-cards > .wp-block-column > .wp-block-group {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.equal-cards .cta-bottom {
	margin-top: auto;
	justify-content: center;
}

/* ── Activity card hover ── */

.activity-card {
	border-radius: 24px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* ── Cat name watermark ── */

.cat-name-watermark {
	-webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 40%, transparent 100%);
	mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 40%, transparent 100%);
	pointer-events: none;
}

/* ── Section entrance animations ── */

.section-animate {
	animation: fade-in-up 0.7s ease-out both;
}

.wobble-gentle {
	animation: gentle-wobble 6s ease-in-out infinite;
}

.float-bob {
	animation: float-bob 3s ease-in-out infinite;
}

/* ── Feature icon circles ── */

.icon-circle {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	line-height: 1;
	margin-left: auto;
	margin-right: auto;
}

/* ── RSVP form styling ── */

.rsvp-form-wrapper input[type="text"],
.rsvp-form-wrapper input[type="email"],
.rsvp-form-wrapper textarea,
.rsvp-form-wrapper select {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 0.85rem 1.25rem;
	border: 2px solid #F4A7B9;
	border-radius: 16px;
	font-family: 'Nunito', 'Helvetica Neue', sans-serif;
	font-size: 1rem;
	color: #4A3B32;
	background: #FFFFFF;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	outline: none;
	box-sizing: border-box;
	margin-bottom: 1.5rem;
}

.rsvp-form-wrapper textarea {
	resize: vertical;
	min-height: 120px;
}

.rsvp-form-wrapper input:focus,
.rsvp-form-wrapper textarea:focus,
.rsvp-form-wrapper select:focus {
	border-color: #F7C59F;
	box-shadow: 0 0 0 4px rgba(247, 197, 159, 0.3);
}

.rsvp-form-wrapper label {
	font-weight: 700;
	display: block;
	margin-bottom: 0.4rem;
}

/* ── Gallery rounded images ── */

.gallery-rounded figure img {
	border-radius: 20px;
}

/* ── Footer paw prints ── */

.footer-paw {
	opacity: 0.12;
	font-size: 3rem;
	line-height: 1;
}