/* DL Cutaway Models — Hangar clair */

@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-var.woff") format("woff");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
}

:root {
	--paper: #f3f4f2;
	--panel: #ffffff;
	--ink: #16191d;
	--muted: #535b65;
	--line: #d8dcdf;
	--line-strong: #b9bfc5;
	--navy: #1c3d74;
	--navy-dark: #132b54;
	--navy-tint: #e6ecf5;
	--sun: #f2b632;
	--sun-tint: #fbefd2;

	--font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--narrow: 74%;
	--r-s: 6px;
	--r-m: 10px;
	--wrap: 1320px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-variant-numeric: tabular-nums;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-dark); }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 {
	font-stretch: var(--narrow);
	font-weight: 750;
	line-height: 1.02;
	letter-spacing: -0.01em;
	margin: 0;
	text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-s); }
.skip-link:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.site-main { min-height: 60vh; outline: none; }

.icon { flex: none; }

/* Boutons, étiquettes ------------------------------------------------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 10px 20px;
	background: var(--navy); color: #fff; border: 1px solid var(--navy);
	border-radius: var(--r-s); font-weight: 600; text-decoration: none; line-height: 1.2;
}
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--navy-tint); color: var(--navy-dark); border-color: var(--navy); }
.btn-block { width: 100%; }

.tag-scale, .tag {
	display: inline-flex; align-items: center; height: 26px; padding: 0 9px;
	border-radius: 4px; font-size: 0.85rem; font-weight: 600; line-height: 1;
}
.tag-scale { background: var(--sun); color: var(--ink); font-stretch: var(--narrow); font-size: 0.95rem; font-weight: 700; }
.tag { border: 1px solid var(--line-strong); color: var(--muted); font-weight: 500; }
.tag-quiet { border-color: var(--line); }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }

.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; margin: 14px 0 0; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 0.95rem; margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumb a + a::before { content: "/"; color: var(--line-strong); margin: 0 10px; }

/* En-tête -------------------------------------------------------------- */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(243, 244, 242, 0.94);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark {
	display: inline-grid; place-items: center; width: 40px; height: 40px;
	background: var(--ink); color: var(--paper); border-radius: 4px;
	font-stretch: 62%; font-weight: 800; font-size: 1.25rem; letter-spacing: 0.02em;
}
.brand-name { font-stretch: 85%; font-weight: 650; font-size: 1.15rem; letter-spacing: -0.005em; }

.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
	display: block; padding: 10px 12px; border-radius: var(--r-s);
	color: var(--ink); text-decoration: none; font-weight: 500;
}
.main-nav a:hover { background: var(--panel); color: var(--navy); }
.main-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--navy); border-radius: 0; }

.header-search {
	margin-left: auto; position: relative; display: flex; align-items: center;
	width: min(320px, 30vw);
}
.header-search .icon { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.header-search input {
	width: 100%; height: 44px; padding: 0 12px 0 38px;
	background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-s);
}
.header-search input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px var(--navy-tint); }

.menu-toggle {
	display: none; width: 46px; height: 46px; margin-left: auto;
	background: transparent; border: 1px solid var(--line); border-radius: var(--r-s);
	align-items: center; justify-content: center;
}

@media (max-width: 920px) {
	.header-inner { flex-wrap: wrap; gap: 12px; padding-block: 10px; }
	.menu-toggle { display: inline-flex; }
	.header-search { order: 3; width: 100%; margin-left: 0; }
	.main-nav { order: 4; width: 100%; display: none; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; padding-bottom: 8px; }
	.main-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.1rem; }
	.main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--navy); padding-left: 12px; }
}

