/* ==========================================================================
   MIDAD — مداد
   Encre (bleu nuit) · papier (ivoire) · sable/cuivre · vert profond
   ========================================================================== */

:root {
	--ink: #0A1A2F;
	--ink-2: #12294A;
	--ink-3: #1B3760;
	--paper: #F6F1E7;
	--paper-2: #EDE4D3;
	--card: #FBF8F2;
	--sand: #C9A57A;
	--sand-2: #E2C9A6;
	--copper: #B5763F;
	--copper-d: #8E5A2E;
	--green: #1E4A3C;
	--green-d: #133329;
	--muted: #5B6676;
	--line: rgba(10, 26, 47, .12);
	--line-l: rgba(246, 241, 231, .14);

	--f-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", system-ui, sans-serif;
	--f-body: "IBM Plex Sans Arabic", "Readex Pro", system-ui, sans-serif;
	--f-callig: "Aref Ruqaa", "Amiri", serif;
	--f-serif: "Amiri", serif;

	--gutter: clamp(16px, 4vw, 56px);
	--wrap: 1320px;
	--radius: 28px;
	--ease: cubic-bezier(.22, 1, .36, 1);
	--ease-io: cubic-bezier(.76, 0, .24, 1);
	--header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
	margin: 0;
	padding: 0 !important;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: clamp(1rem, .96rem + .2vw, 1.1rem);
	line-height: 1.85;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.25; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }
::selection { background: var(--sand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: fixed; top: -100px; right: 16px; z-index: 2000; background: var(--sand); color: var(--ink); padding: .6em 1em; border-radius: 99px; }
.skip:focus { top: 16px; }
.hp { position: absolute; left: -9999px; }

.ico { width: 1.25em; height: 1.25em; flex: none; }
.drop { width: 1em; height: auto; color: var(--sand); }

/* Grain papier */
.grain {
	position: fixed; inset: 0; z-index: 900; pointer-events: none; opacity: .055; mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Boutons ---------- */
.btn {
	--b-bg: var(--ink); --b-fg: var(--paper); --b-hover: var(--copper); --b-hfg: var(--paper);
	position: relative; isolation: isolate; overflow: hidden;
	display: inline-flex; align-items: center; gap: .7em;
	padding: 1em 1.7em; border-radius: 999px;
	background: var(--b-bg); color: var(--b-fg);
	font-family: var(--f-display); font-weight: 500; font-size: 1rem; line-height: 1.2;
	transition: color .5s var(--ease), border-color .5s var(--ease);
	will-change: transform;
}
.btn::before {
	content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit;
	background: var(--b-hover);
	transform: translateY(101%) scaleY(.6); transform-origin: bottom;
	border-radius: 50% 50% 0 0 / 60% 60% 0 0;
	transition: transform .6s var(--ease), border-radius .6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0) scaleY(1); border-radius: 0; }
.btn:hover { color: var(--b-hfg); }
.btn .ico { transition: transform .5s var(--ease); }
.btn:hover .ico { transform: translateX(-5px); }
.btn-sand { --b-bg: var(--sand); --b-fg: var(--ink); --b-hover: var(--paper); --b-hfg: var(--ink); }
.btn-ink { --b-bg: var(--ink); --b-fg: var(--paper); --b-hover: var(--copper); }
.btn-ghost { --b-bg: transparent; --b-fg: var(--paper); --b-hover: var(--paper); --b-hfg: var(--ink); box-shadow: inset 0 0 0 1px rgba(246,241,231,.35); }
.btn-ghost-ink { --b-bg: transparent; --b-fg: var(--ink); --b-hover: var(--ink); --b-hfg: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.btn-sm { padding: .7em 1.25em; font-size: .92rem; }
.btn-lg { padding: 1.2em 2.1em; font-size: 1.1rem; }

/* ---------- Intro ---------- */
.intro { display: none; }
.has-intro .intro {
	display: grid; place-items: center; position: fixed; inset: 0; z-index: 1000;
	background: var(--ink); color: var(--paper); overflow: visible;
}
.has-intro body { overflow: hidden; }
.intro-center { display: flex; flex-direction: column; align-items: center; gap: clamp(1.4rem, 3vw, 2.2rem); }
.intro-lockup { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem); }
.intro-drop { position: relative; width: clamp(58px, 9vw, 104px); opacity: 0; }
.intro-drop .drop { display: block; width: 100%; color: var(--paper); --drop-slit: var(--copper); overflow: visible; }
.intro-ripples { position: absolute; top: 100%; left: 50%; width: 0; height: 0; }
.intro-ripples i { position: absolute; width: 60px; height: 14px; margin: -7px -30px; border-radius: 50%; border: 1px solid var(--sand); opacity: 0; }
.intro-word .wordmark { display: block; height: clamp(4.6rem, 14vw, 10.5rem); width: auto; color: var(--paper); --wm-accent: var(--copper); overflow: visible; clip-path: inset(-30% 0 -30% 100%); }
.intro-lat .wordmark-lat { display: block; height: clamp(.9rem, 1.8vw, 1.35rem); width: auto; color: var(--paper); --wm-accent: var(--copper); overflow: visible; }
.intro-lat path { opacity: 0; }
.intro-triad {
	position: absolute; bottom: 14vh; left: 0; right: 0; display: flex; justify-content: center; gap: clamp(1.2rem, 4vw, 3.5rem);
	font-family: var(--f-display); font-weight: 300; font-size: clamp(1rem, 2.2vw, 1.5rem); color: rgba(246,241,231,.7);
}
.intro-triad span { opacity: 0; transform: translateY(20px); }
.intro-triad b { font-weight: 600; color: var(--sand); }
.intro-edge { position: absolute; top: 100%; left: 0; width: 100%; height: 12vh; fill: var(--ink); }

/* ---------- Voile de transition ---------- */
.veil {
	position: fixed; inset: 0; z-index: 980; background: var(--ink); pointer-events: none;
	transform: translateY(100%); display: grid; place-items: center;
}
.veil-in .veil { transform: translateY(0); }
.veil-mark { width: 44px; }
.veil-mark .drop { width: 100%; --drop-slit: var(--ink); }

/* ---------- Curseur ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
	.js:not(.reduced) .cursor { display: block; }
	.js:not(.reduced) body, .js:not(.reduced) a, .js:not(.reduced) button { cursor: none; }
	.js:not(.reduced) input, .js:not(.reduced) textarea { cursor: text; }
}
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 1500; pointer-events: none; border-radius: 50%; }
.cursor-dot { width: 7px; height: 7px; margin: -3.5px; background: var(--copper); }
.cursor-ring {
	width: 42px; height: 42px; margin: -21px; border: 1px solid rgba(181,118,63,.6);
	display: grid; place-items: center; transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .4s, border-color .4s;
}
.cursor-label { font-family: var(--f-display); font-size: .78rem; font-weight: 500; color: var(--ink); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cursor.is-link .cursor-ring { width: 64px; height: 64px; margin: -32px; background: rgba(201,165,122,.18); border-color: var(--sand); }
.cursor.is-label .cursor-ring { width: 92px; height: 92px; margin: -46px; background: var(--sand); border-color: var(--sand); }
.cursor.is-label .cursor-label { opacity: 1; }
.cursor.is-label .cursor-dot { opacity: 0; }

/* ---------- En-tête ---------- */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 950; height: var(--header-h);
	color: var(--ink); transition: transform .6s var(--ease), color .4s, background .4s, box-shadow .4s;
}
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
	background: rgba(246,241,231,.78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
	border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.h-dark { color: var(--paper); }
.site-header.h-dark::before { background: rgba(10,26,47,.6); border-color: var(--line-l); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .55rem; margin-inline-end: auto; }
.brand-drop { width: 21px; flex: none; color: currentColor; --drop-slit: var(--copper); overflow: visible; }
.brand-drop .drop-ink { transform-origin: 0 98px; transition: transform .7s var(--ease); }
.brand-drop .drop-dot { transform-box: fill-box; transform-origin: center; transition: transform .7s var(--ease); }
.brand:hover .brand-drop .drop-ink { transform: scale(1.06, .94); }
.brand-drop .drop-px { transform-box: fill-box; transform-origin: center; transition: transform .6s var(--ease); }
.brand:hover .brand-drop .drop-dot { transform: rotate(90deg); }
.brand:hover .brand-drop .drop-px { transform: scale(1.3); }
.brand:hover .brand-drop .drop-px-out { transform: translate(9px, -2px) scale(1.3); }
.brand-word { height: 1.95rem; width: auto; flex: none; --wm-accent: var(--copper); }
.h-dark .brand-word { --wm-accent: var(--sand); }
.brand-sub { font-size: .72rem; opacity: .6; line-height: 1.3; max-width: 9.5em; border-inline-start: 1px solid currentColor; padding-inline-start: .6rem; margin-inline-start: .2rem; }
.nav ul { display: flex; gap: 1.6rem; }
.nav a { position: relative; display: block; overflow: hidden; font-size: .95rem; font-weight: 500; padding: .3em 0; }
.nav a span { display: block; transition: transform .5s var(--ease); }
.nav a span::after { content: attr(data-text); position: absolute; top: 100%; right: 0; color: var(--copper); }
.h-dark .nav a span::after { color: var(--sand); }
.nav a:hover span { transform: translateY(-100%); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1px currentColor; }
.burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.burger i:first-child { top: 18px; }
.burger i:last-child { top: 25px; }
.menu-open .burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 940; visibility: hidden; color: var(--paper); }
.menu-bg { position: absolute; inset: 0; background: var(--ink); clip-path: circle(0% at 40px 42px); }
.menu-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 2.5rem; padding-top: var(--header-h); }
.menu-list a { display: flex; align-items: baseline; gap: 1rem; font-family: var(--f-display); font-size: clamp(2rem, 9vw, 3.6rem); font-weight: 300; line-height: 1.35; }
.menu-list small { font-size: .9rem; color: var(--sand); }
.menu-list li { overflow: hidden; }
.menu-list span { display: inline-block; }
.menu-triad { color: var(--sand); font-family: var(--f-display); }
.menu-triad i { opacity: .5; }

