*:not(head, head *, style, script, svg, svg *),
*:not(head, head *, style, script, svg, svg *)::before,
*:not(head, head *, style, script, svg, svg *)::after {
	appearance: none;
	box-sizing: border-box;
}

:root {
	--clock-size: min(78vw, 55dvh, 520px);
	--rim-thickness: calc(var(--clock-size) * 0.05);
	--count-size: min(clamp(60px, 19vw, 128px), 20dvh);
	--arc-bg: #444;
	--arc-inner: black;
	--arc-start: #ff9b1f;
	--arc-end: #ff5a0c;
	--marron:#322d2c;
	--beige:#fff1b4;
}

html,
body {
	height: 100%;
	width: 100%;
}

body {
	background-color:#161312;
	margin: 0;
	color: #fff;
	font-family: "fisterra-fora", sans-serif;
	font-weight: 700;
	font-style: normal;
	overflow-x: hidden;
	overflow-y: auto;
	min-height: 100vh;
}

.countdown-title {
	color: var(--beige);
	
	text-align: center;
}
 
h2 { font-size: clamp(1.4rem, 5.5vw, 1.9rem); line-height: 1.2; }

 .poster{
	padding-top: 5px;
	 background: linear-gradient(
        to bottom,
        #3a302c 0%,
        #241d1a 50%,
        #161312 100%);
}

.poster-header{
    text-align:center;
    color:var(--beige);
	
}

.poster-header h1{
    font-family:"fisterra-morte",sans-serif;
    font-size:clamp(2.4rem,9vw,6rem);
    margin:0;
	color:#f47a20;
   }

figure {
	margin: 0;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

#halloween-clock {
	position: relative;
	background-image: radial-gradient(circle at center, #2c2c2c 0%, #050505 100%);
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

#halloween-clock::after {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	--s: 125px;
	--c1: black;
	--c2: #333;

	--_g: var(--c1) 90deg, var(--c2) 0 135deg, #0000 0;
	background: conic-gradient(
			from -45deg at calc(100% / 3) calc(100% / 3),
			var(--c1) 90deg,
			#0000 0
		),
		conic-gradient(from -135deg at calc(100% / 3) calc(2 * 100% / 3), var(--_g)),
		conic-gradient(
			from 135deg at calc(2 * 100% / 3) calc(2 * 100% / 3),
			var(--_g)
		),
		conic-gradient(
			from 45deg at calc(2 * 100% / 3) calc(100% / 3),
			var(--_g),
			var(--c1) 0 225deg,
			var(--c2) 0
		);
	background-size: var(--s) var(--s);
	mix-blend-mode: color-dodge;
	opacity: 0.4;
	z-index: -1;
	content: "";
}

.stage {
	position: relative;
	top: 0;
	width: min(96vw, 1100px);
	min-height: 100vh;
	padding: clamp(12px, 2vmin, 24px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: clamp(24px, 5vh, 48px);
	padding-top: 5vh;
	z-index: 2;
}

.clock {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--clock-size);
	height: var(--clock-size);
	border-radius: 50%;
	background: radial-gradient(
		circle at 50% 50%,
		#fdfdfd 0%,
		#ececec 52%,
		#dadada 100%
	);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5),
		inset 0 8px 12px rgba(255, 255, 255, 0.7),
		inset 0 -8px 12px rgba(0, 0, 0, 0.3);
}

.clock::before {
	content: "";
	position: absolute;
	inset: calc(-1 * var(--rim-thickness));
	border-radius: 50%;
	background: linear-gradient(
		145deg,
		#c7c7c7,
		#f9f9f9 40%,
		#d3d3d3 60%,
		#a5a5a5
	);
	box-shadow: inset 0 8px 12px rgba(255, 255, 255, 0.6),
		inset 0 -8px 12px rgba(0, 0, 0, 0.4);
	z-index: -1;
}

.clock::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	pointer-events: none;
	background: radial-gradient(
		circle at 30% 25%,
		rgba(255, 255, 255, 0.45) 0%,
		rgba(255, 255, 255, 0.1) 40%,
		rgba(255, 255, 255, 0) 75%
	);
	mix-blend-mode: screen;
	z-index: 1;
}

.clock > svg {
	position: absolute;
	width: 50%;
	height: auto;
	fill: #ff921c;
	opacity: 0.4;
	transform-origin: center;
	animation: pumpkin 12s linear infinite;
}

@keyframes pumpkin {
	from {
		transform: rotateZ(0deg);
		filter: hue-rotate(0deg);
	}
	to {
		transform: rotateZ(360deg);
		filter: hue-rotate(360deg);
	}
}

