/* ============================================================
   REBUILD — Agence Web & SaaS Tunisie
   Motion design, sites premium et systèmes métier.
   ============================================================ */

/* ============================================================
   Design system : ULTRA-MODERN (qualité Apple, et au-delà)
   Palette neutre premium — noir profond, blanc cassé #f5f5f7,
   gris Apple, bleu accent rare #2997ff. Typo Inter, très grands
   titres au tracking serré, halos doux (jamais de néon).
   Contrastes vérifiés AA sur --bg (#000).
   ============================================================ */
:root {
  /* Surfaces */
  --bg: #000000;
  --bg-2: #08080a;
  --surface: #101012;
  --line: rgba(255, 255, 255, 0.10);

  /* Texte */
  --text: #f5f5f7;             /* texte Apple — 19.6:1 sur --bg */
  --muted: #a1a1a6;            /* gris clair — 7.6:1 */
  --muted-2: #86868b;          /* gris Apple — 5.0:1 (AA) */

  /* Accent (rare, pour liens / CTA) */
  --accent: #2997ff;           /* bleu Apple dark — 6.7:1 */
  --accent-2: #2997ff;
  --accent-soft: rgba(41, 151, 255, 0.16);
  --cool: rgba(245, 245, 247, 0.5);
  --grad: linear-gradient(120deg, #2997ff, #2997ff);

  /* Halos doux et neutres (sobriété : pas de néon) */
  --glow-blue: rgba(255, 255, 255, 0.12);
  --glow-violet: rgba(255, 255, 255, 0.05);

  /* Rayons (généreux, façon Apple) */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 980px;

  /* Espacements */
  --space-1: 4px; --space-2: 8px; --space-3: 12px;
  --space-4: 16px; --space-6: 24px; --space-8: 32px;

  /* Typographie */
  --font-display: "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --gap: clamp(20px, 5vw, 80px);
}

body { font-feature-settings: "ss01", "cv05"; letter-spacing: -0.01em; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.5;
  cursor: none;
}

@media (hover: none) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #0a0a0a; }

/* Focus clavier visible (le curseur natif est masqué) — WCAG 2.4.7 */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}
:focus:not(:focus-visible) { outline: none; }

/* Offset des ancres sous la nav fixe */
html { scroll-padding-top: 90px; }

/* Skip link — WCAG 2.4.1 (contourner les blocs) */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 9900;
  background: var(--accent); color: #0a0a0a;
  font-family: var(--font-ui); font-weight: 600; font-size: 14px;
  padding: 12px 18px; border-radius: 8px;
  transform: translateY(-200%);
  transition: transform .3s var(--ease);
}
.skip-link:focus-visible { transform: none; outline-offset: 2px; }

/* Cibles tactiles ≥ 44px — Loi de Fitts / WCAG 2.5.8 */
@media (pointer: coarse) {
  .nav__link,
  .menu__foot a,
  .footer__col a,
  .footer__social a,
  .footer__legal a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ---------- Atmosphere: grain + vignette ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 9000; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(2) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 50% { transform: translate(-3%, 2%); } 100% { transform: translate(2%,-2%); }
}
.vignette {
  position: fixed; inset: 0; z-index: 8000; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 30%, transparent 50%, rgba(0,0,0,0.55) 100%);
}

