:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.85rem);
  --text-sm: clamp(0.85rem, 0.8rem + 0.3vw, 0.95rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.075rem);
  --text-lg: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  --text-xl: clamp(1.35rem, 1.1rem + 1.1vw, 2rem);
  --text-2xl: clamp(1.75rem, 1.2rem + 2vw, 2.9rem);
  --text-hero: clamp(2.3rem, 1rem + 4.6vw, 4.8rem);
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.25rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  /* Charte sombre inspirée de Blinx */
  --color-bg: oklch(0.145 0 0);
  --color-header: oklch(0.18 0 0);
  --color-surface: oklch(0.205 0 0);
  --color-surface-2: oklch(0.269 0 0);
  --color-glass: rgb(255 255 255 / 0.06);
  --color-text: oklch(0.985 0 0);
  --color-text-muted: oklch(0.708 0 0);
  --color-border: rgb(255 255 255 / 0.1);
  --color-red: oklch(0.6 0.22 27);
  --color-red-hover: oklch(0.55 0.22 27);
  --color-teal: oklch(0.76 0.1 200);
  --color-blue: oklch(0.6 0.12 265);
  --grad: linear-gradient(135deg, var(--color-teal), var(--color-blue));
  --color-primary: var(--color-red);

  --radius-sm: .5rem; --radius-md: .75rem; --radius-lg: 1rem; --radius-xl: 1.5rem; --radius-full: 999px;
  --transition-interactive: 180ms cubic-bezier(.16,1,.3,1);
  --font-display: 'Cairo', system-ui, sans-serif;
  --font-body: 'Cairo', system-ui, sans-serif;
  --content: 1320px;
  color-scheme: dark;
}
html, body { background: var(--color-bg); color: var(--color-text); }
body { line-height: 1.6; font-family: var(--font-body); }
:lang(ar) body { line-height: 1.8; }
a { color: inherit; }
::selection { background: oklch(0.6 0.12 265 / .5); }
.wrap { width: min(100% - 2rem, var(--content)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--color-red); color: #fff; padding: .5rem 1rem; border-radius: var(--radius-full); z-index: 100; }
.skip:focus { top: 1rem; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--color-header); border-bottom: 1px solid var(--color-border); }
.hdr .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-4); min-height: 64px; }
.brand { display: inline-flex; align-items: baseline; gap: .45rem; text-decoration: none; font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; justify-self: start; }
.brand .ar { font-size: 1.15rem; letter-spacing: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .dot { color: var(--color-red); }
.nav { display: flex; gap: 2px; padding: 4px; background: var(--color-glass); border: 1px solid var(--color-border); border-radius: var(--radius-full); }
.nav a { text-decoration: none; font-size: var(--text-sm); font-weight: 600; padding: .4rem .95rem; border-radius: var(--radius-full); color: var(--color-text-muted); white-space: nowrap; }
.nav a:hover { color: var(--color-text); }
.nav a[aria-current="page"] { color: #fff; background: var(--grad); box-shadow: 0 0 18px -4px oklch(0.76 0.1 200 / .6); }
.hdr-end { justify-self: end; display: flex; align-items: center; gap: var(--space-2); }
.langs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-glass); }
.langs a { text-decoration: none; font-size: var(--text-xs); font-weight: 700; padding: .28rem .6rem; border-radius: var(--radius-full); min-width: 2.2rem; text-align: center; color: var(--color-text-muted); }
.langs a[aria-current="true"] { background: var(--color-text); color: var(--color-bg); }
.langs a:not([aria-current="true"]):hover { color: var(--color-text); }

/* Mobile tab bar (comme l'appli Blinx) */
.tabbar { display: none; }
@media (max-width: 960px) {
  .hdr .wrap { grid-template-columns: 1fr auto; }
  .hdr .nav { display: none; }
  .tabbar { display: flex; position: fixed; z-index: 50; inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom)); justify-content: space-around; padding: 8px 6px; border-radius: 22px; background: oklch(0.22 0 0 / .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--color-border); box-shadow: 0 12px 30px -10px #000; }
  .tabbar a { flex: 1; display: grid; justify-items: center; gap: 2px; text-decoration: none; font-size: 10.5px; font-weight: 600; color: var(--color-text-muted); padding-top: 2px; }
  .tabbar a span.i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
  .tabbar svg { width: 21px; height: 21px; }
  .tabbar a[aria-current="page"] { color: var(--color-text); }
  .tabbar a[aria-current="page"] span.i { background: var(--grad); color: #fff; }
  body { padding-bottom: 92px; }
}

