/* ============================================================
   MEHDI BARKA — Editorial Design System
   Merriweather (headings) × Manrope (body, -0.02em tracking)
   Palette: paper / ink / forest green
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --paper:       #F5F3EE;
  --paper-off:   #EDEAE2;
  --ink:         #111010;
  --ink-2:       #3C3B38;
  --ink-3:       #8A877F;
  --rule:        rgba(17,16,16,0.12);
  --rule-dark:   #111010;
  --green:       #1C3B34;
  --green-mid:   #2A5548;
  --cream:       #E4E0D6;
  --gold:        #BFA060;
  --white:       #FEFEFE;

  --h:  'Merriweather', Georgia, serif;
  --b:  'Manrope', system-ui, sans-serif;
  --tk: -0.02em;   /* Manrope -20 tracking */
  --tkd:-0.03em;   /* Merriweather display */

  --nav-h:   68px;
  --max-w:   1220px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--b);
  letter-spacing: var(--tk);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
button { font-family: var(--b); letter-spacing: var(--tk); }

/* ── Focus visible (keyboard nav) ───────────────────────── */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* ── Scroll progress bar ─────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  width: 8px;
  height: 100%;
  background: rgba(17,16,16,.08);
  z-index: 250;
  cursor: pointer;
}
.scroll-progress-bar {
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .1s linear;
}
@media (max-width: 640px) { .scroll-progress { display: none; } }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--h);
  letter-spacing: var(--tkd);
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: clamp(36px, 5.5vw, 64px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw,  48px);  font-weight: 700; }
h3 { font-size: clamp(18px, 2.5vw,28px);  font-weight: 700; }
p  {
  font-family: var(--b);
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.8;
  letter-spacing: var(--tk);
}
strong { color: var(--ink); font-weight: 700; }
em     { font-style: italic; }

.display {
  font-family: var(--h);
  font-size: clamp(54px, 9vw, 108px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: .96;
  color: var(--ink);
}
.eyebrow {
  font-family: var(--b);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--ink-3);
}

/* ── Layout ──────────────────────────────────────────────── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 640px) { .wrap { padding: 0 20px; } }
section { padding: 112px 0; }

/* Horizontal rule helpers */
.hr  { width: 100%; height: 1px; background: var(--rule); border: none; }
.hr-b{ width: 100%; height: 2px; background: var(--rule-dark); border: none; }

/* Section marker row */
.s-mark {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 72px;
}
.s-mark-n  { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--ink-3); }
.s-mark-l  { flex: 1; height: 1px; background: var(--rule); }
.s-mark-txt{ font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 640px) { .nav-inner { padding: 0 20px; } }
.nav-brand {
  font-family: var(--h);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand img {
  width: 30px; height: 30px;
  object-fit: contain;
}
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
}
.nav-menu a {
  display: block;
  padding: 0 16px;
  height: var(--nav-h);
  line-height: var(--nav-h);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  position: relative;
  transition: color .2s;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 16px; right: 16px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-menu a:hover,
.nav-menu a.active   { color: var(--ink); }
.nav-menu a:hover::after,
.nav-menu a.active::after { transform: scaleX(1); }

.nav-cta {
  margin-left: 12px;
  padding: 10px 22px !important;
  height: auto !important;
  line-height: normal !important;
  background: var(--ink) !important;
  color: var(--paper) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  transition: background .2s, color .2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover  { background: var(--green) !important; color: var(--white) !important; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: all .2s;
}
@media (max-width: 960px) {
  .nav-burger { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    padding: 20px 48px;
    align-items: flex-start;
    gap: 0;
    z-index: 200;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a {
    height: auto;
    line-height: normal;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
    width: 100%;
  }
  .nav-menu a::after { left: 0; right: 0; }
  .nav-cta { margin-left: 0; margin-top: 16px; display: block; text-align: center; }
}

/* ── Subnav (in-page quick jump) ─────────────────────────── */
.subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 150;
  height: 48px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.subnav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-link {
  flex: 0 0 auto;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  font-family: var(--b);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  position: relative;
  transition: color .2s;
}
.subnav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.subnav-link:hover  { color: var(--ink); }
.subnav-link.active { color: var(--green); }
.subnav-link.active::after,
.subnav-link:hover::after { transform: scaleX(1); }
@media (max-width: 640px) { .subnav-inner { padding: 0 20px; } }

section[id] { scroll-margin-top: calc(var(--nav-h) + 48px); }

/* ── HERO (index) ────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  padding-top: 40px;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
@media (max-width: 640px) { .hero-inner { padding: 0 20px; } }
.hero-text {
  position: relative;
  z-index: 1;
  padding: 0 56px 100px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-right: 1px solid var(--rule);
}
.hero-text .eyebrow { margin-bottom: 28px; }
.hero-name {
  font-family: var(--h);
  font-weight: 900;
  font-size: clamp(56px, 9vw, 112px);
  letter-spacing: -0.045em;
  line-height: .92;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero-name em { font-style: italic; color: var(--green); }
.hero-title {
  font-family: var(--h);
  font-style: normal;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.5;
  text-transform: none;
  color: var(--ink);
  max-width: 520px;
  margin-bottom: 24px;
}
.hero-desc { max-width: 560px; margin-bottom: 48px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 100px 56px;
  align-self: stretch;
  border-left: 1px solid var(--rule);
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.hero-meta-item:first-child { padding-top: 0; }
.hero-meta-label {
  font-family: var(--b);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-meta-value {
  font-family: var(--h);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero-meta-item:first-child .hero-meta-value { color: var(--green); }
@media (max-width: 860px) {
  .hero-meta {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 20px 48px;
    gap: 24px;
    border-top: 1px solid var(--rule);
  }
  .hero-meta-item { flex: 1 1 45%; border-bottom: none; padding: 20px 0 0; }
  .hero-meta-item:first-child { padding-top: 20px; }
}

/* Buttons */
.btn-fill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--b);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  transition: background .25s, color .25s, border-color .25s;
}
.btn-fill:hover { background: var(--green); border-color: var(--green); }
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: transparent;
  color: var(--ink);
  font-family: var(--b);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  transition: background .25s, color .25s;
}
.btn-line:hover { background: var(--ink); color: var(--paper); }