/* ---------- Lenis smooth scroll ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Transition de page WebGL ---------- */
.fx {
  position: fixed; inset: 0; z-index: 9450; pointer-events: none;
  width: 100%; height: 100%;
}

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9500; pointer-events: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease), height .35s var(--ease),
              background .35s var(--ease), opacity .3s;
  display: grid; place-items: center;
  mix-blend-mode: difference;
}
.cursor__label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #0a0a0a; opacity: 0; transform: scale(.5); transition: opacity .3s, transform .3s var(--ease);
  font-family: var(--font-mono);
}
.cursor.is-view { width: 88px; height: 88px; background: var(--accent); mix-blend-mode: normal; }
.cursor.is-view .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-grow { width: 46px; height: 46px; background: rgba(255,255,255,0.22); mix-blend-mode: normal; backdrop-filter: blur(2px); }
.cursor.is-hide { opacity: 0; }
@media (hover: none) { .cursor, .progress { display: none; } }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 9400;
  background: var(--grad);
  box-shadow: 0 0 12px var(--glow-blue);
  transform: scaleX(0); transform-origin: 0 50%;
}

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9800; background: var(--bg);
  display: grid; place-items: center; gap: 40px;
}
.loader__inner { display: flex; align-items: baseline; gap: 28px; overflow: hidden; }
.loader__word { overflow: hidden; }
.loader__word span {
  display: block; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(48px, 12vw, 140px); letter-spacing: -0.04em; line-height: 1;
  transform: translateY(110%); animation: rise 1s var(--ease) .15s forwards;
}
.loader__count { font-family: var(--font-mono); font-weight: 700; font-size: clamp(18px,3vw,28px); color: var(--accent); }
.loader__count i { color: var(--muted-2); font-style: normal; }
.loader__bar { position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--line); }
.loader__fill { height: 100%; width: 0; background: var(--accent); }
@keyframes rise { to { transform: translateY(0); } }
.loader.is-done { transform: translateY(-100%); transition: transform 1s var(--ease); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 7000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gap);
  color: var(--text);
  transition: transform .5s var(--ease), background .4s var(--ease),
              backdrop-filter .4s, border-color .4s, padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
  padding-top: 14px; padding-bottom: 14px;
}
.nav.is-hidden { transform: translateY(-120%); }
.nav.menu-open { mix-blend-mode: normal; }
.nav__logo {
  font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em;
  z-index: 2;
}
.nav__logo i { color: var(--accent); font-style: normal; }
.nav__links { display: flex; gap: 4px; align-items: center; }
.nav__link {
  position: relative; padding: 8px 14px; font-size: 14px; font-weight: 500;
  letter-spacing: -0.01em; color: var(--muted); transition: color .3s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link span { position: relative; display: inline-block; }
.nav__link span::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .4s var(--ease);
}
.nav__link:hover span::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav__link--cta {
  margin-left: 6px; color: #000; background: var(--text);
  border-radius: var(--radius-pill); padding: 9px 20px; font-weight: 600;
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.nav__link--cta:hover { color: #000; background: var(--accent); }
.nav__link--cta::after { display: none; }

/* Burger (mobile) */
.nav__burger {
  display: none; position: relative; z-index: 2;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  padding: 0; align-items: center; justify-content: center;
}
.nav__burger span {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .4s var(--ease), opacity .3s;
}
.nav__burger span:nth-child(1) { transform: translateY(-4px); }
.nav__burger span:nth-child(2) { transform: translateY(4px); }
.nav__burger.is-open span:nth-child(1) { transform: rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: rotate(-45deg); }

/* ---------- Menu mobile plein écran ---------- */
.menu {
  position: fixed; inset: 0; z-index: 6900;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--gap) 48px;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__nav { display: flex; flex-direction: column; gap: 6px; }
.menu__link {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 11vw, 64px); letter-spacing: -0.03em; color: var(--text);
  padding: 6px 0; opacity: 0; transform: translateY(24px);
}
.menu__link i {
  font-family: var(--font-mono); font-style: normal; font-weight: 500;
  font-size: 14px; color: var(--muted-2); letter-spacing: 0;
}
.menu__link:hover { color: var(--accent); }
.menu__foot {
  margin-top: auto; padding-top: 40px; display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.menu__foot a { color: var(--muted); transition: color .3s; }
.menu__foot a:hover { color: var(--text); }
.menu__social { display: flex; gap: 18px; }

/* ---------- Reveal system ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-line { display: block; overflow: hidden; }
.reveal-line > * , .reveal-line { will-change: transform; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: center; padding: 0 var(--gap); overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__glow {
  position: absolute; z-index: 0; width: 70vw; height: 70vw; left: 50%; top: 38%;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 60%);
  filter: blur(28px); pointer-events: none;
}
.hero__sweep {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.06) 48%, rgba(255,255,255,0.04) 50%, transparent 62%);
  background-size: 250% 100%; background-position: 150% 0;
  animation: sweep 7s var(--ease-in-out) infinite;
}
@keyframes sweep { 0%,15% { background-position: 150% 0; } 60%,100% { background-position: -120% 0; } }

.hero__content { position: relative; z-index: 2; max-width: 1100px; }
.hero__eyebrow {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 28px;
}
.hero__title {
  font-family: var(--font-display); font-weight: 800; line-height: 1.0;
  font-size: clamp(46px, 12vw, 200px); letter-spacing: -0.035em; text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .word {
  display: inline-block; transform: translateY(110%);
}
.hero__title .accent {
  color: transparent; -webkit-text-stroke: 1.5px var(--text);
  text-stroke: 1.5px var(--text);
}
.hero.is-ready .hero__title .word { animation: rise 1.1s var(--ease) forwards; }
.hero.is-ready .line:nth-child(1) .word { animation-delay: .05s; }
.hero.is-ready .line:nth-child(2) .word:nth-child(1) { animation-delay: .13s; }
.hero.is-ready .line:nth-child(2) .word:nth-child(2) { animation-delay: .19s; }
.hero.is-ready .line:nth-child(3) .word { animation-delay: .26s; }

.hero__meta {
  display: flex; align-items: flex-end; gap: 48px; margin-top: 44px; flex-wrap: wrap;
}
.hero__meta p { max-width: 440px; color: var(--muted); font-size: 16px; }

.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px;
  border: 1px solid var(--line); border-radius: 100px; background: rgba(255,255,255,0.02);
  font-family: var(--font-ui); font-weight: 600; font-size: 14px; letter-spacing: 0.02em;
  overflow: hidden; position: relative; transition: color .4s var(--ease), border-color .4s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--grad); z-index: -1;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover { color: #0a0a0a; border-color: var(--accent); box-shadow: 0 0 28px var(--glow-blue); }
.btn:hover::before { transform: translateY(0); }
.btn svg { transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.hero__scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll-line { width: 1px; height: 56px; background: var(--line); overflow: hidden; position: relative; }
.hero__scroll-line i { position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: var(--accent); animation: scrollDown 2s var(--ease-in-out) infinite; }
@keyframes scrollDown { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 26px 0; overflow: hidden; white-space: nowrap; background: var(--bg-2);
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 36px; will-change: transform;
  font-family: var(--font-ui); font-weight: 700; text-transform: uppercase;
  font-size: clamp(22px, 4vw, 44px); letter-spacing: -0.01em;
}
.marquee__track span { color: var(--text); }
.marquee__track .dot { color: var(--accent); font-size: 0.5em; }

/* ---------- Section heads ---------- */
.section-head { padding: clamp(80px,12vh,160px) var(--gap) clamp(30px,5vh,60px); }
.section-head__index { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-head__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 6vw, 88px); letter-spacing: -0.03em; line-height: 1.04; }

/* ---------- Featured Work ---------- */
.work { padding-bottom: clamp(60px,10vh,120px); }
.work__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 3vw, 40px);
  padding: 0 var(--gap); align-items: start;
}
.card { perspective: 1200px; }
.card__media {
  position: relative; display: block; width: 100%; aspect-ratio: 16/10; border-radius: var(--radius-md);
  overflow: hidden; background: var(--surface); transform-style: preserve-3d;
  transition: transform .5s var(--ease), box-shadow .6s var(--ease);
  box-shadow: 0 20px 50px -30px rgba(0,0,0,0.9);
}
.card--tall .card__media { aspect-ratio: 4/5; }
.card__poster {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 120% at 30% 20%, var(--g2,#333), transparent 60%),
    linear-gradient(140deg, var(--g1,#111), #050505);
  transition: transform 1.2s var(--ease), opacity .6s; transform: scale(1.05);
}
.card__poster::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.07) 50%, transparent 60%);
  background-size: 250% 100%; background-position: 120% 0;
  transition: background-position 1.1s var(--ease);
}
.card__media:hover .card__poster::after { background-position: -60% 0; }
.card__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s var(--ease); transform: scale(1.04);
}
.card__media.is-playing .card__video { opacity: 1; }
.card__media.is-playing .card__poster { opacity: 0; }
.card__shine {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,0.16), transparent 60%);
}
.card__media:hover .card__shine { opacity: 1; }
.card__media:hover { box-shadow: 0 30px 70px -36px var(--glow-blue), 0 0 0 1px rgba(59,130,246,0.45); }

