:root {
  --bg: #0A0A0B;
  --fg: #F5F5F2;
  --dim: rgba(245, 245, 242, 0.68);
  --line: rgba(245, 245, 242, 0.11);
  --rule: rgba(245, 245, 242, 0.26);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(16px, 3.4vw, 56px);
  /* Marge horizontale : au-delà de 1680 px de contenu, elle grandit et tout reste dans un bloc centré. */
  --padx: max(var(--pad), calc((100vw - 1680px) / 2));
  --gut: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg); color: var(--fg);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-weight: 300; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
ol, ul { list-style: none; }
strong { font-weight: 900; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

.is-loading .top, .is-loading .hero-inner, .is-loading .grid { visibility: hidden; }

.skip {
  position: fixed; left: var(--padx); top: -80px; z-index: 100;
  background: var(--fg); color: var(--bg); padding: 10px 14px;
  font-size: 12px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase;
}
.skip:focus { top: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.label { font-size: 13px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }

/* ── Curseur ── */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%;
  background: var(--fg); color: var(--bg);
  display: grid; place-items: center; opacity: 0;
  mix-blend-mode: difference;
}
.cursor.is-label { mix-blend-mode: normal; }
.cursor-label { font-size: 12px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor .reel { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }

/* ── Progression ── */
.progress {
  position: fixed; top: 0; bottom: 0; right: var(--padx); width: 1px; z-index: 6;
  background: var(--fg); transform: scaleY(0); transform-origin: top; pointer-events: none;
}
.reduced .progress { display: none; }
.sec-count { font-variant-numeric: tabular-nums; }
.sec-num-mask { display: inline-block; overflow: hidden; vertical-align: bottom; }
#secNum { display: inline-block; }

/* ── Grille ── */
.grid {
  position: fixed; inset: 0 var(--padx); z-index: 5; pointer-events: none;
  display: flex; justify-content: space-between;
}
.grid i { width: 1px; height: 100%; background: var(--line); transform-origin: top; }

.cols { display: grid; grid-template-columns: repeat(4, 1fr); }
.cell { padding-left: var(--gut); padding-right: var(--gut); }
.rule { height: 1px; background: var(--rule); transform-origin: left; }

/* ── Liens ── */
.link { position: relative; display: inline-block; }
.link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.link:hover::after, a:hover > .link::after, .link:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.roll { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; }
.roll-mask { display: inline-block; overflow: hidden; height: 1.25em; line-height: 1.25em; }
.roll-in { display: flex; flex-direction: column; transition: transform 0.7s var(--ease); }
.roll:hover .roll-in, .roll:focus-visible .roll-in { transform: translateY(-50%); }
.roll-arrow { display: inline-block; transition: transform 0.7s var(--ease); }
.roll:hover .roll-arrow { transform: translate(4px, 4px); }

/* ── Header ── */
.top {
  position: fixed; top: 0; left: var(--padx); right: var(--padx); z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: baseline;
  padding-top: var(--pad); font-size: 13px;
}
.top > * { padding-left: var(--gut); }
.top::before {
  content: ''; position: absolute; z-index: -1; top: 0; bottom: -16px;
  left: calc(-1 * var(--padx)); right: calc(-1 * var(--padx));
  background: var(--bg); border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.top.is-solid::before { opacity: 1; }
.top-nav { grid-column: 2 / 4; display: flex; gap: clamp(14px, 1.8vw, 28px); }
.top-end { display: flex; align-items: baseline; gap: clamp(16px, 2vw, 32px); }
.lang-switch { display: flex; gap: 10px; font-size: 12px; font-weight: 900; letter-spacing: 0.08em; }
.lang-switch a { color: var(--dim); transition: color 0.3s; }
.lang-switch a[aria-current], .lang-switch a:hover { color: var(--fg); }
.top-clock { font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-btn { display: none; padding: 0; font-size: 13px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }

.menu {
  position: fixed; inset: 0; z-index: 25; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--pad) + 72px) var(--padx) var(--pad);
}
.menu[hidden] { display: none; }
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a {
  display: block; overflow: hidden; padding: 4px var(--gut);
  font-size: clamp(40px, 12vw, 64px); font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.045em; line-height: 1;
  border-top: 1px solid var(--line);
}
.menu-nav a span { display: inline-block; padding: 10px 0 6px; }
.menu-foot { display: flex; flex-direction: column; gap: 8px; padding-left: var(--gut); color: var(--dim); }

/* ── Hero ── */
.hero { position: relative; height: 100svh; overflow: hidden; }
.hero-inner {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  padding: calc(var(--pad) + 64px) var(--padx) calc(var(--pad) + 8px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-inner a { pointer-events: auto; }
.name-block { position: relative; margin-bottom: 6vh; }
.name { text-transform: uppercase; line-height: 0.82; font-weight: 300; }
.row { display: flex; }
.row-2 { justify-content: flex-end; }
.line { display: block; overflow: hidden; padding: 0.04em 0 0.03em; }
.word { display: inline-block; white-space: nowrap; }
.w-thin { font-weight: 300; letter-spacing: -0.035em; margin-left: -0.04em; }
.w-black { font-weight: 900; letter-spacing: -0.05em; margin-right: -0.02em; }
.ch { display: inline-block; will-change: transform; }
.tagline {
  position: absolute; left: var(--gut); bottom: 0.5em; width: calc(25% - var(--gut));
  font-size: clamp(15px, 1.3vw, 19px); line-height: 1.45;
}
.info .rule { margin-bottom: 16px; }
.info .cell { display: flex; flex-direction: column; gap: 8px; }
.info-val { font-size: clamp(14px, 1.15vw, 17px); }
.info .roll { font-size: clamp(14px, 1.15vw, 17px); }
.num { font-variant-numeric: tabular-nums; }

/* ── Showreel ── */
.reel { position: absolute; inset: 0; z-index: 1; overflow: hidden; cursor: pointer; background: var(--bg); }
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-shade { position: absolute; inset: 0; background: var(--bg); opacity: 0.3; transition: opacity 0.6s var(--ease); }
.reel:hover .reel-shade { opacity: 0.15; }
.reel-ui {
  position: absolute; left: var(--padx); right: var(--padx); bottom: var(--pad);
  display: flex; justify-content: space-between; align-items: flex-end; opacity: 0;
  padding: 0 var(--gut);
}
.reel-ui .label { color: var(--fg); }
.reel-play { display: inline-flex; align-items: center; gap: 14px; }
.reel-dot {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--fg);
  display: grid; place-items: center; transition: transform 0.7s var(--ease);
}
.reel-dot svg { width: 12px; height: 12px; margin-left: 3px; }
.reel:hover .reel-dot { transform: scale(1.12); }
.shutter { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--bg); }
.s-top { top: 0; }
.s-bot { bottom: 0; }
.reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

/* ── Sections ── */
.section { position: relative; padding: 20vh var(--padx) 0; outline: none; }
.sec-head .rule { margin-bottom: 16px; }
.sec-head .cols > :nth-child(2) { color: var(--fg); }
.sec-title {
  margin-top: 7vh; padding-left: var(--gut);
  font-weight: 300; text-transform: uppercase;
  font-size: clamp(38px, 11.5vw, 200px); letter-spacing: -0.045em; line-height: 0.88;
}
.sec-intro-row { margin-top: 6vh; }
.sec-intro {
  grid-column: 2 / 4; padding: 0 var(--gut); max-width: 40ch;
  font-size: clamp(18px, 1.6vw, 24px); line-height: 1.4;
}
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.16em 0 0.06em; margin: -0.16em 0 -0.06em; }
.w > span { display: inline-block; }

/* Index défilant */
.marquee { margin: 10vh calc(-1 * var(--padx)) 0; overflow: hidden; }
.mq-row {
  display: flex; width: max-content;
  white-space: nowrap; font-size: clamp(44px, 8vw, 132px); line-height: 1.02;
  letter-spacing: -0.045em; text-transform: uppercase; will-change: transform;
}
.mq-row span { display: inline-block; padding-right: 0.3em; }
.mq-a { font-weight: 900; }
.mq-b { font-weight: 300; color: var(--dim); }

/* Index en lignes */
.idx, .svc { margin-top: 12vh; }
.idx-row, .svc-row {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  align-items: baseline; padding: 4.5vh 0;
}
.idx-row > :not(.idx-rule), .svc-row > :not(.idx-rule) { padding-left: var(--gut); padding-right: var(--gut); }
.idx-rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule); transform-origin: left; }
.idx-end { position: relative; height: 1px; }
.idx-cat {
  grid-column: 2 / 4; font-weight: 300;
  font-size: clamp(30px, 4.4vw, 74px); letter-spacing: -0.035em; line-height: 1;
}
.idx-cat em { font-style: normal; color: var(--dim); }
.idx-list { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: var(--dim); transition: color 0.5s; }
.idx-list i { font-style: normal; }
.idx-row:hover .idx-list { color: var(--fg); }
.idx-cat, .svc-name { transition: transform 0.8s var(--ease); }
.idx-row:hover .idx-cat, .svc-row:hover .svc-name { transform: translateX(16px); }