.hero--no-photo .hero-inner { grid-template-columns: 1.8fr 1fr; }
@media (max-width: 860px) {
  .hero { min-height: unset; }
  .hero-inner, .hero--no-photo .hero-inner { grid-template-columns: 1fr; }
  .hero-text  { padding: 64px 0; border-right: none; border-bottom: 1px solid var(--rule); }
  .hero-meta  { padding: 0 0 48px; border-left: none; }
}

/* ── MARQUEE ─────────────────────────────────────────────── */
.marquee-band {
  background: var(--ink);
  padding: 13px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.marquee-track {
  display: flex;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(245,243,238,.5);
  flex-shrink: 0;
}
.marquee-dot { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── KPI strip ───────────────────────────────────────────── */
.kpi-strip {
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(4,1fr);
}
.kpi-cell {
  padding: 40px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.kpi-cell:last-child { border-right: none; }
.kpi-val {
  font-family: var(--h);
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}
.kpi-lbl {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
@media (max-width: 640px) {
  .kpi-strip { grid-template-columns: repeat(2,1fr); }
}

/* ── NAV CARDS (3-col page grid) ─────────────────────────── */
.page-cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-top: 1px solid var(--rule);
}
.page-card {
  padding: 52px 44px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .3s;
  color: inherit;
}
.page-card:last-child { border-right: none; }
.page-card:hover { background: var(--green); }
.page-card:hover .pc-num,
.page-card:hover h3,
.page-card:hover p,
.page-card:hover .pc-arr { color: rgba(254,254,254,.9); }
.pc-num {
  font-family: var(--h);
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--cream);
  transition: color .3s;
}
.page-card h3 { font-size: 20px; transition: color .3s; }
.page-card p  { font-size: 13px; flex: 1; transition: color .3s; }
.pc-arr {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 8px;
  transition: color .3s, gap .3s;
}
.page-card:hover .pc-arr { gap: 12px; }
@media (max-width: 860px) {
  .page-cards { grid-template-columns: 1fr; }
  .page-card { border-right: none; }
}

/* ── CONTACT BLOCK (green) ───────────────────────────────── */
.contact-block {
  background: var(--green);
  padding: 100px 48px;
}
.contact-block-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.contact-block h2    { color: var(--white); margin-bottom: 16px; }
.contact-block p     { color: rgba(255,255,255,.65); margin-bottom: 48px; font-size: 15px; }
.c-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.c-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.8);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.c-link:hover { background: var(--white); color: var(--green); border-color: var(--white); }
.c-link img   { width: 15px; height: 15px; filter: brightness(5); }
.c-link:hover img { filter: none; }
.c-actions { display: flex; justify-content: center; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--white);
  color: var(--green);
  font-family: var(--b);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1.5px solid var(--white);
  transition: all .25s;
}
.btn-white:hover { background: transparent; color: var(--white); }
.btn-outline-w {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: transparent;
  color: rgba(255,255,255,.8);
  font-family: var(--b);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1.5px solid rgba(255,255,255,.35);
  transition: all .25s;
}
.btn-outline-w:hover { border-color: white; color: white; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--ink);
  padding: 60px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand {
  font-family: var(--h);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--paper);
}
.footer-brand span {
  display: block;
  font-family: var(--b);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-top: 6px;
}
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  letter-spacing: var(--tk);
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 11px; color: rgba(255,255,255,.25); letter-spacing: .02em; }

