/* footer : ex-bloc <style> de footer-blueprint-light.php, source de vérité depuis le 09/09/2026 (plan poids-html-blueprint-light, lot 2). Tokens : var(--color-*) uniquement. */
/* ═══════════════════════════════════════════════════════════════════
	FOOTER AWWWARDS - SCORE >100
	Hybrid Marquee + CTA | Fond bleu KYTOM var(--color-bleu)
	═══════════════════════════════════════════════════════════════════ */

:root {
	--footer-bg: var(--color-bleu);
	--footer-bg-light: #1a3a6e;
	--footer-text: var(--color-white);
	--footer-text-muted: rgba(255, 255, 255, 0.6);
	--footer-accent: var(--color-orange);
	--footer-border: rgba(255, 255, 255, 0.1);
}

/* ═══ HYBRID FOOTER LAYOUT ═══ */
/* v5.1 (2026-05-06) : asymétrie 62/38 + tilt marquee */
.footer-cta-hybrid {
	display: grid;
	grid-template-columns: 62% 38%;
	background: var(--footer-bg);
	min-height: 500px;
	position: relative;
	overflow: hidden;
}

/* ═══ INFINITE MARQUEE SECTION (Gauche) ═══ */
.footer-marquee-section {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--footer-bg);
	border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-marquee-wrapper {
	width: 100%;
	position: relative;
	overflow: hidden;
}

/* Gradient fade sur les bords */
.footer-marquee-wrapper::before,
.footer-marquee-wrapper::after {
	content: '';
	position: absolute;
	top: 0;
	width: 120px;
	height: 100%;
	z-index: 2;
	pointer-events: none;
}

.footer-marquee-wrapper::before {
	left: 0;
	background: linear-gradient(90deg, var(--footer-bg) 0%, transparent 100%);
}

.footer-marquee-wrapper::after {
	right: 0;
	background: linear-gradient(270deg, var(--footer-bg) 0%, transparent 100%);
}

.footer-marquee-track {
	display: flex;
	gap: 80px;
	width: max-content;
	animation: marqueeScroll 60s linear infinite;
	will-change: transform;
	/* v5.1 : tilt subtil pour rupture asymétrique */
	transform-origin: left center;
}

/* v5.1 : empile les items en zigzag (chaque mot décalé verticalement) */
.footer-marquee-item:nth-child(odd) {
	transform: translateY(-12px);
}
.footer-marquee-item:nth-child(even) {
	transform: translateY(12px);
}

.footer-marquee-track:hover {
	animation-play-state: paused;
}

@keyframes marqueeScroll {
	0% {
	transform: translateX(0);
	}
	100% {
	transform: translateX(-33.333%); /* 1/3 car répété 3x */
	}
}

.footer-marquee-item {
	font-family: var(--font-display);
	font-size: clamp(48px, 6vw, 90px);
	font-weight: 800;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.2);
	text-stroke: 1.5px rgba(255, 255, 255, 0.2);
	letter-spacing: -0.02em;
	white-space: nowrap;
	transition: all 0.6s var(--ease-out-expo);
	cursor: default;
	user-select: none;
}

.footer-marquee-item:hover {
	color: var(--footer-accent);
	-webkit-text-stroke: 1.5px var(--footer-accent);
	text-stroke: 1.5px var(--footer-accent);
	transform: scale(1.05);
	text-shadow: 0 0 40px rgba(245, 107, 26, 0.4);
}

/* ═══ CTA MAIN SECTION (Droite) ═══ */
/* v5.1 : align top + padding-top accru pour rupture verticale */
.footer-cta-main {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	background: var(--footer-bg);
	padding: 96px 60px 60px 40px;
}

.footer-cta-content {
	max-width: 500px;
	margin-top: 24px;
}