@media (max-width: 1100px) {
	.nav, .brand-sub { display: none; }
	.burger { display: block; }
	.header-cta { display: none; }
}
@media (max-width: 1100px) and (min-width: 600px) { .header-cta { display: inline-flex; } }

/* ---------- Titres de section ---------- */
.sec-head { max-width: 860px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.sec-kicker { display: flex; align-items: center; gap: .9rem; font-family: var(--f-display); font-size: .95rem; font-weight: 500; color: var(--copper); margin-bottom: 1.4rem; }
.sec-num { font-weight: 300; opacity: .8; }
.sec-line { width: 48px; height: 1px; background: currentColor; opacity: .5; }
.sec-title { font-size: clamp(2.4rem, 5.6vw, 5.4rem); font-weight: 300; line-height: 1.18; letter-spacing: 0; }
.sec-title em, .page-title em, .contact-title em { font-family: var(--f-callig); color: var(--copper); font-weight: 400; }
.sec-lead { margin-top: 1.6rem; font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem); color: var(--muted); max-width: 640px; line-height: 1.9; }
.on-dark .sec-kicker { color: var(--sand); }
.on-dark .sec-title { color: var(--paper); }
.on-dark .sec-title em { color: var(--sand); }
.on-dark .sec-lead { color: rgba(246,241,231,.62); }