.clock-face {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

.clock-face::after {
	position: absolute;
	width: 65%;
	height: 65%;
	content: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576.454 576.453"%3E%3Cpath d="M288.227,559.506c-72.461,0-140.585-28.218-191.823-79.456S16.948,360.688,16.948,288.227s28.218-140.585,79.456-191.823S215.765,16.948,288.227,16.948s140.585,28.218,191.823,79.456,79.456,119.362,79.456,191.823-28.218,140.585-79.456,191.823-119.362,79.456-191.823,79.456ZM288.227,18.948C139.746,18.948,18.948,139.746,18.948,288.227s120.798,269.279,269.279,269.279,269.279-120.798,269.279-269.279S436.708,18.948,288.227,18.948Z" style="fill:%23231f20;"/%3E%3Cpath d="M288.227,535.978c-66.176,0-128.392-25.771-175.186-72.564s-72.564-109.01-72.564-175.187,25.771-128.392,72.564-175.186,109.01-72.564,175.186-72.564,128.393,25.771,175.187,72.564,72.564,109.01,72.564,175.186-25.771,128.393-72.564,175.187-109.01,72.564-175.187,72.564ZM288.227,42.476c-135.507,0-245.75,110.243-245.75,245.75s110.243,245.751,245.75,245.751,245.751-110.243,245.751-245.751S423.735,42.476,288.227,42.476Z" style="fill:%23231f20;"/%3E%3Cpath d="M575.454,286.866v2.721h-80.952v-2.721h80.952M576.454,285.866h-82.952v4.721h82.952v-4.721h0Z" style="fill:%23231f20;"/%3E%3Cpath d="M536.29,143.352l1.363,2.355-70.064,40.55-1.363-2.355,70.064-40.55M536.655,141.986l-.865.501-70.064,40.55-.865.501.501.865,1.363,2.355.501.865.866-.501,70.064-40.55.865-.501-.501-.865-1.363-2.355-.501-.866h0Z" style="fill:%23231f20;"/%3E%3Cpath d="M430.746,38.8l2.355,1.363-40.55,70.064-2.355-1.363,40.55-70.064M430.381,37.434l-.501.866-40.55,70.064-.501.865.865.501,2.355,1.363.865.501.501-.866,40.55-70.064.501-.865-.865-.501-2.355-1.363-.866-.501h0Z" style="fill:%23231f20;"/%3E%3Cpath d="M289.587,1v80.952h-2.721V1h2.721M290.587,0h-4.721v82.952h4.721V0h0Z" style="fill:%23231f20;"/%3E%3Cpath d="M145.708,38.8l40.55,70.064-2.355,1.363-40.55-70.064,2.355-1.363M146.072,37.434l-.865.501-2.355,1.363-.865.501.501.865,40.55,70.064.501.865.865-.501,2.355-1.363.865-.501-.501-.866-40.55-70.064-.501-.866h0Z" style="fill:%23231f20;"/%3E%3Cpath d="M40.163,143.352l70.064,40.55-1.363,2.355-70.064-40.55,1.363-2.355M39.799,141.986l-.501.866-1.363,2.355-.501.865.866.501,70.064,40.55.865.501.501-.865,1.363-2.355.501-.865-.866-.501-70.064-40.55-.865-.501h0Z" style="fill:%23231f20;"/%3E%3Cpath d="M81.952,286.866v2.721H1v-2.721h80.952M82.952,285.866H0v4.721h82.952v-4.721h0Z" style="fill:%23231f20;"/%3E%3Cpath d="M108.864,390.196l1.363,2.355-70.064,40.55-1.363-2.355,70.064-40.55M109.229,388.829l-.865.501-70.064,40.55-.866.501.501.866,1.363,2.355.501.865.865-.501,70.064-40.55.865-.501-.501-.865-1.363-2.355-.501-.865h0Z" style="fill:%23231f20;"/%3E%3Cpath d="M183.903,466.226l2.355,1.363-40.55,70.064-2.355-1.363,40.55-70.064M183.538,464.86l-.501.866-40.55,70.064-.501.865.865.501,2.355,1.363.865.501.501-.865,40.55-70.064.501-.865-.865-.501-2.355-1.363-.865-.501h0Z" style="fill:%23231f20;"/%3E%3Cpath d="M289.587,494.501v80.952h-2.721v-80.952h2.721M290.587,493.501h-4.721v82.952h4.721v-82.952h0Z" style="fill:%23231f20;"/%3E%3Cpath d="M392.551,466.226l40.55,70.064-2.355,1.363-40.55-70.064,2.355-1.363M392.915,464.86l-.866.501-2.355,1.363-.865.501.501.865,40.55,70.064.501.865.866-.501,2.355-1.363.866-.501-.501-.866-40.55-70.064-.501-.866h0Z" style="fill:%23231f20;"/%3E%3Cpath d="M467.589,390.196l70.064,40.55-1.363,2.355-70.064-40.55,1.363-2.355M467.225,388.829l-.501.865-1.363,2.355-.501.865.866.501,70.064,40.55.865.501.501-.865,1.363-2.355.501-.866-.865-.501-70.064-40.55-.865-.501h0Z" style="fill:%23231f20;"/%3E%3C/svg%3E');
	z-index: -1;
}

.hand {
	position: absolute;
	bottom: 50%;
	left: 50%;
	transform-origin: bottom center;
	transform: translateX(-50%) rotate(0deg);
	border-radius: 4px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
	z-index: 2;
}

.hand.hour {
	width: calc(var(--clock-size) * 0.026);
	height: calc(var(--clock-size) * 0.26);
	background: linear-gradient(to bottom, #555, #222);
}

.hand.minute {
	width: calc(var(--clock-size) * 0.018);
	height: calc(var(--clock-size) * 0.38);
	background: linear-gradient(to bottom, #666, #333);
}

.hand.second {
	width: calc(var(--clock-size) * 0.008);
	height: calc(var(--clock-size) * 0.44);
	background: linear-gradient(to bottom, #e74c3c, #b83a2a);
}

.pivot {
	position: absolute;
	top: 50%;
	left: 50%;
	width: calc(var(--clock-size) * 0.06);
	height: calc(var(--clock-size) * 0.06);
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: radial-gradient(circle, #666 0%, #222 70%, #000 100%);
	box-shadow: inset 0 4px 4px rgba(255, 255, 255, 0.5),
		inset 0 -4px 4px rgba(0, 0, 0, 0.6);
}

.marker {
	position: absolute;
	transform: translate(-50%, -50%);
	font-size: calc(var(--clock-size) * 0.08);
	line-height: 1;
	pointer-events: none;
	filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.5));
}

.countdown-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: clamp(8px, 2.5vw, 24px);
	width: 100%;
}

.countdown-item {
	display: flex;
	align-items: center;
	justify-content: center;
}

.circle {
	position: relative;
	width: var(--count-size);
	height: var(--count-size);
	border-radius: 50%;
	background: conic-gradient(
		var(--arc-start) 0deg,
		var(--arc-end) var(--value),
		var(--arc-bg) var(--value) 360deg
	);
	display: flex;
	align-items: center;
	justify-content: center;
}

.circle::before {
	content: "";
	position: absolute;
	width: 80%;
	height: 80%;
	border-radius: 50%;
	background: var(--arc-inner);
	z-index: 1;
}

.inner {
	position: relative;
	z-index: 2;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.number {
	font-size: clamp(16px, 5vw, 28px);
	line-height: 100%;
	font-weight: 800;
	color: white;
}

.label {
	font-size: clamp(8px, 2.4vw, 12px);
	letter-spacing: 0.06em;
	color: #ccc;
	font-style: normal;
}

@media (max-height: 310px) {
	.label span {
		display: none;
	}
}

@media (max-height: 210px) {
	.circle {
		background: unset;
	}
	.circle::before {
		display: none;
	}
}
.kids-activities {
    padding: 80px 20px;
    background: linear-gradient(
        to bottom,
        #141212,
        #3c1f15
    );
}


.activities-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.kids-activities h2 {
    font-family: "fisterra-morte", sans-serif;
    color: #f47a20;
    margin-bottom: 20px;
}

.activities-intro,
.activities-footer {
    color: var(--beige);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 10px auto 40px;
    line-height: 1.6;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.activity-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,241,180,0.15);
    border-radius: 20px;
    padding: 30px 20px;
    color: var(--beige);
    backdrop-filter: blur(4px);
    transition: 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    border-color: #f47a20;
    box-shadow: 0 0 20px rgba(244,122,32,0.25);
}

.activity-card {
    font-size: 20px;
}

.activity-card h3 {
    margin: 15px 0;
    color: #f47a20;
    font-family: "fisterra-fora", sans-serif;
}

.activity-card p {
    margin: 0;
    line-height: 1.5;
}

.strange-banquet {
    padding: 80px 20px;
    background: linear-gradient(
        to bottom,
        #3c1f15,
        #0b0a0a
    );
}

.banquet-content {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.strange-banquet h2 {
    font-family: "fisterra-morte", sans-serif;
    color: #f47a20;
    margin-bottom: 25px;
}

.banquet-intro,
.banquet-footer {
    color: var(--beige);
    line-height: 1.8;
    font-size: 1.1rem;
}

.banquet-card {
    margin: 40px auto;
    padding: 35px;
    max-width: 700px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,241,180,.15);
    border-radius: 20px;
    color: var(--beige);
    line-height: 1.8;
    box-shadow: 0 0 25px rgba(244,122,32,.08);
}
.whatsapp-community {
    padding: 80px 20px;
    background: linear-gradient(
        to bottom,
        #0b0a0a,
        #3d231c
    );
}

.community-content {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.whatsapp-community h2 {
    font-family: "fisterra-morte", sans-serif;
    color: #25D366;
    margin-bottom: 25px;
}

.community-card {
    max-width: 700px;
    margin: 40px auto;
    padding: 40px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,241,180,.15);
    border-radius: 20px;
    color: var(--beige);
    line-height: 1.8;
}

.community-intro,
.community-footer {
    color: var(--beige);
    font-size: 1.1rem;
}

.whatsapp-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-weight: bold;
    transition: .3s;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    background: #1ebe5b;
    box-shadow: 0 0 20px rgba(37,211,102,.4);
}

.site-footer {
    padding: 80px 20px 40px;
    background: #0a0909;
    text-align: center;
    border-top: 1px solid rgba(255, 241, 180, 0.15);
}

.footer-content {
    max-width: 900px;
    margin: auto;
}

.site-footer h2 {
    font-family: "fisterra-morte", sans-serif;
    color: #f47a20;
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 30px;
}

.footer-village {
    color: var(--beige);
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-details p {
    color: var(--beige);
    margin: 12px 0;
    font-size: 1rem;
}

.footer-divider {
    width: 140px;
    height: 2px;
    background: rgba(255, 241, 180, 0.4);
    margin: 35px auto;
}

.footer-note {
    color: var(--beige);
    opacity: .9;
    margin-bottom: 15px;
}

.footer-copyright {
    color: #8f8670;
    font-size: 0.9rem;
}



/* =====================================================
   RESPONSIVE
   ===================================================== */

/* Le conteneur de l'horloge s'adapte à son contenu (plus de hauteur forcée) */
body { min-height: 100dvh; }
#halloween-clock { height: auto; }
.stage {
	min-height: 0;
	padding-bottom: clamp(32px, 6vh, 64px);
}

/* Affiche / titre */
.poster {
	padding: 12px max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right));
}
.poster-header p {
	margin: 0.4em 0;
	font-size: clamp(0.8rem, 3.4vw, 1.1rem);
	letter-spacing: 0.06em;
}
.poster-header h1 { line-height: 1; }
.countdown-title {
	padding-inline: 8px;
	margin: 12px 0 20px;
	text-wrap: balance;
}

