/* nsark 20261113 — Blog Nasri Salhab */

:root {
	--paper: #f7f2e8;
	--paper-2: #efe6d4;
	--card: #fcf9f3;
	--ink: #1d2230;
	--ink-2: #474c5a;
	--muted: #7b7465;
	--gold: #94733a;
	--gold-2: #c6a86a;
	--line: #ddd0b5;
	--night: #1a2131;
	--night-2: #243048;
	--note: #8a5a00;

	--display: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
	--text: "Source Serif 4", "Georgia", serif;
	--arabic: "Amiri", "Traditional Arabic", serif;

	--wrap: 1160px;
	--narrow: 720px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 2px;
	--shadow: 0 1px 2px rgba(29, 34, 48, .06), 0 10px 30px -12px rgba(29, 34, 48, .25);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--text);
	font-size: clamp(17px, 1.05vw + 12px, 19px);
	line-height: 1.7;
	font-optical-sizing: auto;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.1em; }
em { font-style: italic; }

.ar, [lang="ar"] { font-family: var(--arabic); font-style: normal; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.center { text-align: center; }
.muted { color: var(--muted); font-size: .92em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

.kicker {
	font-family: var(--text);
	font-size: .74rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 .9em;
	font-weight: 500;
}
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { color: var(--ink); }

/* --- Draft bar & notes ------------------------------------------------ */

.draftbar {
	background: #fff4d6;
	color: var(--note);
	text-align: center;
	font-size: .8rem;
	padding: 6px 16px;
	border-bottom: 1px solid #ecd9a5;
}

.note {
	border: 1.5px dashed #d9b25c;
	background: #fff8e6;
	color: var(--note);
	padding: 14px 18px 14px 44px;
	margin: 1.6em 0;
	font-size: .9rem;
	line-height: 1.55;
	position: relative;
	border-radius: 4px;
}
.note::before { content: "✎"; position: absolute; left: 16px; top: 12px; font-size: 1.1rem; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(247, 242, 232, .92);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.monogram {
	display: grid; place-items: center;
	width: 46px; height: 46px; flex: none;
	border: 1px solid var(--gold);
	border-radius: 50%;
	font-family: var(--display);
	font-size: 1.15rem;
	letter-spacing: .06em;
	color: var(--gold);
	box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--gold-2);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-size: 1.5rem; font-weight: 500; letter-spacing: .04em; }
.brand-ar { font-size: .95rem; color: var(--muted); text-align: left; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 2vw, 30px); }
.site-nav a {
	font-size: .82rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink-2);
	padding: 6px 0;
	border-bottom: 1px solid transparent;
	transition: color .2s, border-color .2s;
}
.site-nav a:hover { color: var(--ink); border-color: var(--gold-2); }
.site-nav a[aria-current="page"] { color: var(--ink); border-color: var(--gold); }

.nav-toggle { display: none; background: none; border: 0; padding: 12px; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
	display: block; width: 24px; height: 1.5px; background: var(--ink); position: relative; transition: transform .25s, background .25s;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 20px 30px -20px rgba(0,0,0,.25);
		display: none;
	}
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 18px; }
	.site-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
	.site-nav li:last-child a { border-bottom: 0; }
	.site-nav a[aria-current="page"] { border-color: var(--line); color: var(--gold); }
}

/* --- Buttons & links ----------------------------------------------------- */