/* Mots découpés pour l'animation */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .3em; margin-block: -.3em; }
.w > span { display: inline-block; will-change: transform; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
	position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
	background: radial-gradient(120% 90% at 20% 40%, var(--ink-3) 0%, var(--ink) 55%, #060F1C 100%);
	color: var(--paper); overflow: hidden; isolation: isolate;
	padding: calc(var(--header-h) + 1.5rem) 0 5.5rem;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-vignette { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to left, rgba(10,26,47,.9) 0%, rgba(10,26,47,.35) 45%, transparent 70%), linear-gradient(to top, var(--ink) 0%, transparent 25%); }
.hero-text { max-width: 680px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-size: .95rem; color: var(--sand); margin-bottom: 1.3rem; padding: .45em 1.1em; border-radius: 99px; background: rgba(201,165,122,.08); box-shadow: inset 0 0 0 1px rgba(201,165,122,.25); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 0 0 rgba(201,165,122,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(201,165,122,0); } 100% { box-shadow: 0 0 0 0 rgba(201,165,122,0); } }
.hero-title { font-size: clamp(2.7rem, min(6.2vw, 9.5vh), 6.2rem); font-weight: 200; line-height: 1.12; }
.hero-title .ln { display: block; overflow: hidden; padding: .28em 0 .32em; margin-block: -.28em -.2em; }
.hero-title .ln > span { display: block; }
.hero-title em { font-family: var(--f-callig); font-weight: 700; color: var(--sand); }
.hero-lead { margin-top: 1.3rem; max-width: 560px; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: rgba(246,241,231,.72); line-height: 1.95; }

.triad { display: flex; align-items: center; gap: .4rem; margin-top: 1.8rem; flex-wrap: wrap; }
.triad-item {
	position: relative; display: flex; align-items: center; gap: .65rem; padding: .55rem 1.1rem .55rem 1.3rem;
	border-radius: 99px; cursor: default; transition: background .4s var(--ease);
}
.triad-item:hover, .triad-item:focus-visible { background: rgba(246,241,231,.07); }
.triad-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(201,165,122,.12); color: var(--sand); transition: background .4s, color .4s, transform .6s var(--ease); }
.triad-ico .ico { width: 22px; height: 22px; }
.triad-item:hover .triad-ico { background: var(--sand); color: var(--ink); transform: rotate(-8deg) scale(1.06); }
.triad-word { font-family: var(--f-display); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 500; }
.triad-sep { width: 22px; height: 1px; background: rgba(246,241,231,.3); }
.triad-tip {
	position: absolute; bottom: calc(100% + 14px); right: 0; width: max-content; max-width: 250px;
	padding: .85rem 1.1rem; border-radius: 16px; background: var(--paper); color: var(--ink);
	font-size: .9rem; line-height: 1.7; box-shadow: 0 20px 50px -15px rgba(0,0,0,.5);
	opacity: 0; transform: translateY(8px) scale(.96); transform-origin: bottom right; pointer-events: none;
	transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.triad-tip b { display: block; color: var(--copper); font-family: var(--f-display); font-weight: 600; }
.triad-tip::after { content: ""; position: absolute; top: 100%; right: 28px; border: 7px solid transparent; border-top-color: var(--paper); }
.triad-item:hover .triad-tip, .triad-item:focus-visible .triad-tip { opacity: 1; transform: none; }

.hero-ctas { display: flex; gap: .9rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-foot { position: absolute; bottom: 2rem; left: 0; right: 0; display: flex; justify-content: space-between; align-items: end; font-size: .85rem; color: rgba(246,241,231,.5); }
.scroll-cue { display: flex; align-items: center; gap: .8rem; }
.cue-line { position: relative; width: 1px; height: 54px; background: rgba(246,241,231,.18); overflow: hidden; }
.cue-line i { position: absolute; top: 0; left: 0; width: 1px; height: 40%; background: var(--sand); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }
.hero-hint { display: flex; align-items: center; gap: .5rem; }
@media (hover: none) { .hero-hint { display: none; } }

@media (max-width: 760px) {
	.hero { justify-content: flex-end; padding-top: 34svh; padding-bottom: 5.5rem; }
	.hero-title { font-size: clamp(2.3rem, 11vw, 3.2rem); }
	.hero-eyebrow { font-size: .85rem; }
	.hero-vignette { background: linear-gradient(to top, var(--ink) 15%, rgba(10,26,47,.55) 60%, rgba(10,26,47,.25) 100%); }
	.triad-sep { display: none; }
	.triad-item { padding-inline: .2rem .9rem; }
	.triad-ico { width: 38px; height: 38px; }
	.triad-tip { display: none; }
}

/* ==========================================================================
   MANIFESTE
   ========================================================================== */
.manifesto { padding: clamp(6rem, 14vw, 11rem) 0 clamp(5rem, 10vw, 8rem); }
.manifesto-kicker { display: flex; align-items: center; gap: .6rem; color: var(--copper); font-family: var(--f-display); font-weight: 500; margin-bottom: 2rem; }
.mini-drop { width: 14px; color: var(--copper); --drop-slit: var(--paper); }
.manifesto-text { font-family: var(--f-display); font-size: clamp(1.9rem, 4.4vw, 4.2rem); font-weight: 300; line-height: 1.45; max-width: 1150px; }
.manifesto-text em { color: var(--copper); font-weight: 400; }
.manifesto-text .mw { transition: none; }
.manifesto-chain { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 3.5rem; font-family: var(--f-display); font-size: clamp(1rem, 1.6vw, 1.25rem); }
.manifesto-chain span { padding: .45em 1.1em; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); background: var(--card); }
.manifesto-chain span.hl { background: var(--ink); color: var(--sand); box-shadow: none; }
.manifesto-chain i { width: 34px; height: 1px; background: var(--copper); position: relative; }
.manifesto-chain i::after { content: ""; position: absolute; left: -1px; top: -3px; border: 3.5px solid transparent; border-right-color: var(--copper); }

/* ==========================================================================
   DOMAINES — cartes empilées
   ========================================================================== */
.domains { padding: clamp(2rem, 4vw, 3rem) 0 clamp(5rem, 10vw, 9rem); }
.stack { display: grid; gap: 2.5vh; }
.stack-card {
	position: sticky; top: calc(var(--header-h) + 2vh);
	min-height: min(76vh, 660px); border-radius: var(--radius); overflow: hidden;
	display: grid; grid-template-columns: 1.1fr .9fr;
	transform-origin: center top; will-change: transform;
	box-shadow: 0 -20px 60px -30px rgba(10,26,47,.35);
}
.stack-card:nth-child(2) { top: calc(var(--header-h) + 2vh + 18px); }
.stack-card:nth-child(3) { top: calc(var(--header-h) + 2vh + 36px); }
.stack-card:nth-child(4) { top: calc(var(--header-h) + 2vh + 54px); }
.pal-ink { background: var(--ink); color: var(--paper); --acc: var(--sand); }
.pal-green { background: var(--green); color: var(--paper); --acc: var(--sand-2); }
.pal-copper { background: var(--copper-d); color: var(--paper); --acc: var(--sand-2); }
.pal-sand { background: var(--paper-2); color: var(--ink); --acc: var(--copper); }
.sc-body { padding: clamp(2rem, 4.5vw, 4rem); display: flex; flex-direction: column; }
.sc-top { display: flex; align-items: baseline; gap: .5rem; font-family: var(--f-display); }
.sc-num { font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 200; line-height: 1; color: var(--acc); }
.sc-of { opacity: .45; }
.sc-icon { margin-top: auto; padding-top: 2rem; color: var(--acc); }
.sc-icon .ico { width: 54px; height: 54px; stroke-width: 1.1; }
.sc-title { margin-top: 1.2rem; font-size: clamp(1.8rem, 3.4vw, 3.2rem); font-weight: 400; }
.sc-desc { margin-top: 1rem; max-width: 520px; font-size: clamp(1rem, .95rem + .3vw, 1.2rem); opacity: .78; line-height: 1.9; }
.sc-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.sc-tags li { font-size: .85rem; padding: .35em .95em; border-radius: 99px; box-shadow: inset 0 0 0 1px currentColor; opacity: .7; }
.sc-art { position: relative; overflow: hidden; }
.sc-art .pattern { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.sc-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(0,0,0,.25), transparent 40%); }
.pal-sand .sc-art::after { background: linear-gradient(to left, rgba(237,228,211,.6), transparent 40%); }
.sc-art-ico { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; }
.sc-art-ico .ico { width: 34%; height: auto; padding: 7%; border-radius: 50%; background: var(--ink); color: var(--sand); stroke-width: 1; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.pal-sand .sc-art-ico .ico { background: var(--paper); color: var(--copper); }
.sc-art .tile { transform-box: fill-box; transform-origin: center; }
@media (max-width: 820px) {
	.stack-card { grid-template-columns: 1fr; grid-template-rows: 150px auto; min-height: 0; }
	.sc-art-ico .ico { width: 92px; }
	.sc-art { order: -1; }
	.sc-icon { display: none; }
}

/* ==========================================================================
   MÉTHODE — tracé d'encre
   ========================================================================== */
.method { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--card); border-block: 1px solid var(--line); }
.method-track { position: relative; max-width: 1080px; margin-inline: auto; }
.method-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.method-path-bg { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; }
.method-path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.method-nib { position: absolute; top: 0; left: 0; width: 26px; margin: -34px 0 0 -13px; z-index: 2; pointer-events: none; }
.method-nib .drop { width: 100%; color: var(--copper); --drop-slit: var(--card); filter: drop-shadow(0 6px 10px rgba(181,118,63,.4)); }
.method-steps { position: relative; display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.method-step { position: relative; display: grid; grid-template-columns: 1fr 96px 1fr; align-items: center; }
.ms-node { grid-column: 2; justify-self: center; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); font-family: var(--f-display); font-size: 1.15rem; color: var(--muted); transition: background .5s, color .5s, box-shadow .5s, transform .6s var(--ease); z-index: 1; }
.method-step.is-on .ms-node { background: var(--ink); color: var(--sand); box-shadow: 0 0 0 8px rgba(201,165,122,.18); transform: scale(1.08); }
.ms-card { grid-row: 1; padding: 1.6rem 1.8rem; border-radius: 22px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .5s, transform .6s var(--ease), opacity .6s; opacity: .45; transform: translateY(14px); }
.method-step:nth-child(odd) .ms-card { grid-column: 1; }
.method-step:nth-child(even) .ms-card { grid-column: 3; }
.method-step.is-on .ms-card { opacity: 1; transform: none; box-shadow: 0 24px 50px -30px rgba(10,26,47,.35), inset 0 0 0 1px var(--line); }
.ms-card h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 500; }
.ms-card p { margin-top: .5rem; color: var(--muted); line-height: 1.85; }
.reduced .ms-card, .no-js .ms-card { opacity: 1; transform: none; }
@media (max-width: 760px) {
	.method-step { grid-template-columns: 64px 1fr; gap: 1rem; }
	.ms-node { grid-column: 1; width: 52px; height: 52px; }
	.method-step:nth-child(n) .ms-card { grid-column: 2; }
}

/* ==========================================================================
   TRAVAUX — défilement horizontal
   ========================================================================== */
.works { background: var(--ink); color: var(--paper); position: relative; }
.works-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 2rem) 0 3rem; overflow: hidden; }
.works-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.works-head .sec-head { margin-bottom: 2.5rem; }
.works-head .sec-title { font-size: clamp(2.2rem, 4.6vw, 4.4rem); }
.works-progress { width: 180px; height: 2px; background: var(--line-l); margin-bottom: 3.2rem; flex: none; position: relative; overflow: hidden; }
.works-progress span { position: absolute; inset: 0; background: var(--sand); transform: scaleX(0); transform-origin: right; }
.works-track { display: flex; gap: clamp(1rem, 2vw, 1.8rem); padding-inline: max(var(--gutter), (100vw - var(--wrap)) / 2); width: max-content; will-change: transform; }
.work-card { width: min(84vw, 540px); flex: none; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-l); }
.work-link { display: flex; flex-direction: column; height: 100%; }
.work-cover { position: relative; aspect-ratio: 16 / 8; overflow: hidden; }
.work-cover .pattern, .work-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work-card:hover .work-cover .pattern, .work-card:hover .work-cover img { transform: scale(1.08) rotate(-1deg); }
.work-ico { position: absolute; bottom: 1.2rem; right: 1.2rem; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 18px 40px -12px rgba(0,0,0,.5); transition: transform .6s var(--ease); }
.work-ico .ico { width: 30px; height: 30px; }
.work-card:hover .work-ico { transform: translateY(-6px) rotate(-6deg); }
.work-index { position: absolute; top: 1.1rem; left: 1.2rem; padding: .25em .8em; border-radius: 99px; background: rgba(10,26,47,.72); backdrop-filter: blur(6px); font-family: var(--f-display); font-size: .9rem; color: var(--sand); line-height: 1.4; }
.work-body { padding: 1.6rem 1.8rem 2rem; display: flex; flex-direction: column; flex: 1; }
.work-client { font-size: .85rem; color: var(--sand); }
.work-title { margin-top: .3rem; font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 400; }
.work-psr { margin: 1.3rem 0 0; display: grid; gap: .85rem; }
.work-psr div { display: grid; grid-template-columns: 70px 1fr; gap: .8rem; padding-top: .85rem; border-top: 1px solid var(--line-l); }
.work-psr dt { font-family: var(--f-display); font-size: .85rem; color: var(--sand); font-weight: 500; }
.work-psr dd { margin: 0; font-size: .95rem; line-height: 1.75; color: rgba(246,241,231,.75); }
.work-end { background: transparent; box-shadow: inset 0 0 0 1px rgba(201,165,122,.35); display: grid; width: min(70vw, 360px); }
.work-end .work-link { justify-content: center; align-items: center; text-align: center; gap: 1rem; padding: 2rem; }
.work-end-ico { display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; background: var(--sand); color: var(--ink); transition: transform .7s var(--ease); }
.work-end-ico .ico { width: 36px; height: 36px; }
.work-end:hover .work-end-ico { transform: scale(1.1) rotate(-12deg); }
.work-end-txt { font-family: var(--f-display); font-size: 1.8rem; font-weight: 300; }
.work-end-sub { color: var(--sand); font-size: .95rem; }
@media (max-width: 900px) {
	.works-pin { min-height: 0; padding-block: 5rem; }
	.works-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1.5rem; scrollbar-width: none; }
	.works-track::-webkit-scrollbar { display: none; }
	.work-card { scroll-snap-align: center; }
	.works-progress { display: none; }
}