/* Sélecteur de langue */
.lang-nav { display: inline-flex; flex: none; padding: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-s); }
.lang-nav a {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 36px; padding: 0 8px;
	border-radius: 4px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em;
}
.lang-nav a:hover { color: var(--navy); background: var(--navy-tint); }
.lang-nav a[aria-current="true"] { background: var(--ink); color: #fff; }
@media (max-width: 920px) {
	.lang-nav { margin-left: auto; }
	.lang-nav + .menu-toggle { margin-left: 0; }
}

/* Titres de page -------------------------------------------------------- */

.page-head { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(20px, 3vw, 32px); }
.term-title { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.term-logo { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px 16px; }
.term-logo img { max-height: 56px; width: auto; }

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

.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(24px, 4vw, 48px); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-text h1 { font-size: clamp(2.3rem, 4.6vw, 4.1rem); }

.hero-search { position: relative; display: flex; gap: 8px; margin-top: 28px; max-width: 560px; }
.hero-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.hero-search input {
	flex: 1; min-width: 0; height: 52px; padding: 0 14px 0 44px;
	background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-s); font-size: 1.05rem;
}
.hero-search input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px var(--navy-tint); }
.hero-search .btn { min-height: 52px; }

.hero-stats { display: flex; gap: clamp(20px, 4vw, 44px); margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { color: var(--muted); font-size: 0.95rem; }
.hero-stats dd { margin: 0; font-stretch: var(--narrow); font-weight: 750; font-size: 2.6rem; line-height: 1; }

.hero-pair { position: relative; display: grid; grid-template-columns: 1fr; text-decoration: none; color: var(--ink); }
.hero-model { position: relative; display: block; border-radius: var(--r-m); overflow: hidden; background: #dfe2e4; aspect-ratio: 4 / 3; }
.hero-model img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero-pair:hover .hero-model img { transform: scale(1.02); }
.hero-real {
	position: absolute; right: -12px; bottom: 76px; width: 42%;
	border-radius: var(--r-s); overflow: hidden; border: 5px solid var(--paper);
	box-shadow: 0 10px 30px rgba(22, 25, 29, 0.18); aspect-ratio: 4 / 3; background: #dfe2e4;
}
.hero-real img { width: 100%; height: 100%; object-fit: cover; }
.pair-label {
	position: absolute; left: 10px; top: 10px; padding: 4px 9px;
	background: var(--panel); color: var(--ink); border-radius: 4px; font-size: 0.85rem; font-weight: 600;
}
.hero-real .pair-label { background: var(--navy); color: #fff; }
.hero-caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding-top: 14px; }
.hero-caption-title { font-stretch: var(--narrow); font-weight: 700; font-size: 1.5rem; line-height: 1.1; }

@media (max-width: 900px) {
	.hero-inner { grid-template-columns: 1fr; }
	.hero-pair { order: -1; }
	.hero-real { right: 10px; bottom: 70px; width: 40%; }
}
@media (max-width: 520px) {
	.hero-search { flex-direction: column; }
	.hero-search .icon { top: 26px; }
	.hero-stats dd { font-size: 2.1rem; }
}

.block { padding-block: clamp(32px, 5vw, 56px); }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.block-note { color: var(--muted); margin: 0; max-width: 56ch; }
.link-more { font-weight: 600; padding: 8px 0; }

.scale-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.scale-list a {
	display: grid; grid-template-columns: 70px minmax(0, 1fr) 110px 120px; align-items: center; gap: 16px;
	padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.scale-list a:hover { background: var(--panel); }
.scale-list a:hover .scale-bar span { background: var(--navy-dark); }
.scale-name { font-stretch: var(--narrow); font-weight: 750; font-size: 1.45rem; }
.scale-bar { height: 10px; background: #e3e6e8; border-radius: 5px; overflow: hidden; }
.scale-bar span { display: block; height: 100%; background: var(--navy); border-radius: 5px; }
.scale-span { color: var(--muted); text-align: right; }
.scale-count { text-align: right; font-weight: 600; }
@media (max-width: 640px) {
	.scale-list a { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "n b c" "n s c"; row-gap: 4px; }
	.scale-name { grid-area: n; font-size: 1.25rem; }
	.scale-bar { grid-area: b; }
	.scale-span { grid-area: s; text-align: left; font-size: 0.9rem; }
	.scale-count { grid-area: c; font-size: 0.95rem; }
}

.logo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.logo-grid a {
	display: grid; grid-template-columns: 1fr auto; grid-template-rows: 64px auto; gap: 8px 6px;
	height: 100%; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m);
	color: var(--ink); text-decoration: none;
}
.logo-grid a:hover { border-color: var(--navy); }
.logo-box { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; }
.logo-box img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; }
.logo-fallback { font-stretch: var(--narrow); font-weight: 700; font-size: 1.15rem; color: var(--muted); text-align: center; }
.logo-name { font-size: 0.95rem; font-weight: 500; line-height: 1.25; }
.logo-count { font-size: 0.9rem; color: var(--muted); }

/* Cartes --------------------------------------------------------------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.grid-home { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

.card { min-width: 0; }
.card[hidden] { display: none; }
.card-link {
	display: flex; flex-direction: column; height: 100%;
	background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden;
	color: var(--ink); text-decoration: none;
}
.card-link:hover { border-color: var(--navy); color: var(--ink); }
.card-link:hover .card-title { color: var(--navy); }
.card-media { position: relative; display: block; aspect-ratio: 10 / 7; background: #e3e6e8; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-flag {
	position: absolute; left: 10px; top: 10px; padding: 3px 8px;
	background: var(--navy); color: #fff; border-radius: 4px; font-size: 0.8rem; font-weight: 600;
}
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.card-title { font-stretch: var(--narrow); font-weight: 700; font-size: 1.4rem; line-height: 1.1; margin-top: 4px; }
.card-meta { color: var(--muted); font-size: 0.95rem; line-height: 1.35; }
.card-counts { color: var(--muted); font-size: 0.85rem; margin-top: auto; padding-top: 6px; }

/* Collection et filtres ---------------------------------------------- */

.filters { display: flex; flex-direction: column; gap: 18px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.field-search { position: relative; flex: 1 1 320px; display: flex; align-items: center; }
.field-search .icon { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.field-search input {
	width: 100%; height: 48px; padding: 0 14px 0 40px;
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s);
}
.field-search input:focus, .field-select select:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px var(--navy-tint); }
.field-select { display: flex; flex-direction: column; gap: 4px; flex: 0 1 200px; font-size: 0.9rem; color: var(--muted); }
.field-select select {
	height: 48px; padding: 0 36px 0 12px; color: var(--ink); font-size: 1rem;
	background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23535b65' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center;
	border: 1px solid var(--line); border-radius: var(--r-s); appearance: none;
}

.ruler { border: 0; margin: 0; padding: 0; min-width: 0; }
.ruler legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.ruler-help { font-weight: 400; color: var(--muted); font-size: 0.9rem; margin-left: 8px; }
.ruler-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
@media (max-width: 1100px) and (min-width: 641px) { .ruler-list { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); } }
.ruler-item {
	display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l c" "b b" "s s"; gap: 4px 6px; align-items: center;
	min-height: 70px; padding: 8px 10px; text-align: left;
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s);
}
.ruler-item:hover { border-color: var(--navy); }
.ruler-item.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.ruler-label { grid-area: l; font-stretch: var(--narrow); font-weight: 750; font-size: 1.2rem; line-height: 1; }
.ruler-count { grid-area: c; font-size: 0.85rem; color: var(--muted); }
.ruler-bar { grid-area: b; height: 6px; background: #e0e3e6; border-radius: 3px; overflow: hidden; }
.ruler-bar span { display: block; height: 100%; background: var(--navy); border-radius: 3px; }
.ruler-span { grid-area: s; font-size: 0.8rem; color: var(--muted); }
.ruler-item.is-on .ruler-count, .ruler-item.is-on .ruler-span { color: #d6e0f0; }
.ruler-item.is-on .ruler-bar { background: rgba(255, 255, 255, 0.25); }
.ruler-item.is-on .ruler-bar span { background: var(--sun); }
.ruler-item[data-scale=""] { grid-template-areas: "l c" "l c" "l c"; }

.filter-row-bottom { justify-content: space-between; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
	min-height: 40px; padding: 6px 14px; background: var(--paper);
	border: 1px solid var(--line); border-radius: 20px; font-size: 0.95rem;
}
.chip:hover { border-color: var(--navy); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-count { color: var(--muted); margin-left: 2px; }
.chip.is-on .chip-count { color: #c5cbd2; }

.photo-mode, .lang-switch { display: inline-flex; padding: 3px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s); }
.photo-mode button, .lang-switch button {
	min-height: 40px; padding: 6px 14px; border: 0; background: transparent; border-radius: 4px; font-weight: 500; color: var(--muted);
}
.photo-mode button[aria-pressed="true"], .lang-switch button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(22, 25, 29, 0.12); font-weight: 600; }

.result-count { margin: 22px 0 14px; color: var(--muted); font-weight: 500; }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }
.empty p { margin: 0 0 16px; font-size: 1.1rem; }

@media (max-width: 640px) {
	.filters { padding: 14px; gap: 14px; margin-inline: calc(var(--gutter) * -0.5); }
	.field-select { flex: 1 1 calc(50% - 8px); min-width: 0; }
	.field-select select { width: 100%; min-width: 0; }
	.field-select:has([data-f="tri"]) { flex-basis: 100%; }
	.ruler-list { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; }
	.ruler-item { flex: 0 0 112px; scroll-snap-align: start; }
	.ruler-help { display: block; margin: 2px 0 0; }
	.chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; }
	.chip { flex: none; }
	.photo-mode { width: 100%; }
	.photo-mode button { flex: 1; }
	.grid { gap: 14px; }
}