.footer-cta-eyebrow {
	font-family: 'JetBrains Mono', 'Plus Jakarta Sans', monospace;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: rgba(255, 255, 255, 0.65);
	margin-bottom: 28px;
	display: inline-flex;
	align-items: center;
	gap: 14px;
}
.footer-cta-eyebrow__num {
	display: inline-block;
	font-size: 10px;
	font-weight: 600;
	color: var(--color-orange);
	letter-spacing: 0.12em;
	border: 1px solid rgba(242, 126, 51, 0.55);
	padding: 3px 6px;
	border-radius: 2px;
	line-height: 1;
}
.footer-cta-eyebrow__sep {
	color: var(--color-orange);
	font-weight: 600;
}
.footer-cta-eyebrow__label {
	color: rgba(255, 255, 255, 0.85);
}

.footer-cta-title {
	font-family: var(--font-display);
	font-size: clamp(1.85rem, 2.6vw, 2.8rem);
	font-weight: 400;
	line-height: 1.18;
	letter-spacing: -0.02em;
	color: var(--color-white);
	margin-bottom: 0;
	text-wrap: balance;
}

.footer-cta-title em {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 500;
}

.footer-cta-coffee {
	display: inline-flex;
	align-items: center;
	vertical-align: baseline;
	width: 1.045em;
	height: 0.935em;
	margin-left: 12px;
	transform: translateY(0.06em);
	color: var(--color-white, #ffffff);
}
.footer-cta-coffee svg {
	width: 100%;
	height: 100%;
	overflow: visible;
}
.footer-cta-coffee svg path {
	fill: currentColor;
}
/* Lien vers la page « Prendre un café » (site-wide). */
.footer-cta-coffee {
	transition: color 0.25s ease;
}
.footer-cta-coffee:hover {
	color: var(--color-orange);
}
.footer-cta-coffee:focus-visible {
	outline: 2px solid var(--color-orange);
	outline-offset: 3px;
	border-radius: 3px;
}
.footer-cta-coffee__steam {
	transform-origin: 14.5px 4.3px;
	animation: footer-cta-coffee-steam 2.6s ease-in-out infinite;
}
@keyframes footer-cta-coffee-steam {
	0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
	50%      { transform: translateY(-0.8px) scale(1.02); opacity: 0.8; }
}
@media (prefers-reduced-motion: reduce) {
	.footer-cta-coffee__steam { animation: none; }
}

.footer-cta-reassurance {
	margin: 32px 0 0;
	font-family: var(--font-label), 'Plus Jakarta Sans', sans-serif;
	font-size: 13px;
	line-height: 1.6;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.7);
}

.footer-cta-flap-block {
	margin: 32px 0 36px;
}

/* Flap board des agences : defile CSS pur, effet panneau aeroport
	Easter egg : hover pause le defile, click sur l’item visible navigue
	vers la page agence correspondante. */
.footer-cta-flap {
	display: inline-flex;
	align-items: baseline;
	height: 1.6em;
	line-height: 1.6em;
	overflow: hidden;
	vertical-align: baseline;
	font-family: 'JetBrains Mono', 'Plus Jakarta Sans', monospace;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.92);
	min-width: 12ch;
	position: relative;
	white-space: nowrap;
	cursor: pointer;
}
.footer-cta-flap__viewport {
	display: flex;
	flex-direction: column;
	animation: footer-cta-flap-roll 3s steps(11) infinite;
	will-change: transform;
}
.footer-cta-flap:hover .footer-cta-flap__viewport,
.footer-cta-flap:focus-within .footer-cta-flap__viewport {
	animation-play-state: paused;
}
.footer-cta-flap__item {
	height: 1.6em;
	line-height: 1.6em;
	display: block;
	color: inherit;
	text-decoration: none;
	position: relative;
	transition: color .2s ease;
}
.footer-cta-flap:hover .footer-cta-flap__item:hover,
.footer-cta-flap:focus-within .footer-cta-flap__item:focus {
	color: var(--color-mint);
}
.footer-cta-flap:hover .footer-cta-flap__item::after,
.footer-cta-flap:focus-within .footer-cta-flap__item::after {
	/* fleche SVG en masque : U+2197 absent du subset webfont */
	content: '';
	display: inline-block;
	width: .8em;
	height: .8em;
	margin-left: .35em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17 17 7M9 7h8v8' stroke='black' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17 17 7M9 7h8v8' stroke='black' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
	opacity: .7;
}
@keyframes footer-cta-flap-roll {
	from { transform: translateY(0); }
	to   { transform: translateY(-17.6em); } /* 1.6em * 11 etapes */
}
@media (prefers-reduced-motion: reduce) {
	.footer-cta-flap__viewport {
	animation: none;
	transform: translateY(0);
	}
}