.btn {
	display: inline-block;
	padding: 13px 26px;
	background: var(--ink);
	color: var(--paper);
	text-decoration: none;
	font-size: .78rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	border: 1px solid var(--ink);
	transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--light { background: transparent; color: var(--paper); border-color: var(--gold-2); }
.btn--light:hover { background: var(--gold-2); color: var(--night); }

.link-arrow { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.link-arrow span { display: inline-block; transition: transform .2s; }
.link-arrow:hover span { transform: translateX(4px); }

/* --- Ornament ------------------------------------------------------------ */

.ornament {
	display: block; position: relative; height: 14px; margin: 0 auto 2rem; width: 180px;
}
.ornament::before {
	content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold-2) 30%, var(--gold-2) 70%, transparent);
}
.ornament::after {
	content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px;
	background: var(--paper); border: 1px solid var(--gold); transform: translate(-50%, -50%) rotate(45deg);
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
	padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 8vw, 100px);
	background:
		radial-gradient(ellipse at 80% 20%, rgba(198, 168, 106, .18), transparent 55%),
		radial-gradient(ellipse at 10% 90%, rgba(198, 168, 106, .10), transparent 50%);
	border-bottom: 1px solid var(--line);
}
.hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.hero-title { font-size: clamp(3.4rem, 8vw, 6.4rem); font-weight: 400; line-height: .95; margin: 0; letter-spacing: -.005em; }
.hero-ar { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--gold); margin: .3em 0 .8em; text-align: left; }
.hero-roles { font-family: var(--display); font-style: italic; font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: var(--ink-2); line-height: 1.5; }
.hero-roles span { color: var(--gold-2); padding: 0 .25em; font-style: normal; }
.hero-lede { max-width: 34em; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

.hero-portrait { margin: 0; justify-self: center; width: 100%; max-width: 520px; } /* nsark 20261120 — photo paysage (discours) */
.frame {
	padding: 14px;
	background: var(--card);
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	position: relative;
}
.frame::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--gold-2); pointer-events: none; }
.frame img { width: 100%; filter: sepia(.15) contrast(1.02); }

@media (max-width: 860px) {
	.hero-inner { grid-template-columns: 1fr; }
	.hero-portrait { order: -1; max-width: 400px; }
	.hero-text { text-align: center; }
	.hero-ar { text-align: center; }
	.hero-lede { margin-left: auto; margin-right: auto; }
	.hero-actions { justify-content: center; }
}

/* --- Leitmotiv ----------------------------------------------------------- */

.leitmotiv { padding: clamp(56px, 8vw, 100px) 0; text-align: center; }
.leitmotiv blockquote { margin: 0; }
.leitmotiv blockquote p {
	font-family: var(--display);
	font-style: italic;
	font-size: clamp(2rem, 4.4vw, 3.3rem);
	line-height: 1.2;
	margin: 0 0 .6em;
	color: var(--ink);
}
.leitmotiv-src { color: var(--muted); max-width: 36em; margin: 0 auto; font-size: .95rem; }

/* --- Sections ------------------------------------------------------------ */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--flush-top { padding-top: 0; }
.section--tint { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--night); color: #e9e3d6; }
.section--dark .kicker { color: var(--gold-2); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-lede { color: var(--ink-2); max-width: 40em; margin-left: auto; margin-right: auto; }

.h-rule { display: flex; align-items: center; gap: 18px; font-size: 1.7rem; margin-bottom: 1.4em; }
.h-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--top { align-items: start; grid-template-columns: 1.2fr 1fr; }
.split-media { margin: 0; }
@media (max-width: 860px) { .split, .split--top { grid-template-columns: 1fr; } }

.emblem img { border-radius: 50%; box-shadow: var(--shadow); width: 100%; max-width: min(460px, 100%); margin: 0 auto; aspect-ratio: 1; object-fit: cover; } /* nsark 20261120 — ne dépasse plus sur mobile */
.emblem figcaption { text-align: center; }

.covers-mini { display: flex; gap: 14px; margin: 1.8rem 0 2rem; }
.covers-mini img { width: 96px; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: var(--shadow); }

/* --- Page head ----------------------------------------------------------- */

.page-head { padding: clamp(48px, 7vw, 90px) 0 clamp(32px, 5vw, 56px); text-align: center; }
.page-head h1 { margin-bottom: .35em; }
.page-lede { font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.5rem); font-style: italic; color: var(--ink-2); line-height: 1.45; }
.page-head--404 { min-height: 50vh; display: grid; place-items: center; }

/* --- Timeline ------------------------------------------------------------ */

.timeline { list-style: none; margin: 0 auto 2.5rem; padding: 0; max-width: 820px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 112px; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 32px; padding: 0 0 28px; position: relative; }
.timeline li::before {
	content: ""; position: absolute; left: 108px; top: 14px; width: 9px; height: 9px;
	background: var(--paper); border: 1px solid var(--gold); transform: rotate(45deg);
}
.tl-year { font-family: var(--display); font-size: 1.9rem; color: var(--gold); text-align: right; line-height: 1.2; }
.tl-body h3 { font-size: 1.35rem; margin: .15em 0 .2em; }
.tl-body p { color: var(--ink-2); margin: 0; font-size: .95rem; }
@media (max-width: 560px) {
	.timeline::before { left: 4px; }
	.timeline li { grid-template-columns: 1fr; gap: 0; padding-left: 28px; }
	.timeline li::before { left: 0; }
	.tl-year { text-align: left; font-size: 1.5rem; }
}