/* ── PAGE HERO (sub-pages) ───────────────────────────────── */
.page-hero {
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  align-items: end;
  border-bottom: none;
}
.page-hero-content {
  padding: 100px 60px 80px 48px;
  border-right: 1px solid var(--rule);
}
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--b);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
  transition: color .2s;
}
.page-back:hover { color: var(--green); }
.page-hero-content .eyebrow { margin-bottom: 24px; }
.page-hero-content h1 { margin-bottom: 20px; }
.page-hero-content p  { max-width: 520px; }
.page-hero-photo {
  overflow: hidden;
  align-self: stretch;
}
.page-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  min-height: 400px;
}
@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-photo { height: 60vw; min-height: 280px; }
  .page-hero-content { padding: 60px 20px; border-right: none; }
}

/* ── SPLIT TEXT/IMAGE ────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split.flip .s-img { order: -1; }
.s-img img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.s-txt--solo { max-width: none; }
.s-txt .eyebrow { margin-bottom: 20px; }
.s-txt h2       { margin-bottom: 24px; }
.s-txt h3       { margin-bottom: 14px; color: var(--green); }
.s-txt p        { margin-bottom: 16px; }
.s-txt p:last-of-type { margin-bottom: 0; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.flip .s-img { order: 0; }
}

/* ── QUAL GRID (3 columns, bordered) ─────────────────────── */
.qual-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.qual-cell {
  padding: 40px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background .25s;
}
.qual-cell:hover { background: var(--cream); }
.qual-n {
  font-family: var(--h);
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -.05em;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 20px;
  transition: color .25s;
}
.qual-cell:hover .qual-n { color: var(--paper-off); }
.qual-cell h3 { font-size: 20px; margin-bottom: 10px; }
.qual-cell p  { font-size: 13.5px; }
@media (max-width: 700px) { .qual-grid { grid-template-columns: 1fr; } }

/* ── VALUES LIST ─────────────────────────────────────────── */
.vals {
  border-top: 2px solid var(--ink);
}
.val-row {
  display: grid;
  grid-template-columns: 56px 1fr 1fr;
  gap: 40px;
  padding: 44px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: all .25s;
}
.val-row:hover { background: var(--cream); margin: 0 -48px; padding: 44px 48px; }
.val-n {
  font-family: var(--h);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-3);
  padding-top: 4px;
}
.val-row h3 { font-size: 22px; }
.val-row p  { font-size: 13.5px; margin: 0; }
@media (max-width: 700px) {
  .val-row { grid-template-columns: 1fr; gap: 12px; }
  .val-n   { display: none; }
  .val-row:hover { margin: 0; padding: 44px 0; }
}

/* ── GALLERY MASONRY ─────────────────────────────────────── */
.gallery {
  columns: 3;
  column-gap: 10px;
}
.g-item {
  break-inside: avoid;
  margin-bottom: 10px;
  overflow: hidden;
  cursor: zoom-in;
}
.g-item img {
  width: 100%;
  display: block;
  filter: grayscale(15%) contrast(1.02);
  transition: transform .6s ease, filter .4s;
}
.g-item:hover img { transform: scale(1.05); filter: grayscale(0%) contrast(1); }
@media (max-width: 700px) { .gallery { columns: 2; } }
@media (max-width: 440px) { .gallery { columns: 1; } }