@media (max-width: 600px) {
	.footer-cta-reassurance {
	margin: 24px 0 0;
	font-size: 12.5px;
	}
	.footer-cta-flap-block { margin: 24px 0 28px; }
	.footer-cta-flap { font-size: 14px; min-width: 11ch; }
}

/* Bouton CTA (réutilise les styles des composants) */
.footer-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	position: relative;
	text-decoration: none;
}

.footer-cta-btn:focus {
	outline: none;
}

.footer-cta-btn:focus-visible {
	outline: 2px solid var(--footer-accent);
	outline-offset: 4px;
	border-radius: 4px;
}

.footer-cta-btn-text {
	font-family: var(--font-label);
	font-size: var(--text-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--tracking-widest);
	color: var(--color-white);
	overflow: hidden;
	position: relative;
	height: 1.2em;
}

.footer-cta-btn-text span {
	display: block;
	transition: transform 0.4s var(--ease-out-expo);
}

.footer-cta-btn-text span:last-child {
	position: absolute;
	top: 0;
	left: 0;
	color: var(--footer-accent);
	transform: translateY(100%);
}

.footer-cta-btn:hover .footer-cta-btn-text span:first-child {
	transform: translateY(-100%);
}

.footer-cta-btn:hover .footer-cta-btn-text span:last-child {
	transform: translateY(0);
}

.footer-cta-btn-circle {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: transparent;
	border: 1.5px solid var(--color-white);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.4s var(--ease-out-expo);
}

.footer-cta-btn-circle svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: var(--color-white);
	stroke-width: 2;
	transition: all 0.4s var(--ease-out-expo);
}

.footer-cta-btn:hover .footer-cta-btn-circle {
	background: var(--color-white);
	transform: scale(1.1);
}

.footer-cta-btn:hover .footer-cta-btn-circle svg {
	stroke: var(--footer-bg);
	transform: translate(2px, -2px);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
	.footer-cta-hybrid {
	grid-template-columns: 1fr;
	min-height: auto;
	}

	.footer-marquee-section {
	min-height: 300px;
	border-right: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.footer-marquee-item {
	font-size: clamp(36px, 8vw, 60px);
	}

	.footer-cta-main {
	padding: 60px 40px;
	}
}

@media (max-width: 640px) {
	.footer-marquee-section {
	min-height: 250px;
	}

	.footer-marquee-track {
	gap: 40px;
	}

	.footer-marquee-item {
	font-size: clamp(28px, 10vw, 48px);
	}

	.footer-cta-main {
	padding: 50px 30px;
	}

	.footer-cta-title {
	font-size: clamp(1.6rem, 6vw, 2rem);
	}
}

/* ═══ TRANSITION beige -> bleu nuit (filet orange + fondu) ═══ */
.footer-awwwards {
	position: relative;
	isolation: isolate;
}
.footer-awwwards::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg,
	rgba(242, 126, 51, 0) 0%,
	rgba(242, 126, 51, 0) 8%,
	rgba(242, 126, 51, 0.95) 50%,
	rgba(242, 126, 51, 0) 92%,
	rgba(242, 126, 51, 0) 100%);
	box-shadow: 0 0 16px rgba(242, 126, 51, 0.35);
	z-index: 2;
	pointer-events: none;
}