/* --- Cards --------------------------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(20px, 3vw, 34px); margin-bottom: 2.5rem; }
.card { background: var(--card); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--night); }
.card-media img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.25) grayscale(.2); transition: transform .6s, filter .6s; }
.card:hover .card-media img { transform: scale(1.04); filter: none; }
/* nsark 20261122 — vignette image_full : statue entière et en couleur */
.card--full .card-media { background: var(--paper-2); }
.card--full .card-media img, .card--full:hover .card-media img { object-fit: contain; filter: none; transform: none; }
.anim .card--full .card-media img { scale: none; }
/* nsark 20261122 — fond clair (demande ES : titres de lieu trop sombres) */
.card-media--place {
	display: grid; place-items: center;
	background:
		radial-gradient(circle at 50% 50%, rgba(255,255,255,.7), transparent 65%),
		repeating-linear-gradient(45deg, rgba(148,115,58,.09) 0 1px, transparent 1px 14px),
		var(--paper-2);
	border-bottom: 1px solid var(--line);
}
.card-media--place span {
	font-family: var(--display); font-style: italic; font-size: 2.6rem; color: var(--gold);
	padding: .1em .6em; border-top: 1px solid rgba(148,115,58,.45); border-bottom: 1px solid rgba(148,115,58,.45);
}
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body .kicker { margin-bottom: .6em; }
.card-title { font-size: 1.55rem; margin-bottom: .4em; }
.card-excerpt { color: var(--ink-2); font-size: .93rem; line-height: 1.6; flex: 1; }
.card-more { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }

/* --- Histoires ----------------------------------------------------------- */

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 1.5rem; }
.chip {
	text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--card);
	padding: 8px 16px; border-radius: 40px; font-size: .9rem; transition: border-color .2s, background .2s;
}
.chip span { color: var(--muted); font-size: .8rem; margin-left: 4px; }
.chip:hover { border-color: var(--gold); color: var(--ink); }

.chapter { padding: clamp(40px, 6vw, 72px) 0 clamp(8px, 2vw, 24px); }
.chapter + .chapter { border-top: 1px solid var(--line); }
.chapter-head { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "period title" "period role"; column-gap: 28px; align-items: end; margin-bottom: 32px; }
.chapter-period { grid-area: period; font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--gold); border-right: 1px solid var(--line); padding-right: 28px; margin: 0; align-self: stretch; display: flex; align-items: center; }
.chapter-head h2 { grid-area: title; margin: 0; }
.chapter-role { grid-area: role; margin: 0; color: var(--muted); font-style: italic; font-family: var(--display); font-size: 1.15rem; }

/* --- Prose --------------------------------------------------------------- */

.prose-layout { display: grid; grid-template-columns: 220px minmax(0, var(--narrow)); gap: clamp(32px, 6vw, 80px); justify-content: center; padding-bottom: 96px; }
.toc { position: sticky; top: 110px; align-self: start; font-size: .9rem; }
.toc-title { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; color: var(--ink-2); text-decoration: none; margin-left: -1px; border-left: 1px solid transparent; }
.toc a:hover, .toc a.is-active { color: var(--ink); border-color: var(--gold); }
@media (max-width: 960px) {
	.prose-layout { grid-template-columns: minmax(0, 1fr); }
	.toc { position: static; }
	.toc ol { display: flex; flex-wrap: wrap; gap: 4px 0; border: 0; }
	.toc a { border: 0; padding: 4px 16px 4px 0; }
}

.prose section { margin-bottom: 3.5rem; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin: 0 0 1em; display: flex; align-items: baseline; gap: 16px; }
.prose h2 .num { font-size: .55em; color: var(--gold); letter-spacing: .1em; border: 1px solid var(--gold-2); border-radius: 50%; width: 2.2em; height: 2.2em; display: inline-grid; place-items: center; flex: none; transform: translateY(-.25em); }
.story-body h2 { font-size: 1.7rem; margin-top: 1.6em; }
.dropcap::first-letter { font-family: var(--display); float: left; font-size: 4.4em; line-height: .8; padding: .08em .1em 0 0; color: var(--gold); }

.see-also { font-style: italic; color: var(--ink-2); border-left: 2px solid var(--gold-2); padding-left: 16px; }

