/*
Theme Name: Tempo Nuit
Theme URI: https://tempo-evenementiel.fr/
Author: Tempo Évènementiel
Description: Site une page pour Tempo Évènementiel : ambiance nuit, mobile d'abord, portfolio à balayer vers Instagram.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Version: 2.2.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tempo-nuit
*/

/* Couleurs, polices et tailles sont dans theme.json. Ici : mise en page et mouvements. */

:root {
	--tn-night: var(--wp--preset--color--contrast);
	--tn-panel: var(--wp--preset--color--muted);
	--tn-panel-2: var(--wp--preset--color--panel-2);
	--tn-ink: var(--wp--preset--color--base);
	--tn-muted: var(--wp--preset--color--grey);
	--tn-amber: var(--wp--preset--color--primary);
	--tn-ember: var(--wp--preset--color--primary-dark);
	--tn-on-amber: var(--wp--preset--color--on-primary);
	--tn-line: rgba(255, 236, 214, .10);
	--tn-glow: rgba(249, 164, 82, .38);
	--tn-display: var(--wp--preset--font-family--unbounded);
	--tn-mono: var(--wp--preset--font-family--mono);
	--tn-gutter-l: var(--wp--style--root--padding-left, clamp(16px, 5vw, 56px));
	--tn-gutter-r: var(--wp--style--root--padding-right, clamp(16px, 5vw, 56px));
	--tn-radius: 18px;
	--tn-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--tn-ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

html {
	-webkit-tap-highlight-color: transparent;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 120px;
}
body { overflow-x: clip; }
::selection { background: var(--tn-amber); color: var(--tn-on-amber); }
:focus-visible { outline: 2px solid var(--tn-amber); outline-offset: 3px; }
a, button, .wp-element-button, label { touch-action: manipulation; }
.wp-site-blocks > * { margin-block: 0; }
.tempo-onepage > * { margin-block: 0 !important; }

/* ---------- Typo commune ---------- */
/* En flex (pas inline-flex) : sinon l'alignement de l'Éditeur et la largeur du contenu ne s'appliquent pas. */
.tempo-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font: 500 12px/1.2 var(--tn-mono);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--tn-amber);
}
.tempo-eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.tempo-eyebrow.has-text-align-center { justify-content: center; }
.tempo-eyebrow.has-text-align-right { justify-content: flex-end; }
.tempo-lead { color: var(--tn-muted); font-size: clamp(16px, 2.1vw, 18px); max-width: 52ch; }
.tempo-muted { color: var(--tn-muted); }
h1, h2, h3 { text-wrap: balance; }
h2.wp-block-heading { line-height: 1.02; }

/* ---------- Boutons : retour au toucher ---------- */
.wp-element-button {
	transition: transform 160ms var(--tn-ease-out), box-shadow 200ms ease, background-color 200ms ease;
	-webkit-user-select: none;
	user-select: none;
}
.wp-element-button:active { transform: scale(0.97); }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: rgba(255, 255, 255, .06);
	color: var(--tn-ink);
	border: 0;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24);
	padding: 1.05em 1.6em;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
@media (hover: hover) and (pointer: fine) {
	.wp-block-button:not(.is-style-outline) > .wp-element-button:hover { box-shadow: 0 0 0 1px var(--tn-amber), 0 10px 40px -8px var(--tn-glow); color: var(--tn-on-amber); }
	.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); color: var(--tn-ink); }
}

/* ---------- En-tête fixe ---------- */
.wp-site-blocks > .wp-block-template-part:has(> .tempo-top) {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	z-index: 50;
}
.tempo-top {
	position: relative;
	isolation: isolate;
	padding-block: 12px;
}
/* Fond et flou sur un pseudo-élément : un backdrop-filter sur l'en-tête lui-même
   enfermerait le menu mobile plein écran (position fixe) dans la hauteur de l'en-tête. */