/* ── EXPERIENCE LIST ─────────────────────────────────────── */
.exp-list {
  border-top: 2px solid var(--ink);
}
.exp-item, .edu-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 52px 0;
  border-bottom: 1px solid var(--rule);
  transition: background .25s;
}
.exp-item:hover, .edu-item:hover { background: var(--cream); margin: 0 -48px; padding: 52px 48px; }
.exp-meta-date {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.exp-meta-co {
  font-family: var(--h);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.exp-meta-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.exp-meta img {
  max-width: 110px;
  height: 50px;
  object-fit: contain;
  opacity: .55;
  filter: grayscale(100%);
}
.exp-meta-loc {
  font-size: 11px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.exp-meta-loc svg { width: 12px; height: 12px; flex-shrink: 0; }
.exp-body h3 { font-size: 22px; margin-bottom: 14px; }
.exp-body p  { margin-bottom: 12px; font-size: 14px; }
@media (max-width: 700px) {
  .exp-item, .edu-item { grid-template-columns: 1fr; gap: 16px; }
  .exp-item:hover, .edu-item:hover { margin: 0; padding: 52px 0; }
}

/* ── PROJECT LIST ────────────────────────────────────────── */
.proj-list { border-top: 1px solid var(--rule); }
.proj-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  transition: background .25s;
}
.proj-item:hover { background: var(--cream); }
.proj-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  max-height: 300px;
}
.proj-imgs.one img { grid-column: span 2; }
.proj-imgs img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter .4s, transform .6s;
}
.proj-item:hover .proj-imgs img { filter: grayscale(0%); transform: scale(1.06); }
.proj-item:nth-child(even) .proj-imgs { order: 1; }
.proj-info {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.proj-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.proj-info h3 { font-size: 22px; margin-bottom: 14px; }
.proj-info p  { font-size: 13.5px; }
@media (max-width: 860px) {
  .proj-item { grid-template-columns: 1fr; }
  .proj-item:nth-child(even) .proj-imgs { order: 0; }
  .proj-imgs { max-height: 220px; }
}

/* ── ACADEMIC GRID ───────────────────────────────────────── */
.acad-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.acad-card {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  transition: background .25s;
}
.acad-card:hover { background: var(--cream); }
.acad-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 200px;
  overflow: hidden;
}
.acad-imgs.one img { grid-column: span 2; }
.acad-imgs img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(25%);
  transition: filter .4s, transform .6s;
}
.acad-card:hover .acad-imgs img { filter: grayscale(0%); transform: scale(1.05); }
.acad-body { padding: 28px 32px; }
.acad-body .proj-tag { margin-bottom: 10px; }
.acad-body h3 { font-size: 19px; margin-bottom: 10px; }
.acad-body p  { font-size: 13px; }
@media (max-width: 640px) { .acad-grid { grid-template-columns: 1fr; } }

/* ── PULL QUOTE ──────────────────────────────────────────── */
.pull-quote {
  padding: 80px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.pull-quote blockquote {
  font-family: var(--h);
  font-size: clamp(22px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.2;
  color: var(--ink);
  max-width: 820px;
  margin: 0 auto 20px;
}
.pull-quote blockquote em { color: var(--green); }
.pull-quote cite {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-style: normal;
}


/* ── BMIDEE HERO ─────────────────────────────────────────── */
.bm-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid var(--ink);
  min-height: calc(80vh - var(--nav-h));
}
.bm-hero-left {
  padding: 100px 60px 80px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--rule);
}
.bm-hero-right {
  padding: 100px 48px 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 860px) {
  .bm-hero { grid-template-columns: 1fr; min-height: unset; }
  .bm-hero-left  { padding: 60px 20px; border-right: none; border-bottom: 1px solid var(--rule); }
  .bm-hero-right { padding: 60px 20px; }
}

/* ── GALAXY SECTIONS ─────────────────────────────────────── */
.galaxy {
  padding: 64px 0;
  border-bottom: 1px solid var(--rule);
}
.galaxy:last-of-type { border-bottom: none; }
.galaxy-hd {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 40px;
}
.g-num {
  font-family: var(--h);
  font-size: 80px;
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: .9;
  color: var(--cream);
}
.galaxy-hd h2  { font-size: 36px; margin-bottom: 8px; }
.galaxy-hd p   { font-size: 14px; max-width: 540px; margin: 0; }
.galaxy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
}
.galaxy-grid img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05);
  cursor: zoom-in;
  transition: filter .4s, transform .5s;
}
.galaxy-grid img:hover { filter: grayscale(0%); transform: scale(1.04); }