/* Fiche maquette ------------------------------------------------------ */

.model-head {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); column-gap: clamp(24px, 4vw, 56px); align-items: end;
	padding-top: clamp(20px, 3vw, 36px); padding-bottom: 28px;
}
.model-head .breadcrumb { grid-column: 1 / -1; }

/* Médaillon Maquette / Avion réel en haut de fiche */
.model-medal { position: relative; margin: 8px 14px 14px 0; }
.model-medal button { display: block; width: 100%; padding: 0; border: 0; background: #e3e6e8; cursor: zoom-in; position: relative; overflow: hidden; }
.model-medal img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .25s ease; }
.model-medal button:hover img { transform: scale(1.03); }
.medal-model { aspect-ratio: 4 / 3; border-radius: var(--r-m); }
.medal-real {
	position: absolute !important; right: -14px; bottom: -14px; width: 46% !important; aspect-ratio: 4 / 3;
	border: 4px solid var(--paper) !important; border-radius: var(--r-s); box-shadow: 0 10px 28px rgba(22, 25, 29, 0.2);
}
.medal-real .pair-label { background: var(--navy); color: #fff; }
.model-medal .pair-label { left: 8px; top: 8px; font-size: 0.8rem; }
@media (max-width: 980px) {
	.model-head { grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); }
}
@media (max-width: 720px) {
	.model-head { grid-template-columns: 1fr; row-gap: 18px; }
	.model-medal { display: grid; grid-template-columns: 3fr 2fr; gap: 8px; margin: 0; }
	.medal-real { position: relative !important; right: auto; bottom: auto; width: 100% !important; border: 0 !important; box-shadow: none; align-self: stretch; aspect-ratio: auto; }
	.model-medal.is-single { grid-template-columns: 1fr; }
}
.model-titles h1 { margin-top: 12px; font-size: clamp(2.3rem, 5vw, 4.2rem); }
.model-sub { margin: 10px 0 0; font-size: 1.2rem; color: var(--muted); }