.tempo-top::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	transition: background-color 300ms ease, box-shadow 300ms ease;
}
.home:not(.tempo-scrolled) .tempo-top::before {
	background: linear-gradient(rgba(11, 10, 9, .65), rgba(11, 10, 9, 0));
}
.tempo-scrolled .tempo-top::before,
body:not(.home) .tempo-top::before {
	background: rgba(11, 10, 9, .78);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
	box-shadow: 0 1px 0 var(--tn-line);
}
.tempo-top-bar { min-height: 52px; }
.tempo-logo { margin: 0; flex: none; }
.tempo-logo img { height: auto; }
/* L'en-tête ne contient plus le logo (il est dans le héro). Hauteur recalculée par assets/tempo.js. */
:root { --tn-header-h: 76px; }
.tempo-top-actions { gap: 8px; }

.tempo-nav .wp-block-navigation__container { gap: 2px; }
.tempo-nav .wp-block-navigation-item__content {
	color: var(--tn-muted);
	padding: 10px 14px;
	border-radius: 999px;
	text-decoration: none;
	transition: color 200ms ease, background-color 200ms ease;
}
.tempo-nav .is-current > .wp-block-navigation-item__content { color: var(--tn-ink); background: rgba(255, 255, 255, .07); }
@media (hover: hover) and (pointer: fine) {
	.tempo-nav .wp-block-navigation-item__content:hover { color: var(--tn-ink); }
}
.tempo-nav .wp-block-navigation__responsive-container-open {
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	/* Pas de « display » ici : WordPress masque ce bouton au-delà de 600 px. */
	align-items: center;
	justify-content: center;
	transition: transform 160ms var(--tn-ease-out);
}
.tempo-nav .wp-block-navigation__responsive-container-open:active { transform: scale(0.94); }

/* Menu mobile plein écran (overlay natif du bloc Navigation) */
.tempo-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: calc(16px + env(safe-area-inset-top, 0px)) var(--tn-gutter-r) calc(24px + env(safe-area-inset-bottom, 0px)) var(--tn-gutter-l);
	background: rgba(11, 10, 9, .97) !important;
}
.tempo-nav .is-menu-open .wp-block-navigation__responsive-container-content { justify-content: flex-end; }
.tempo-nav .is-menu-open .wp-block-navigation__container { align-items: flex-start; gap: 6px; }
.tempo-nav .is-menu-open .wp-block-navigation-item__content {
	font: 700 clamp(32px, 10vw, 52px)/1.1 var(--tn-display);
	letter-spacing: -0.02em;
	color: var(--tn-ink);
	padding: 4px 0;
	background: none;
}
.tempo-nav .is-menu-open .wp-block-navigation-item {
	animation: tempo-rise-in 420ms var(--tn-ease-out) both;
}
.tempo-nav .is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: 50ms; }
.tempo-nav .is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: 100ms; }
.tempo-nav .is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: 150ms; }
@keyframes tempo-rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.tempo-top-cta .wp-element-button { padding: .8em 1.3em; font-size: 14px; }
@media (max-width: 899px) { .wp-block-buttons.tempo-top-cta { display: none; } }

/* Téléphone (menu en bouton) : pas de barre, seulement le bouton menu centré qui flotte. */
@media (max-width: 599px) {
	.tempo-top { padding-block: 10px; pointer-events: none; }
	.tempo-top::before { display: none; }
	.tempo-top-bar { justify-content: center !important; min-height: 0; }
	.tempo-top-actions { pointer-events: auto; }
	.tempo-nav .wp-block-navigation__responsive-container-open {
		background: rgba(11, 10, 9, .72);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
		box-shadow: inset 0 0 0 1px var(--tn-line), 0 6px 20px rgba(0, 0, 0, .35);
	}
	/* La croix prend exactement la place du bouton menu ; les liens sont centrés. */
	.tempo-nav .wp-block-navigation__responsive-container-close {
		position: fixed;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 10px);
		right: auto;
		left: 50%;
		transform: translateX(-50%);
		width: 44px;
		height: 44px;
		border-radius: 999px;
		background: rgba(255, 255, 255, .08);
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.tempo-nav .is-menu-open .wp-block-navigation__responsive-container-content,
	.tempo-nav .is-menu-open .wp-block-navigation__container { align-items: center !important; text-align: center; }
}