.card__info {
  display: flex; align-items: baseline; gap: 14px; padding: 20px 4px 0;
}
.card__info h3 { font-family: var(--font-ui); font-weight: 700; font-size: clamp(20px,2.4vw,30px); letter-spacing: -0.02em; }
.card__info p { color: var(--muted); font-size: 14px; }
.card__info .card__year { margin-left: auto; color: var(--muted-2); font-family: var(--font-mono); font-size: 14px; }

/* ---------- Projets : mode scroll horizontal épinglé ---------- */
.work.is-horizontal {
  height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding-bottom: 0;
}
.work.is-horizontal .section-head {
  padding: 0 var(--gap) clamp(20px, 3vh, 44px);
}
.work.is-horizontal .work__grid {
  display: flex; flex-wrap: nowrap; width: max-content;
  align-items: center; gap: clamp(24px, 3vw, 56px);
  grid-template-columns: none; padding-right: var(--gap); will-change: transform;
}
.work.is-horizontal .card { flex: 0 0 auto; perspective: 1200px; }
.work.is-horizontal .card__media { height: 54vh; width: auto; aspect-ratio: 16 / 10; }
.work.is-horizontal .card--tall .card__media { aspect-ratio: 4 / 5; }
.work.is-horizontal .card__info { max-width: 70vh; }