/* ==========================================================================
   SOLUTIONS
   ========================================================================== */
.solutions { padding: clamp(6rem, 12vw, 10rem) 0 clamp(5rem, 10vw, 8rem); }
.sol-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.sol-card {
	--mx: 50%; --my: 50%;
	position: relative; overflow: hidden; isolation: isolate;
	padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--radius);
	background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
	transition: box-shadow .5s, transform .6s var(--ease);
}
.sol-card:hover { box-shadow: inset 0 0 0 1px rgba(181,118,63,.35), 0 30px 60px -40px rgba(10,26,47,.4); }
.sol-spot { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(201,165,122,.28), transparent 60%); }
.sol-card:hover .sol-spot { opacity: 1; }
.sol-head { display: flex; justify-content: space-between; align-items: start; }
.sol-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--ink); color: var(--sand); transition: transform .6s var(--ease), background .5s; }
.sol-ico .ico { width: 28px; height: 28px; }
.sol-card:hover .sol-ico { transform: rotate(-8deg); background: var(--copper); color: var(--paper); }
.sol-num { font-family: var(--f-display); font-weight: 200; font-size: 2.4rem; line-height: 1; color: var(--line); -webkit-text-stroke: 1px var(--copper); color: transparent; }
.sol-title { margin-top: 1.6rem; font-size: clamp(1.4rem, 2.3vw, 1.9rem); font-weight: 400; line-height: 1.4; }
.sol-row { display: grid; gap: .3rem; margin-top: 1.1rem; }
.sol-row span { font-family: var(--f-display); font-size: .82rem; font-weight: 600; color: var(--copper); }
.sol-row p { color: var(--muted); line-height: 1.85; }
.sol-benefit p { color: var(--green); font-weight: 500; }
.sol-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.sol-more-inner { overflow: hidden; }
.sol-card.is-open .sol-more { grid-template-rows: 1fr; }
.sol-toggle { margin-top: 1.5rem; display: inline-flex; align-items: center; gap: .7rem; font-family: var(--f-display); font-weight: 500; font-size: .95rem; }
.sol-toggle i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: transform .6s var(--ease), background .4s, color .4s; }
.sol-toggle i .ico { width: 16px; height: 16px; }
.sol-toggle:hover i { background: var(--ink); color: var(--paper); }
.sol-card.is-open .sol-toggle i { transform: rotate(135deg); background: var(--copper); color: var(--paper); }
.sol-toggle .t-close, .sol-card.is-open .sol-toggle .t-open { display: none; }
.sol-card.is-open .sol-toggle .t-close { display: inline; }
.sol-cta {
	position: relative; overflow: hidden; isolation: isolate; margin-top: clamp(3rem, 6vw, 5rem);
	border-radius: calc(var(--radius) + 8px); background: var(--ink); color: var(--paper);
	padding: clamp(2.5rem, 6vw, 5rem); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem;
}
.sol-cta-q { font-family: var(--f-display); font-size: clamp(1.8rem, 4vw, 3.6rem); font-weight: 300; line-height: 1.3; max-width: 760px; }
.sol-cta-ink {
	position: absolute; z-index: -1; width: 560px; height: 560px; left: -140px; top: -200px;
	background: radial-gradient(circle at 40% 40%, var(--copper), transparent 62%);
	opacity: .5; filter: blur(10px); border-radius: 43% 57% 63% 37% / 41% 44% 56% 59%;
	animation: blob 14s ease-in-out infinite alternate;
}
@keyframes blob { 50% { border-radius: 63% 37% 38% 62% / 55% 61% 39% 45%; transform: translate(60px, 40px) rotate(40deg) scale(1.1); } 100% { transform: translate(-20px, 80px) rotate(-20deg); } }
@media (max-width: 760px) { .sol-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   FIKRA — idée de la semaine
   ========================================================================== */
.idea { position: relative; overflow: hidden; background: var(--green-d); color: var(--paper); padding: clamp(6rem, 12vw, 10rem) 0; }
.idea-bg { position: absolute; inset: 0; opacity: .16; mask-image: radial-gradient(70% 80% at 30% 50%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 80% at 30% 50%, #000, transparent 75%); }
.idea-bg .pattern { width: 100%; height: 100%; }
.idea-inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.idea .sec-kicker { color: var(--sand-2); }
.idea-badge { margin-inline-start: .4rem; padding: .2em .8em; border-radius: 99px; background: var(--sand); color: var(--ink); font-size: .78rem; }
.idea-q { font-family: var(--f-serif); font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.5; font-weight: 400; }
.idea-q::before { content: "«"; color: var(--sand); margin-inline-end: .15em; }
.idea-q::after { content: "»"; color: var(--sand); margin-inline-start: .15em; }
.idea-body { margin-top: 1.8rem; color: rgba(246,241,231,.72); font-size: 1.1rem; max-width: 620px; }
.idea-body p + p { margin-top: 1em; }
.idea-prev { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; font-size: .9rem; }
.idea-prev span { color: var(--sand-2); margin-inline-end: .4rem; }
.idea-prev a { padding: .35em 1em; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line-l); transition: background .4s; }
.idea-prev a:hover { background: rgba(246,241,231,.1); }

.phone { justify-self: center; }
.phone-frame {
	position: relative; width: min(330px, 80vw); height: 640px; border-radius: 48px; padding: 14px;
	background: #0B0F14; box-shadow: 0 0 0 2px #2a3340, 0 50px 100px -30px rgba(0,0,0,.7), inset 0 0 0 1px #000;
	display: flex; flex-direction: column; transform: rotate(-3deg);
}
.phone-notch { position: absolute; top: 22px; left: 50%; width: 92px; height: 26px; margin-left: -46px; background: #000; border-radius: 20px; z-index: 2; }
.phone-top { display: flex; align-items: center; gap: .7rem; padding: 56px 16px 12px; background: #1F2C34; border-radius: 36px 36px 0 0; font-size: .9rem; line-height: 1.3; }
.phone-top b { display: block; font-weight: 600; }
.phone-top small { color: #8FB3A0; font-size: .75rem; }
.phone-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--paper); }
.phone-avatar .drop { width: 15px; color: var(--copper); --drop-slit: var(--paper); }
.phone-chat {
	flex: 1; display: flex; flex-direction: column; gap: .6rem; padding: 18px 12px; overflow: hidden;
	background: #0B141A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 8l6 6-6 6-6-6zM8 38l4 4-4 4-4-4zM48 44l5 5-5 5-5-5z' fill='none' stroke='%23ffffff' stroke-opacity='.04'/%3E%3C/svg%3E");
}
.bubble { position: relative; max-width: 84%; padding: .6rem .8rem 1.3rem; border-radius: 12px; font-size: .88rem; line-height: 1.75; }
.bubble time { position: absolute; bottom: 3px; left: 10px; font-size: .65rem; opacity: .55; }
.bubble.me { align-self: flex-end; background: #005C4B; border-top-left-radius: 3px; }
.bubble.bot { align-self: flex-start; background: #202C33; border-top-right-radius: 3px; }
.bubble.typing { align-self: flex-start; background: #202C33; display: flex; gap: 4px; padding: .8rem 1rem; }
.bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696A0; animation: typing 1.2s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; }
.bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { transform: translateY(-4px); opacity: 1; } 0%, 60%, 100% { opacity: .5; transform: none; } }
.js:not(.reduced) [data-chat] .bubble { opacity: 0; transform: translateY(14px) scale(.96); }
.js:not(.reduced) [data-chat] .bubble.typing { display: none; }
.phone-input { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 12px 14px; background: #1F2C34; border-radius: 0 0 36px 36px; font-size: .82rem; color: #8696A0; }
.phone-input i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #00A884; color: #fff; }
.phone-input .ico { width: 16px; height: 16px; }
.phone-cap { text-align: center; margin-top: 1.2rem; font-size: .8rem; color: rgba(246,241,231,.45); }
@media (max-width: 900px) {
	.idea-inner { grid-template-columns: 1fr; }
	.phone-frame { height: 560px; transform: none; }
}

/* ==========================================================================
   MIDAD AL-MAARIFA — articles
   ========================================================================== */
.knowledge { padding: clamp(6rem, 12vw, 10rem) 0; }
.kn-head { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.kn-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(3rem, 6vw, 5rem); max-width: 440px; justify-content: flex-end; }
.kn-cats a { display: block; padding: .4em 1em; border-radius: 99px; font-size: .9rem; box-shadow: inset 0 0 0 1px var(--line); transition: background .4s, color .4s; }
.kn-cats a:hover, .kn-cats a.on { background: var(--ink); color: var(--paper); }
.kn-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: auto auto; gap: 1.4rem; }
.kn-card { border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: transform .7s var(--ease), box-shadow .5s; }
.kn-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -35px rgba(10,26,47,.45); }
.kn-card > a { display: flex; flex-direction: column; height: 100%; }
.kn-card.is-feature { grid-row: span 2; }
.kn-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.kn-card.is-feature .kn-cover { aspect-ratio: auto; flex: 1; min-height: 280px; }
.kn-cover .pattern, .kn-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.kn-card:hover .kn-cover .pattern, .kn-card:hover .kn-cover img { transform: scale(1.07); }
.kn-cover .tile { transform-box: fill-box; transform-origin: center; transition: transform 1s var(--ease); }
.kn-card:hover .kn-cover .tile:nth-child(3n) { transform: rotate(90deg); }
.kn-card:hover .kn-cover .tile:nth-child(4n+1) { transform: rotate(-90deg); }
.kn-cover-ico { position: absolute; bottom: 1rem; right: 1rem; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--paper); color: var(--ink); }
.kn-cover-ico .ico { width: 26px; height: 26px; }
.kn-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; gap: .6rem; }
.kn-meta { display: flex; gap: .8rem; align-items: center; font-size: .82rem; color: var(--muted); }
.kn-cat { padding: .15em .75em; border-radius: 99px; background: rgba(181,118,63,.12); color: var(--copper-d); font-weight: 500; }
.kn-title { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 500; line-height: 1.55; }
.is-feature .kn-title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 400; }
.kn-excerpt { color: var(--muted); font-size: .98rem; }
.kn-more { margin-top: auto; padding-top: .6rem; display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-display); font-size: .9rem; font-weight: 500; color: var(--copper); }
.kn-more .ico { width: 1em; transition: transform .5s var(--ease); }
.kn-card:hover .kn-more .ico { transform: translateX(-6px); }
.center-cta { display: flex; justify-content: center; margin-top: 3.5rem; }
@media (max-width: 1000px) {
	.kn-head { grid-template-columns: 1fr; }
	.kn-cats { justify-content: flex-start; margin-top: -2rem; }
	.kn-grid { grid-template-columns: 1fr 1fr; }
	.kn-card.is-feature { grid-column: 1 / -1; grid-row: auto; }
	.kn-card.is-feature .kn-cover { aspect-ratio: 16 / 8; flex: none; min-height: 0; }
}
@media (max-width: 640px) { .kn-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAʿĀLIYĀT — événements
   ========================================================================== */
.events { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--paper-2); }
.tracks { border-top: 1px solid var(--line); }
.track a { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem); padding: clamp(1.4rem, 3vw, 2.3rem) .6rem; border-bottom: 1px solid var(--line); transition: color .6s var(--ease), padding .6s var(--ease); }
.track-fill { position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); }
.track a:hover { color: var(--paper); padding-inline: 2rem; }
.track a:hover .track-fill { transform: scaleY(1); }
.track-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; flex: none; transition: color .6s, background .6s; }
.track-ico .ico { width: 28px; height: 28px; }
.track a:hover .track-ico { background: var(--sand); color: var(--ink); box-shadow: none; }
.track-label { font-family: var(--f-display); font-size: clamp(1.4rem, 3.6vw, 3rem); font-weight: 300; flex: 1; line-height: 1.3; }
.track-go { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--paper); transform: scale(.6); opacity: 0; transition: transform .6s var(--ease), opacity .4s; }
.track a:hover .track-go { opacity: 1; transform: none; background: var(--sand); color: var(--ink); }
.ev-list { display: grid; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.ev-card a { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 1.6rem; padding: 1.3rem 1.6rem; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: transform .6s var(--ease), box-shadow .5s; }
.ev-card a:hover { transform: translateX(-8px); box-shadow: inset 0 0 0 1px rgba(181,118,63,.4), 0 24px 50px -32px rgba(10,26,47,.4); }
.ev-date { display: grid; justify-items: center; padding: .8rem; border-radius: 16px; background: var(--ink); color: var(--paper); text-align: center; line-height: 1.2; }
.ev-day { font-family: var(--f-display); font-size: 2rem; font-weight: 300; color: var(--sand); }
.ev-month { font-size: .78rem; opacity: .8; }
.ev-format { font-size: .85rem; color: var(--copper); font-weight: 500; display: flex; gap: .6rem; align-items: center; }
.ev-soon { padding: .05em .7em; border-radius: 99px; background: var(--green); color: var(--paper); font-size: .75rem; }
.ev-info h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 500; line-height: 1.5; }
.ev-track { font-size: .88rem; color: var(--muted); margin-top: .2rem; }
.ev-go { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: background .4s, color .4s; }
.ev-card a:hover .ev-go { background: var(--ink); color: var(--paper); }
@media (max-width: 640px) {
	.ev-card a { grid-template-columns: 86px 1fr; gap: 1rem; padding: 1rem; }
	.ev-go { display: none; }
	.track-ico { width: 48px; height: 48px; }
	.track-go { display: none; }
}

