/* ==========================================================
   Omar Ghechi — Portfolio
   Manufacturing Digital Transformation Consultant
   Palette premium industrielle : bleu-noir Airbus, or, turquoise
   ========================================================== */

:root {
  --bg: #0A0F14;        /* noir bleuté Airbus */
  --bg-soft: #0F1720;   /* variante légèrement plus claire */
  --gold: #D4AF37;      /* or industriel */
  --gold-dim: #B8942F;
  --gold-dark: #9A7B2E; /* or lisible sur fond blanc */
  --teal: #00BFA5;      /* turquoise technologique */
  --teal-dim: #0E8E7C;
  --text: #C4CBD2;      /* gris clair froid */
  --text-dim: #838D97;
  --white: #F8F9FA;     /* blanc cassé */
  --ink: #10151B;       /* texte sombre sur sections blanches */
  --ink-soft: #55606B;
  --line: rgba(212, 175, 55, 0.16);
  --line-dark: rgba(16, 21, 27, 0.12);
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-logo: "EB Garamond", serif;
  --font-serif: "Playfair Display", serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}
.container.narrow { width: min(820px, 92vw); }
.container.center { text-align: center; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px min(64px, 5vw);
  transition: background 0.4s ease, padding 0.4s ease;
}
.site-header.scrolled {
  background: rgba(14, 13, 11, 0.92);
  backdrop-filter: blur(8px);
  padding: 14px min(64px, 5vw);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.brand-bird {
  width: 74px;
  height: 38px;
  fill: var(--white);
  opacity: 0.95;
}
.brand-name {
  font-family: var(--font-logo);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 34px;
}
.site-nav a {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
  padding: 4px 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.site-nav a:hover::after { width: 100%; }

/* ---------- Sélecteur de langue ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 28px;
}
.lang-switch button {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  background: none;
  border: none;
  padding: 6px 8px;
  cursor: pointer;
  transition: color 0.3s ease;
}
.lang-switch button:hover { color: var(--white); }
.lang-switch button.active { color: var(--gold); }
.lang-switch button + button { border-left: 1px solid var(--line); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--gold);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000; /* hero index en noir pur */
}

.hero-video-wrap {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 44%; /* vidéo à droite, espace net avec le texte */
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
.hero-video-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.5) 14%, rgba(0, 0, 0, 0) 44%),
    linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 22%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 25%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding-top: 90px;
  max-width: none;
}
.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-title {
  margin-top: 18px;
  font-family: var(--font-head);
  font-size: 48px; /* px fixe : suit le zoom du navigateur comme la vidéo */
  font-weight: 700;
  line-height: 1.12;
  color: var(--gold);
  letter-spacing: -0.01em;
  max-width: 12em;
}
.hero-sub {
  margin-top: 18px;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 500;
  color: var(--white);
  max-width: 560px;
}
.hero-text {
  margin-top: 22px;
  max-width: 560px;
  font-size: 16.5px;
  color: var(--text);
}
.hero-text strong { color: var(--white); }

.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-ghost {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(248, 249, 250, 0.3);
  padding: 16px 34px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Scroll hint ---------- */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--gold);
  opacity: 0.7;
  animation: bob 2.2s ease-in-out infinite;
}
.scroll-hint svg { width: 26px; height: 26px; }
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ==========================================================
   CLIENTS STRIP
   ========================================================== */
.clients {
  background: #ffffff;
  padding: 34px 0;
  overflow: hidden;
}
.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 130px; /* de l'air entre les logos */
  width: max-content;
  animation: scroll 55s linear infinite; /* défilement lent */
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.client-logo {
  color: #17150f;
  white-space: nowrap;
  line-height: 1.05;
  text-align: center;
  flex-shrink: 0;
}
.logo-caps { font-family: var(--font-body); font-size: 18px; font-weight: 700; letter-spacing: 0.12em; }
.client-logo-img {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(1);
}

/* ==========================================================
   SECTIONS BLANCHES — COMMUN
   ========================================================== */
.kicker-dark {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
}
.kicker-dark.center { text-align: center; }

.serif-title {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}