/* ── SPOTIFY COVERS ──────────────────────────────────────── */
.covers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 5px;
  margin-top: 32px;
}
.covers-grid img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(20%);
  cursor: zoom-in;
  transition: filter .4s, transform .4s;
}
.covers-grid img:hover { filter: grayscale(0%); transform: scale(1.06); }

/* ── SCROLL ANIMATIONS ───────────────────────────────────── */

/* Easing partagé — spring snappy */
:root { --ease-out: cubic-bezier(0.16, 1, 0.3, 1); }

/* Zoom In — éléments qui grossissent en entrant */
.rev {
  opacity: 0;
  transform: scale(0.80);
  transition: opacity .85s var(--ease-out),
              transform .85s var(--ease-out);
  will-change: transform, opacity;
}
.rev.on { opacity: 1; transform: scale(1); }

/* Zoom In Gros — pour les grands titres (très dramatique) */
.rev-big {
  opacity: 0;
  transform: scale(0.62);
  transition: opacity 1.1s var(--ease-out),
              transform 1.1s var(--ease-out);
  will-change: transform, opacity;
}
.rev-big.on { opacity: 1; transform: scale(1); }

/* Zoom Out — éléments qui rétrécissent vers leur taille normale */
.rev-zo {
  opacity: 0;
  transform: scale(1.22);
  transition: opacity .9s var(--ease-out),
              transform .9s var(--ease-out);
  will-change: transform, opacity;
}
.rev-zo.on { opacity: 1; transform: scale(1); }

/* Zoom Out Gros — pour les grands nombres décoratifs */
.rev-zo-big {
  opacity: 0;
  transform: scale(1.55);
  transition: opacity 1.1s var(--ease-out),
              transform 1.1s var(--ease-out);
  will-change: transform, opacity;
}
.rev-zo-big.on { opacity: 1; transform: scale(1); }

/* Révélation image — container clippe, l'image zoom-out vers sa taille */
.img-reveal {
  overflow: hidden;
}
.img-reveal > img,
.img-reveal img:only-child {
  transform: scale(1.28);
  transition: transform 1.5s var(--ease-out);
  will-change: transform;
}
.img-reveal.on > img,
.img-reveal.on img:only-child {
  transform: scale(1);
}

/* Stagger delays */
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }
.d5 { transition-delay: .40s; }
.d6 { transition-delay: .48s; }