.pull { margin: 2em 0; padding: 0 0 0 28px; border-left: 2px solid var(--gold); }
.pull p { font-family: var(--display); font-style: italic; font-size: clamp(1.45rem, 2.4vw, 1.8rem); line-height: 1.35; color: var(--ink); margin: 0; }
.pull--center { border: 0; padding: 0; text-align: center; }
.pull--center::before, .pull--center::after { content: ""; display: block; width: 60px; height: 1px; background: var(--gold-2); margin: 0 auto 1em; }
.pull--center::after { margin: 1em auto 0; }

.bilingual { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 2em 0; background: var(--card); border: 1px solid var(--line); }
.bilingual blockquote { margin: 0; padding: 28px 30px; }
.bi-fr { font-family: var(--display); font-style: italic; font-size: 1.22rem; line-height: 1.5; border-right: 1px solid var(--line); }
.bi-ar { font-size: 1.35rem; line-height: 1.9; text-align: right; }
.bilingual p { margin: 0 0 .6em; }
@media (max-width: 640px) { .bilingual { grid-template-columns: 1fr; } .bi-fr { border-right: 0; border-bottom: 1px solid var(--line); } }

/* --- Figures ------------------------------------------------------------- */

.fig { margin: 2.2em 0; }
.fig a { display: block; cursor: zoom-in; }
.fig img { width: 100%; box-shadow: var(--shadow); }
.fig figcaption, .emblem figcaption { font-size: .82rem; color: var(--muted); margin-top: .8em; font-style: italic; line-height: 1.5; }
.fig--wide { margin-left: clamp(-80px, -6vw, 0px); margin-right: clamp(-80px, -6vw, 0px); }
.fig--right { float: right; width: 46%; margin: .4em 0 1.2em 2em; }
@media (max-width: 640px) { .fig--right { float: none; width: 100%; margin: 2em 0; } .fig--wide { margin-left: 0; margin-right: 0; } }

