/* D4Z « Cartel » 2027 */

:root {
	--paper: #F2F1EC;
	--ink: #0E0E0C;
	--accent: #FF4D00;
	--white: #FFFFFF;
	--placeholder: #E3E0D8;
	--placeholder-hero: #DEDBD2;
	--line: #D3D0C7;
	--muted: #77756E;
	--count: #A9A69D;
	--body: #3B3A36;
	--body-2: #2A2926;
	--dark-muted: #8C8A83;
	--dark-line: #33322D;
	--dark-placeholder: #24231F;
	--dark-body: #D8D6CF;
	--display: 'Funnel Display', system-ui, sans-serif;
	--mono: 'Geist Mono', ui-monospace, monospace;
	--gutter: clamp(16px, 3vw, 40px);
	--rhythm: clamp(48px, 6vw, 96px);
	--ease: 150ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--display);
	font-size: 16px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--ease), background-color var(--ease); }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2 { margin: 0; text-wrap: balance; }
dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1600px; margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; font-weight: 400; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.dot { color: var(--accent); }
.link { cursor: pointer; background: none; border: 0; padding: 0; }
.link:hover { color: var(--accent); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- Titres ---------- */

.h1 { font-weight: 300; font-size: clamp(56px, 7vw, 112px); line-height: 0.95; letter-spacing: -0.045em; }
.h1--home { font-size: clamp(56px, 8.4vw, 136px); line-height: 0.92; }
.h1--project { font-size: clamp(52px, 8vw, 128px); line-height: 0.92; }
.h1--work { font-size: clamp(48px, 6vw, 96px); }
.h1__count { color: var(--count); }
.h2 { font-weight: 300; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -0.04em; }
.h2--small { font-size: 40px; letter-spacing: -0.03em; }
.kicker { color: var(--muted); }
.intro { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; max-width: 44ch; color: var(--body); }
.body { font-size: 19px; color: var(--body); max-width: 40ch; }

/* ---------- Boutons, chips ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border: 1px solid var(--ink); border-radius: 999px; background: transparent;
	padding: 10px 18px; font-size: 15px; line-height: 1.3; cursor: pointer;
	transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); padding: 14px 22px; align-self: flex-start; }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 500; }
.btn--accent:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--ghost { border-color: var(--paper); color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn--block { display: flex; width: 100%; padding: 16px; font-size: 16px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
	border: 1px solid var(--ink); border-radius: 999px; background: transparent;
	padding: 7px 14px; font-size: 14px; line-height: 1.3; cursor: pointer;
	transition: background-color var(--ease), color var(--ease);
}
.chip:hover { color: var(--accent); border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Header ---------- */

.site-header {
	position: sticky; top: 0; z-index: 20;
	background: rgba(242, 241, 236, 0.86);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { color: inherit; }
.brand__mark { display: grid; grid-template-columns: repeat(5, 5px); gap: 1px; }
.brand__mark i { width: 5px; height: 5px; }
.brand__mark i.on { background: var(--ink); }
.brand__name { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand__tag { font-size: 11px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-size: 15px; }
.nav a[aria-current="page"] { color: var(--accent); }
.langs { display: flex; gap: 8px; font-size: 11px; color: var(--muted); }
.langs a[aria-current] { color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 0; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); }

.menu { position: fixed; inset: 0; z-index: 40; background: var(--ink); color: var(--paper); display: flex; flex-direction: column; padding: 16px 16px 32px; }
.menu[hidden] { display: none; }
.menu__top { display: flex; justify-content: space-between; align-items: center; height: 44px; }
.menu__close { width: 44px; height: 44px; border: 0; background: transparent; color: var(--paper); font-size: 28px; line-height: 1; cursor: pointer; padding: 0; }
.menu__nav { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.menu__nav a { font-weight: 300; font-size: 52px; letter-spacing: -0.04em; line-height: 1.15; }
.menu__nav a[aria-current="page"], .menu__nav a:hover { color: var(--accent); }
.menu__foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--dark-muted); }
.menu__foot .langs { gap: 16px; font-size: 13px; color: var(--dark-muted); }
.menu__foot .langs a[aria-current] { color: var(--paper); }
.menu-open { overflow: hidden; }

@media (max-width: 759px) {
	.nav { display: none; }
	.burger { display: flex; }
}
@media (max-width: 420px) {
	.brand__tag { display: none; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--paper); }
.site-footer__in { padding-block: clamp(40px, 5vw, 72px) 28px; display: flex; flex-direction: column; gap: 40px; }
.site-footer__motto { font-weight: 300; font-size: clamp(56px, 11vw, 180px); letter-spacing: -0.05em; line-height: 0.85; }
.site-footer__line { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 11px; color: var(--dark-muted); }
.site-footer__line a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Mise en page ---------- */

.page { padding-block: clamp(24px, 4vw, 56px) 80px; display: flex; flex-direction: column; gap: 32px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.section { padding-block: var(--rhythm); display: flex; flex-direction: column; gap: 24px; }
.section--tight { padding-block: 16px 80px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-block: var(--rhythm) 24px; }
.section-head--flush { padding: 0; }
.divided { border-top: 1px solid var(--line); }

/* ---------- Accueil ---------- */

.hero {
	padding-block: clamp(24px, 5vw, 72px) clamp(32px, 5vw, 64px);
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
	gap: 40px clamp(24px, 4vw, 64px); align-items: end;
}
.hero__text { display: flex; flex-direction: column; gap: 28px; }
.stats { display: flex; gap: 40px; flex-wrap: wrap; padding-top: 8px; }
.stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.stats dd { font-weight: 600; font-size: 40px; letter-spacing: -0.03em; line-height: 1; }
.stats dt { font-size: 11px; color: var(--muted); }
.hero__work { position: relative; display: block; aspect-ratio: 4 / 5; max-height: 78vh; width: 100%; background: var(--placeholder-hero); border-radius: 2px; overflow: hidden; color: var(--ink); }
.hero__work img { width: 100%; height: 100%; object-fit: cover; }
.hero__work:hover { color: var(--ink); }
.hero__work:hover .cartel__title { color: var(--accent); }

.band { background: var(--ink); color: var(--paper); }
.band__in { padding-block: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px; }
.band__step { display: flex; flex-direction: column; gap: 12px; }
.band__step .mono { color: var(--dark-muted); }
.band__step .mono.accent { color: var(--accent); }
.band__step p { font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; max-width: 24ch; }

.rows li { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 22px 0; }
.row:hover .muted { color: var(--accent); }
.row__name { font-weight: 400; font-size: clamp(26px, 3.2vw, 44px); letter-spacing: -0.03em; line-height: 1.05; }
.row__count { text-align: right; }

.where { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: center; }
.where__text { display: flex; flex-direction: column; gap: 20px; }
.where__map { aspect-ratio: 16 / 10; }

/* ---------- Cartes d'œuvre et de projet ---------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 32px 16px; }
.grid--top { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 32px 20px; }
.grid--projects { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 48px 24px; }
.grid--others { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }

.card { display: flex; flex-direction: column; gap: 10px; }
.card[hidden] { display: none; }
.card__img, .pcard__img { position: relative; display: block; aspect-ratio: 1; background: var(--placeholder); border-radius: 2px; overflow: hidden; }
.card__img img, .pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 8px; right: 8px; font-family: var(--mono); font-size: 10px; background: var(--ink); color: var(--paper); padding: 2px 6px; }
.card__title { font-weight: 500; font-size: 17px; letter-spacing: -0.01em; line-height: 1.2; }
.card__text { display: flex; flex-direction: column; gap: 1px; }
.card__sub { font-size: 10px; color: var(--muted); }
.card:hover .card__sub { color: var(--accent); }
.grid--top .card { gap: 12px; }
.grid--top .card__title { font-size: 20px; letter-spacing: -0.02em; line-height: 1.15; }
.grid--top .card__text { gap: 2px; }
.grid--top .badge { top: 10px; right: 10px; font-size: 11px; padding: 3px 7px; }
.grid--top .card__sub { font-size: 11px; }

.pcard { display: flex; flex-direction: column; gap: 14px; }
.pcard__img { aspect-ratio: 3 / 2; }
.pcard__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pcard__name { font-weight: 400; font-size: 30px; letter-spacing: -0.03em; line-height: 1.05; }
.pcard .mono { font-size: 11px; white-space: nowrap; }
.pcard:hover .muted { color: var(--accent); }
.pcard--small { gap: 10px; }
.pcard--small .pcard__name { font-size: 22px; letter-spacing: -0.02em; }

/* ---------- Projet ---------- */

.project { padding-bottom: 40px; }
.project__info { display: flex; flex-wrap: wrap; gap: 32px clamp(24px, 4vw, 64px); border-top: 1px solid var(--line); padding-top: 24px; }
.facts { flex: 1 1 260px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; align-content: start; font-size: 15px; }
.facts dt { font-size: 11px; color: var(--muted); padding-top: 3px; }
.facts__tags { grid-column: 1 / -1; padding-top: 6px; font-size: 11px; }
.prose { display: flex; flex-direction: column; gap: 14px; font-size: 18px; line-height: 1.5; max-width: 64ch; color: var(--body-2); flex: 2 1 420px; min-width: 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose--small { font-size: 16px; flex: none; }
.prose--about { font-size: 19px; max-width: 52ch; flex: none; }

/* ---------- Œuvre ---------- */

.work {
	padding-block: clamp(20px, 3vw, 40px) 64px;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
	gap: 40px clamp(24px, 5vw, 80px); align-items: start;
}
.work__img { display: block; aspect-ratio: 1; background: var(--placeholder); border-radius: 2px; overflow: hidden; }
.work__img img { width: 100%; height: 100%; object-fit: cover; }
.work__panel { display: flex; flex-direction: column; gap: 32px; position: sticky; top: 96px; }
.work__nav { display: flex; justify-content: space-between; gap: 16px; }
.work__btns { display: flex; gap: 10px; flex-wrap: wrap; }

.cartel { background: var(--white); padding: 20px 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; align-items: start; font-size: 15px; }
.cartel__rows { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 20px; }
.cartel__rows dt { font-size: 11px; color: var(--muted); padding-top: 3px; }
.cartel__geo { display: block; font-size: 11px; padding-top: 2px; }
.cartel--mini { position: absolute; left: 16px; bottom: 16px; right: auto; max-width: calc(100% - 32px); padding: 14px 16px; display: flex; gap: 14px; align-items: flex-end; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); }
.cartel__text { display: flex; flex-direction: column; gap: 2px; min-width: 160px; }
.cartel__text .mono { font-size: 10px; }
.cartel__text .accent { padding-top: 6px; }
.cartel__title { font-weight: 600; font-size: 22px; letter-spacing: -0.02em; line-height: 1.1; transition: color var(--ease); }
.cartel__tech { font-size: 13px; color: #55534D; }

.qr { flex: none; line-height: 0; }
.qr svg { display: block; shape-rendering: crispEdges; }

@media (max-width: 379px) {
	.cartel { grid-template-columns: 1fr; }
	.cartel--mini { flex-direction: column; align-items: flex-start; }
}

/* ---------- Écran de scan ---------- */

.is-scan main { background: var(--ink); color: var(--paper); }
.scan { min-height: calc(100vh - 76px); display: flex; justify-content: center; padding: clamp(24px, 4vw, 56px) 16px 64px; }
.scan__in { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 24px; }
.scan__title { font-weight: 300; font-size: 56px; letter-spacing: -0.045em; line-height: 0.95; }
.scan__title strong { font-weight: 600; }
.scan__img { display: block; aspect-ratio: 1; background: var(--dark-placeholder); border-radius: 2px; overflow: hidden; }
.scan__img img { width: 100%; height: 100%; object-fit: cover; }
.facts--dark { flex: none; border-top: 1px solid var(--dark-line); padding-top: 16px; }
.facts--dark dt { color: var(--dark-muted); }
.scan__text { display: flex; flex-direction: column; gap: 12px; font-size: 19px; line-height: 1.45; color: var(--dark-body); }
.scan__actions { display: flex; flex-direction: column; gap: 10px; }
.scan__share { align-self: center; color: var(--dark-muted); padding: 10px; }
.scan__share:hover { color: var(--accent); }

/* ---------- Carte ---------- */

.map { position: relative; aspect-ratio: 16 / 9; min-height: 320px; background: var(--placeholder); border-radius: 2px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.map--wide { aspect-ratio: 21 / 9; }
.map.is-loaded .map__load, .map.is-loaded .map__hint { display: none; }
.map__hint { position: absolute; left: 14px; bottom: 12px; font-size: 11px; }
.mapview { display: flex; flex-wrap: wrap; gap: 24px; }
.map--full { flex: 2 1 520px; aspect-ratio: auto; min-height: clamp(360px, 60vh, 560px); }
.places { flex: 1 1 280px; display: flex; flex-direction: column; }
.places__title { font-size: 11px; padding-bottom: 12px; }
.place { display: flex; flex-direction: column; gap: 2px; padding: 16px 0; border-top: 1px solid var(--line); }
.place__name { font-size: 22px; letter-spacing: -0.02em; }
.place .mono { font-size: 11px; }
.place:hover .muted { color: var(--accent); }
.gm-style .d4z-info { display: flex; gap: 10px; align-items: center; width: 210px; font-family: var(--display); color: var(--ink); }
.gm-style .d4z-info img { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: 2px; background: var(--placeholder); }
.gm-style .d4z-info strong { display: block; font-weight: 500; font-size: 14px; line-height: 1.2; }
.gm-style .d4z-info span { display: block; font-family: var(--mono); font-size: 10px; line-height: 1.3; color: var(--muted); padding-top: 2px; }
.gm-style .d4z-info:hover strong { color: var(--accent); }
.gm-style .gm-style-iw-c { padding: 10px !important; border-radius: 2px; }
.gm-style .gm-style-iw-d { overflow: hidden !important; padding: 0 !important; }
.gm-style .gm-style-iw-chr { position: absolute; top: 0; right: 0; }
.gm-style .gm-style-iw-chr button { width: 28px !important; height: 28px !important; }
.gm-style .gm-style-iw-chr button span { margin: 6px !important; width: 16px !important; height: 16px !important; }

/* ---------- À propos ---------- */

.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px clamp(24px, 5vw, 96px); }
.about__text, .about__contact { display: flex; flex-direction: column; gap: 28px; }
.about__contact { align-self: end; }
.about__contact > .mono { font-size: 11px; }
.about__mail { font-weight: 300; font-size: clamp(36px, 4vw, 60px); letter-spacing: -0.035em; line-height: 1; }
.socials { border-top: 1px solid var(--line); }
.socials a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