/* ── LIGHTBOX ────────────────────────────────────────────── */
.lb {
  display: none;
  position: fixed; inset: 0;
  background: rgba(5,5,5,.95);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.lb.open { display: flex; }
.lb img  { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lb-close {
  position: absolute;
  top: 24px; right: 24px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  color: white;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all .2s;
}
.lb-close:hover { background: white; color: black; }

/* ── PAGE-SPECIFIC LAYOUT CLASSES ───────────────────────── */

/* index.html */
.sec-about     { padding: 112px 0; border-bottom: 1px solid var(--rule); }
.about-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-quote   { font-style: italic; color: var(--green); font-weight: 600; font-family: var(--h); font-size: 15px; margin-top: 24px; }
.about-img     { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.sec-nav-intro { padding: 96px 48px 40px; }
@media (max-width: 640px) { .sec-nav-intro { padding: 64px 20px 32px; } }

.sec-pages  { padding: 0; }

/* Shared section spacing variants */
.sec-pad-0  { padding: 0; }
.sec-border { border-bottom: 1px solid var(--rule); }

/* about grid responsive */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── JS-driven stagger & zoom animations ─────────────────── */

/* Gallery item stagger */
.g-item {
  opacity: 0;
  transform: scale(0.80);
  transition: opacity .75s var(--ease-out) var(--delay, 0s),
              transform .75s var(--ease-out) var(--delay, 0s);
}
.gallery.gal-on .g-item   { opacity: 1; transform: scale(1); }
.gallery.gal-done .g-item { transition: none; }
.gallery.gal-done .g-item:hover img { transform: scale(1.05); filter: grayscale(0%); }

/* Galaxy / covers stagger */
.galaxy-grid img,
.covers-grid img {
  opacity: 0;
  transform: scale(0.78);
  transition: opacity .7s var(--ease-out) var(--delay, 0s),
              transform .7s var(--ease-out) var(--delay, 0s),
              filter .4s;
}
.galaxy-grid.gal-on img,
.covers-grid.gal-on img   { opacity: 1; transform: scale(1); }
.galaxy-grid.gal-done img { transition: filter .4s, transform .5s; }
.covers-grid.gal-done img { transition: filter .4s, transform .4s; }
.galaxy-grid.gal-done img:hover { transform: scale(1.04); }
.covers-grid.gal-done img:hover { transform: scale(1.06); }

/* Proj / acad image zoom */
.proj-imgs img,
.acad-imgs img { transform: scale(1.25); }
.proj-item.on .proj-imgs img,
.acad-card.on  .acad-imgs img {
  transform: scale(1);
  transition: transform 1.4s var(--ease-out);
}
.proj-item.anim-done .proj-imgs img,
.acad-card.anim-done .acad-imgs img {
  transition: filter .4s, transform .6s;
  will-change: auto;
}
.proj-item.anim-done:hover .proj-imgs img { transform: scale(1.06); filter: grayscale(0%); }
.acad-card.anim-done:hover  .acad-imgs img { transform: scale(1.05); filter: grayscale(0%); }

/* Body scroll lock (lightbox) */
.body-locked { overflow: hidden; }

/* qui-suis-je.html */
.bio-desc   { max-width: 520px; }
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.hobby-cell {
  padding: 36px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background .25s;
}
.hobby-cell:hover { background: var(--cream); }
.hobby-icon { font-size: 28px; margin-bottom: 14px; color: var(--green); display: block; }
.hobby-cell h3 { font-size: 18px; margin-bottom: 10px; }
.hobby-cell p  { font-size: 13.5px; }
@media (max-width: 600px) { .hobbies-grid { grid-template-columns: 1fr; } }

/* pourquoi-moi.html */
.usp-number {
  font-family: var(--h);
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: 1;
  color: var(--cream);
  margin-bottom: 16px;
}

/* bmidee.html */
.bm-origin-text  { max-width: 520px; }
.bm-brand-logo   { display: flex; align-items: flex-start; gap: 32px; flex-wrap: wrap; margin-top: 32px; }
.bm-brand-logo img { width: 120px; height: 120px; object-fit: contain; }
.bm-brand-text p { font-size: 14px; margin-bottom: 10px; }
.bm-brand-highlight { color: var(--green); font-weight: 700; }

/* ── PROJECT CAROUSEL (Clients & Projets collaboratifs) ─── */
.proj-carousel-wrap {
  background: var(--ink);
  padding: 64px 0 52px;
}
.proj-carousel-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}
/* s-mark + heading overrides on dark bg */
.proj-carousel-wrap .s-mark-n   { color: rgba(255,255,255,.22); }
.proj-carousel-wrap .s-mark-l   { background: rgba(255,255,255,.1); }
.proj-carousel-wrap .s-mark-txt { color: rgba(255,255,255,.38); }
.proj-carousel-wrap h2          { color: var(--white); }

.proj-carousel-arrows { display: flex; gap: 8px; flex-shrink: 0; }
.pca-btn {
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, opacity .2s;
}
.pca-btn:hover:not(:disabled) {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.4);
}
.pca-btn:disabled { opacity: .22; pointer-events: none; }
.pca-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; }

/* Clip viewport to exactly 3 cards */
.proj-carousel-outer { overflow: hidden; }

.proj-carousel-track {
  display: flex;
  gap: 20px;
  padding: 0 48px;
  transition: transform .6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Individual cards — width computed by JS */
.proj-carousel-card {
  flex: 0 0 auto;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.proj-carousel-card h3 {
  font-family: var(--h);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
  color: var(--ink);
}
.proj-carousel-card > p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
  flex: 1;
}
/* Dark card text overrides */
.proj-carousel-card.dark h3             { color: var(--white); }
.proj-carousel-card.dark > p            { color: rgba(255,255,255,.65); }
.proj-carousel-card.dark .proj-tag      { color: rgba(255,255,255,.4); }
.proj-carousel-card.dark .psc-logo img  { filter: brightness(4) grayscale(100%); opacity: .35; }

/* Card CTA link */
.pcc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--b);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 6px;
  transition: gap .25s var(--ease-out);
}
.pcc-link:hover { gap: 14px; }
.proj-carousel-card.dark .pcc-link { color: var(--white); }

/* Dot navigation */
.proj-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}
.pcd {
  width: 6px; height: 6px;
  border: none;
  background: rgba(255,255,255,.2);
  transition: background .2s, transform .2s;
}
.pcd.active { background: var(--white); transform: scale(1.4); }