.svc-row { padding: 3.6vh 0; }
.svc-name {
  grid-column: 2 / 3; font-weight: 900; text-transform: uppercase;
  font-size: clamp(20px, 2.2vw, 38px); letter-spacing: -0.03em; line-height: 1.05;
}
.svc-desc { grid-column: 3 / 5; max-width: 38ch; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.45; color: var(--dim); }
.langs { margin-top: 10vh; }
.langs-title { display: block; padding: 0 var(--gut); margin-bottom: 3vh; }
.langs-list { row-gap: 28px; }
.langs-list .cell { display: flex; flex-direction: column; gap: 8px; }
.lang-name {
  font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(20px, 1.8vw, 30px);
}

/* À propos */
.about-text {
  margin-top: 8vh; padding: 0 var(--gut); max-width: 75%;
  font-size: clamp(26px, 3.5vw, 58px); line-height: 1.12; letter-spacing: -0.025em;
}
.about-text .w { overflow: visible; }
.facts { margin-top: 14vh; row-gap: 40px; }
.facts .cell { display: flex; flex-direction: column; gap: 10px; }
.fact-num {
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(26px, 2.8vw, 52px); letter-spacing: -0.045em; line-height: 0.95;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Contact */
.contact { padding-bottom: 16vh; }
.mail { display: block; margin-top: 9vh; padding: 0 var(--gut); font-weight: 900; letter-spacing: -0.045em; line-height: 1.1; }
.mail-inner { position: relative; display: inline-block; isolation: isolate; white-space: nowrap; }
.mail-fill {
  position: absolute; top: 0.04em; bottom: -0.02em; left: -0.1em; right: -0.1em;
  background: var(--fg); transform: scaleX(0); transform-origin: right;
  transition: transform 0.85s var(--ease);
}
/* Le texte s'inverse automatiquement là où l'aplat passe. */
.mail-text { position: relative; display: inline-block; color: var(--fg); mix-blend-mode: difference; }
/* Chaque lettre a son masque ; la marge négative compense l'élargissement du masque. */
.mail-text .mc {
  position: relative; display: inline-block; overflow: hidden; vertical-align: top;
  padding: 0 0.06em 0.14em 0; margin: 0 -0.06em -0.14em 0;
}
.mail-text .mc-a { display: inline-block; }
.mail-text .mc-b { position: absolute; left: 0; top: 0; }
.mail.is-js .mail-fill { transition: none; }
.mail:hover .mail-fill, .mail:focus-visible .mail-fill { transform: scaleX(1); transform-origin: left; }

.mail-actions { margin-top: 18px; padding: 0 var(--gut); }
.copy {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 12px 18px; border: 1px solid var(--rule); border-radius: 999px;
  transition: border-color 0.4s, transform 0.6s var(--ease);
}
.copy:hover { border-color: var(--fg); transform: translateY(-2px); }
.copy.is-done { border-color: var(--fg); }
.contact-info { margin-top: 7vh; row-gap: 28px; }
.contact-info .cell { display: flex; flex-direction: column; gap: 8px; overflow-wrap: anywhere; }
.contact-info .cell-reel { grid-column: span 2; }
.form-wrap { margin-top: 14vh; row-gap: 32px; }
.form-intro { display: flex; flex-direction: column; gap: 14px; }
.form-intro p { font-size: clamp(15px, 1.15vw, 17px); max-width: 26ch; }
.form {
  grid-column: 2 / 5; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 0;
}
.field { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 0 var(--gut); }
.field-full { grid-column: 1 / -1; }
.field input, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  padding: 8px 0 12px; font-size: clamp(17px, 1.4vw, 21px); outline: none; resize: vertical;
}
.field textarea { min-height: 140px; }
.field-line {
  position: absolute; left: var(--gut); right: var(--gut); bottom: 0; height: 1px;
  background: var(--fg); transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s var(--ease);
}
.field:focus-within .field-line { transform: scaleX(1); }
.field:focus-within .label { color: var(--fg); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gut); flex-wrap: wrap; }
.submit {
  font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--rule); padding: 18px 28px; transition: border-color 0.4s;
}
.submit:hover { border-color: var(--fg); }
.submit .roll-arrow { transition: transform 0.7s var(--ease); }
.submit:hover .roll-arrow { transform: translateX(6px); }
.form-status { font-size: 15px; color: var(--dim); }
.form-status.ok { color: var(--fg); }