/* ==========================================================================
   FARĪQ — équipe & orbite
   ========================================================================== */
.team { padding: clamp(6rem, 12vw, 10rem) 0; overflow: hidden; }
.team-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.team-text .sec-head { margin-bottom: 0; }
.orbit { --r: min(210px, 34vw); position: relative; width: calc(var(--r) * 2 + 140px); aspect-ratio: 1; justify-self: center; max-width: 100%; }
.orbit-ring { position: absolute; inset: 70px; pointer-events: none; border-radius: 50%; border: 1px dashed rgba(10,26,47,.18); }
.orbit-ring.r2 { inset: calc(70px + var(--r) * .45); border-style: solid; border-color: rgba(181,118,63,.25); }
.orbit-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 150px; height: 150px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; align-content: center; gap: .1rem; box-shadow: 0 0 0 14px rgba(10,26,47,.05), 0 0 0 28px rgba(10,26,47,.03), 0 40px 80px -30px rgba(10,26,47,.6); }
.orbit-core .drop { width: 22px; color: var(--sand); --drop-slit: var(--ink); }
.orbit-core span { font-family: var(--f-callig); font-size: 2.3rem; line-height: 1.1; }
.orbit-spin { position: absolute; inset: 0; animation: spin 60s linear infinite; }
.orbit-node { position: absolute; top: 50%; left: 50%; width: 0; height: 0; transform: rotate(calc(360deg / var(--n) * var(--i))) translateY(calc(var(--r) * -1)) rotate(calc(-360deg / var(--n) * var(--i))); }
.orbit-node-inner { position: absolute; left: 0; top: 0; width: 140px; transform: translate(-50%, -50%); }
.orbit-node-rot { display: grid; justify-items: center; gap: .4rem; text-align: center; animation: spin 60s linear infinite reverse; }
.on-ico { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--card); color: var(--copper); box-shadow: inset 0 0 0 1px var(--line), 0 14px 30px -18px rgba(10,26,47,.5); transition: transform .5s var(--ease), background .4s, color .4s; }
.on-ico .ico { width: 28px; height: 28px; }
.orbit-node-rot:hover .on-ico { transform: scale(1.15); background: var(--ink); color: var(--sand); }
.on-label { font-size: .82rem; font-weight: 500; line-height: 1.4; background: var(--paper); padding: .1em .5em; border-radius: 8px; }
.orbit:hover .orbit-spin, .orbit:hover .orbit-node-rot { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.4rem; margin-top: 4rem; }
.member-photo { aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .6s, transform 1s var(--ease); }
.member:hover .member-photo img { filter: none; transform: scale(1.05); }
.member-initial { font-family: var(--f-callig); font-size: 5rem; color: var(--copper); }
.member h3 { margin-top: 1rem; font-size: 1.2rem; }
.member-role { color: var(--copper); font-size: .9rem; }
.member-bio { color: var(--muted); font-size: .92rem; margin-top: .4rem; }
@media (max-width: 900px) { .team-inner { grid-template-columns: 1fr; } .orbit { --r: min(150px, 30vw); } .orbit-node-inner { width: 110px; } .on-ico { width: 50px; height: 50px; } }