/* ---------- Studio ---------- */
.studio { position: relative; padding: clamp(100px,16vh,200px) var(--gap); overflow: hidden; }
.studio__glow {
  position: absolute; left: -10%; top: 20%; width: 50vw; height: 50vw;
  background: radial-gradient(circle, var(--glow-violet), transparent 62%); filter: blur(34px);
}
.studio__index { position: relative; font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cool); margin-bottom: 30px; }
.studio__statement {
  position: relative; font-family: var(--font-ui); font-weight: 700;
  font-size: clamp(28px, 5.2vw, 76px); line-height: 1.05; letter-spacing: -0.03em; max-width: 16ch;
}
.studio__statement em { color: var(--accent); font-style: italic; }
.studio__statement .reveal-line > span,
.studio__statement .reveal-line { display: block; }
.studio__statement .reveal-line { transform: translateY(105%); transition: transform 1s var(--ease); }
.studio__statement.is-in .reveal-line { transform: none; }
.studio__statement.is-in .reveal-line:nth-child(2) { transition-delay: .08s; }
.studio__statement.is-in .reveal-line:nth-child(3) { transition-delay: .16s; }
.studio__statement.is-in .reveal-line:nth-child(4) { transition-delay: .24s; }

.studio__cols {
  position: relative; display: flex; gap: clamp(30px,6vw,90px); margin-top: clamp(50px,8vh,90px); flex-wrap: wrap;
}
.studio__cols .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(48px,7vw,90px); letter-spacing: -0.03em; color: var(--text); display: block; }
.studio__cols p { color: var(--muted); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Capabilities ---------- */
.cap { padding-bottom: clamp(60px,10vh,120px); }
.cap__list { border-top: 1px solid var(--line); margin: 0 var(--gap); list-style: none; }
.cap__row {
  display: grid; grid-template-columns: 70px 1fr 1fr 40px; align-items: center; gap: 20px;
  padding: clamp(22px,3vw,38px) 8px; border-bottom: 1px solid var(--line);
  position: relative; transition: color .4s; overflow: hidden;
}
.cap__row::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0.06), transparent);
  transform: translateX(-101%); transition: transform .6s var(--ease); z-index: -1;
}
.cap__row:hover::before { transform: translateX(0); }
.cap__no { font-family: var(--font-mono); color: var(--muted-2); font-size: 14px; }
.cap__name { font-family: var(--font-ui); font-weight: 700; font-size: clamp(22px,3.4vw,46px); letter-spacing: -0.02em; transition: transform .5s var(--ease), color .4s; }
.cap__row:hover .cap__name { transform: translateX(16px); color: var(--accent); }
.cap__desc { color: var(--muted); font-size: 15px; }
.cap__arrow { font-size: 22px; color: var(--muted-2); transition: transform .5s var(--ease), color .4s; text-align: right; }
.cap__row:hover .cap__arrow { transform: translate(6px,-6px); color: var(--accent); }

/* ---------- Contact ---------- */
.contact { position: relative; padding: clamp(120px,20vh,260px) var(--gap); text-align: center; overflow: hidden; }
.contact__glow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 80vw; height: 60vw;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 62%); filter: blur(44px);
}
.contact__index { position: relative; font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 30px; }
.contact__cta {
  position: relative; display: inline-block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(50px, 14vw, 200px); line-height: 0.95; letter-spacing: -0.045em; text-transform: uppercase;
}
.contact__cta .reveal-line { transform: translateY(110%); transition: transform 1s var(--ease); }
.contact__cta.is-in .reveal-line { transform: none; }
.contact__cta.is-in .reveal-line:nth-child(2) { transition-delay: .1s; }
.contact__cta .accent { color: transparent; -webkit-text-stroke: 2px var(--text); }
.contact__cta:hover .accent { color: var(--text); transition: color .5s; }
.contact__lead {
  position: relative; max-width: 540px; margin: clamp(32px,5vh,56px) auto 0;
  color: var(--muted); font-size: clamp(16px,2vw,19px); line-height: 1.5;
}
.contact__actions {
  position: relative; display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap; margin-top: 32px;
}
.btn--ghost { background: transparent; }
.btn--ghost::before { display: none; }
.btn--ghost:hover { color: var(--text); border-color: var(--text); box-shadow: none; }

