:root {
  --ink: #0e0e12;
  --ink-2: #17171d;
  --ink-3: #22222a;
  --line: rgba(255, 255, 255, 0.1);
  --paper: #ffffff;
  --muted: #a9a9b3;
  --yellow: #e4202b; /* brand accent (red since 2026-11-10) */
  --red: #e4202b;
  --green: #2ed47a;
  --blue: #3da5ff;
  --violet: #b57bff;
  --glow: 0 0 6px rgba(255, 255, 255, 0.55), 0 0 22px rgba(255, 255, 255, 0.3);
  --display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", "Alexandria", system-ui, sans-serif;
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(14, 14, 18, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: 0.06em; display: flex; align-items: center; gap: 8px; }
.logo b { color: var(--yellow); }
.nav-links { display: flex; gap: 28px; font-weight: 600; font-size: 15px; }
.nav-links a { opacity: 0.8; transition: opacity 0.2s; }
.nav-links a:hover, .nav-links a.on { opacity: 1; color: var(--yellow); }
.nav-toggle { display: none; background: none; border: 0; color: var(--paper); font-size: 26px; cursor: pointer; width: 44px; height: 44px; }
@media (max-width: 719px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 64px; inset-inline: 0; flex-direction: column; gap: 0; background: var(--ink-2); border-bottom: 1px solid var(--line); display: none; }
  .nav-links a { padding: 16px; border-top: 1px solid var(--line); }
  .nav-open .nav-links { display: flex; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 16px; transition: transform 0.15s, box-shadow 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn-y { background: var(--yellow); color: #fff; box-shadow: 0 8px 30px rgba(228, 32, 43, 0.35); }
.btn-w { background: var(--paper); color: var(--ink); }
.btn-o { border: 2px solid rgba(255, 255, 255, 0.25); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse 70% 60% at 80% 30%, rgba(228,32,43,.18), transparent 70%); }
.hero .wrap { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 56px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; padding-top: 72px; padding-bottom: 96px; } }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--yellow); letter-spacing: 0.04em; }
.hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 9vw, 76px); line-height: 1.12; margin: 12px 0 16px; text-shadow: var(--glow); }
.hero h1 .bar { background: var(--yellow); color: #fff; padding: 0 12px; border-radius: 10px; text-shadow: none; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero p.lead { font-size: 19px; color: #dcdce2; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-photo { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14, 14, 18, 0.85)); }
.loc { position: absolute; bottom: 18px; inset-inline-end: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: var(--paper); color: var(--ink); border-radius: 999px; padding: 6px 14px; font: 600 13px/1.4 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.08em; direction: ltr; }
.loc i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

/* counter */
.counter { margin-top: 28px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; max-width: 460px; }
.counter-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.counter-top strong { font-family: var(--display); font-size: 30px; font-weight: 800; }
.counter-top strong span { direction: ltr; unicode-bidi: isolate; }
.counter-top small { color: var(--muted); font-size: 14px; }
.track { height: 10px; border-radius: 99px; background: var(--ink-3); margin-top: 12px; overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--yellow), #ff5a62); }
[dir="rtl"] .track i { margin-inline-start: auto; }

/* sections */
section.block { padding: 64px 0; border-top: 1px solid var(--line); }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 5vw, 42px); line-height: 1.2; margin-bottom: 10px; }
.sub { color: var(--muted); max-width: 40em; margin-bottom: 32px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 959px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.35; margin-bottom: 8px; }
.card p, .card li { color: #cfcfd6; font-size: 16px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-inline-end: 8px; vertical-align: middle; }
.series .card { border-top: 4px solid var(--c); }
.series .tag { font-size: 13px; color: var(--muted); font-weight: 600; direction: ltr; unicode-bidi: isolate; }

/* top videos */
.vid { position: relative; display: block; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; overflow: hidden; transition: border-color 0.2s, transform 0.15s; }
.vid:hover { border-color: var(--yellow); transform: translateY(-3px); }
.vid-rank { position: absolute; top: 10px; inset-inline-end: 16px; font-family: var(--display); font-size: 64px; font-weight: 900; color: rgba(255, 255, 255, 0.06); line-height: 1; }
.vid-views { display: block; font-family: var(--display); font-weight: 900; font-size: 42px; color: var(--yellow); direction: ltr; text-align: right; }
.vid-label { font-size: 13px; color: var(--muted); }
.vid-title { display: block; margin-top: 10px; font-weight: 600; }
@media (max-width: 639px) {
  #top-videos { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .vid { padding: 16px; }
  .vid-views { font-size: 32px; }
  .vid-rank { font-size: 44px; }
  .vid-title { font-size: 15px; line-height: 1.5; }
}

/* photo band */
.band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.band img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; }

/* infos page */
.info-card { scroll-margin-top: 80px; }
.info-card .when { display: inline-block; font-size: 13px; font-weight: 700; color: #fff; background: var(--yellow); border-radius: 99px; padding: 2px 12px; margin-bottom: 10px; }
.info-card ul { list-style: none; display: grid; gap: 8px; margin: 10px 0 14px; }
.info-card li { padding-inline-start: 22px; position: relative; }
.info-card li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.src { font-size: 13px; color: var(--muted); }
.src a { text-decoration: underline; text-underline-offset: 3px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.toc a { border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-size: 14px; background: var(--ink-2); }
.toc a:hover { border-color: var(--yellow); }
.note { border-inline-start: 4px solid var(--red); background: rgba(228, 32, 43, 0.08); border-radius: 12px; padding: 16px 18px; color: #e6e6ea; }

/* collab */
.stat { text-align: center; }
.stat b { display: block; font-family: var(--display); font-weight: 900; font-size: 44px; color: var(--yellow); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 15px; }
@media (max-width: 639px) {
  .grid-4:has(.stat) { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 18px 10px; }
  .stat b { font-size: 32px; }
  .stat span { font-size: 13px; }
}
.big-cta { text-align: center; background: radial-gradient(circle at 50% 0%, rgba(228, 32, 43, 0.18), transparent 60%), var(--ink-2); border: 1px solid var(--line); border-radius: 28px; padding: 48px 22px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 20px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* route banner (map Montréal → Alger) */
.route { display: block; width: 100%; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.route img { width: 100%; aspect-ratio: 4 / 1; object-fit: cover; }
@media (max-width: 719px) { .route img { aspect-ratio: 2.2 / 1; object-position: 30% 50%; } }
.btn-yt { background: #ff0000; color: #fff; }
.btn-fb { background: #0866ff; color: #fff; }