.model-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 980px) { .model-layout { grid-template-columns: minmax(0, 1fr); } }

.viewer-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.viewer-tabs button {
	min-height: 44px; padding: 8px 16px; background: transparent;
	border: 1px solid var(--line); border-radius: var(--r-s); font-weight: 500; color: var(--muted);
}
.viewer-tabs button:hover { border-color: var(--navy); color: var(--ink); }
.viewer-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.viewer-tabs button[data-tab="reel"][aria-selected="true"] { background: var(--navy); border-color: var(--navy); }
.tab-count { opacity: 0.7; font-weight: 400; margin-left: 2px; }

.stages { display: grid; grid-template-columns: 1fr; gap: 12px; }
.stages.is-compare { grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .stages.is-compare { grid-template-columns: 1fr; } }
.stage { margin: 0; min-width: 0; }
.stage[hidden] { display: none; }
.stage-frame {
	position: relative; aspect-ratio: 3 / 2; background: #e3e6e8; border-radius: var(--r-m); overflow: hidden;
	display: flex; align-items: center; justify-content: center; touch-action: pan-y;
}
.stage-img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; transition: opacity .18s ease; }
.stage-img.is-loading { opacity: 0.35; }
.stage-empty { color: var(--muted); padding: 24px; text-align: center; }
.stage-nav, .stage-zoom {
	position: absolute; display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, 0.92); color: var(--ink); box-shadow: 0 2px 8px rgba(22, 25, 29, 0.18);
}
.stage-nav:hover, .stage-zoom:hover { background: #fff; color: var(--navy); }
.stage-nav.prev { left: 12px; top: 50%; transform: translateY(-50%); }
.stage-nav.next { right: 12px; top: 50%; transform: translateY(-50%); }
.stage-zoom { right: 12px; top: 12px; width: 44px; height: 44px; border-radius: var(--r-s); }
.stage-nav[disabled] { display: none; }
.stage-cap { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 10px 2px 0; font-size: 0.95rem; color: var(--muted); }
.stage-cap [data-cap-kind] { font-weight: 600; color: var(--ink); }
.stage-cap [data-cap-kind]:empty, .stage-cap [data-cap-text]:empty { display: none; }

.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.thumb {
	flex: 0 0 96px; height: 68px; padding: 0; border: 2px solid transparent; border-radius: var(--r-s);
	overflow: hidden; background: #e3e6e8; scroll-snap-align: start;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.thumb:hover img, .thumb.is-on img { opacity: 1; }
.thumb.is-on { border-color: var(--navy); }
.thumbs.is-hidden { display: none; }

.specs { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 18px; }
.admin-bar .specs { top: calc(var(--header-h) + 52px); }
@media (max-width: 980px) { .specs { position: static; } }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); }
.spec-list > div { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.spec-list > div:nth-child(odd):not(.spec-wide) { border-right: 1px solid var(--line); }
.spec-list > div:last-child { border-bottom: 0; }
.spec-wide { grid-column: 1 / -1; border-right: 0 !important; }
.spec-list dt { font-size: 0.85rem; color: var(--muted); }
.spec-list dd { margin: 2px 0 0; font-weight: 600; }
.spec-big { font-stretch: var(--narrow); font-weight: 750 !important; font-size: 1.8rem; line-height: 1.05; }
.spec-terms { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.spec-terms a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 4px 0; }
.spec-terms a:hover span { text-decoration: underline; }
.spec-logo { max-height: 30px; width: auto; max-width: 110px; }
.spec-title-orig { margin: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.4; }

.description { padding-block: clamp(36px, 5vw, 64px) 8px; }
.desc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 20px; max-width: 760px; }
.prose { max-width: 70ch; font-size: 1.08rem; }
.prose p { margin: 0 0 1em; }
.prose h3 { font-size: 1.35rem; margin: 1.6em 0 0.5em; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--navy); }
.prose img { border-radius: var(--r-s); }
.prose.is-clamped { max-height: 22em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
[data-more] { margin-top: 8px; }
[data-more][hidden] { display: none; }

.related { padding-block: clamp(32px, 5vw, 56px) 0; }
.related h2 { margin-bottom: 18px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.rail-item { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; color: var(--ink); text-decoration: none; scroll-snap-align: start; }
.rail-media { display: block; width: 100%; aspect-ratio: 10 / 7; border-radius: var(--r-s); overflow: hidden; background: #e3e6e8; margin-bottom: 4px; }
.rail-media img { width: 100%; height: 100%; object-fit: cover; }
.rail-title { font-stretch: var(--narrow); font-weight: 700; font-size: 1.2rem; line-height: 1.1; }
.rail-item:hover .rail-title { color: var(--navy); }

.pager { display: flex; justify-content: space-between; gap: 16px; padding-block: 40px; }
.pager-link {
	display: flex; flex-direction: column; gap: 4px; max-width: 48%; padding: 14px 16px;
	border: 1px solid var(--line); border-radius: var(--r-m); background: var(--panel); text-decoration: none; color: var(--ink);
}
.pager-link:hover { border-color: var(--navy); }
.pager-link.next { margin-left: auto; text-align: right; align-items: flex-end; }
.pager-dir { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 0.9rem; }
.pager-name { font-weight: 600; line-height: 1.3; }

/* Visionneuse plein écran -------------------------------------------- */

.lightbox {
	position: fixed; inset: 0; z-index: 200; background: rgba(12, 14, 17, 0.96);
	display: flex; align-items: center; justify-content: center; touch-action: pan-y;
}
.lightbox[hidden] { display: none; }
.lb-img { max-width: calc(100vw - 140px); max-height: calc(100vh - 110px); object-fit: contain; user-select: none; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; color: #c9ced4; font-size: 0.95rem; padding-inline: 70px; }
.lb-btn {
	position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, 0.1); color: #fff;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.22); }
.lb-btn:focus-visible { outline-color: var(--sun); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
	.lb-img { max-width: 100vw; max-height: calc(100vh - 140px); }
	.lb-prev, .lb-next { top: auto; bottom: 52px; transform: none; }
	.lb-cap { bottom: 16px; padding-inline: 16px; }
}
body.lb-open { overflow: hidden; }

/* Listes compagnies / avionneurs ------------------------------------- */

.hub-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.hub-item a { display: flex; flex-direction: column; height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; color: var(--ink); text-decoration: none; }
.hub-item a:hover { border-color: var(--navy); }
.hub-thumbs { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 2px; aspect-ratio: 16 / 8; background: #e3e6e8; overflow: hidden; }
.hub-thumbs img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.hub-thumbs img:first-child { grid-row: 1 / 3; }
.hub-thumbs img:only-child { grid-column: 1 / -1; grid-row: 1 / 3; }
.hub-thumbs img:first-child:nth-last-child(2) { grid-row: 1 / 3; }
.hub-thumbs img:nth-child(2):last-child { grid-row: 1 / 3; }
.hub-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.hub-logo img { max-height: 34px; width: auto; max-width: 150px; }
.hub-name { font-stretch: var(--narrow); font-weight: 700; font-size: 1.4rem; line-height: 1.1; }
.hub-item a:hover .hub-name { color: var(--navy); }

/* Actualités ----------------------------------------------------------- */

.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.news-item a { display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.news-media { display: block; aspect-ratio: 10 / 7; border-radius: var(--r-s); overflow: hidden; background: #e3e6e8; margin-bottom: 4px; }
.news-media:empty { display: none; }
.news-media img { width: 100%; height: 100%; object-fit: cover; }
.news-item time, .article time { color: var(--muted); font-size: 0.9rem; }
.news-title { font-stretch: var(--narrow); font-weight: 700; font-size: 1.35rem; line-height: 1.15; }
.news-item a:hover .news-title { color: var(--navy); }
.news-excerpt { color: var(--muted); font-size: 0.98rem; }

.article { padding-block: clamp(28px, 5vw, 56px); }
.article h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin: 8px 0 24px; }
.article-media { margin: 0 0 28px; }
.article-media img { border-radius: var(--r-m); }

.pagination .nav-links, .comments-pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-s); text-decoration: none; background: var(--panel); }
.page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Commentaires --------------------------------------------------------- */

.comments { padding-block: 24px 48px; border-top: 1px solid var(--line); }
.comments h2 { font-size: 1.6rem; margin-bottom: 18px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 28px; }
.comment-list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-author { font-weight: 600; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 0.85rem; }
.comment-metadata a { color: var(--muted); }
.comment-content p { margin: 8px 0 0; }
.comment-form label { display: block; font-weight: 500; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-s);
}
.comment-form textarea { min-height: 140px; }
.comment-form p { margin: 0 0 14px; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }

/* Pied de page ------------------------------------------------------- */

.site-footer { margin-top: clamp(40px, 6vw, 80px); background: var(--ink); color: #c9ced4; }
.site-footer a { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: var(--paper); color: var(--ink); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-block: 48px 32px; }
.footer-inner h2 { font-size: 1.1rem; color: #fff; margin-bottom: 12px; font-stretch: 100%; font-weight: 600; }
.footer-about p { max-width: 44ch; margin: 14px 0 0; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav a { display: inline-block; padding: 6px 0; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.with-icon { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; word-break: break-all; }
.socials { display: flex; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #3a4048; border-radius: var(--r-s); }
.icon-btn:hover { border-color: #fff; }
.footer-legal { border-top: 1px solid #2c3137; padding-block: 18px; font-size: 0.9rem; }
.footer-legal p { margin: 0; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header, .site-footer, .filters, .viewer-tabs, .thumbs, .stage-nav, .stage-zoom, .pager, .comments { display: none !important; }
	.prose.is-clamped { max-height: none; mask-image: none; -webkit-mask-image: none; }
}

/* Documents d'époque ------------------------------------------------- */

.model-jump { margin: 14px 0 0; }
.model-jump a { font-weight: 600; padding: 6px 0; display: inline-block; }
.lang-note { margin: -8px 0 16px; color: var(--muted); font-style: italic; }

.documents { padding-block: clamp(36px, 5vw, 64px) 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.doc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr)); gap: 12px; }
.doc-thumb {
	display: block; width: 100%; padding: 0; aspect-ratio: 3 / 4; background: var(--panel);
	border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; cursor: zoom-in;
}
.doc-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; transition: transform .3s ease; }
.doc-thumb:hover { border-color: var(--navy); }
.doc-thumb:hover img { transform: scale(1.03); }

.filters-docs { margin-bottom: 4px; }
.doc-groups { display: flex; flex-direction: column; gap: 28px; }
.doc-group { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); align-items: start; }
.doc-group[hidden] { display: none; }
.doc-model { display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.doc-model-media { display: block; aspect-ratio: 10 / 7; border-radius: var(--r-s); overflow: hidden; background: #e3e6e8; }
.doc-model-media img { width: 100%; height: 100%; object-fit: cover; }
.doc-model-text { display: flex; flex-direction: column; gap: 4px; }
.doc-model-name { font-stretch: var(--narrow); font-weight: 700; font-size: 1.35rem; line-height: 1.1; }
.doc-model:hover .doc-model-name { color: var(--navy); }
.doc-group .doc-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (max-width: 760px) {
	.doc-group { grid-template-columns: 1fr; gap: 12px; }
	.doc-model { flex-direction: row; align-items: center; gap: 12px; }
	.doc-model-media { width: 112px; flex: none; }
	.doc-group .doc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
}

.docs-note { margin: -10px 0 20px; }
.docs-teaser { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.docs-teaser a { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; }
.docs-teaser-media { display: block; aspect-ratio: 3 / 4; border-radius: var(--r-s); overflow: hidden; background: var(--panel); border: 1px solid var(--line); margin-bottom: 4px; }
.docs-teaser-media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.docs-teaser a:hover .docs-teaser-media { border-color: var(--navy); }
.docs-teaser-name { font-weight: 600; line-height: 1.25; }
@media (max-width: 1000px) { .docs-teaser { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .docs-teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