/* Footer */
.footer { position: relative; overflow: hidden; padding: 0 var(--padx) var(--pad); font-size: 15px; }
.footer .rule { margin-bottom: 18px; }
.footer .cols { row-gap: 12px; }
.footer-bottom { margin-top: 4vh; }
.wordmark { margin-top: 16vh; padding: 0 var(--gut); text-transform: uppercase; line-height: 0.8; }
.wm-line { display: block; overflow: hidden; padding: 0.06em 0 0.03em; }
.wm-inner { display: inline-block; white-space: nowrap; }
.wm-thin { font-weight: 300; letter-spacing: -0.035em; }
.wm-black { font-weight: 900; letter-spacing: -0.05em; }
.link-cell { display: block; }

/* ── Mouvement réduit : tout statique, showreel en bloc 16:9 ── */
.reduced .hero { height: auto; overflow: visible; }
.reduced .hero-inner { position: relative; min-height: 100svh; }
.reduced .reel { position: relative; inset: auto; aspect-ratio: 16 / 9; margin: 0 var(--padx); }
.reduced .shutter { display: none; }
.reduced .reel-ui { opacity: 1; }
.reduced .mq-row { width: auto; white-space: normal; padding: 0 var(--padx); }
.reduced .mq-row span + span { display: none; }