/* ==========================================================================
   SHURAKĀʾ — partenaires
   ========================================================================== */
.partners { padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem); background: var(--card); border-top: 1px solid var(--line); overflow: hidden; }
.partners-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.partners-head .sec-head { margin-bottom: 3rem; }
.partners-head .btn { margin-bottom: 3rem; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 3rem; }
.partner { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 1.2rem; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); filter: grayscale(1); opacity: .75; transition: filter .5s, opacity .5s; }
.partner:hover { filter: none; opacity: 1; }
.marquee { display: grid; gap: .4rem; direction: ltr; }
.marquee-row { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: mq 50s linear infinite; }
.marquee-row.rev .marquee-track { animation-direction: reverse; animation-duration: 60s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-item { direction: rtl; display: flex; align-items: center; gap: 1.6rem; padding-inline: .8rem 1rem; font-family: var(--f-display); font-size: clamp(1.8rem, 4.6vw, 4.2rem); font-weight: 200; white-space: nowrap; line-height: 1.5; transition: color .4s; }
.marquee-row.rev .mq-item { color: transparent; -webkit-text-stroke: 1px rgba(10,26,47,.35); }
.mq-item:hover { color: var(--copper); -webkit-text-stroke: 0; }
.mq-drop { width: .4em; color: var(--sand); --drop-slit: var(--card); }
@keyframes mq { to { transform: translateX(-50%); } }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { position: relative; padding: clamp(6rem, 12vw, 10rem) 0; overflow: hidden; isolation: isolate; }
.contact-ink { position: absolute; z-index: -1; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; right: -25vw; top: -10%; border-radius: 50%; background: radial-gradient(circle, rgba(201,165,122,.32), transparent 65%); }
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-title { font-size: clamp(2.4rem, 5.4vw, 5rem); font-weight: 300; line-height: 1.2; }
.contact-lead { margin-top: 1.5rem; font-size: 1.15rem; color: var(--muted); max-width: 440px; }
.contact-direct { margin-top: 2.2rem; display: grid; gap: .8rem; }
.contact-direct li { display: flex; align-items: center; gap: .8rem; font-size: 1.05rem; }
.contact-direct .ico { color: var(--copper); }
.contact-direct a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.contact-direct a:hover { background-size: 100% 1px; background-position: 100% 100%; }
.form { padding: clamp(1.6rem, 4vw, 3rem); border-radius: calc(var(--radius) + 6px); background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -50px rgba(10,26,47,.45); }
.form-msg { margin-bottom: 1.4rem; padding: .9rem 1.2rem; border-radius: 14px; font-weight: 500; }
.form-msg.ok { background: rgba(30,74,60,.1); color: var(--green); }
.form-msg.err { background: rgba(181,118,63,.12); color: var(--copper-d); }
.topics { border: 0; padding: 0; margin: 0 0 1.8rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.topics legend { width: 100%; margin-bottom: .8rem; font-family: var(--f-display); font-weight: 500; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: block; padding: .5em 1.1em; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); font-size: .92rem; cursor: pointer; transition: background .35s, color .35s, box-shadow .35s; }
.chip:hover span { box-shadow: inset 0 0 0 1px var(--copper); }
.chip input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.4rem; }
.field { position: relative; display: block; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; padding: 1.5rem 0 .6rem; border: 0; border-bottom: 1px solid var(--line); background: transparent; font: inherit; color: var(--ink); outline: none; resize: vertical; transition: border-color .4s; }
.field span { position: absolute; top: 1.3rem; right: 0; color: var(--muted); pointer-events: none; transform-origin: right top; transition: transform .45s var(--ease), color .45s; }
.field::after { content: ""; position: absolute; bottom: 0; right: 0; left: 0; height: 2px; background: var(--copper); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-1.15rem) scale(.78); color: var(--copper); }
.form-send { margin-top: 2rem; }
@media (max-width: 900px) { .contact-inner { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

/* ==========================================================================
   PIED DE PAGE
   ========================================================================== */
.site-footer { position: relative; background: var(--ink); color: var(--paper); padding-top: clamp(5rem, 10vw, 8rem); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 3rem; padding-bottom: 4rem; border-bottom: 1px solid var(--line-l); }
.footer-kicker { color: var(--sand); font-family: var(--f-display); margin-bottom: 1rem; }
.footer-big { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 300; line-height: 1.3; margin-bottom: 2rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-cols h3 { font-size: .85rem; color: var(--sand); font-weight: 500; margin-bottom: 1.2rem; }
.footer-cols li { margin-bottom: .55rem; font-size: .95rem; color: rgba(246,241,231,.72); }
.footer-cols a { transition: color .3s; }
.footer-cols a:hover { color: var(--sand); }
.with-ico { display: flex; align-items: center; gap: .5rem; }
.with-ico .ico { width: 1em; color: var(--sand); }
.footer-giant { position: relative; display: grid; justify-items: center; margin-top: 1rem; overflow: hidden; user-select: none; pointer-events: none; }
.footer-giant span { grid-area: 1 / 1; font-family: var(--f-callig); font-size: clamp(8rem, 30vw, 27rem); line-height: 1.3; }
.giant-outline { color: transparent; -webkit-text-stroke: 1px rgba(201,165,122,.28); }
.giant-fill { color: var(--sand); background: linear-gradient(180deg, var(--sand), var(--copper)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; clip-path: inset(100% 0 0 0); }
.reduced .giant-fill, .no-js .giant-fill { clip-path: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 1.8rem 0 2.2rem; border-top: 1px solid var(--line-l); font-size: .85rem; color: rgba(246,241,231,.55); }
.footer-triad { display: flex; gap: 1.4rem; color: var(--sand); }
.footer-triad span { display: flex; align-items: center; gap: .4rem; }
.footer-triad .ico { width: 1.1em; }
.to-top { display: flex; align-items: center; gap: .5rem; transition: color .3s; }
.to-top:hover { color: var(--sand); }
.to-top .ico { width: 1em; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   PAGES INTÉRIEURES
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); padding: calc(var(--header-h) + clamp(4rem, 9vw, 7rem)) 0 clamp(3.5rem, 7vw, 5.5rem); }
.page-hero-art { position: absolute; inset: 0; opacity: .2; mask-image: linear-gradient(to left, transparent 15%, #000 85%); -webkit-mask-image: linear-gradient(to left, transparent 15%, #000 85%); }
.page-hero-art .pattern { width: 100%; height: 100%; }
.page-hero-inner { position: relative; max-width: 980px; margin-inline: max(var(--gutter), (100% - var(--wrap)) / 2); }
.back-link { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 2rem; color: rgba(246,241,231,.6); font-size: .9rem; transition: color .3s; }
.back-link .ico { transform: scaleX(-1); width: 1em; }
.back-link:hover { color: var(--sand); }
.page-kicker { display: flex; align-items: center; gap: .6rem; color: var(--sand); font-family: var(--f-display); margin-bottom: 1.2rem; }
.page-kicker .mini-drop { color: var(--sand); --drop-slit: var(--ink); }
.page-title { font-size: clamp(2.2rem, 5.4vw, 4.8rem); font-weight: 300; line-height: 1.25; }
.page-lead { margin-top: 1.4rem; font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem); color: rgba(246,241,231,.7); max-width: 700px; }
.page-meta { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; font-size: .92rem; color: rgba(246,241,231,.7); }
.page-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.page-meta .ico { color: var(--sand); width: 1.1em; }
.page-meta .kn-cat { background: rgba(201,165,122,.18); color: var(--sand); }

.listing { padding: clamp(3rem, 6vw, 5rem) 0 clamp(5rem, 10vw, 8rem); }
.list-cats { justify-content: flex-start; max-width: none; margin-bottom: 2.5rem; }
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.pager { display: flex; justify-content: center; gap: .5rem; margin-top: 3rem; }
.pager .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding-inline: .8rem; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); }
.pager .current { background: var(--ink); color: var(--paper); }
.empty { padding: 4rem 0; text-align: center; color: var(--muted); font-size: 1.2rem; }

.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 960; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: linear-gradient(to left, var(--sand), var(--copper)); transform: scaleX(0); transform-origin: right; }
.single { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem); }
.single-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.single-narrow { max-width: 820px; }
.single-side { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.5rem; }
.side-card { padding: 1.8rem; border-radius: 24px; background: var(--ink); color: var(--paper); display: grid; gap: 1rem; }
.side-card p { color: rgba(246,241,231,.72); }
.side-k { font-family: var(--f-display); font-size: 1.3rem; color: var(--paper) !important; line-height: 1.5; }
.side-card .btn { justify-self: start; }
.side-triad { display: flex; justify-content: center; gap: 1.2rem; color: var(--copper); font-family: var(--f-display); }
.side-triad span { display: flex; gap: .35rem; align-items: center; }
.side-triad .ico { width: 1.1em; }
@media (max-width: 960px) { .single-grid { grid-template-columns: 1fr; } .single-side { position: static; } }