/* ---------- Approche ---------- */
.approach { padding-bottom: clamp(60px,10vh,120px); }
.approach__list {
  list-style: none; margin: 0 var(--gap); padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px,2.5vw,40px);
}
.approach__step {
  position: relative; padding-top: 26px; border-top: 1px solid var(--line);
}
.approach__no {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  letter-spacing: 0.1em;
}
.approach__step h3 {
  font-weight: 600; font-size: clamp(20px,1.8vw,24px); letter-spacing: -0.02em;
  margin: 14px 0 10px;
}
.approach__step p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- Footer (landmark contentinfo) ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(56px,9vh,104px) var(--gap) clamp(28px,4vh,40px);
  background: var(--bg-2);
}
.footer__top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(28px,4vw,64px); padding-bottom: clamp(40px,6vh,72px);
}
.footer__logo {
  font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.03em;
  display: inline-block;
}
.footer__logo i { color: var(--accent); font-style: normal; }
.footer__tag {
  color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 38ch; margin: 16px 0 22px;
}
.footer__social { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__social a, .footer__col a {
  color: var(--muted); font-size: 14px; transition: color .3s var(--ease);
}
.footer__social a:hover, .footer__col a:hover { color: var(--text); }
.footer__col { display: flex; flex-direction: column; gap: 12px; font-style: normal; }
.footer__col h3 {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px;
}
.footer__contact p { color: var(--muted); font-size: 14px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center;
  justify-content: space-between;
  padding-top: clamp(24px,3vh,32px); border-top: 1px solid var(--line);
  color: var(--muted-2); font-size: 13px;
}
.footer__legal { display: flex; gap: 22px; }
.footer__legal a { color: var(--muted-2); transition: color .3s; }
.footer__legal a:hover { color: var(--text); }
.footer__totop {
  display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500;
}
.footer__totop svg { transition: transform .3s var(--ease); }
.footer__totop:hover svg { transform: translateY(-3px); }
/* ---------- Storytelling : titres lettre par lettre ---------- */
.section-head__title .ch { display: inline-block; will-change: transform, opacity; }

/* ---------- Images de projets ---------- */
.card__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05); transition: transform 1.2s var(--ease); filter: saturate(0.9);
}
.card__media:hover .card__img { transform: scale(1.12); }
.card__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.12) 55%, rgba(0,0,0,0.5) 100%);
}

/* ---------- Sélecteur de langue ---------- */
.nav__logo { margin-inline-end: auto; }
.lang { display: flex; gap: 2px; align-items: center; margin-inline-start: 14px; }
.lang__btn {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--muted-2); background: transparent; border: 0; padding: 6px 9px;
  border-radius: var(--radius-sm); cursor: pointer; transition: color .3s var(--ease), background .3s;
}
.lang__btn:hover { color: var(--text); }
.lang__btn.is-active { color: #000; background: var(--text); }

/* ---------- Arabe : police dédiée + RTL ---------- */
html[lang="ar"] {
  --font-display: "Noto Sans Arabic", "Inter", sans-serif;
  --font-ui: "Noto Sans Arabic", "Inter", sans-serif;
  --font-body: "Noto Sans Arabic", "Inter", sans-serif;
  --font-mono: "Noto Sans Arabic", "Inter", sans-serif;
}
html[lang="ar"] .hero__title,
html[lang="ar"] .section-head__title,
html[lang="ar"] .contact__cta { letter-spacing: 0; text-transform: none; line-height: 1.15; }
html[lang="ar"] .hero__eyebrow,
html[lang="ar"] .section-head__index,
html[lang="ar"] .studio__index,
html[lang="ar"] .contact__index { letter-spacing: 0.04em; }
[dir="rtl"] .nav__link span::after { transform-origin: 0 50%; }
[dir="rtl"] .nav__link:hover span::after { transform-origin: 100% 50%; }
[dir="rtl"] .btn svg,
[dir="rtl"] .footer__totop svg { transform: scaleX(-1); }
[dir="rtl"] .cap__row:hover .cap__name { transform: translateX(-16px); }
[dir="rtl"] .cap__row:hover .cap__arrow { transform: translate(-6px,-6px); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .approach__list { grid-template-columns: repeat(2, 1fr); row-gap: clamp(28px,5vh,48px); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
}
@media (max-width: 820px) {
  .work__grid { grid-template-columns: 1fr; }
  .card--tall .card__media { aspect-ratio: 16/10; }
  .cap__row { grid-template-columns: 40px 1fr 30px; }
  .cap__desc { display: none; }
}
@media (max-width: 560px) {
  .approach__list { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__bottom { justify-content: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .reveal-line, .hero__title .word { opacity: 1 !important; transform: none !important; }
  body { cursor: auto; }
  .cursor, .grain { display: none; }
}