/* Type helpers */
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
:lang(ar) .eyebrow { letter-spacing: 0; text-transform: none; font-size: var(--text-sm); }
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
:lang(ar) .display { letter-spacing: 0; line-height: 1.3; }
.display em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2 { font-size: var(--text-2xl); }
.lead { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 60ch; font-weight: 400; }
.muted { color: var(--color-text-muted); }
.section { padding-block: clamp(var(--space-12), 7vw, var(--space-20)); }
.sec-head { display: grid; gap: var(--space-3); margin-bottom: var(--space-8); max-width: 760px; }
.sec-head.row { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
.sec-head .bar { width: 44px; height: 3px; border-radius: 3px; background: var(--grad); }
.sec-head .more { font-size: var(--text-sm); font-weight: 700; text-decoration: none; color: var(--color-text-muted); display: inline-flex; align-items: center; gap: .3rem; }
.sec-head .more:hover { color: var(--color-text); }
@media (max-width: 720px) { .sec-head.row { grid-template-columns: 1fr auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.35rem; border-radius: var(--radius-full); font-weight: 700; font-size: var(--text-sm); text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--color-red); color: #fff; }
.btn-primary:hover { background: var(--color-red-hover); }
.btn-ghost { background: var(--color-glass); border-color: rgb(255 255 255 / .18); color: var(--color-text); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgb(255 255 255 / .14); }
.btn-light { background: #fff; color: #111; }
.btn-light:hover { background: oklch(0.9 0 0); }
.btn svg { width: 18px; height: 18px; flex: none; }
:dir(rtl) .flip { transform: scaleX(-1); }
.link { font-weight: 700; font-size: var(--text-sm); text-decoration: none; color: var(--color-teal); }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.pill { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--text-xs); font-weight: 700; padding: .28rem .7rem; border-radius: var(--radius-full); background: var(--color-glass); border: 1px solid var(--color-border); color: var(--color-text); }
.pill.ai { background: oklch(0.6 0.12 265 / .22); border-color: oklch(0.6 0.12 265 / .4); }
.pill.dark { background: var(--color-text); color: var(--color-bg); border-color: transparent; }
.pill.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--color-red); box-shadow: 0 0 8px var(--color-red); }

/* Hero (pleine largeur, dégradé rouge en bas comme Blinx) */
.hx { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hx video, .hx > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hx::after { content: ''; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 60% 55% at 50% 62%, rgb(0 0 0 / .55), transparent 75%),
  linear-gradient(to top, var(--color-bg) 0%, oklch(0.42 0.17 27 / .7) 20%, oklch(0.3 0.08 27 / .35) 45%, oklch(0.145 0 0 / .2) 65%, oklch(0.145 0 0 / .6) 100%); }