/* Sections : espacements fluides */
.kids-activities,
.strange-banquet,
.whatsapp-community {
	padding: clamp(48px, 10vw, 80px) max(16px, env(safe-area-inset-left)) clamp(48px, 10vw, 80px) max(16px, env(safe-area-inset-right));
}
.site-footer {
	padding: clamp(48px, 10vw, 80px) 16px calc(40px + env(safe-area-inset-bottom));
}

/* Grille d'activités : ne déborde jamais sur petits écrans */
.activities-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: clamp(14px, 3vw, 25px);
}
.activity-card { padding: clamp(20px, 5vw, 30px) 16px; }
.activities-intro,
.activities-footer { margin-bottom: clamp(24px, 6vw, 40px); }

/* Cartes de texte */
.banquet-card { padding: clamp(20px, 5vw, 35px); margin-block: clamp(24px, 6vw, 40px); }
.community-card { padding: clamp(20px, 6vw, 40px); margin-block: clamp(24px, 6vw, 40px); }
.banquet-card p,
.community-card p { margin: 0 0 1em; }

/* Bouton WhatsApp : texte long qui passe à la ligne, zone tactile confortable */
.whatsapp-btn {
	max-width: 100%;
	padding: 14px clamp(18px, 5vw, 30px);
	font-size: clamp(0.95rem, 3.6vw, 1.1rem);
	line-height: 1.4;
	text-align: center;
}

/* Pied de page */
.footer-details p { overflow-wrap: anywhere; }

/* Petits écrans */
@media (max-width: 480px) {
	.activity-card { font-size: 18px; }
	.banquet-intro,
	.banquet-footer,
	.community-intro,
	.community-footer,
	.activities-intro,
	.activities-footer { font-size: 1rem; line-height: 1.6; }
}

/* Écrans tactiles : pas d'effet de survol « collant » */
@media (hover: none) {
	.activity-card:hover,
	.whatsapp-btn:hover { transform: none; box-shadow: none; }
}

/* Accessibilité : réduction des animations */
@media (prefers-reduced-motion: reduce) {
	.clock > svg { animation: none; }
	.activity-card,
	.whatsapp-btn { transition: none; }
}
#music-btn {
    position: fixed;
    bottom: 60px;
    right: 20px;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    background: #f47a20;
    color: white;
    cursor: pointer;
    z-index: 999;
}