.story-hero { max-width: 980px; }
.fig--hero { margin: 0 0 3rem; }
.fig--hero img { max-height: 70vh; object-fit: cover; }
/* nsark 20261122 — histoire avec image_full : photo entière, centrée, sans recadrage */
.fig--full img { width: auto; max-width: 100%; max-height: 80vh; object-fit: contain; margin: 0 auto; }
.fig--full figcaption { text-align: center; }
.story-head { padding-bottom: 2.4rem; }
.story-meta { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 1.4rem; }
.story-body { padding-bottom: 3rem; }
.story-body > p:first-of-type:not(.see-also)::first-letter { font-family: var(--display); float: left; font-size: 4.2em; line-height: .8; padding: .08em .1em 0 0; color: var(--gold); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 96px; max-width: 980px; }
.pager-link { display: flex; flex-direction: column; gap: 6px; padding: 22px 26px; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--ink); transition: border-color .2s; }
.pager-link:hover { border-color: var(--gold); color: var(--ink); }
.pager-next { text-align: right; grid-column: 2; }
.pager-dir { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.pager-title { font-family: var(--display); font-size: 1.3rem; line-height: 1.25; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager-next { grid-column: 1; } }

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

.signatories { list-style: none; padding: 0; margin: 1.5em 0 2em; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; }
.signatories li { padding: 9px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 1.18rem; }
.signatories li:last-child { color: var(--gold); font-weight: 600; }

.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); margin-bottom: 2.5rem; }
.book h3 { font-size: 1.55rem; }
.book h3 .ar { display: block; font-size: 1.15rem; color: var(--gold); margin-top: .3em; }
.book p { font-size: .95rem; color: var(--ink-2); }
.book-cover { margin: 0 0 1.6rem; }
.book-cover img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; box-shadow: 0 2px 4px rgba(0,0,0,.1), 0 18px 34px -14px rgba(0,0,0,.45); }
.book-cover--empty {
	aspect-ratio: 5 / 7; display: grid; place-items: center;
	background: linear-gradient(135deg, #3c2e22, #261c14);
	box-shadow: 0 2px 4px rgba(0,0,0,.1), 0 18px 34px -14px rgba(0,0,0,.45);
	color: #d8be84; font-size: 2rem; position: relative;
}
.book-cover--empty::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(216,190,132,.35); }
.book-cover--lg img { max-width: 360px; margin: 0 auto; }
/* nsark 20261122 — lien « Lire le livre en entier » */
.book-pdf { margin: 1em 0 0; }
.book-quote { margin: 1.4em 0 0; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); }
.book-quote p { margin: 0 0 .5em; font-size: .95rem; }
.book-quote .ar { font-size: 1.25rem; text-align: right; color: var(--ink); }
.book-quote p:last-child { font-family: var(--display); font-style: italic; font-size: 1.1rem; margin: 0; }
@media (max-width: 860px) { .books { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }

.split-text h2 .ar, .biblio h3 .ar { display: block; color: var(--gold); font-size: .7em; margin-top: .3em; }
.split-text h2 .ar, .biblio h3 .ar, .book h3 .ar { text-align: left; }

.biblio { list-style: none; padding: 0; margin: 0 0 2rem; counter-reset: b; }
.biblio > li { padding: 24px 0 24px 58px; border-bottom: 1px solid var(--line); position: relative; counter-increment: b; }
.biblio > li::before { content: counter(b, upper-roman); position: absolute; left: 0; top: 26px; font-family: var(--display); color: var(--gold); font-size: 1.1rem; width: 40px; }
.biblio h3 { margin-bottom: .2em; }
.biblio-pub { font-size: .85rem; color: var(--muted); font-style: italic; margin-bottom: .6em; }
.biblio p { font-size: .95rem; }
.biblio-featured { display: grid; grid-template-columns: 150px 1fr; gap: 28px; }
.biblio-featured-cover img { box-shadow: var(--shadow); }
@media (max-width: 560px) { .biblio-featured { grid-template-columns: 1fr; } .biblio-featured-cover { max-width: 160px; } }

/* --- Distinctions -------------------------------------------------------- */

.honours { display: grid; gap: 24px; }
.honour { display: grid; grid-template-columns: 84px 1fr; gap: 28px; padding: 32px; background: var(--card); border: 1px solid var(--line); }
.honour h2 { font-size: 1.9rem; }
.honour-medal {
	width: 72px; height: 72px; border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #f3e1aa, #c6a86a 45%, #8a6a2e 100%);
	box-shadow: inset 0 0 0 5px rgba(255,255,255,.25), inset 0 0 0 7px rgba(0,0,0,.1), 0 6px 14px -6px rgba(0,0,0,.4);
	position: relative;
}
.honour-medal::after { content: "✠"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff8e4; font-size: 2rem; text-shadow: 0 1px 1px rgba(0,0,0,.3); }
.honour-medal--cedar { background: radial-gradient(circle at 35% 30%, #a9c7a1, #4f7a4a 50%, #2a4a2a 100%); }
.honour-medal--cedar::after { content: "▲"; font-size: 1.6rem; }
@media (max-width: 560px) { .honour { grid-template-columns: 1fr; padding: 24px; } }
/* nsark 20261113 — document joint à une distinction (lettre Casaroli) */
.honour-doc { display: grid; grid-template-columns: 170px 1fr; gap: 26px; align-items: start; margin-top: 1.4em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.honour-doc .fig { margin: 0; }
.honour-doc .fig img { background: #fff; }
.honour-doc .fig figcaption { font-size: .76rem; }
.honour-quote { margin: 0 0 1em; }
.honour-quote p { font-family: var(--display); font-style: italic; font-size: 1.2rem; line-height: 1.45; color: var(--ink); }
@media (max-width: 640px) { .honour-doc { grid-template-columns: 1fr; } .honour-doc .fig { max-width: 220px; } }

.docs-pair { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; margin-bottom: 3rem; }
.docs-pair .fig { margin: 0; }
.docs-pair .fig img { background: #fff; }
@media (max-width: 760px) { .docs-pair { grid-template-columns: 1fr; } }

.letter-quote { margin: 0 auto 2.5rem; max-width: 760px; text-align: center; }
.letter-quote p { font-family: var(--display); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.35; margin-bottom: .8em; }
.letter-quote footer { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.section--dark .letter-quote p { color: #f4efe4; }
.letter-quote--light footer { color: var(--gold); }

/* --- Archives ------------------------------------------------------------ */

.gallery { columns: 3 280px; column-gap: 24px; }
.gallery .fig { break-inside: avoid; margin: 0 0 24px; display: inline-block; width: 100%; }
/* nsark 20261122 — grille simple (articles de presse : peu d’éléments, pas de colonnes déséquilibrées) */
.gallery--grid { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; align-items: start; }
.gallery--grid .fig { margin: 0; }

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

.site-footer { background: var(--night); color: #c9c2b2; padding: 64px 0 40px; border-top: 4px double rgba(198,168,106,.45); }
.section--dark + .site-footer, main:has(> .section--dark:last-child) + .site-footer { background: #141a27; }
.footer-inner { text-align: center; }
.footer-quote p { font-family: var(--display); font-style: italic; font-size: clamp(1.4rem, 3vw, 1.9rem); color: #f1ead9; margin: 0 0 .3em; }
.footer-quote .footer-quote-src { font-family: var(--text); font-style: normal; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 36px 0 28px; padding: 22px 0; border-top: 1px solid rgba(198,168,106,.25); border-bottom: 1px solid rgba(198,168,106,.25); }
.footer-nav a { color: #e3dccb; text-decoration: none; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.footer-nav a:hover { color: var(--gold-2); }
.footer-meta { font-size: .8rem; color: #8e8878; margin: 0; }

/* --- Lightbox ------------------------------------------------------------ */

.lb {
	position: fixed; inset: 0; z-index: 200;
	background: rgba(14, 17, 26, .94);
	display: grid; grid-template-rows: 1fr auto; place-items: center;
	padding: 56px 16px 20px;
	opacity: 0; transition: opacity .25s;
}
.lb.is-open { opacity: 1; }
.lb img { max-width: min(1400px, 100%); max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }
.lb-caption { color: #e5dfd1; font-style: italic; font-size: .9rem; text-align: center; max-width: 760px; padding-top: 14px; }
.lb button { position: absolute; background: none; border: 0; color: #e5dfd1; font-size: 2rem; cursor: pointer; padding: 10px 16px; line-height: 1; font-family: var(--display); }
.lb button:hover { color: var(--gold-2); }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
body.lb-lock { overflow: hidden; }

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

@media print {
	.site-header, .site-footer, .draftbar, .note, .pager, .toc, .hero-actions { display: none !important; }
	body { background: #fff; font-size: 11pt; }
}

/* --- Langues : sélecteur, puis version arabe (droite à gauche) — nsark 20261113 ---------- */

.brand-alt { font-size: .95rem; color: var(--muted); }
/* nsark 20261122 — deux liens de langue (groupe .langs) */
.langs { order: 3; flex: none; display: flex; gap: 6px; align-items: center; }
.lang-switch {
	flex: none;
	font-size: .78rem; letter-spacing: .08em; text-decoration: none; color: var(--gold);
	border: 1px solid var(--gold-2); border-radius: 40px; padding: 5px 14px; line-height: 1.4;
	transition: background .2s, color .2s;
}
.lang-switch[lang="ar"] { font-size: 1rem; letter-spacing: 0; padding: 2px 14px 4px; }
.lang-switch:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.site-nav { order: 2; margin-inline-start: auto; }
.nav-toggle { order: 4; }
.brand { order: 1; }
@media (max-width: 900px) { .langs { margin-inline-start: auto; } }
.ls-short { display: none; }
@media (max-width: 460px) { .ls-long { display: none; } .ls-short { display: inline; } .lang-switch { padding: 3px 10px; font-size: .72rem; } .lang-switch[lang="ar"] { font-size: 1rem; padding: 0 10px 2px; } .header-inner { gap: 12px; } }
.untranslated { font-size: .95rem; color: var(--muted); border: 1px solid var(--line); background: var(--card); padding: 12px 18px; }

/* Typographie arabe : Amiri partout, jamais d'espacement entre lettres (casse la liaison), pas d'italique */
[dir="rtl"] {
	--display: "Amiri", "Traditional Arabic", serif;
	--text: "Amiri", "Traditional Arabic", serif;
}
[dir="rtl"] body { font-size: clamp(18.5px, 1.1vw + 13px, 21px); line-height: 1.95; }
[dir="rtl"] *:not([lang="fr"]):not([lang="fr"] *) { letter-spacing: 0 !important; text-transform: none !important; font-style: normal; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-weight: 700; line-height: 1.45; }
[dir="rtl"] h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
[dir="rtl"] h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
[dir="rtl"] h3 { font-size: 1.3rem; }
[dir="rtl"] .kicker, [dir="rtl"] .toc-title, [dir="rtl"] .story-meta, [dir="rtl"] .card-more,
[dir="rtl"] .pager-dir, [dir="rtl"] .link-arrow, [dir="rtl"] .letter-quote footer,
[dir="rtl"] .footer-quote .footer-quote-src, [dir="rtl"] .footer-nav a { font-size: .95rem; }
[dir="rtl"] .site-nav a { font-size: 1.02rem; }
[dir="rtl"] .hero-title { font-size: clamp(2.8rem, 6.4vw, 5rem); line-height: 1.3; font-weight: 400; }
[dir="rtl"] .hero-latin { font-family: "Cormorant Garamond", serif; font-size: clamp(1.5rem, 2.8vw, 2.1rem); color: var(--gold); margin: .1em 0 .8em; }
[dir="rtl"] .brand-alt, [dir="rtl"] [lang="fr"] { font-family: "Source Serif 4", Georgia, serif; }
[dir="rtl"] .brand-alt { font-family: "Cormorant Garamond", serif; font-size: 1rem; letter-spacing: .04em; }
[dir="rtl"] .brand-name { font-size: 1.45rem; font-weight: 700; white-space: nowrap; }
[dir="rtl"] .page-lede, [dir="rtl"] .pull p, [dir="rtl"] .letter-quote p, [dir="rtl"] .footer-quote p { line-height: 1.7; }
[dir="rtl"] .pull p { font-size: clamp(1.35rem, 2.2vw, 1.65rem); }
[dir="rtl"] .letter-quote p { font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
[dir="rtl"] cite, [dir="rtl"] .book-title { font-weight: 700; }
/* nsark 20261122 — titre original (français) sous le titre anglais */
[dir="ltr"] .fr-title { display: block; font-family: var(--display); font-style: italic; font-weight: 400; color: var(--muted); font-size: .85em; margin-top: .2em; }
[dir="rtl"] .fr-title { font-family: "Cormorant Garamond", serif; font-style: italic; color: var(--muted); font-size: .85em; display: block; margin-top: .2em; text-align: right; }

/* Miroir des éléments orientés */
[dir="rtl"] .skip { left: auto; right: -9999px; }
[dir="rtl"] .skip:focus { right: 8px; }
[dir="rtl"] .note:not([dir="ltr"]) { padding: 14px 44px 14px 18px; }
[dir="rtl"] .note:not([dir="ltr"])::before { left: auto; right: 16px; }
[dir="rtl"] .note[dir="ltr"], [dir="rtl"] .story-body[dir="ltr"] { text-align: left; }
[dir="rtl"] .link-arrow:hover span { transform: translateX(-4px); }
[dir="rtl"] .timeline::before { left: auto; right: 112px; }
[dir="rtl"] .timeline li::before { left: auto; right: 108px; }
[dir="rtl"] .tl-year { text-align: left; }
@media (max-width: 560px) {
	[dir="rtl"] .timeline::before { right: 4px; }
	[dir="rtl"] .timeline li { padding-left: 0; padding-right: 28px; }
	[dir="rtl"] .timeline li::before { right: 0; }
	[dir="rtl"] .tl-year { text-align: right; }
}
[dir="rtl"] .chip span { margin-left: 0; margin-right: 4px; }
[dir="rtl"] .chapter-period { border-right: 0; padding-right: 0; border-left: 1px solid var(--line); padding-left: 28px; }
[dir="rtl"] .toc ol { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .toc a { padding: 6px 16px 6px 0; margin-left: 0; margin-right: -1px; border-left: 0; border-right: 1px solid transparent; }
@media (max-width: 960px) { [dir="rtl"] .toc ol { border: 0; } [dir="rtl"] .toc a { border: 0; padding: 4px 0 4px 16px; } }
[dir="rtl"] .see-also { border-left: 0; padding-left: 0; border-right: 2px solid var(--gold-2); padding-right: 16px; }
[dir="rtl"] .pull { padding: 0 28px 0 0; border-left: 0; border-right: 2px solid var(--gold); }
[dir="rtl"] .pull--center { border: 0; padding: 0; }
[dir="rtl"] .fig--right { float: left; margin: .4em 2em 1.2em 0; }
@media (max-width: 640px) { [dir="rtl"] .fig--right { float: none; margin: 2em 0; } }
[dir="rtl"] .pager-next { text-align: left; }
[dir="rtl"] .biblio > li { padding: 24px 58px 24px 0; }
[dir="rtl"] .biblio > li::before { left: auto; right: 0; }
[dir="rtl"] .split-text h2 .ar, [dir="rtl"] .biblio h3 .ar, [dir="rtl"] .book h3 .ar { text-align: right; }
[dir="rtl"] .book-quote .ar { text-align: right; }
/* Pas de lettrine en arabe : ::first-letter couperait la liaison des lettres */
[dir="rtl"] .dropcap::first-letter,
[dir="rtl"] .story-body > p:first-of-type:not(.see-also)::first-letter { float: none; font-size: inherit; padding: 0; color: inherit; font-family: inherit; line-height: inherit; }
[dir="rtl"] .lb-close { right: auto; left: 8px; }
[dir="rtl"] .lb-prev { left: auto; right: 4px; }
[dir="rtl"] .lb-next { right: auto; left: 4px; }

/* --- Animations des images — nsark 20261113 ------------------------------------------- */
/* Les classes .anim (sur <html>), .reveal et .is-in sont posées par site.js : sans JS, tout reste visible. */
:root { --ease-out: cubic-bezier(.2, .7, .2, 1); }

/* Apparition au défilement : fondu et légère montée, en cascade (--d) */
.anim .reveal {
	opacity: 0;
	translate: 0 26px;
	transition: opacity 1s var(--ease-out) var(--d, 0ms), translate 1s var(--ease-out) var(--d, 0ms);
}
.anim .reveal.is-in { opacity: 1; translate: none; }

/* Portrait d'accueil : entrée plus lente, le filet doré intérieur se dessine ensuite */
.anim .hero-portrait.reveal { translate: 0 0; scale: .965; transition: opacity 1.4s var(--ease-out) .15s, scale 1.6s var(--ease-out) .15s; }
.anim .hero-portrait.reveal.is-in { scale: none; }
.anim .hero-portrait .frame::after { opacity: 0; inset: 14px; transition: opacity 1.2s ease .9s, inset 1.2s var(--ease-out) .9s; }
.anim .hero-portrait.is-in .frame::after { opacity: 1; inset: 6px; }

/* Photos des histoires : léger zoom arrière en apparaissant */
.anim .card-media img { scale: 1.08; transition: transform .6s, filter .6s, scale 1.8s var(--ease-out) calc(var(--d, 0ms) + .1s); }
.anim .card.is-in .card-media img { scale: none; }
.anim .fig--hero a { overflow: hidden; box-shadow: var(--shadow); }
.anim .fig--hero img { scale: 1.06; transition: scale 2.8s var(--ease-out); }
.anim .fig--hero.is-in img { scale: none; }

/* Survol : les images cliquables se soulèvent un peu */
.fig a img, .book-cover img, .covers-mini img, .biblio-featured-cover img, .emblem img { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), filter .45s; }
.fig a:hover img { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(29,34,48,.08), 0 22px 40px -16px rgba(29,34,48,.45); }
.fig--hero a:hover img { transform: none; }
.book-cover img:hover, .biblio-featured-cover img:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 4px 8px rgba(0,0,0,.12), 0 28px 44px -16px rgba(0,0,0,.5); }
[dir="rtl"] .book-cover img:hover, [dir="rtl"] .biblio-featured-cover img:hover { transform: translateY(-6px) rotate(.6deg); }
.covers-mini img:hover { transform: translateY(-5px); }
.emblem img:hover { transform: rotate(4deg) scale(1.02); }

/* Agrandissement : chaque image arrive avec un léger zoom */
.lb img.lb-in { animation: lb-in .45s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.lb img.lb-in { animation: none; }
	.fig a:hover img, .book-cover img:hover, .biblio-featured-cover img:hover, .covers-mini img:hover, .emblem img:hover { transform: none; }
}
@media print { .anim .reveal { opacity: 1 !important; translate: none !important; scale: none !important; } }

/* --- Paragraphes justifiés par défaut — nsark 20261120 --------------------------------- */
/* Césure automatique (selon lang="fr" / lang="ar") pour éviter les grands blancs dans les colonnes étroites. */
p { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
/* …sauf là où le texte est volontairement centré (titres de page, citations, pied de page, etc.) */
:is(.center, .draftbar, .leitmotiv, .section-head, .page-head, .emblem, .pull--center, .letter-quote, .footer-inner, .lb, .chips, .covers-mini) p,
p.center, .lb-caption { text-align: inherit; -webkit-hyphens: manual; hyphens: manual; }
@media (max-width: 860px) { .hero-text p { text-align: inherit; } }