/* ---------- Intro : titre à gauche / texte à droite ---------- */
.intro-light {
  background: #ffffff;
  padding: 130px 0;
  border-top: 1px solid var(--line-dark);
}
.intro-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 90px;
  align-items: start;
}
.intro-left .serif-title {
  margin-top: 22px;
  font-size: 33px;
}
.intro-right p {
  color: var(--ink-soft);
  font-size: 16.5px;
}
.intro-right p + p { margin-top: 22px; }
.intro-right strong { color: var(--ink); font-weight: 600; }

.btn-outline {
  display: inline-block;
  margin-top: 34px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gold-dark);
  border: 1px solid var(--gold-dim);
  padding: 12px 26px;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn-outline:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ---------- Work : titre centré + projets ---------- */
.work-light {
  background: #ffffff;
  padding: 120px 0 150px;
  border-top: 1px solid var(--line-dark);
}
.work-title {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-head);
  font-size: 54px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
}

.project-client {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.featured-project {
  margin: 70px auto 0;
  max-width: 640px;
  text-align: center;
}
.featured-project .serif-title {
  margin-top: 16px;
  font-size: 28px;
}
.featured-text {
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-soft);
}
.featured-text em { font-family: var(--font-serif); }

.case-link-dark {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.case-link-dark:hover { border-color: var(--gold-dark); }

.work-cards {
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.work-card { text-align: left; }
.work-card .project-client { margin-top: 34px; }
.work-card h3 {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.work-card p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* Hexagones (comme les visuels de la référence) */
.hex {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 0.9;
  margin: 0 auto;
  clip-path: polygon(50% 0, 96% 26%, 96% 72%, 50% 100%, 4% 72%, 4% 26%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}
.work-card:hover .hex { transform: translateY(-8px); }
.hex span {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}
.hex-a { background: linear-gradient(150deg, #2b2119, #6b5535 60%, #a9895a); }
.hex-b { background: linear-gradient(150deg, #101418, #26343f 55%, #4a6c80); }
.hex-c { background: linear-gradient(150deg, #1c1416, #4a2d33 55%, #7e4f52); }
.hex-d { background: linear-gradient(150deg, #141810, #34402a 55%, #5f7247); }
.hex-e { background: linear-gradient(150deg, #0d1a1a, #134b45 55%, #00bfa5); }

/* ==========================================================
   TITRES DE SECTION (fond sombre)
   ========================================================== */
.section-title {
  font-family: var(--font-head);
  font-size: 46px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.section-title.center { text-align: center; }
.kicker.center { text-align: center; }

/* ==========================================================
   THE RARE COMBINATION
   ========================================================== */
.combo {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 130px 0;
}
.combo-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.combo .container {
  position: relative;
  z-index: 1;
}
.combo-flow {
  margin: 60px auto 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.combo-node {
  --ac: var(--gold);
  --lr: var(--line);
  position: relative;
  flex: 0 0 auto;
  width: 190px;
  padding: 30px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--lr);
  border-radius: 16px;
  text-align: center;
  animation: nodePulse 4.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.55s);
}
.combo-ic {
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  color: var(--ac);
}
.combo-node h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
}
@keyframes nodePulse {
  0%, 66%, 100% {
    border-color: var(--lr);
    box-shadow: none;
    transform: translateY(0);
  }
  12% {
    border-color: var(--ac);
    box-shadow: 0 0 0 1px var(--ac), 0 20px 46px -22px var(--ac);
    transform: translateY(-8px);
  }
}
.combo-arrow {
  display: flex;
  align-items: center;
  color: var(--text-dim);
}
.combo-arrow svg { width: 24px; height: 24px; }

.combo-statement { margin-top: 44px; }
.combo-line-1 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-dim);
}
.combo-line-2 {
  margin-top: 6px;
  font-family: var(--font-head);
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.combo-line-2 .hl {
  background: linear-gradient(90deg, var(--gold), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================
   WHAT I ACTUALLY DO
   ========================================================== */
.do {
  background: var(--bg-soft);
  padding: 130px 0;
}
.do-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.do-card {
  --ac: var(--gold);
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 44px 34px;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.do-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ac);
}
.do-card:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--ac) 45%, transparent); }
.do-ic { width: 50px; height: 50px; color: var(--ac); }
.do-card h3 {
  margin-top: 22px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}
.chips {
  margin-top: 22px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.chips li:hover { border-color: var(--ac); color: var(--white); }

/* ==========================================================
   REAL PROJECTS
   ========================================================== */
.projects {
  background: var(--bg);
  padding: 130px 0 140px;
}
.proj-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.proj-card.wide { grid-column: 1 / -1; }
.proj-card {
  position: relative;
  display: block;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 46px 42px;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.proj-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0, rgba(0, 191, 165, 0.10), transparent 42%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.proj-card:hover { transform: translateY(-8px); border-color: var(--gold-dim); }
.proj-card:hover::after { opacity: 1; }
.proj-client {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(0, 191, 165, 0.4);
  padding: 5px 12px;
  border-radius: 999px;
}
.proj-card h3 {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
}
.proj-card p {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: var(--text-dim);
  max-width: 46ch;
}
.proj-go {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 24px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.3s ease;
}
.proj-card:hover .proj-go { color: var(--white); }

/* ==========================================================
   SECTIONS CLAIRES : The Rare Combination + What I Actually Do
   ========================================================== */
.combo { background: #ffffff; border-top: 1px solid rgba(16, 21, 27, 0.06); }

.do { background: #ffffff; border-top: 1px solid rgba(16, 21, 27, 0.08); }
.combo .kicker, .do .kicker { color: var(--gold-dark); }
.combo .section-title, .do .section-title { color: var(--ink); }

.combo-node { background: #ffffff; --lr: rgba(16, 21, 27, 0.12); }
.combo-node h3 { color: var(--ink); }
.combo-arrow { color: rgba(16, 21, 27, 0.35); }
.combo-line-1 { color: var(--ink-soft); }
.combo-line-2 { color: var(--ink); }

.do-card {
  background: #ffffff;
  border-color: rgba(16, 21, 27, 0.10);
  box-shadow: 0 12px 36px -24px rgba(16, 21, 27, 0.35);
}
.do-card h3 { color: var(--ink); }
.chips li { color: var(--ink-soft); border-color: rgba(16, 21, 27, 0.14); }
.chips li:hover { color: var(--ink); }
.do .tool { background: #ffffff; border-color: rgba(16, 21, 27, 0.10); }
.do .tool-name { color: var(--ink-soft); }
.do .tool-fallback { color: var(--gold-dark); }

/* Reveal : cascade au scroll */
.do-grid > .reveal:nth-child(2) { transition-delay: 0.1s; }
.do-grid > .reveal:nth-child(3) { transition-delay: 0.2s; }
.proj-grid > .reveal:nth-child(2) { transition-delay: 0.08s; }
.proj-grid > .reveal:nth-child(3) { transition-delay: 0.16s; }
.proj-grid > .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ==========================================================
   EXPERTISE (ancienne liste — conservée si réutilisée)
   ========================================================== */
.expertise {
  background: var(--bg-soft);
  padding: 130px 0;
}
.skills-list {
  margin-top: 46px;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 70px;
}
.skills-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16.5px;
  color: var(--text);
}
.skills-list strong { color: var(--white); font-weight: 600; }
.check {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 4px;
}

.tools { margin-top: 90px; }
.tools-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.tool {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 36px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.tool:hover { border-color: var(--gold-dim); transform: translateY(-6px); }
.tool img {
  height: 46px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}
.tool-fallback {
  height: 46px;
  display: flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.tool-name {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}

/* ==========================================================
   PAGES INTERNES (work / contact / about)
   ========================================================== */
.page-hero { padding: 210px 0 90px; }
.page-hero.center-hero { padding-bottom: 40px; }
.page-title {
  font-family: var(--font-head);
  font-size: 74px;
  font-weight: 600;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--gold);
}
.page-hero .lead { margin-top: 20px; }
.center .lead { margin-left: auto; margin-right: auto; }

.page-cta { padding: 120px 0 140px; text-align: center; }
.page-cta .btn { margin-top: 36px; }

/* ---------- Work : projets détaillés ---------- */
.project-detail {
  padding: 110px 0;
  scroll-margin-top: 90px;
}
.project-detail.alt { background: var(--bg-soft); }

.pd-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 80px;
  align-items: center;
}
.pd-grid.reverse .pd-text { order: 2; }
.pd-grid.reverse .pd-visual { order: 1; }

.project-num {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.pd-title {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--white);
}
.pd-desc {
  margin-top: 20px;
  max-width: 580px;
  color: var(--text);
}
.pd-meta {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.pd-meta h4 {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}
.pd-meta p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dim);
}
.pd-visual .hex { max-width: 330px; }

/* Logo entreprise en tête de projet (remplace "01 — Airbus") */
.pd-head { margin-bottom: 18px; }
.pd-logo {
  height: 36px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

/* Photo du projet (remplace le grand hexagone numéroté) */
.pd-photo {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  margin: 0 auto;
  box-shadow: 0 26px 60px -30px rgba(16, 21, 27, 0.55);
}
.pd-photo-ph {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
}
.pd-photo-ph svg { width: 62px; height: 62px; }
.ph-a { background: linear-gradient(150deg, #2b2119, #6b5535 60%, #a9895a); }
.ph-b { background: linear-gradient(150deg, #101418, #26343f 55%, #4a6c80); }
.ph-c { background: linear-gradient(150deg, #1c1416, #4a2d33 55%, #7e4f52); }
.ph-d { background: linear-gradient(150deg, #141810, #34402a 55%, #5f7247); }
.ph-e { background: linear-gradient(150deg, #0d1a1a, #134b45 55%, #00bfa5); }
.ph-f { background: linear-gradient(150deg, #1c1410, #6b3410 55%, #c2410c); }

/* Vidéo de projet (même cadre que la photo) */
.pd-photo-video {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  margin: 0 auto;
  background: #000;
  box-shadow: 0 26px 60px -30px rgba(16, 21, 27, 0.55);
}

/* Lien vers la démo live (sous la description) */
.pd-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border: 1px solid var(--gold-dim);
  padding: 13px 26px;
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.pd-demo:hover {
  background: var(--gold-dark);
  color: #fff;
  border-color: var(--gold-dark);
}
.pd-photo-video { width: 100%; max-width: 640px; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 16px; margin: 0 auto; box-shadow: 0 26px 60px -30px rgba(16, 21, 27, 0.55); display: block; background: #000; }

/* ---------- Contact : cartes ---------- */
.contact-channels { padding: 40px 0 150px; }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.ccard {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 50px 30px 44px;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.ccard:hover { border-color: var(--gold-dim); transform: translateY(-6px); }
.ccard-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  fill: var(--gold);
}
.ccard-icon-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 50%;
}
.ccard h3 {
  margin-top: 24px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
}
.ccard p { margin-top: 8px; font-size: 14.5px; color: var(--text-dim); }
.ccard-go {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- About : stats / histoire / timeline ---------- */
/* ---------- About : intro avec photo de profil ---------- */
.about-intro { padding: 200px 0 40px; }
.about-intro-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.about-photo { position: relative; }
.about-photo::before {
  content: "";
  position: absolute;
  left: -20px;
  bottom: -20px;
  width: 66%;
  height: 66%;
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  z-index: 0;
}
.about-photo::after {
  content: "";
  position: absolute;
  top: -14px;
  right: -14px;
  width: 54px;
  height: 54px;
  background: var(--teal);
  opacity: 0.85;
  border-radius: 12px;
  z-index: 0;
}
.about-photo-img,
.about-photo-ph {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 34px 80px -34px rgba(16, 21, 27, 0.45);
}
.about-photo-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 104px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(150deg, #10151b, #2a3038 60%, #4a5262);
}
.about-role {
  margin-top: 8px;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.01em;
}
.about-intro-text .lead { margin-top: 22px; }
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 13px 26px;
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease;
}
.about-link svg { width: 18px; height: 18px; fill: currentColor; }
.about-link:hover { background: var(--ink); color: #fff; }

.about-stats { padding: 20px 0 0; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 56px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 12px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.about-story { padding: 130px 0; }
.story-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 90px;
  align-items: start;
}
.serif-title.on-dark { color: var(--white); margin-top: 22px; font-size: 33px; }
.story-text p { color: var(--text); font-size: 16.5px; }
.story-text p + p { margin-top: 22px; }
.story-text strong { color: var(--white); font-weight: 600; }

.about-timeline {
  background: var(--bg-soft);
  padding: 130px 0;
}
.timeline {
  margin-top: 60px;
  margin-left: 8px;
  border-left: 1px solid rgba(230, 207, 158, 0.3);
}
.tl-item {
  position: relative;
  padding: 0 0 56px 44px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold);
}
.tl-year {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold-dim);
}
.tl-item h3 {
  margin-top: 8px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
}
.tl-item p {
  margin-top: 10px;
  max-width: 660px;
  font-size: 15px;
  color: var(--text-dim);
}

/* ==========================================================
   RECOMMENDATIONS (page claire)
   ========================================================== */
.reco { padding: 30px 0 60px; }
.reco-grid {
  columns: 2;
  column-gap: 28px;
}
.reco-card {
  --ac: var(--gold);
  position: relative;
  display: block;
  break-inside: avoid;
  margin: 0 0 28px;
  background: #ffffff;
  border: 1px solid rgba(16, 21, 27, 0.10);
  border-radius: 18px;
  padding: 34px 26px 26px;
  box-shadow: 0 16px 44px -28px rgba(16, 21, 27, 0.35);
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.reco-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ac), transparent 70%);
}
.reco-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--ac) 45%, transparent);
  box-shadow: 0 30px 60px -30px rgba(16, 21, 27, 0.45);
}
.reco-quote {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 38px;
  height: 38px;
  color: var(--ac);
  opacity: 0.35;
}
.reco-quote svg { width: 100%; height: 100%; }
.reco-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.reco-ph {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  border: 1.5px dashed rgba(16, 21, 27, 0.18);
  background: #fbfaf7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--ink-soft);
}
.reco-ph svg { width: 44px; height: 44px; opacity: 0.5; }
.reco-ph span {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.reco-source {
  margin-top: 26px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---------- Nav : page active ---------- */
.site-nav a.active { color: var(--white); }
.site-nav a.active::after { width: 100%; background: var(--white); }

/* ==========================================================
   THÈME CLAIR (pages work & about : body.page-light)
   ========================================================== */
.page-light { background: #ffffff; color: var(--ink-soft); }

.page-light .site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line-dark);
}
.page-light .brand-bird { fill: var(--ink); }
.page-light .brand-name { color: var(--ink); }
.page-light .site-nav a { color: var(--gold-dark); }
.page-light .site-nav a::after { background: var(--gold-dark); }
.page-light .site-nav a.active { color: var(--ink); }
.page-light .site-nav a.active::after { background: var(--ink); }
.page-light .nav-toggle span { background: var(--ink); }
.page-light .lang-switch button { color: var(--ink-soft); }
.page-light .lang-switch button:hover { color: var(--ink); }
.page-light .lang-switch button.active { color: var(--gold-dark); }
.page-light .lang-switch button + button { border-left-color: var(--line-dark); }

.page-light .kicker { color: var(--gold-dark); }
.page-light .page-title { color: var(--ink); }
.page-light .lead { color: var(--ink-soft); }
.page-light .section-title { color: var(--ink); }

/* Work : projets détaillés */
.page-light .project-detail.alt { background: #f7f5f0; }
.page-light .project-num { color: var(--gold-dark); }
.page-light .pd-title { color: var(--ink); }
.page-light .pd-desc { color: var(--ink-soft); }
.page-light .pd-meta h4 { color: var(--gold-dark); }
.page-light .pd-meta p { color: var(--ink-soft); }

/* About : stats / histoire / timeline */
.page-light .stats { border-top-color: var(--line-dark); border-bottom-color: var(--line-dark); }
.page-light .stat-num { color: var(--gold-dark); }
.page-light .stat-label { color: var(--ink-soft); }
.page-light .serif-title.on-dark { color: var(--ink); }
.page-light .story-text p { color: var(--ink-soft); }
.page-light .story-text strong { color: var(--ink); }

.page-light .about-timeline { background: #f7f5f0; }
.page-light .timeline { border-left-color: rgba(28, 26, 22, 0.18); }
.page-light .tl-item::before { background: var(--gold-dark); }
.page-light .tl-year { color: var(--gold-dark); }
.page-light .tl-item h3 { color: var(--ink); }
.page-light .tl-item p { color: var(--ink-soft); }

/* Footer clair */
.page-light .site-footer { border-top-color: var(--line-dark); }
.page-light .footer-socials a { color: var(--ink-soft); }
.page-light .footer-socials a:hover { color: var(--gold-dark); }
.page-light .footer-links a { color: var(--ink-soft); }
.page-light .footer-links a:hover { color: var(--gold-dark); }
.page-light .footer-copy { color: var(--ink-soft); }

/* ==========================================================
   CONTACT
   ========================================================== */
.kicker {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.lead {
  font-size: 17.5px;
  color: var(--text);
  max-width: 640px;
}

.contact {
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(230, 207, 158, 0.08), transparent),
    var(--bg);
  padding: 160px 0;
}
.contact-title {
  font-family: var(--font-head);
  font-size: 72px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--gold);
}
.contact .lead { margin: 26px auto 0; }
.btn {
  display: inline-block;
  margin-top: 44px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #111;
  background: var(--gold);
  padding: 18px 44px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.btn:hover { background: var(--white); transform: translateY(-3px); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-socials { display: flex; gap: 18px; }
.footer-socials a {
  width: 20px; height: 20px;
  color: var(--text-dim);
  transition: color 0.3s ease;
}
.footer-socials a:hover { color: var(--gold); }
.footer-socials svg { width: 100%; height: 100%; fill: currentColor; }

.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--gold); }

.footer-copy { font-size: 13px; color: var(--text-dim); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 40px; }
  .hero-sub { font-size: 18px; }
  .intro-grid { gap: 56px; }
  .work-cards { grid-template-columns: repeat(2, 1fr); gap: 56px 40px; }
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
  .do-grid { grid-template-columns: 1fr; gap: 20px; }
  .pd-grid { gap: 50px; }
  .page-title { font-size: 56px; }
  /* garder les 4 blocs sur une ligne jusqu'à la bascule mobile */
  .combo-flow { gap: 8px; }
  .combo-node { width: 152px; padding: 24px 12px; }
  .combo-ic { width: 30px; height: 30px; margin-bottom: 10px; }
  .combo-node h3 { font-size: 16px; }
}

@media (max-width: 820px) {
  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 20, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .site-nav.open { opacity: 1; pointer-events: auto; }
  .site-nav a { font-size: 20px; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero {
    flex-direction: column;
    justify-content: flex-end;
    height: auto;
    min-height: 100svh;
  }
  .hero-video-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
  }
  .hero-video-fade {
    background:
      linear-gradient(0deg, #000 8%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.35) 100%);
  }
  .hero-content { padding: 140px 0 90px; }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 16px; }

  .combo { padding: 90px 0; }
  .combo-flow { flex-direction: column; gap: 14px; }
  .combo-node { width: 100%; max-width: 320px; }
  .combo-arrow { transform: rotate(90deg); }

  .do { padding: 90px 0; }
  .projects { padding: 90px 0 100px; }
  .proj-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }

  .intro-light { padding: 90px 0; }
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-left .serif-title { font-size: 27px; }

  .work-light { padding: 90px 0 110px; }
  .work-title { font-size: 42px; }
  .work-cards { margin-top: 70px; grid-template-columns: 1fr; gap: 64px; }
  .work-card { text-align: center; }

  .contact-title { font-size: 60px; }
  .footer-inner { flex-direction: column; text-align: center; }

  .expertise { padding: 90px 0; }
  .skills-list { grid-template-columns: 1fr; }
  .section-title { font-size: 38px; }

  .page-hero { padding: 160px 0 60px; }
  .page-title { font-size: 44px; }
  .project-detail { padding: 80px 0; }
  .pd-grid { grid-template-columns: 1fr; gap: 44px; }
  .pd-grid.reverse .pd-text { order: 1; }
  .pd-grid.reverse .pd-visual { order: 2; }
  .pd-visual .hex { max-width: 240px; }
  .pd-meta { grid-template-columns: 1fr; gap: 22px; }
  .pd-title { font-size: 27px; }

  .contact-cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 44px 20px; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-story, .about-timeline { padding: 90px 0; }

  .reco-grid { columns: 1; }

  .about-intro { padding: 150px 0 20px; }
  .about-intro-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-photo { max-width: 320px; margin: 0 auto; }
  .about-photo::after { display: none; }
  .about-photo-ph { font-size: 84px; }
}

@media (max-width: 560px) {
  .hero-title { font-size: 29px; }
  .brand-name { font-size: 15px; }
  .brand-bird { width: 58px; height: 30px; }
  .contact-title { font-size: 46px; }
  .section-title { font-size: 32px; }
}

/* ---------- Menu mobile sur pages claires ---------- */
@media (max-width: 820px) {
  .page-light .site-nav { background: rgba(255, 255, 255, 0.97); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .scroll-hint { animation: none; }
  .combo-node { animation: none; }
}