.psr-flow { position: relative; display: grid; gap: 1.2rem; margin-bottom: 3rem; }
.psr-flow::before { content: ""; position: absolute; top: 30px; bottom: 30px; right: 29px; width: 1px; background: linear-gradient(var(--copper), var(--green)); opacity: .4; }
.psr-step { position: relative; display: grid; grid-template-columns: 60px 1fr; gap: 1.3rem; align-items: start; }
.psr-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--ink); color: var(--sand); }
.psr-ico .ico { width: 26px; height: 26px; }
.psr-step > div { padding: 1.4rem 1.6rem; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.psr-step h2 { font-size: 1.05rem; color: var(--copper); font-weight: 600; }
.psr-step p { margin-top: .4rem; font-size: 1.1rem; }

.prose { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 2.05; max-width: 72ch; }
.prose > * + * { margin-top: 1.3em; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 500; margin-top: 2.2em; }
.prose h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-top: 1.8em; }
.prose a { color: var(--copper); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; }
.prose ul li::before { content: ""; position: absolute; right: -1.2em; top: .85em; width: 7px; height: 7px; border-radius: 50%; background: var(--sand); }
.prose ol { list-style: arabic-indic; }
.prose li + li { margin-top: .5em; }
.prose blockquote { margin: 2em 0; padding: .4em 1.6em; border-inline-start: 3px solid var(--copper); font-family: var(--f-serif); font-size: 1.35em; line-height: 1.8; color: var(--ink-2); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose img { border-radius: 18px; }

.inline-chat { display: flex; flex-direction: column; gap: .7rem; padding: 1.6rem; border-radius: 24px; background: #0B141A; color: var(--paper); margin-bottom: 2.5rem; max-width: 560px; }
.inline-chat .bubble { padding-bottom: .6rem; }
.ev-block { margin-top: 2.5rem; padding: 1.8rem; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ev-block h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.ev-block li { padding: .6rem 0; border-top: 1px solid var(--line); }
.ev-block li:first-child { border-top: 0; }
.related { padding: 0 0 clamp(5rem, 10vw, 8rem); }
.related-title { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 300; margin-bottom: 2rem; }

.nf { position: relative; min-height: 100svh; display: grid; place-items: center; background: var(--ink); color: var(--paper); overflow: hidden; text-align: center; }
.nf-drop { position: absolute; width: min(60vw, 520px); opacity: .07; }
.nf-drop .drop { width: 100%; color: var(--sand); --drop-slit: var(--ink); }
.nf-inner { position: relative; display: grid; justify-items: center; gap: 1.2rem; }
.nf-code { font-family: var(--f-display); font-size: clamp(6rem, 20vw, 14rem); font-weight: 200; line-height: 1; color: var(--sand); }
.nf-title { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 300; }
.nf-lead { color: rgba(246,241,231,.65); margin-bottom: 1rem; }

/* ---------- États initiaux (avant GSAP) ---------- */
.js:not(.reduced):not(.no-anim) [data-split] { visibility: hidden; }
.js:not(.reduced):not(.no-anim) [data-hero-in] { opacity: 0; visibility: hidden; }
.js:not(.reduced):not(.no-anim) .hero-title .ln > span { transform: translateY(115%); }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.stack-card { position: relative; top: 0 !important; }
}

/* ---------- Photos : bichromie d'encre + goutte de couleur ---------- */
@property --r { syntax: '<percentage>'; inherits: true; initial-value: 0%; }
.duo-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ph { position: absolute; inset: 0; margin: 0; overflow: hidden; background: var(--ink); --cx: 50%; --cy: 50%; --r: 0%; transition: --r 1.1s var(--ease); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-duo { filter: url(#duo-ink); }
.ph-green { background: var(--green-d); } .ph-green .ph-duo { filter: url(#duo-green); }
.ph-copper { background: #2a170a; } .ph-copper .ph-duo { filter: url(#duo-copper); }
.ph-sand { background: var(--paper-2); } .ph-sand .ph-duo { filter: url(#duo-sand); }
.ph-col { clip-path: circle(var(--r) at var(--cx) var(--cy)); }
.ph.is-color, a:hover .ph, a:focus-visible .ph { --r: 150%; }
.ph.is-color { transition-duration: 1.8s; }

/* Bandeaux des pages intérieures */
.page-hero .ph { inset: -6% 0; opacity: .8; transition: none; }
.page-hero .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(10,26,47,.92) 5%, rgba(10,26,47,.5) 45%, rgba(10,26,47,0) 85%), linear-gradient(to top, var(--ink) 0%, transparent 40%), linear-gradient(to bottom, rgba(10,26,47,.6) 0%, transparent 22%); }
.page-hero.has-photo .page-hero-art { opacity: 1; mask-image: none; -webkit-mask-image: none; }
.page-hero.has-photo { min-height: min(78svh, 760px); display: flex; flex-direction: column; justify-content: flex-end; }
.ph-credit { position: absolute; bottom: 1rem; left: var(--gutter); z-index: 2; max-width: min(60vw, 520px); font-size: .72rem; line-height: 1.6; color: rgba(246,241,231,.5); direction: rtl; }
.ph-credit a { text-decoration: underline; text-decoration-color: rgba(246,241,231,.25); text-underline-offset: 2px; transition: color .3s; }
.ph-credit a:hover { color: var(--sand); }
@media (max-width: 760px) {
	.page-hero.has-photo { min-height: 62svh; }
	.page-hero .ph::after { background: linear-gradient(to top, var(--ink) 20%, rgba(10,26,47,.55) 70%, rgba(10,26,47,.3) 100%); }
	.ph-credit { position: relative; bottom: auto; left: auto; margin: 2rem var(--gutter) 0; max-width: none; }
}

/* Cartes des domaines : la photo prend la place du motif */
.sc-art .ph { --cx: 50%; --cy: 50%; }
.sc-art .ph img { transform: scale(1.12); }
.sc-art-ico .ico { width: 26%; }
.sc-art .ph::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, rgba(10,26,47,.35), transparent 70%); pointer-events: none; }

/* Réalisations et cartes */
.work-cover .ph { inset: 0 -9%; background: var(--ink); }
.work-cover .ph img, .kn-cover .ph img { transition: transform 1.2s var(--ease); }
.work-card:hover .work-cover .ph img { transform: scale(1.06); }
.kn-card:hover .kn-cover .ph img { transform: scale(1.07); }
.work-cover::after, .kn-cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(10,26,47,.45), transparent 50%); }
.work-ico, .work-index, .kn-cover-ico { z-index: 1; }

/* Fond de « فكرة من مداد » */
.idea-bg.has-photo { opacity: .38; mask-image: linear-gradient(to right, #000 10%, transparent 70%); -webkit-mask-image: linear-gradient(to right, #000 10%, transparent 70%); }
.idea-bg .ph { inset: -8% 0; }

/* 404 */
.nf .ph { opacity: .35; }
.nf .ph::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, rgba(10,26,47,.4), var(--ink) 90%); }

/* Page des crédits */
.credits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); margin-top: 2rem; }
.credit-card { border-radius: 18px; overflow: hidden; background: var(--paper-2); }
.credit-card .credit-img { position: relative; aspect-ratio: 4 / 3; }
.credit-card .credit-txt { padding: 1rem 1.1rem 1.2rem; font-size: .85rem; line-height: 1.8; }
.credit-card .credit-txt strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: .95rem; margin-bottom: .2rem; }
.credit-card a { color: var(--copper-d); text-decoration: underline; text-underline-offset: 2px; }
.credit-card .credit-file { direction: ltr; text-align: right; display: block; font-size: .72rem; opacity: .6; word-break: break-all; }

.reduced .ph, .no-anim .ph { --r: 150%; }
.footer-credits { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(246,241,231,.25); transition: color .3s; }
.footer-credits:hover { color: var(--sand); }

/* ---------- Carte de la Mauritanie ---------- */
.mapsec { position: relative; overflow: hidden; background: radial-gradient(90% 70% at 25% 50%, var(--ink-3) 0%, var(--ink) 60%); color: var(--paper); padding: clamp(6rem, 11vw, 9rem) 0 clamp(4rem, 8vw, 6rem); }
.mapsec .sec-kicker { color: var(--sand); }
.mapsec .mini-drop { color: var(--sand); --drop-slit: var(--ink); }
.mapsec .sec-title { color: var(--paper); }
.mapsec .sec-title em { color: var(--sand); }
.mapsec .sec-lead { color: rgba(246,241,231,.7); }
.mapsec-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.map-legend { margin-top: 2rem; display: grid; gap: .7rem; font-size: .92rem; color: rgba(246,241,231,.8); }
.map-legend li { display: flex; align-items: center; gap: .8rem; }
.map-legend i { flex: none; width: 14px; height: 14px; border-radius: 50%; }
.map-legend .lg-hq { background: var(--copper); box-shadow: 0 0 0 4px rgba(181,118,63,.3); }
.map-legend .lg-route { width: 28px; height: 0; border-radius: 0; border-top: 2px dashed var(--sand); }
.map-legend .lg-city { background: var(--sand); width: 9px; height: 9px; margin-inline: 2.5px; }
.map { position: relative; aspect-ratio: var(--ar); width: 100%; max-width: 640px; justify-self: center; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map-grid { fill: none; stroke: rgba(201,165,122,.08); stroke-width: 1; }
.map-land { fill: rgba(201,165,122,.07); }
.map-outline { fill: none; stroke: var(--sand); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.map-route { fill: none; stroke: rgba(181,118,63,.4); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; filter: blur(4px); }
.map-route-dash { fill: none; stroke: rgba(201,165,122,.75); stroke-width: 1.6; stroke-dasharray: 6 9; stroke-linecap: round; animation: route-flow 1.6s linear infinite; }
@keyframes route-flow { to { stroke-dashoffset: -30; } }
.map-sea { font-family: var(--f-display); font-size: 21px; fill: rgba(201,165,122,.35); letter-spacing: .1em; writing-mode: vertical-rl; }
.pin { position: absolute; z-index: 1; width: 0; height: 0; color: var(--paper); }
.pin-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 0 3px rgba(10,26,47,.8); transition: transform .4s var(--ease); }
.pin.is-hq .pin-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--sand); animation: pin-pulse 2.6s var(--ease) infinite; }
@keyframes pin-pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
.pin.is-hq .pin-dot { width: 15px; height: 15px; margin: -7.5px; background: var(--copper); }
.pin.is-hq .pin-dot::after { border-color: var(--copper); }
.pin:not(.is-hq) .pin-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(201,165,122,.5); }
.pin-name { position: absolute; top: -.75em; right: 12px; white-space: nowrap; font-family: var(--f-display); font-size: clamp(.68rem, .6rem + .3vw, .9rem); line-height: 1.5; color: rgba(246,241,231,.85); text-shadow: 0 1px 8px var(--ink); pointer-events: none; }
.pin.is-hq .pin-name { font-weight: 600; color: var(--paper); right: 16px; }
.map-credit { position: relative; bottom: auto; left: auto; margin: 2.5rem var(--gutter) 0; max-width: none; }
@media (max-width: 900px) {
	.mapsec-inner { grid-template-columns: 1fr; }
	.map { max-width: 520px; }
	}