@media (max-width: 860px) {
  .proj-carousel-hd    { flex-direction: column; align-items: flex-start; gap: 24px; }
  .proj-carousel-track { padding: 0 20px; }
  .proj-carousel-card  { padding: 32px 26px; }
}

/* ── SCROLL STACK CARDS (Clients & Projets collaboratifs) ── */
.proj-scroll-stack {
  background: var(--ink);
}
.proj-scroll-frame {
  position: sticky;
  top: var(--nav-h);
  height: clamp(440px, 58vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}
.proj-scroll-card {
  width: 460px;
  max-width: calc(100vw - 40px);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform .4s var(--ease-out), box-shadow .4s;
  will-change: transform;
}
.proj-scroll-card:hover {
  transform: rotate(0deg) !important;
  box-shadow: 0 28px 80px rgba(0,0,0,.55);
}
/* Rotation variants */
.psc-r1 { transform: rotate(4deg); }
.psc-r2 { transform: rotate(-3deg); }
.psc-r3 { transform: rotate(5deg); }
.psc-r4 { transform: rotate(-4deg); }
.psc-r5 { transform: rotate(3deg); }
.psc-r6 { transform: rotate(-5deg); }
/* Logo area */
.psc-logo {
  width: 80px;
  height: 52px;
  display: flex;
  align-items: flex-start;
  margin-bottom: 4px;
}
.psc-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: grayscale(100%) contrast(1.1);
  opacity: .5;
}
.proj-scroll-card h2 {
  font-family: var(--h);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
  color: var(--ink);
}
.proj-scroll-card > p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
}
/* Dark card variant */
.proj-scroll-card.dark .psc-logo img { filter: brightness(4) grayscale(100%); opacity: .4; }
.proj-scroll-card.dark .proj-tag     { color: rgba(255,255,255,.4); }
.proj-scroll-card.dark h2            { color: var(--white); }
.proj-scroll-card.dark > p           { color: rgba(255,255,255,.65); }
.proj-scroll-card.dark .btn-fill     { background: var(--white); color: var(--ink); border-color: var(--white); }
.proj-scroll-card.dark .btn-fill:hover { background: transparent; color: var(--white); }
/* Mobile */
@media (max-width: 640px) {
  .proj-scroll-frame { position: relative; top: auto; height: auto; padding: 20px 16px; }
  .proj-scroll-card  { transform: none !important; width: 100%; }
}

/* Card background colour variants */
.proj-scroll-card--paper   { background: var(--paper); }
.proj-scroll-card--cream   { background: var(--cream); }
.proj-scroll-card--off     { background: var(--paper-off); }
.proj-scroll-card--green   { background: var(--green); }
.proj-scroll-card--ink     { background: #2C2C28; }

/* Section intro wrapper spacing */
.proj-scroll-intro { padding-top: 64px; padding-bottom: 28px; }

/* "Scroller pour explorer" hint */
.scroll-hint {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── PAGE PROJET (sous-pages) ────────────────────────────── */
.projet-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.projet-detail-cell {
  padding: 32px 28px;
  border-right: 1px solid var(--rule);
}
.projet-detail-cell:last-child { border-right: none; }
.projet-detail-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.projet-detail-val {
  font-family: var(--h);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
@media (max-width: 700px) {
  .projet-details { grid-template-columns: repeat(2, 1fr); }
}

/* ── UTILITY ─────────────────────────────────────────────── */
.green  { color: var(--green); }
.italic { font-style: italic; }
.mt-8   { margin-top: 8px;  }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mt-32  { margin-top: 32px; }
.mt-48  { margin-top: 48px; }
.mt-80  { margin-top: 80px; }
.mb-8   { margin-bottom: 8px;  }
.mb-16  { margin-bottom: 16px; }
.mb-24  { margin-bottom: 24px; }
.mb-32  { margin-bottom: 32px; }
.mb-48  { margin-bottom: 48px; }

/* ── Marquee: pause on hover / focus for accessibility ───── */
.marquee-band:hover .marquee-track,
.marquee-band:focus-within .marquee-track {
  animation-play-state: paused;
}

/* ── ANIMATED TABS (Chargé de comm') ────────────────────── */
.a-tabs-section > .wrap { padding-bottom: 0; }
.a-tabs-wrap {
  background: var(--paper);
  padding: 48px 0 72px;
}
.a-tabs-nav {
  display: flex;
  max-width: var(--max-w);
  margin: 0 auto 48px;
  padding: 0 48px;
  border-bottom: 1px solid rgba(0,0,0,.1);
}
.a-tab-btn {
  font-family: var(--b);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(0,0,0,.35);
  background: none;
  border: none;
  padding: 16px 22px;
  position: relative;
  transition: color .25s;
}
.a-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0; height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.a-tab-btn:hover  { color: rgba(0,0,0,.7); }
.a-tab-btn.active { color: var(--ink); }
.a-tab-btn.active::after { transform: scaleX(1); }

.a-tab-panels {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}
.a-tab-panel { display: none; }
.a-tab-panel.active {
  display: grid;
  animation: tab-in .45s var(--ease-out) forwards;
}
@keyframes tab-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   filter: blur(0);   }
}

.a-tab-inner {
  max-width: none;
}

/* Text side */
.a-tab-content { color: var(--ink); }
.a-tab-content .proj-tag {
  color: rgba(0,0,0,.4);
  margin-bottom: 20px;
}
.a-tab-content h3 {
  font-family: var(--h);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
}
.a-tab-content p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(0,0,0,.6);
}