.hx-in { padding-block: var(--space-16) var(--space-12); display: grid; gap: var(--space-4); justify-items: center; text-align: center; }
.hx h1 { font-size: var(--text-hero); max-width: 18ch; text-shadow: 0 4px 30px rgb(0 0 0 / .45); }
.hx h1 span { display: block; }
.hx .lead { color: oklch(0.92 0 0); max-width: 62ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-2); }
.hx-badge { position: absolute; top: 1.25rem; inset-inline-end: 1.25rem; }
.dots { display: flex; gap: 6px; margin-top: var(--space-4); }
.dots i { width: 34px; height: 3px; border-radius: 3px; background: rgb(255 255 255 / .3); }
.dots i:first-child { background: #fff; width: 44px; }
.facts { display: flex; justify-content: center; gap: clamp(var(--space-6), 5vw, var(--space-16)); padding-block: var(--space-6); border-block: 1px solid var(--color-border); }
.facts div { display: flex; align-items: baseline; gap: .5rem; }
.facts b { font-size: var(--text-xl); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts span { font-size: var(--text-sm); color: var(--color-text-muted); }

/* Affiches vidéo verticales (style Blinx) */
.grid-shows { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-4); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 230px); gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-3); scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.card { display: grid; gap: var(--space-2); align-content: start; }
.poster { --h: 290; position: relative; display: block; width: 100%; padding: 0; aspect-ratio: 9/15.5; border-radius: var(--radius-lg); overflow: hidden; background: oklch(0.35 0.15 var(--h)); isolation: isolate; text-align: start; color: #fff; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.poster::after { content: ''; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(to top, oklch(0.2 0.08 var(--h) / .95) 0%, oklch(0.42 0.18 var(--h) / .55) 42%, oklch(0.5 0.2 var(--h) / .12) 70%, transparent 100%); mix-blend-mode: normal; }
.poster:hover img { transform: scale(1.05); }
.poster .mark { position: absolute; top: .55rem; inset-inline-end: .6rem; font-size: 10px; font-weight: 800; opacity: .9; letter-spacing: -.01em; }
.poster .mark b { color: var(--color-red); }
.poster .hook { position: absolute; inset-inline: .8rem; bottom: 2.6rem; font-weight: 800; font-size: clamp(1rem, .9rem + .35vw, 1.2rem); line-height: 1.2; text-align: center; text-wrap: balance; text-shadow: 0 2px 12px rgb(0 0 0 / .5); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
:lang(ar) .poster .hook { line-height: 1.45; }
.poster .name { position: absolute; inset-inline-start: .8rem; bottom: .7rem; font-size: var(--text-xs); font-weight: 800; }
.poster .play { position: absolute; inset-inline-end: .7rem; bottom: .55rem; width: 30px; height: 30px; border-radius: 50%; background: rgb(255 255 255 / .92); color: #111; display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: opacity var(--transition-interactive), transform var(--transition-interactive); }
.poster:hover .play, .poster:focus-visible .play { opacity: 1; transform: none; }
.poster .play svg { width: 13px; height: 13px; }
.card .meta { display: flex; gap: .35rem; flex-wrap: wrap; }
.card .meta .pill { font-size: 11px; padding: .18rem .55rem; }
.card h3 { font-size: var(--text-base); font-weight: 800; line-height: 1.3; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--color-teal); }

/* Filters */
.filters { display: grid; gap: var(--space-3); margin-bottom: var(--space-8); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.chips .lbl { font-size: var(--text-xs); color: var(--color-text-muted); margin-inline-end: var(--space-2); min-width: 9rem; font-weight: 600; }
.chip { padding: .42rem .95rem; border-radius: var(--radius-full); border: 1px solid var(--color-border); font-size: var(--text-sm); font-weight: 600; background: var(--color-glass); color: var(--color-text-muted); }
.chip:hover { color: var(--color-text); border-color: rgb(255 255 255 / .25); }
.chip[aria-pressed="true"] { background: var(--grad); color: #fff; border-color: transparent; }
.empty { padding: var(--space-12); text-align: center; border: 1px dashed var(--color-border); border-radius: var(--radius-lg); color: var(--color-text-muted); }

/* Method */
.method { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.method li { list-style: none; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-2); align-content: start; position: relative; overflow: hidden; }
.method .n { font-size: var(--text-2xl); font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.method h3 { font-size: var(--text-lg); font-weight: 800; }
.method p { font-size: var(--text-sm); color: var(--color-text-muted); }
@media (max-width: 900px) { .method { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .method { grid-template-columns: 1fr; } }

/* Theme tiles */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.theme { --h: 290; position: relative; text-decoration: none; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.theme img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.theme::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, oklch(0.2 0.08 var(--h) / .95), oklch(0.45 0.18 var(--h) / .45) 60%, transparent); }
.theme:hover img { transform: scale(1.05); }
.theme div { padding: var(--space-4); display: grid; gap: 0; }
.theme h3 { font-size: var(--text-base); font-weight: 800; line-height: 1.25; }
.theme p { font-size: var(--text-xs); opacity: .85; }
@media (max-width: 900px) { .themes { grid-template-columns: 1fr 1fr; } }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; }
.split img { border-radius: var(--radius-xl); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split ul li { color: var(--color-text-muted); }
.split ul li .n { color: var(--color-teal); font-weight: 800; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Stories */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.story { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-3); align-content: start; }
.story .mono { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; color: #fff; background: var(--grad); }
.story:nth-child(3n+2) .mono { background: linear-gradient(135deg, oklch(0.65 0.2 27), oklch(0.55 0.2 350)); }
.story:nth-child(3n) .mono { background: linear-gradient(135deg, oklch(0.75 0.15 85), oklch(0.62 0.18 50)); }
.story .top { display: flex; align-items: center; gap: var(--space-4); }
.story h3 { font-size: var(--text-lg); font-weight: 800; line-height: 1.2; }
.story .co { font-size: var(--text-xs); color: var(--color-text-muted); }
.story blockquote { font-size: var(--text-lg); font-weight: 800; line-height: 1.3; }
:lang(ar) .story blockquote { line-height: 1.55; }
.story p { font-size: var(--text-sm); color: oklch(0.85 0 0); }
.story .lesson { font-weight: 700; color: var(--color-teal); padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
.srcs { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: var(--text-xs); color: var(--color-text-muted); }
.srcs a { color: var(--color-text); font-weight: 700; }
.story .pill, .guide .more { justify-self: start; }
@media (max-width: 960px) { .stories { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .stories { grid-template-columns: 1fr; } }

/* Toolbox */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.guide { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.guide[open] { border-color: oklch(0.76 0.1 200 / .5); }
.guide summary { list-style: none; cursor: pointer; padding: var(--space-6); display: grid; gap: var(--space-2); }
.guide summary::-webkit-details-marker { display: none; }
.guide summary:hover h3 { color: var(--color-teal); }
.guide .gn { font-weight: 800; font-size: var(--text-lg); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; justify-self: start; }
.guide h3 { font-size: var(--text-lg); font-weight: 800; line-height: 1.25; transition: color var(--transition-interactive); }
.guide summary p { font-size: var(--text-sm); color: var(--color-text-muted); }
.guide .more { font-size: var(--text-xs); font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; margin-top: var(--space-2); color: var(--color-teal); }
.guide[open] .more svg { transform: rotate(180deg); }
.guide ol { padding: 0 var(--space-6) var(--space-6); display: grid; gap: var(--space-3); counter-reset: s; }
.guide li { list-style: none; counter-increment: s; display: grid; grid-template-columns: 2rem 1fr; gap: var(--space-3); font-size: var(--text-sm); }
.guide li::before { content: counter(s); width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--color-surface-2); display: grid; place-items: center; font-weight: 800; font-size: var(--text-xs); }
.guide .gsrc { padding: 0 var(--space-6) var(--space-6); }
.tpls { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.tpl { border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-3); align-content: space-between; min-height: 210px; color: #fff; background: linear-gradient(160deg, oklch(0.42 0.14 265), oklch(0.28 0.08 230)); border: 1px solid var(--color-border); }
.tpl:nth-child(2) { background: linear-gradient(160deg, oklch(0.5 0.19 27), oklch(0.3 0.1 15)); }
.tpl:nth-child(3) { background: linear-gradient(160deg, oklch(0.5 0.12 180), oklch(0.28 0.06 200)); }
.tpl:nth-child(4) { background: linear-gradient(160deg, oklch(0.48 0.18 300), oklch(0.27 0.1 290)); }
.tpl h3 { font-size: var(--text-lg); font-weight: 800; }
.tpl p { font-size: var(--text-sm); opacity: .85; }
.tpl .ext { font-size: var(--text-xs); opacity: .7; font-family: ui-monospace, monospace; }
.tpl button { justify-self: start; }
@media (max-width: 960px) { .guides { grid-template-columns: 1fr 1fr; } .tpls { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .guides, .tpls { grid-template-columns: 1fr; } }

/* Opportunities */
.opps { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.opp { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-4); align-content: start; }
.opp .tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.opp h3 { font-size: var(--text-xl); font-weight: 800; line-height: 1.2; }
.opp dl { display: grid; gap: var(--space-3); }
.opp dt { font-size: var(--text-xs); font-weight: 800; color: var(--color-teal); }
:lang(fr) .opp dt, :lang(en) .opp dt { text-transform: uppercase; letter-spacing: .06em; }
.opp dd { font-size: var(--text-sm); color: oklch(0.85 0 0); }
.opp .btn { justify-self: start; }
@media (max-width: 760px) { .opps { grid-template-columns: 1fr; } }

/* CTA band */
.band { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(var(--space-10), 6vw, var(--space-16)); display: grid; grid-template-columns: 1.4fr auto; gap: var(--space-8); align-items: center; background: linear-gradient(120deg, oklch(0.5 0.2 27), oklch(0.42 0.16 350) 55%, oklch(0.45 0.13 265)); }
.band h2 { font-size: var(--text-2xl); }
.band p { opacity: .9; margin-top: var(--space-3); }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }

/* Show page */
.show-hero { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; padding-block: var(--space-10); }
.show-hero .poster .play { opacity: 1; transform: none; width: 56px; height: 56px; inset-inline-end: 50%; bottom: 50%; translate: 50% 50%; }
:dir(rtl) .show-hero .poster .play { translate: -50% 50%; }
.show-hero .poster .play svg { width: 22px; height: 22px; }
.show-hero h1 { font-size: var(--text-hero); margin-block: var(--space-3); }
.prose { display: grid; gap: var(--space-4); margin-top: var(--space-8); padding-top: var(--space-8); border-top: 1px solid var(--color-border); max-width: 70ch; }
.prose h2 { font-size: var(--text-xl); font-weight: 800; line-height: 1.25; }
.prose .lead { color: var(--color-text); font-weight: 600; }
.prose p { font-size: var(--text-base); color: oklch(0.88 0 0); }
.back { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--text-sm); text-decoration: none; color: var(--color-text-muted); font-weight: 600; }
.back:hover { color: var(--color-text); }
@media (max-width: 760px) { .show-hero { grid-template-columns: 1fr; } .show-hero .poster { max-width: 300px; margin-inline: auto; } }

/* Player */
dialog.player { border: none; padding: 0; background: transparent; max-width: min(96vw, 1100px); width: 100%; margin: auto; color: var(--color-text); }
dialog.player::backdrop { background: rgb(0 0 0 / .85); backdrop-filter: blur(6px); }
.player-inner { background: var(--color-surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); }
.player video { width: 100%; max-height: 78vh; background: #000; }
.player-bar { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-5); }
.player-bar h2 { font-size: var(--text-lg); font-weight: 800; }
.player-bar .x { margin-inline-start: auto; width: 40px; height: 40px; border-radius: 50%; background: var(--color-glass); color: inherit; display: grid; place-items: center; }
.player-bar .x:hover { background: rgb(255 255 255 / .16); }

/* Footer */
.ftr { background: oklch(0.12 0 0); border-top: 1px solid var(--color-border); padding-block: var(--space-16) var(--space-8); margin-top: var(--space-16); }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-10); }
.ftr p { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-4); }
.ftr h4 { font-size: var(--text-sm); font-weight: 800; margin-bottom: var(--space-4); }
.ftr ul { list-style: none; display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.ftr a { text-decoration: none; color: var(--color-text-muted); }
.ftr a:hover { color: var(--color-text); }
.ftr .brand { color: var(--color-text); }
.ftr-bottom { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--color-border); font-size: var(--text-xs); color: var(--color-text-muted); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
@media (max-width: 760px) { .ftr-grid { grid-template-columns: 1fr; } }

.page-head { padding-block: var(--space-10) var(--space-8); display: grid; gap: var(--space-3); border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-8); }
.page-head .bar { width: 44px; height: 3px; border-radius: 3px; background: var(--grad); }
.page-head h1 { font-size: var(--text-2xl); max-width: 22ch; }
.fade { animation: fade .5s cubic-bezier(.16,1,.3,1) both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.show-hero .hero-cta { justify-content: flex-start; }

/* Villes */
.cities { grid-auto-columns: minmax(200px, 250px); }
.city { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4; isolation: isolate; }
.city img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.city::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(0 0 0 / .8), transparent 55%); }
.city:hover img { transform: scale(1.05); }
.city figcaption { position: absolute; inset-inline: 1rem; bottom: .9rem; display: grid; gap: 0; }
.city b { font-size: var(--text-xl); font-weight: 800; line-height: 1.1; }
.city span { font-size: var(--text-xs); color: oklch(0.85 0 0); font-weight: 600; }
.story { padding-top: 0; }
.story-img { margin-inline: calc(var(--space-6) * -1); margin-bottom: var(--space-2); height: 130px; overflow: hidden; position: relative; }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--color-surface), transparent 70%); }
.story .top { margin-top: -2.2rem; position: relative; z-index: 1; }
.story .mono { box-shadow: 0 0 0 4px var(--color-surface); }
.city span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Recherche opportunités */
.osearch { display: flex; align-items: center; gap: .6rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-full); padding: .2rem 1rem; max-width: 520px; }
.osearch:focus-within { border-color: oklch(0.7 0.12 220); }
.osearch svg { width: 18px; height: 18px; color: var(--color-text-muted); flex: none; }
.osearch input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--color-text); font: inherit; font-size: var(--text-sm); padding: .6rem 0; }
.opp-count { font-size: var(--text-sm); color: var(--color-text-muted); font-weight: 600; margin-bottom: var(--space-4); }
@media (max-width: 700px) { .chips .lbl { flex-basis: 100%; min-width: 0; margin-bottom: -.1rem; } .osearch { max-width: none; } }