.page .mapsec { margin-top: clamp(3rem, 7vw, 6rem); }

.pin.lab-r .pin-name { right: auto; left: 12px; }
.pin.lab-t .pin-name { top: -1.9em; right: 4px; }
.pin.lab-b .pin-name { top: .35em; right: 10px; }
.pin.is-hq.lab-r .pin-name { right: auto; left: 16px; }

.credits-sub { margin-top: clamp(3rem, 6vw, 5rem); font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 400; }
.credits-gfx { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.credits-gfx li { display: grid; gap: .3rem; padding: 1.2rem 1.3rem; border-radius: 18px; background: var(--paper-2); font-size: .85rem; line-height: 1.8; }
.credits-gfx strong { font-family: var(--f-display); font-weight: 500; font-size: 1rem; }
.credits-gfx a { color: var(--copper-d); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Ornements girih (Commons, domaine public) ---------- */
.gx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.gx { display: block; overflow: visible; }
.gx-decagon { aspect-ratio: 586 / 615; }
.gx-bowtie { aspect-ratio: 367 / 198; }
.gx-hexagon { aspect-ratio: 500 / 231; }
.gx-rhombus { aspect-ratio: 314 / 231; }
.gx-pentagon { aspect-ratio: 314 / 299; }
.manifesto { position: relative; overflow: hidden; }
.manifesto .wrap { position: relative; }
.manifesto-orn { position: absolute; top: 50%; left: -6vw; width: min(46vw, 620px); translate: 0 -50%; pointer-events: none;
	--gt-fill: rgba(201,165,122,.07); --gt-edge: rgba(181,118,63,.35); --gt-line: var(--copper); --gt-w: 5; opacity: .55; }
.manifesto-orn .gx { width: 100%; }
.girih-frieze { display: flex; justify-content: center; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) 0;
	--gt-fill: transparent; --gt-edge: rgba(201,165,122,.35); --gt-line: var(--sand); --gt-w: 7; }
.girih-frieze .gx { height: clamp(42px, 7vw, 92px); width: auto; flex: none; transition: transform .8s var(--ease); }
.girih-frieze .gx:hover { transform: rotate(36deg) scale(1.08); }
.js:not(.reduced):not(.no-anim) [data-girih] { --gt-da: 1; --draw: 1; }
@media (max-width: 760px) {
	.manifesto-orn { left: auto; right: -30vw; top: 12%; width: 80vw; opacity: .35; translate: none; }
	.girih-frieze .gx:nth-child(1), .girih-frieze .gx:nth-child(5) { display: none; }
}