/* ═══ MAIN FOOTER — bleu unifie + signature editoriale ═══ */
.footer-main-section {
	background: var(--footer-bg, #0d2857);
	color: var(--color-white, #ffffff);
	padding: 0;
	border-top: none;
}

.footer-container {
	max-width: 1280px;
	margin: 0 auto;
}

/* ───── Cartouche d’architecte ───── */
.footer-cartouche-head,
.footer-cartouche-foot {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0 14px;
	font-family: 'JetBrains Mono', 'Plus Jakarta Sans', monospace;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	padding: 0 clamp(24px, 5vw, 80px);
}
.footer-cartouche-head {
	padding-top: clamp(48px, 6vw, 72px);
	padding-bottom: 16px;
}
.footer-cartouche-foot {
	padding-top: 16px;
	padding-bottom: clamp(28px, 4vw, 44px);
}
.footer-cartouche-meta {
	display: inline-block;
}
.footer-cartouche-meta--mute {
	/* 0.42 -> 0.62 : contraste >= 4.5:1 sur le fond marque var(--color-bleu) (WCAG AA). */
	color: rgba(255, 255, 255, 0.62);
	margin-left: auto;
}
.footer-cartouche-sep {
	color: var(--color-orange);
	font-weight: 600;
}
.footer-cartouche-spacer {
	flex: 1 1 auto;
}
.footer-cartouche-rule {
	height: 1px;
	background: linear-gradient(90deg,
	transparent 0%,
	rgba(255, 255, 255, 0.18) 6%,
	rgba(255, 255, 255, 0.18) 94%,
	transparent 100%);
	margin: 0 clamp(24px, 5vw, 80px);
	position: relative;
}
.footer-cartouche-rule::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	height: 1px;
	width: 80px;
	background: var(--color-orange);
	opacity: 0.7;
}

/* Grille 3 colonnes numerotees */
.footer-grid-wrapper {
	background: transparent;
	padding: clamp(40px, 5vw, 72px) clamp(24px, 5vw, 80px);
}
.footer-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(180px, 1fr));
	gap: clamp(40px, 6vw, 96px);
	max-width: 1080px;
	margin: 0 auto;
}
.footer-col-title {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin: 0 0 24px;
	font-family: 'JetBrains Mono', 'Plus Jakarta Sans', monospace;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}
.footer-col-num {
	display: inline-block;
	font-size: 10px;
	font-weight: 600;
	color: var(--color-orange);
	letter-spacing: 0.12em;
	border: 1px solid rgba(242, 126, 51, 0.55);
	padding: 3px 6px;
	border-radius: 2px;
	line-height: 1;
}
.footer-col-name {
	color: rgba(255, 255, 255, 0.85);
}

.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}
.footer-links li {
	margin-bottom: 10px;
}
.footer-links a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0.005em;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	position: relative;
	transition: color .25s ease, transform .25s ease;
}
.footer-links a span {
	display: inline-block;
}
.footer-links a:hover {
	color: var(--color-white);
	transform: translateX(4px);
}
.footer-link-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: rgba(255, 255, 255, 0.55);
	transition: color .25s ease;
}
.footer-links a:hover .footer-link-icon {
	color: var(--color-orange);
}

@media (max-width: 720px) {
	.footer-grid {
	grid-template-columns: 1fr;
	gap: 36px;
	}
	.footer-cartouche-head,
	.footer-cartouche-foot {
	font-size: 10.5px;
	gap: 0 10px;
	}
	.footer-cartouche-foot .footer-cartouche-meta--mute {
	margin-left: 0;
	width: 100%;
	margin-top: 6px;
	}
	.footer-cartouche-spacer { display: none; }
	.footer-links a:hover { transform: none; }
}

/* Scroll to Top */
.scroll-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 50px;
	height: 50px;
	background: var(--footer-accent);
	color: var(--color-white);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 1000;
	box-shadow: 0 4px 20px rgba(245, 107, 26, 0.4);
}

.scroll-to-top.visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.scroll-to-top:hover {
	transform: translateY(-5px) scale(1.1);
	box-shadow: 0 8px 30px rgba(245, 107, 26, 0.5);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
	.footer-grid {
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
	}
}

@media (max-width: 640px) {
	.footer-grid {
	grid-template-columns: 1fr;
	text-align: center;
	}

	.footer-links a::after {
	left: 50%;
	transform: translateX(-50%);
	}

	.footer-links a:hover span {
	transform: translateX(0);
	}

	.footer-social {
	align-items: center;
	}

	.footer-bottom {
	flex-direction: column;
	gap: 20px;
	text-align: center;
	}
}
