/*
 * « La Métropole », the showcase tenant's host page: a fictitious metropole's
 * procedures portal in Ally Cityzen's colours (lime, purple, black; Gilroy and
 * Cooper Light). The assistant is the only thing on it that moves.
 *//*
 * The showcase palette and the orb's gradients, read by the widget (`theme.css`)
 * and by the simulator's host page, « La Métropole »
 * (`apps/simulator/tenants/showcase/portal.css`): one source for both.
 */

:root,
:host {
	/* 1. Palette */
	--palette-lime-50: #fbfee8;
	--palette-lime-100: #f8ffc2;
	--palette-lime-200: #f1ff70;
	--palette-lime-300: #f4ff45;
	--palette-purple-100: #efe9fe;
	--palette-purple-200: #ddd2fd;
	--palette-purple-400: #b18df8;
	--palette-purple-700: #7c2bd6;
	--palette-black-50: #f5f6f6;
	--palette-black-100: #e5e7e8;
	--palette-black-200: #cdd0d4;
	--palette-black-300: #aaafb6;
	--palette-black-500: #656d75;
	--palette-black-600: #565c64;
	--palette-black-800: #414449;
	--palette-black-950: #17181a;
	--palette-black-950-a06: rgb(23 24 26 / 0.06);
	--palette-black-950-a18: rgb(23 24 26 / 0.18);
	--palette-black-950-a40: rgb(23 24 26 / 0.4);
	--palette-white-a94: rgb(255 255 255 / 0.94);

	/* The orb */
	--gradient-orb: conic-gradient(
		from 0deg,
		var(--palette-lime-200),
		var(--palette-purple-400),
		var(--palette-purple-200),
		var(--palette-lime-300),
		var(--palette-lime-200)
	);
	--gradient-orb-light: radial-gradient(
		circle at 35% 30%,
		rgb(255 255 255 / 0.9) 0%,
		rgb(255 255 255 / 0.15) 35%,
		transparent 60%
	);
}