/* ---------- Héro ---------- */
.tempo-hero.wp-block-cover {
	min-height: min(100svh, 900px);
	padding: 0 var(--tn-gutter-r) 0 var(--tn-gutter-l);
	align-items: flex-end;
	justify-content: flex-start;
	isolation: isolate;
	overflow: hidden;
}
.tempo-hero .wp-block-cover__image-background {
	transform: scale(1.08);
	animation: tempo-settle 14s var(--tn-ease-out) forwards;
}
@keyframes tempo-settle { to { transform: scale(1); } }
.tempo-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	opacity: .5;
	background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 75%, transparent 100%);
	mask-image: linear-gradient(180deg, transparent 30%, #000 75%, transparent 100%);
}
.tempo-hero .wp-block-cover__inner-container {
	z-index: 2;
	width: 100%;
	padding-block: calc(var(--tn-header-h) + 32px) clamp(48px, 9vw, 96px);
	display: grid;
	gap: 22px;
}
.tempo-hero .wp-block-cover__inner-container > * { margin: 0 !important; }
/* Logo du héro : taille et position réglées dans l'Éditeur (bloc Image), plafonné sur téléphone. */
.tempo-hero .wp-block-image { justify-self: start; }
.tempo-hero .wp-block-image.aligncenter { justify-self: center; }
.tempo-hero .wp-block-image.alignright { justify-self: end; }
.tempo-hero-logo img { height: auto; max-width: 80vw; }
.tempo-live {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px 8px 12px;
	border-radius: 999px;
	background: rgba(11, 10, 9, .5);
	box-shadow: inset 0 0 0 1px var(--tn-line);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font: 500 12px/1.2 var(--tn-mono);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tn-ink);
}
.tempo-live::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex: none;
	background: var(--tn-ember);
	animation: tempo-pulse 1.875s ease-out infinite;
}
@keyframes tempo-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 28, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 122, 28, 0); } }
.tempo-hero h1 {
	font-size: clamp(28px, 8vw, 92px);
	line-height: .98;
	font-weight: 800;
	letter-spacing: -0.035em;
	max-width: 15ch;
	color: var(--tn-ink);
	-webkit-hyphens: auto;
	hyphens: auto;
	overflow-wrap: break-word;
}
.tempo-hero h1 em {
	font-style: normal;
	color: var(--tn-amber);
	background: linear-gradient(100deg, #ffd29a 0%, var(--tn-amber) 40%, var(--tn-ember) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	filter: drop-shadow(0 0 26px rgba(249, 164, 82, .35));
}
.tempo-hero .tempo-lead { color: #d9d0c5; }
.tempo-hero-ctas { gap: 12px; margin-top: 6px !important; }

/* ---------- Bandeau défilant ---------- */
.tempo-marquee {
	border-block: 1px solid var(--tn-line);
	background: var(--tn-panel);
	overflow: hidden;
	padding-block: 18px;
}
.tempo-marquee-track { display: flex; width: max-content; animation: tempo-marquee 38s linear infinite; }
.tempo-marquee-list { display: flex; gap: 28px; margin: 0 !important; padding: 0 14px; list-style: none; }
.tempo-marquee-list li {
	display: flex;
	align-items: center;
	gap: 28px;
	white-space: nowrap;
	font: 700 clamp(20px, 3.4vw, 34px)/1 var(--tn-display);
	letter-spacing: -0.02em;
}
/* Même dégradé que « Nord Pas-de-Calais » dans le héro (sans halo : le bandeau bouge en continu). */
.tempo-marquee-list li:nth-child(even) {
	color: var(--tn-amber);
	background: linear-gradient(100deg, #ffd29a 0%, var(--tn-amber) 40%, var(--tn-ember) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.tempo-marquee-list li::after {
	content: "";
	width: 10px;
	height: 10px;
	flex: none;
	background: var(--tn-amber);
	transform: rotate(45deg);
	box-shadow: 0 0 14px var(--tn-glow);
}
@keyframes tempo-marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.tempo-section { padding-block: clamp(72px, 12vw, 140px); }
.tempo-head { display: grid; gap: 16px; margin-bottom: clamp(28px, 5vw, 48px); }
.tempo-head > * { margin: 0 !important; }

/* Carrousels natifs : défilement au doigt, aimantation */
.tempo-rail {
	display: grid;
	grid-auto-flow: column;
	gap: 14px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	padding-left: var(--tn-gutter-l);
	padding-right: var(--tn-gutter-r);
	scroll-padding-inline: var(--tn-gutter-l) var(--tn-gutter-r);
	scrollbar-width: none;
}
.tempo-rail::-webkit-scrollbar { display: none; }
.tempo-rail > * { scroll-snap-align: start; margin: 0 !important; }

/* ---------- Prestations ---------- */
.tempo-services { grid-auto-columns: min(82vw, 340px); padding-bottom: 6px; }
.tempo-card.wp-block-cover {
	min-height: 460px;
	padding: 22px;
	border-radius: var(--tn-radius);
	align-items: flex-end;
	overflow: hidden;
}
.tempo-card::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px var(--tn-line);
	pointer-events: none;
	z-index: 2;
}
.tempo-card .wp-block-cover__image-background { transition: transform 700ms var(--tn-ease-out); }
.tempo-card .wp-block-cover__inner-container { display: grid; gap: 12px; width: 100%; }
.tempo-card .wp-block-cover__inner-container > * { margin: 0 !important; }
.tempo-card h3 { font-size: 22px; line-height: 1.1; color: var(--tn-ink); }
.tempo-card p { font-size: 15px; color: #d3cabf; }
.tempo-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.tempo-tags li {
	font: 500 11px/1 var(--tn-mono);
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 7px 9px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	color: var(--tn-ink);
}
.tempo-card-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.tempo-card-links a {
	position: relative;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 0;
	font-weight: 700;
	font-size: 14px;
	color: var(--tn-amber);
	text-decoration: none;
}
.tempo-card-links a + a { color: var(--tn-ink); }
.tempo-card-links a::after { content: "→"; transition: transform 200ms var(--tn-ease-out); }
@media (hover: hover) and (pointer: fine) {
	.tempo-card:hover .wp-block-cover__image-background { transform: scale(1.04); }
	.tempo-card-links a:hover::after { transform: translateX(4px); }
}
@media (min-width: 1000px) {
	.tempo-services {
		grid-auto-flow: row;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		overflow: visible;
		max-width: 1240px;
		margin-inline: auto !important;
		padding-inline: 0;
	}
	.tempo-card.wp-block-cover { min-height: 540px; }
}

/* ---------- Chiffres ---------- */
.tempo-proof {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin-top: clamp(40px, 7vw, 72px) !important;
	background: var(--tn-line);
	border-radius: var(--tn-radius);
	overflow: hidden;
	box-shadow: inset 0 0 0 1px var(--tn-line);
}
.tempo-proof > * { margin: 0 !important; background: var(--tn-night); padding: clamp(20px, 3.4vw, 34px); display: grid; gap: 8px; align-content: start; min-width: 0; }
.tempo-proof p { margin: 0 !important; }
.tempo-proof-num {
	font: 800 clamp(30px, 6vw, 56px)/1 var(--tn-display);
	letter-spacing: -0.03em;
	color: var(--tn-amber);
	font-variant-numeric: tabular-nums;
}
.tempo-proof-label { font: 500 12px/1.4 var(--tn-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tn-muted); }
@media (min-width: 900px) { .tempo-proof { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Portfolio ---------- */
.tempo-portfolio { background: radial-gradient(80% 60% at 70% 0%, rgba(249, 164, 82, .10), transparent 70%), var(--tn-night); }
.tempo-shots { display: flex; }
.tempo-shots > * { flex: none; }
.tempo-shot.wp-block-image {
	position: relative;
	height: clamp(340px, 62svh, 600px);
	aspect-ratio: 3 / 2;
	border-radius: var(--tn-radius);
	overflow: hidden;
	background: var(--tn-panel);
}
.tempo-shot.is-tall { aspect-ratio: 2 / 3; }
.tempo-shot img { width: 100%; height: 100% !important; object-fit: cover; }
.tempo-shot figcaption {
	position: absolute;
	left: 12px;
	bottom: 12px;
	margin: 0;
	padding: 8px 10px;
	border-radius: 999px;
	background: rgba(11, 10, 9, .6);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font: 500 11px/1 var(--tn-mono);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--tn-ink);
}
.tempo-insta {
	position: relative;
	height: clamp(340px, 62svh, 600px);
	aspect-ratio: 2 / 3;
	padding: 28px;
	border-radius: var(--tn-radius);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 10px;
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(255, 122, 28, .55), transparent 55%),
		radial-gradient(110% 80% at 0% 100%, rgba(249, 164, 82, .35), transparent 60%),
		var(--tn-panel-2);
	box-shadow: inset 0 0 0 1px rgba(249, 164, 82, .35);
	transition: transform 160ms var(--tn-ease-out);
}
.tempo-insta::before {
	content: "";
	position: absolute;
	top: 28px;
	left: 28px;
	width: 44px;
	height: 44px;
	background: var(--tn-ink);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='%23000' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='%23000' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tempo-insta:active { transform: scale(0.98); }
.tempo-insta > * { margin: 0 !important; }
.tempo-insta-title a {
	color: var(--tn-ink);
	text-decoration: none;
	font: 700 clamp(24px, 3.4vw, 32px)/1.05 var(--tn-display);
	letter-spacing: -0.02em;
}
.tempo-insta-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tempo-insta-handle { font: 500 13px/1.4 var(--tn-mono); opacity: .85; }

/* Encart Instagram compact (composition tempo/instagram, pages prestations) */
.tempo-insta-mini {
	position: relative;
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 16px;
	row-gap: 2px;
	max-width: 620px;
	margin: clamp(32px, 6vw, 56px) auto 0 !important;
	padding: 18px 22px;
	border-radius: var(--tn-radius);
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(255, 122, 28, .5), transparent 55%),
		radial-gradient(110% 120% at 0% 100%, rgba(249, 164, 82, .3), transparent 60%),
		var(--tn-panel-2);
	box-shadow: inset 0 0 0 1px rgba(249, 164, 82, .35);
	transition: transform 160ms var(--tn-ease-out), box-shadow 200ms ease;
}
.tempo-insta-mini::before {
	content: "";
	grid-column: 1;
	grid-row: 1 / 3;
	width: 40px;
	height: 40px;
	background: var(--tn-ink);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='%23000' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='%23000' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tempo-insta-mini::after {
	content: "→";
	grid-column: 3;
	grid-row: 1 / 3;
	font-size: 22px;
	color: var(--tn-amber);
	transition: transform 200ms var(--tn-ease-out);
}
.tempo-insta-mini > * { grid-column: 2; margin: 0 !important; }
.tempo-insta-mini .tempo-insta-title a { font-size: clamp(17px, 2.4vw, 21px); }
.tempo-insta-mini .tempo-insta-handle { font-size: 12px; color: var(--tn-ink); }
.tempo-insta-mini:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
	.tempo-insta-mini:hover { box-shadow: inset 0 0 0 1px var(--tn-amber), 0 12px 40px -12px var(--tn-glow); }
	.tempo-insta-mini:hover::after { transform: translateX(4px); }
}

/* Barre de progression + flèches (ajoutées par assets/tempo.js) */
.tempo-rail-nav { display: flex; align-items: center; gap: 16px; margin-top: 22px !important; }
.tempo-progress { flex: 1; height: 2px; background: var(--tn-line); border-radius: 2px; overflow: hidden; }
.tempo-progress i { display: block; height: 100%; background: var(--tn-amber); transform-origin: left; transform: scaleX(.06); box-shadow: 0 0 12px var(--tn-glow); }
.tempo-arrows { display: none; gap: 8px; }
.tempo-arrow {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 0;
	display: grid;
	place-items: center;
	cursor: pointer;
	color: var(--tn-ink);
	background: rgba(255, 255, 255, .07);
	box-shadow: inset 0 0 0 1px var(--tn-line);
	transition: transform 160ms var(--tn-ease-out), opacity 200ms ease, background-color 200ms ease;
}
.tempo-arrow:active { transform: scale(0.94); }
.tempo-arrow:disabled { opacity: .3; cursor: default; }
.tempo-arrow svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .tempo-arrow:not(:disabled):hover { background: rgba(255, 255, 255, .14); } }
@media (min-width: 900px) { .tempo-arrows { display: flex; } }
.tempo-insta-line { gap: 12px 18px; margin-top: 26px !important; align-items: center; }
.tempo-insta-line > * { margin: 0 !important; }

/* ---------- Avis ---------- */
.tempo-reviews .wp-block-post-template {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(86vw, 400px);
	gap: 14px;
	margin: 0;
	padding: 0 var(--tn-gutter-r) 0 var(--tn-gutter-l);
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--tn-gutter-l) var(--tn-gutter-r);
	scrollbar-width: none;
}
.tempo-reviews .wp-block-post-template::-webkit-scrollbar { display: none; }
.tempo-reviews .wp-block-post-template > li { scroll-snap-align: start; margin: 0; }
.tempo-reviews-grid .wp-block-post-template,
.tempo-reviews.tempo-reviews-grid .wp-block-post-template {
	grid-auto-flow: row;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	overflow: visible;
	padding: 0;
}
@media (min-width: 1000px) {
	.tempo-reviews .wp-block-post-template {
		grid-auto-flow: row;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		overflow: visible;
		max-width: 1240px;
		margin-inline: auto;
		padding: 0;
	}
}
.tempo-review {
	height: 100%;
	padding: 26px;
	border-radius: var(--tn-radius);
	background: var(--tn-panel);
	box-shadow: inset 0 0 0 1px var(--tn-line);
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.tempo-review > * { margin: 0 !important; }
.tempo-stars { color: var(--tn-amber); letter-spacing: 3px; font-size: 15px; }
.tempo-quote { flex: 1; color: #e4dbd0; line-height: 1.6; }
.tempo-quote-big { font-size: clamp(18px, 2.6vw, 24px); }
.tempo-review-name { font: 700 15px/1.3 var(--tn-display) !important; letter-spacing: -0.01em; }
.tempo-review-name a { color: inherit; text-decoration: none; }
.tempo-awards { gap: 14px; align-items: center; margin-top: 30px !important; }
.tempo-awards > * { margin: 0 !important; }
.tempo-awards figure.wp-block-image {
	flex: none;
	padding: 4px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(249, 164, 82, .45), 0 12px 30px -12px var(--tn-glow);
	transition: transform 200ms var(--tn-ease-out);
}
@media (hover: hover) and (pointer: fine) { .tempo-awards figure.wp-block-image:hover { transform: translateY(-3px); } }
.tempo-awards-label {
	font: 500 12px/1.6 var(--tn-mono);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--tn-amber);
	padding-left: 6px;
}
@media (max-width: 599px) {
	.tempo-awards { gap: 10px; }
	.tempo-awards figure.wp-block-image img { width: 64px !important; height: 64px !important; }
	.tempo-awards-label { flex-basis: 100%; padding-left: 0; }
}
.tempo-more { margin-top: 20px !important; }

/* ---------- Partenaires ---------- */
.tempo-partners-section { padding-block: 0 clamp(64px, 10vw, 120px); }
.tempo-partners-section .tempo-eyebrow { color: var(--tn-muted); margin-bottom: 18px; }
.tempo-partners.wp-block-gallery { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px !important; }
.tempo-partners.wp-block-gallery > figure.wp-block-image { width: auto !important; margin: 0 !important; }
.tempo-partners figure.wp-block-image a {
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	padding: 12%;
	border-radius: 14px;
	background: #f3ede6;
	filter: grayscale(1) contrast(1.05);
	opacity: .85;
	transition: transform 160ms var(--tn-ease-out), filter 250ms ease, opacity 250ms ease;
}
.tempo-partners figure.wp-block-image a:active { transform: scale(0.96); }
.tempo-partners figure.wp-block-image img { width: auto !important; height: auto !important; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
@media (hover: hover) and (pointer: fine) { .tempo-partners figure.wp-block-image a:hover { filter: none; opacity: 1; } }
@media (min-width: 760px) { .tempo-partners.wp-block-gallery { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

/* ---------- Contact ---------- */
.tempo-contact { background: linear-gradient(180deg, var(--tn-night), var(--tn-panel) 30%); border-top: 1px solid var(--tn-line); }
.tempo-contact-grid { gap: clamp(36px, 6vw, 72px); }
.tempo-contact-grid > .wp-block-column > * + * { margin-top: 22px; }
.tempo-phone a {
	font: 800 clamp(30px, 6vw, 52px)/1 var(--tn-display);
	letter-spacing: -0.03em;
	color: var(--tn-amber);
	text-decoration: none;
	text-shadow: 0 0 40px var(--tn-glow);
	white-space: nowrap;
}
.tempo-fact { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding-top: 14px; border-top: 1px solid var(--tn-line); }
.tempo-fact > * { margin: 0 !important; overflow-wrap: anywhere; }
.tempo-fact-label { font: 500 12px/1.7 var(--tn-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tn-muted); }

/* Carte Google Maps (composition tempo/map) : passée en mode nuit, l'épingle reste rouge */
.tempo-map {
	position: relative;
	aspect-ratio: 16 / 10;
	min-height: 240px;
	border-radius: var(--tn-radius);
	overflow: hidden;
	background: var(--tn-panel);
	box-shadow: inset 0 0 0 1px var(--tn-line);
}
.tempo-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	filter: invert(.9) hue-rotate(180deg) saturate(.7) brightness(.95) contrast(.95);
}
.tempo-map-coords {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 8px 10px;
	border-radius: 999px;
	background: rgba(11, 10, 9, .75);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font: 500 11px/1 var(--tn-mono);
	letter-spacing: .08em;
	color: var(--tn-amber);
	pointer-events: none;
}
.tempo-form-card {
	padding: clamp(20px, 4vw, 36px);
	border-radius: 24px;
	background: var(--tn-night);
	box-shadow: inset 0 0 0 1px var(--tn-line), 0 40px 80px -40px rgba(0, 0, 0, .8);
}

/* Formulaire Contact Form 7 */
.tempo-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 600px) { .tempo-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tempo-form > p, .tempo-form > fieldset { margin: 0; min-width: 0; }
.tempo-form .tempo-form-full { grid-column: 1 / -1; }
.tempo-form br { display: none; }
.tempo-form p > label { display: grid; gap: 8px; }
.tempo-form p > label > span:first-child,
.tempo-form legend {
	font: 500 12px/1 var(--tn-mono);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--tn-muted);
}
.tempo-form fieldset { border: 0; padding: 0; display: grid; gap: 10px; }
.tempo-form legend { padding: 0; margin-bottom: 10px; }
.wpcf7 input:not([type="submit"]):not([type="radio"]):not([type="checkbox"]),
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	min-height: 52px;
	padding: 14px 16px;
	border: 0;
	border-radius: 12px;
	background: var(--tn-panel);
	color: var(--tn-ink);
	font: 500 16px/1.4 inherit;
	font-family: inherit;
	box-shadow: inset 0 0 0 1px var(--tn-line);
	transition: box-shadow 160ms ease;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
}
.wpcf7 input[type="date"] { color-scheme: dark; }
.wpcf7 textarea { min-height: 120px; resize: vertical; }
.wpcf7 input::placeholder, .wpcf7 textarea::placeholder { color: #6f675e; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus {
	outline: 0;
	box-shadow: inset 0 0 0 1.5px var(--tn-amber), 0 0 0 4px rgba(249, 164, 82, .15);
}
.tempo-form .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.tempo-form .wpcf7-list-item { margin: 0; }
.tempo-form .wpcf7-list-item label { position: relative; display: block; cursor: pointer; }
.tempo-form .wpcf7-list-item input { position: absolute; opacity: 0; pointer-events: none; }
.tempo-form .wpcf7-list-item-label {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--tn-panel);
	box-shadow: inset 0 0 0 1px var(--tn-line);
	font-weight: 600;
	font-size: 14px;
	transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--tn-ease-out), box-shadow 160ms ease;
	-webkit-user-select: none;
	user-select: none;
}
.tempo-form .wpcf7-list-item-label:active { transform: scale(0.96); }
.tempo-form .wpcf7-list-item input:checked + .wpcf7-list-item-label { background: var(--tn-amber); color: var(--tn-on-amber); box-shadow: 0 0 24px -4px var(--tn-glow); }
.tempo-form .wpcf7-list-item input:focus-visible + .wpcf7-list-item-label { outline: 2px solid var(--tn-amber); outline-offset: 3px; }
.wpcf7 input[type="submit"] {
	width: 100%;
	min-height: 56px;
	border: 0;
	border-radius: 999px;
	background: var(--tn-amber);
	color: var(--tn-on-amber);
	font: 700 16px/1 inherit;
	font-family: inherit;
	cursor: pointer;
	transition: transform 160ms var(--tn-ease-out), box-shadow 200ms ease;
}
.wpcf7 input[type="submit"]:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .wpcf7 input[type="submit"]:hover { box-shadow: 0 10px 40px -8px var(--tn-glow); } }
.wpcf7-spinner { position: absolute; margin: 0; }
.tempo-form-legal { font-size: 12px; color: var(--tn-muted); }
.wpcf7-not-valid-tip { color: #ff9b73; font-size: 13px; margin-top: 6px; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--tn-amber); }

/* ---------- Bandeau devis (pages intérieures) ---------- */
.tempo-cta-band {
	padding-block: clamp(64px, 10vw, 120px);
	border-top: 1px solid var(--tn-line);
	background: radial-gradient(70% 90% at 100% 0%, rgba(255, 122, 28, .18), transparent 60%), var(--tn-panel);
}
.tempo-cta-band > * + * { margin-top: 18px !important; }

/* ---------- Pages intérieures ---------- */
.tempo-main { padding-block: calc(var(--tn-header-h) + clamp(24px, 5vw, 56px)) clamp(56px, 9vw, 110px); }
.tempo-main .wp-block-post-content > :first-child { margin-top: 0; }
.tempo-main .tempo-head { margin-bottom: clamp(28px, 5vw, 48px); }
.tempo-mariages-net { background: #f6efe6; color: #111; border-radius: var(--tn-radius); padding: 16px; }
.tempo-mariages-net a { color: #111; }

/* ---------- Pied de page ---------- */
.tempo-footer { border-top: 1px solid var(--tn-line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.tempo-foot { gap: 24px; align-items: center; }
.tempo-foot > * { margin: 0 !important; }
.tempo-foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.tempo-foot-links a { color: var(--tn-muted); text-decoration: none; padding: 6px 0; }
@media (hover: hover) and (pointer: fine) { .tempo-foot-links a:hover { color: var(--tn-ink); } }
.tempo-socials.wp-block-social-links { gap: 8px; }
.tempo-socials .wp-social-link { background: rgba(255, 255, 255, .07) !important; color: var(--tn-ink) !important; transition: transform 160ms var(--tn-ease-out), background-color 200ms ease; }
.tempo-socials .wp-social-link a { padding: 12px; }
.tempo-socials .wp-social-link:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .tempo-socials .wp-social-link:hover { background: var(--tn-amber) !important; color: var(--tn-on-amber) !important; transform: none; } }
.tempo-fine { margin-top: 24px !important; font: 500 11px/1.6 var(--tn-mono); letter-spacing: .04em; color: #786f65; }

/* ---------- Barre d'action mobile ---------- */
.tempo-dock.wp-block-buttons {
	position: fixed;
	z-index: 40;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0 !important;
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	padding: 10px var(--tn-gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--tn-gutter-l);
	background: rgba(11, 10, 9, .82);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	box-shadow: 0 -1px 0 var(--tn-line);
	transform: translateY(110%);
	transition: transform 360ms var(--tn-ease-drawer);
}
.tempo-dock.is-on { transform: none; }
.tempo-dock .wp-block-button { flex: 1; margin: 0; }
.tempo-dock .wp-block-button__link { width: 100%; }
@media (min-width: 900px) { .tempo-dock.wp-block-buttons { display: none; } }
@media (max-width: 899px) { body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- Apparitions au défilement (le contenu reste visible sans support) ---------- */
@supports (animation-timeline: view()) {
	.tempo-head, .tempo-proof, .tempo-contact-grid > .wp-block-column {
		animation: tempo-rise linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 60%;
	}
	.tempo-card, .tempo-shot, .tempo-insta, .tempo-review {
		animation: tempo-rise linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 45%;
	}
	@keyframes tempo-rise { from { opacity: .35; transform: translateY(28px); } to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.tempo-hero .wp-block-cover__image-background,
	.tempo-marquee-track, .tempo-live::before,
	.tempo-head, .tempo-proof, .tempo-contact-grid > .wp-block-column,
	.tempo-card, .tempo-shot, .tempo-insta, .tempo-review,
	.tempo-nav .is-menu-open .wp-block-navigation-item { animation: none !important; }
	.tempo-hero .wp-block-cover__image-background { transform: none; }
}