/* ── Tablette ── */
.top-nav a, .top-name { white-space: nowrap; }

@media (max-width: 1024px) {
  .top { grid-template-columns: 1fr auto auto; column-gap: 28px; }
  .top-clock { display: none; }
  .top-nav { grid-column: auto; }
}

@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; }
}

/* ── Mobile ── */
@media (max-width: 700px) {
  .fact-num { font-size: 5.6vw; }
  .grid i:nth-child(2), .grid i:nth-child(4) { display: none; }
  .cols { grid-template-columns: 1fr 1fr; }
  .hide-sm { display: none; }

  .top { grid-template-columns: 1fr auto; }
  .top-nav, .top-clock { display: none; }
  .menu-btn { display: block; }
  .top-end { gap: 18px; }

  .name-block { margin-bottom: 4vh; }
  .tagline { position: static; width: auto; max-width: 92%; margin-top: 3vh; }
  .info .cols { row-gap: 20px; }
  .hero-inner { padding-bottom: calc(var(--pad) + 4px); }

  .section { padding-top: 14vh; }
  .idx-row, .svc-row { grid-template-columns: 1fr; row-gap: 10px; padding: 3.2vh 0; }
  .idx-cat, .svc-name, .svc-desc { grid-column: auto; }
  .idx-row:hover .idx-cat, .svc-row:hover .svc-name { transform: none; }
  .sec-intro { grid-column: 1 / -1; }

  .about-text { max-width: none; }
  .facts .cell { margin-bottom: 8px; }

  .contact-info .cell-reel { grid-column: 1 / -1; }
  .form, .form-intro { grid-column: 1 / -1; }
  .form { grid-template-columns: 1fr; gap: 32px; }
  .footer .cols:not(.footer-bottom) > :nth-child(2) { display: none; }
  .footer-bottom > :nth-child(3) { display: none; }
  .wordmark { margin-top: 10vh; }
}