@font-face { font-family: "Gilroy"; src: url("/assets/Gilroy-Regular-CIvtiVet.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("/assets/Gilroy-SemiBold-D4Dfxnpa.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Cooper"; src: url("/assets/Cooper-Light-DprF4vX0.woff2") format("woff2"); font-weight: 300 400; font-display: swap; }

:root {
	--white-85: rgb(255 255 255 / 0.85);
	--shadow-field: 0 18px 40px -20px rgb(23 24 26 / 0.3);
	--gutter: 72px;
	color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; font: 400 16px/1.5 "Gilroy", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--palette-black-950); background: #fff; }
::selection { background: var(--palette-lime-200); color: var(--palette-black-950); }
:focus-visible { outline: 2px solid var(--palette-purple-700); outline-offset: 3px; }
a { color: inherit; }
svg.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

.skip { position: absolute; top: 8px; left: 8px; z-index: 10; padding: 6px 12px; border-radius: 8px; background: var(--palette-black-950); color: #fff; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Header: the institution on the left, the account on the right, as every metropole portal. */
.site { display: flex; align-items: center; gap: 40px; min-height: 84px; padding: 0 var(--gutter); border-bottom: 1px solid var(--palette-black-100); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand small { display: block; font-size: 12px; line-height: 1; color: var(--palette-black-600); }
.brand b { display: block; font-weight: 700; font-size: 19px; line-height: 1.15; letter-spacing: 0.02em; }
.nav { display: flex; gap: 28px; font-weight: 500; font-size: 15px; }
.nav a { text-decoration: none; padding-block: 6px; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--palette-black-950); }
.account { margin-left: auto; display: flex; gap: 12px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px; font: 600 15px/1.2 "Gilroy", sans-serif; text-decoration: none; cursor: pointer; transition: background-color 0.15s; }
.btn-dark { background: var(--palette-black-950); color: #fff; }
.btn-dark:hover { background: var(--palette-black-800); }
.btn-line { border-color: var(--palette-black-200); background: #fff; }
.btn-line:hover { background: var(--palette-black-50); }

/* Home: the portal's search is the assistant's front door. */
.home { min-height: calc(100dvh - 85px); padding-bottom: 120px; background: radial-gradient(110% 60% at 50% 115%, var(--palette-lime-200) 0%, var(--palette-lime-100) 40%, #fff 72%); }
.ask-hero { max-width: 980px; margin: 0 auto; padding: 72px var(--gutter) 0; text-align: center; }
.ask-hero h1 { margin: 0; font: 300 clamp(38px, 5vw, 60px)/1.08 "Cooper", Georgia, serif; letter-spacing: -0.015em; text-wrap: balance; }
.ask-hero p { margin: 16px 0 0; font-size: 19px; color: var(--palette-black-600); }
.ask { display: flex; align-items: center; gap: 12px; max-width: 860px; margin: 36px auto 0; padding: 8px 8px 8px 24px; border: 1px solid var(--palette-black-200); border-radius: 999px; background: #fff; box-shadow: var(--shadow-field); }
.ask:focus-within { border-color: var(--palette-purple-700); box-shadow: var(--shadow-field), 0 0 0 2px var(--palette-purple-700); }
.ask svg.icon { color: var(--palette-black-600); font-size: 20px; }
.ask input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 19px/1.4 "Gilroy", sans-serif; color: var(--palette-black-950); }
.ask input::placeholder { color: var(--palette-black-600); }
.ask .btn { min-height: 48px; }
/* The portal's ways into the assistant look like its launcher: an orb, a 14 px label, a lime glow. */
.btn-ask { min-height: 48px; padding: 0 20px 0 10px; font-size: 14px; box-shadow: 0 0 32px 4px rgb(241 255 112 / 0.55); }
.btn-ask:hover { transform: translateY(-2px); }
.btn { transition: background-color 0.15s, transform 0.26s cubic-bezier(0.34, 1.4, 0.64, 1); }
/* The widget launcher's orb (the designers' prototype): it turns under a soft light, ringed with glass. */
.orb { position: relative; flex: none; width: 28px; aspect-ratio: 1; border-radius: 50%; isolation: isolate; box-shadow: 0 0 0 2px rgb(255 255 255 / 0.8); }
.orb::before, .orb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.orb::before { background: var(--gradient-orb); filter: blur(3px); animation: orb-spin 9s linear infinite; }
.orb::after { background: var(--gradient-orb-light); mix-blend-mode: soft-light; }
@keyframes orb-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .orb::before { animation: none; } }
.suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.suggestions button { padding: 8px 16px; border: 1px solid var(--palette-black-100); border-radius: 999px; background: var(--white-85); font: 400 15px "Gilroy", sans-serif; color: var(--palette-black-950); cursor: pointer; }
.suggestions button:hover { border-color: var(--palette-black-950); }
.hint { margin-top: 14px; font-size: 14px; color: var(--palette-black-600); }

.themes { max-width: 1296px; margin: 64px auto 0; padding: 0 var(--gutter); }
.themes h2 { margin: 0 0 8px; font: 600 22px/1.3 "Gilroy", sans-serif; }
.themes ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--palette-black-200); }
.themes a { display: flex; gap: 14px; padding: 22px 8px; border-bottom: 1px solid var(--palette-black-200); text-decoration: none; font-weight: 500; font-size: 17px; }
.themes a:hover b { text-decoration: underline; }
.themes svg.icon { font-size: 24px; margin-top: 2px; }
.themes small { display: block; font-weight: 400; font-size: 14px; color: var(--palette-black-600); }

/* A procedure's page. */
.procedure { max-width: 880px; margin: 0 auto; padding: 40px var(--gutter) 160px; }
.crumbs { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--palette-black-600); }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.procedure h1 { margin: 24px 0 0; font: 300 clamp(34px, 4.4vw, 52px)/1.1 "Cooper", Georgia, serif; letter-spacing: -0.015em; text-wrap: balance; }
.procedure .lead { margin: 16px 0 0; font-size: 19px; color: var(--palette-black-600); max-width: 60ch; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--palette-black-50); font-size: 15px; }
.steps { margin: 40px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--palette-black-100); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--palette-black-100); }
.steps p { margin: 0; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--palette-lime-200); font-weight: 600; }
.steps b { display: block; font-size: 17px; }
.steps span { color: var(--palette-black-600); }
.start { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 40px; }
.start p { margin: 0; color: var(--palette-black-600); font-size: 15px; }

.foot { padding: 32px var(--gutter); background: var(--palette-black-950); color: #fff; font-size: 14px; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.foot p { margin: 0; }
.foot a { color: #fff; }

@media (max-width: 899px) {
	:root { --gutter: 16px; }
	.site { gap: 12px; min-height: 64px; }
	.nav { display: none; }
	.brand b { font-size: 16px; }
	.account .btn { padding: 10px 14px; }
	.account .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.ask-hero { padding-top: 40px; }
	.ask-hero p { font-size: 17px; }
	.ask { padding-left: 16px; }
	.ask input { font-size: 17px; }
	.ask .btn { padding: 0 16px; }
	.themes ul { grid-template-columns: minmax(0, 1fr); }
}

/* « À la une »: four procedures with a photo, as on a real portal's home (photos from the designers' prototype). */
.featured { max-width: 1296px; margin: 64px auto 0; padding: 0 var(--gutter); }
.featured h2 { margin: 0 0 20px; font: 600 22px/1.3 "Gilroy", sans-serif; }
.featured ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.featured a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding-bottom: 20px; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgb(34 48 16 / 0.04), 0 10px 28px -14px rgb(34 48 16 / 0.2); overflow: hidden; text-decoration: none; transition: box-shadow 0.2s, transform 0.2s; }
.featured a:hover { transform: translateY(-2px); box-shadow: 0 2px 6px rgb(34 48 16 / 0.05), 0 22px 48px -24px rgb(34 48 16 / 0.28); }
.featured a:hover b { text-decoration: underline; }
.featured img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 10px; }
.featured .meta, .featured b, .featured .desc { padding: 0 20px; }
.featured .meta { font-size: 13px; font-weight: 500; color: var(--palette-black-600); }
.featured b { font-size: 17px; line-height: 1.3; }
.featured .desc { font-size: 15px; color: var(--palette-black-600); }
@media (max-width: 899px) {
	.featured ul { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 16px; scroll-padding-inline: var(--gutter); }
	.featured li { flex: 0 0 78%; scroll-snap-align: start; }
}