/* AQ Rate monogram */
.tab-monogram {
  aspect-ratio: 4/3;
  background: var(--green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.tab-monogram-letters {
  font-family: var(--h);
  font-size: clamp(64px, 9vw, 110px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  color: rgba(255,255,255,.18);
}
.tab-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.tab-tag {
  font-family: var(--b);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(0,0,0,.18);
  color: rgba(0,0,0,.5);
}

@media (max-width: 860px) {
  .a-tabs-nav   { flex-wrap: wrap; padding: 0 20px; }
  .a-tab-btn    { padding: 12px 14px; font-size: 10px; }
  .a-tab-panels { padding: 0 20px; }
  .tab-monogram { aspect-ratio: 16/9; }
}
@media (max-width: 640px) {
  .a-tabs-nav   { padding: 0 16px; }
  .a-tab-panels { padding: 0 16px; }
}

/* ── SKILLS FILTER (même style que les onglets "Chargé de comm'") ── */
.skl-filters {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(0,0,0,.1);
  margin-bottom: 48px;
}
.skl-filter-btn {
  font-family: var(--b);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(0,0,0,.35);
  background: none;
  border: none;
  padding: 16px 22px;
  position: relative;
  transition: color .25s;
}
.skl-filter-btn::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0; height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.skl-filter-btn:hover  { color: rgba(0,0,0,.7); }
.skl-filter-btn.active { color: var(--ink); }
.skl-filter-btn.active::after { transform: scaleX(1); }

.skl-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.skl-item {
  font-family: var(--b);
  font-size: 13.5px;
  letter-spacing: var(--tk);
  color: var(--ink);
  padding: 14px 20px;
  border: none;
  background: var(--cream);
  transition: all .25s;
}
.skl-item.is-hidden { display: none; }

/* Fond coloré par domaine, texte noir */
.skl-item[data-domain="marketing"]    { background: var(--gold); }
.skl-item[data-domain="design"]       { background: var(--green); color: var(--white); }
.skl-item[data-domain="informatique"] { background: var(--ink-3); }
.skl-item[data-domain="recherche"]    { background: var(--green-mid); color: var(--white); }

.kpi-strip--langues { grid-template-columns: repeat(3,1fr); }

/* ── CERTIFICATIONS ───────────────────────────────────────── */
.cert-list { border-top: 1px solid var(--rule); }
.cert-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.cert-name {
  font-family: var(--h);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.cert-year {
  font-family: var(--b);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink-3);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .cert-item { flex-direction: column; align-items: flex-start; gap: 6px; }
  .kpi-strip--langues { grid-template-columns: 1fr; }
}

/* ── Respect prefers-reduced-motion ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
  /* Instantly show all scroll-animated elements */
  .rev, .rev-big, .rev-zo, .rev-zo-big {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .img-reveal > img,
  .img-reveal img:only-child {
    transform: none !important;
    transition: none !important;
  }
  .g-item,
  .galaxy-grid img,
  .covers-grid img,
  .proj-imgs img,
  .acad-imgs img {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Stop marquee */
  .marquee-track { animation-play-state: paused !important; }

  /* Suppress all remaining transitions / animations */
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