/* The assistant on WhatsApp, between the hero and « à la une »: a QR code to scan from the screen, a link to tap on a phone. */
.wa-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; max-width: calc(1296px - 2 * var(--gutter)); margin: 72px auto 0; padding: 40px 48px; border-radius: 28px; background: var(--palette-black-950); color: #fff; }
.wa-band h2 { margin: 0; font: 300 clamp(28px, 3vw, 40px)/1.1 "Cooper", Georgia, serif; letter-spacing: -0.01em; text-wrap: balance; }
.wa-band p { margin: 12px 0 24px; font-size: 17px; color: rgb(255 255 255 / 0.72); max-width: 46ch; }
.wa-qr { width: 168px; height: 168px; border-radius: 18px; }
.btn-lime { background: var(--palette-lime-200); color: var(--palette-black-950); }
.btn-lime:hover { background: var(--palette-lime-100); }
.wa-band :focus-visible { outline-color: var(--palette-lime-200); }

/* A content page: the procedure's layout, with a cover photo or the theme's icon, then its text. */
.article .cover { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; margin-top: 32px; border-radius: 20px; }
.article h1 { display: flex; align-items: center; gap: 16px; }
.theme-icon { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--palette-lime-200); font-size: 28px; }
.prose { margin-top: 40px; max-width: 68ch; }
.prose h2 { margin: 40px 0 12px; font: 600 22px/1.3 "Gilroy", sans-serif; }
.prose p, .prose li { color: var(--palette-black-800); }
.prose li + li { margin-top: 6px; }
.table { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--palette-black-100); text-align: left; vertical-align: top; }

@media (max-width: 899px) {
	.wa-band { grid-template-columns: minmax(0, 1fr); gap: 0; margin: 48px var(--gutter) 0; padding: 28px 22px; }
	.wa-band .btn-lime { width: 100%; justify-content: center; }
	/* The QR code cannot be scanned by the phone that shows it. */
	.wa-desk { display: none; }
	.article .cover { aspect-ratio: 3 / 2; }
	.theme-icon { width: 44px; height: 44px; font-size: 22px; }
}
.prose .steps { margin-top: 16px; }

/* The questions page: one disclosure per question. */
.faq { margin-top: 40px; border-top: 1px solid var(--palette-black-100); }
.faq details { padding: 20px 0; border-bottom: 1px solid var(--palette-black-100); }
.faq summary { font-weight: 600; font-size: 18px; cursor: pointer; }
.faq p { margin: 12px 0 0; max-width: 65ch; color: var(--palette-black-600); }

/*
 * The model bar: Ally Cityzen's own band above the portal and above the open
 * agent, where the presenter chooses the model the agents run on. Built by
 * main.ts only where the backend offers a choice; the portal below stays a
 * city's site. Its height is the widget's `--ally-citizen-inset-top`.
 */
:root { --model-bar-height: 40px; }
body:has(.model-bar) { padding-top: var(--model-bar-height); }
body:has(.model-bar) #ally-citizen-root { --ally-citizen-inset-top: var(--model-bar-height); }
.model-bar { position: fixed; inset: 0 0 auto; z-index: 2147483647; display: flex; align-items: center; gap: 14px; height: var(--model-bar-height); padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); background: var(--palette-black-950); color: #fff; font: 500 13px/1 "Gilroy", sans-serif; }
.model-bar img { display: block; height: 17px; width: auto; filter: brightness(0) invert(1); }
.model-bar .rule { width: 1px; height: 18px; background: rgb(255 255 255 / 0.25); }
.model-bar label { color: rgb(255 255 255 / 0.72); }
.model-bar .pick { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border: 1px solid rgb(255 255 255 / 0.28); border-radius: 999px; }
.model-bar .pick:focus-within { outline: 2px solid var(--palette-lime-200); outline-offset: 2px; }
.model-bar .pick::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--palette-lime-200); box-shadow: 0 0 0 3px rgb(241 255 112 / 0.25); }
.model-bar select { appearance: none; border: 0; padding: 0 16px 0 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23fff'/%3E%3C/svg%3E") no-repeat right center; color: #fff; font: 600 14px/1 "Gilroy", sans-serif; cursor: pointer; }
.model-bar select:focus-visible { outline: none; }
.model-bar option { color: var(--palette-black-950); }
.model-bar .note { margin-left: auto; color: rgb(255 255 255 / 0.6); font-size: 12px; }
@media (max-width: 899px) { .model-bar label, .model-bar .note { display: none; } .model-bar .pick { min-width: 0; } .model-bar select { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
