/* Inter, hosted on the site itself: no request to Google, so visitors' IP addresses are not shared (RGPD) */
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 300 600; font-display: swap; src: url(/fonts/inter-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 300 600; font-display: swap; src: url(/fonts/inter-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(/fonts/inter-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(/fonts/inter-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Indi Agency — single-screen home. Tokens from the style guide (Roobert → Inter) */
:root {
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --side: max(24px, 12.5vw);
  --night: #17202E; /* bleu nuit du logo, remplace le noir */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.is-home, .is-home body { height: 100%; overflow: hidden; overscroll-behavior: none; } /* home: one screen, no scroll */
/* no scrollbar on any page: otherwise it eats ~15px on the scrolling pages and the menu jumps between pages */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body {
  font-family: var(--font); font-weight: 400; color: #fff; background: var(--night);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* ---------- Loader ---------- */
/* transparent: the blurred liquid behind it is the WebGL background itself */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; pointer-events: none; }
.loader-word { font-weight: 400; font-size: clamp(40px, 5.4vw, 94px); line-height: 1.1; letter-spacing: -0.03em; }

/* ---------- Cursor (the little white dot) ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
  width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff;
  transition: width .6s var(--ease), height .6s var(--ease), margin .6s var(--ease), background-color .4s ease;
}
.cursor.is-hover { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.6); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Stage ---------- */
.stage { position: fixed; inset: 0; overflow: hidden; touch-action: none; }
.bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* inner pages scroll: on phones the address bar slides in and out while scrolling, which resized the
   full-screen canvas on every swipe (the stutter). Sized to the largest viewport, it never changes. */
.page .stage { bottom: auto; height: 100vh; height: 100lvh; }
.bg.is-fallback {
  background:
    radial-gradient(45% 60% at 78% 38%, rgba(255,216,77,.45), transparent 70%),
    radial-gradient(50% 50% at 25% 70%, rgba(70,105,154,.6), transparent 70%),
    radial-gradient(40% 40% at 40% 20%, rgba(86,106,46,.5), transparent 70%), var(--night);
}

/* ---------- Nav (logo / langue / menu empilé) ---------- */
.nav {
  position: fixed; z-index: 5; top: 0; left: 0; right: 0;
  padding: 36px var(--side) 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start;
}
.logo { display: inline-flex; align-items: center; font-size: 17px; line-height: 1; letter-spacing: -0.01em; }
.logo-mark { display: inline-block; width: 23px; height: 36px; margin: -9px 12px -9px 0; }
.logo-mark svg { width: 100%; height: 100%; overflow: visible; fill: #fff; stroke: #fff; stroke-width: 68; stroke-linecap: round; }
.has-gl .logo-mark svg { visibility: hidden; } /* the glass version is drawn by the background */
.logo strong { font-weight: 600; font-size: 21px; letter-spacing: -0.03em; margin-right: 4px; }

.lang { display: flex; align-items: center; gap: 36px; font-size: 13px; padding-top: 3px; transform: translateX(40%); }
.lang-bar { width: 2px; height: 13px; background: #fff; }
.lang a { color: rgba(255,255,255,.5); transition: color .4s ease; }
.lang a[aria-current], .lang a:hover { color: #fff; }

.menu { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; font-size: 13px; letter-spacing: 0.01em; }
.menu a { position: relative; display: block; overflow: hidden; line-height: 1.2; color: rgba(255,255,255,.82); }
.menu a span, .menu a::after { display: block; transition: transform .8s var(--ease); }
.menu a::after { content: attr(data-text); position: absolute; left: 0; right: 0; top: 0; text-align: right; color: #fff; transform: translateY(105%); }
.menu a:hover span { transform: translateY(-105%); }
.menu a:hover::after { transform: translateY(0); }
.menu a[aria-current="page"] { color: #fff; }
.menu a[aria-current="page"] span::before { content: '— '; }

/* ---------- Headline ---------- */
.headline {
  position: absolute; z-index: 2; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  padding: 0 24px; text-align: center; pointer-events: none;
  font-weight: 400; font-size: clamp(34px, 4.6vw, 78px); line-height: 1.1; letter-spacing: -0.02em;
}
.wd { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: top; padding: 0.04em 0.02em 0.14em; margin: -0.04em -0.02em -0.14em; }
.ch { display: inline-block; will-change: transform; }
.it { font-style: italic; font-weight: 300; }

/* ---------- Ghost pill (style guide: 75px radius, 1px border, no fill colour) ---------- */
.pill {
  position: relative; display: inline-flex; padding: 11px 33px; border-radius: 75px; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(255,255,255,.3); font-size: 16px; line-height: 1.5; color: #fff;
  transition: color .8s var(--ease), border-color .8s var(--ease);
}
.pill::before { content: ''; position: absolute; inset: 0; z-index: -1; background: #fff; transform: translateY(101%); transition: transform .8s var(--ease); }
.pill span { transition: letter-spacing .8s var(--ease); }
.pill:hover { color: var(--night); border-color: #fff; }
.pill:hover::before { transform: translateY(0); }
.pill:hover span { letter-spacing: .04em; }

/* ---------- Inner pages (scrolling, over the fixed liquid) ---------- */
.label { font-size: 12px; letter-spacing: .02em; color: rgba(255,255,255,.55); margin-bottom: 40px; }
.page main { position: relative; z-index: 1; padding: 0 var(--side); }

.team-hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 200px 0 120px; }
.team-title { font-weight: 400; font-size: clamp(48px, 9.4vw, 160px); line-height: .95; letter-spacing: -0.045em; margin-bottom: 48px; }
.team-intro { max-width: 520px; font-size: 18px; line-height: 1.58; color: rgba(255,255,255,.78); }

/* founders: names only, large, side by side */
.duo { padding-bottom: 152px; }
.duo-text { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.duo-person { padding: 28px 0 24px; border-top: 1px solid rgba(255,255,255,.22); cursor: default; }
.duo-person > * { transition: opacity .6s ease; } /* on children: a CSS transition on the person itself would fight the GSAP reveal */
.duo-person h2 { font-weight: 300; font-size: clamp(44px, 6.4vw, 110px); line-height: 1; letter-spacing: -0.04em; }
.duo-person p { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 10px; }
.duo-person .duo-extra { margin-top: 4px; }
.duo-person .duo-extra a { color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 3px; }
.duo-figure[data-focus] .duo-person:not(.is-on) > * { opacity: .35; }

.traits { padding-bottom: 152px; }
.traits ol { list-style: none; }
.trait { position: relative; display: grid; grid-template-columns: 80px 1fr 1fr; gap: 28px; padding: 40px 0 48px; align-items: baseline; }
.trait-line { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: rgba(255,255,255,.35); transform-origin: left; }
.trait-num { font-size: 12px; color: rgba(255,255,255,.55); }
.trait h3 { font-weight: 300; font-size: clamp(29px, 3.2vw, 45px); line-height: 1.15; letter-spacing: -0.02em; }
.trait p { font-size: 16px; line-height: 1.58; color: rgba(255,255,255,.72); max-width: 440px; }

.team-cta { padding: 40px 0 152px; display: flex; flex-direction: column; align-items: flex-start; gap: 48px; }
.team-cta-title { font-weight: 400; font-size: clamp(40px, 6.4vw, 94px); line-height: 1; letter-spacing: -0.04em; }

.page-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; padding: 28px var(--side); font-size: 11px; color: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.12); }
.page-foot a:hover { color: #fff; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; padding-bottom: 152px; }
.legal h2 { font-weight: 300; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.02em; margin: 56px 0 16px; }
.legal h2:first-child { margin-top: 0; }
.legal p { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.72); margin-bottom: 8px; }
.legal a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.legal .legal-date { margin-top: 56px; font-size: 12px; color: rgba(255,255,255,.45); }
.todo { color: #FFD84A; } /* placeholder still to fill in: must not stay once published */

/* ---------- Méthode: steps with a pinned counter ---------- */
.steps-wrap { display: grid; grid-template-columns: 1fr 1.7fr; gap: 64px; padding-bottom: 152px; }
.steps-side { position: sticky; top: 28vh; align-self: start; }
.steps-count { display: flex; align-items: baseline; gap: 14px; }
.steps-num { display: inline-block; overflow: hidden; font-weight: 300; font-size: clamp(96px, 13vw, 225px); line-height: .82; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.steps-num > span { display: inline-block; }
.steps-total { font-size: 18px; color: rgba(255,255,255,.5); }
.steps-bar { width: min(240px, 80%); height: 1px; margin-top: 40px; background: rgba(255,255,255,.2); }
.steps-bar span { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }

.mstep { min-height: 72vh; padding: 48px 0 64px; border-top: 1px solid rgba(255,255,255,.22); display: flex; flex-direction: column; justify-content: center; }
.mstep > * { transition: opacity .8s var(--ease); } /* children only: the step itself is animated by GSAP */
.mstep:not(.is-active) > * { opacity: .28; }
.mstep-tag { align-self: flex-start; font-size: 12px; padding: 6px 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 75px; margin-bottom: 28px; }
.mstep h2 { font-weight: 300; font-size: clamp(44px, 5.6vw, 94px); line-height: 1; letter-spacing: -0.04em; margin-bottom: 28px; }
.mstep-text { font-size: 18px; line-height: 1.58; color: rgba(255,255,255,.75); max-width: 480px; }
.mstep-out { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 40px; font-size: 13px; color: rgba(255,255,255,.6); }
.mstep-out li::before { content: '+ '; color: #fff; }

.roles { padding-bottom: 152px; }
.roles .team-cta-title { margin-bottom: 64px; }
.roles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.role { border-top: 1px solid rgba(255,255,255,.22); padding-top: 28px; }
.role h3 { font-weight: 300; font-size: clamp(29px, 3.2vw, 45px); letter-spacing: -0.02em; margin-bottom: 24px; }
.role ul { list-style: none; }
.role li { font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.72); padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }

/* ---------- Manifeste ---------- */
.manif-lead-wrap { padding: 40px 0 180px; }
.manif-lead { font-weight: 300; font-size: clamp(34px, 5.2vw, 78px); line-height: 1.12; letter-spacing: -0.03em; max-width: 1180px; }
.principles { padding-bottom: 120px; }
.principle { display: grid; grid-template-columns: 80px 1fr; gap: 28px; padding: 56px 0 96px; border-top: 1px solid rgba(255,255,255,.22); }
.principle-num { font-size: 12px; color: rgba(255,255,255,.55); padding-top: 14px; }
.principle h2 { font-weight: 300; font-size: clamp(40px, 5.6vw, 94px); line-height: 1.02; letter-spacing: -0.04em; margin-bottom: 28px; max-width: 1000px; }
.principle p { font-size: 18px; line-height: 1.58; color: rgba(255,255,255,.72); max-width: 520px; }
.creed { display: flex; flex-direction: column; padding: 40px 0 180px; }
.creed-word { font-weight: 400; font-size: clamp(56px, 11vw, 190px); line-height: .92; letter-spacing: -0.055em; }
.creed-word:nth-child(even) { align-self: flex-end; font-weight: 300; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 7vw, 120px); padding-bottom: 152px; align-items: start; }
.contact-mail { display: inline-block; font-weight: 300; font-size: clamp(22px, 2.6vw, 40px); letter-spacing: -0.03em; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 6px; transition: border-color .6s var(--ease); overflow-wrap: anywhere; }
.contact-mail:hover { border-color: #fff; }
.contact-note { margin-top: 28px; font-size: 16px; line-height: 1.58; color: rgba(255,255,255,.65); max-width: 380px; }
.contact-form { display: flex; flex-direction: column; gap: 28px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field span { font-size: 12px; color: rgba(255,255,255,.6); }
.field input, .field textarea {
  font: inherit; font-size: 18px; color: #fff; background: transparent; border: 0; border-radius: 0;
  border-bottom: 1px solid rgba(255,255,255,.3); padding: 8px 0 12px; outline: none; resize: vertical;
  transition: border-color .6s var(--ease);
}
.field input::placeholder { color: rgba(255,255,255,.3); }
.field input:focus, .field textarea:focus { border-color: #fff; }
.field .is-invalid { border-color: #ffb26b; }
.form-error { min-height: 1.2em; font-size: 13px; color: #ffcf8a; }
.contact-form .pill { align-self: flex-start; background: none; font-family: inherit; cursor: pointer; }

/* ---------- Travaux: projects ---------- */
.projects { padding-bottom: 152px; }
.project { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; padding: 56px 0 64px; border-top: 1px solid rgba(255,255,255,.18); }
.project-num { font-size: 12px; color: rgba(255,255,255,.55); }
.project-title { font-weight: 300; font-size: clamp(32px, 3.6vw, 54px); letter-spacing: -0.03em; line-height: 1.05; margin: 16px 0 14px; }
.project-tags { font-size: 13px; color: rgba(255,255,255,.6); }
.project-why { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: rgba(255,255,255,.85); }
.project-points { list-style: none; margin: 28px 0 32px; }
.project-points li { position: relative; padding: 10px 0 10px 22px; font-size: 15px; color: rgba(255,255,255,.72); border-bottom: 1px solid rgba(255,255,255,.08); }
.project-points li::before { content: ''; position: absolute; left: 0; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,216,74,.85); }
/* one live 3D piece per project (travaux3d.js) */
.project-3d { margin-top: -12px; width: min(380px, 100%); }
.project-3d canvas { display: block; width: 100%; aspect-ratio: 1 / 1.05; touch-action: pan-y; }
.project-3d:not([data-model="chef"]) canvas { aspect-ratio: 1 / .82; } /* a round logo needs less height than the standing chef */
.project-3d-hint { margin-top: 4px; font-size: 12px; color: rgba(255,255,255,.55); }
.project-3d-hint .hint-touch { display: none; }
@media (hover: none) { .project-3d-hint .hint-mouse { display: none; } .project-3d-hint .hint-touch { display: inline; } }
.project-link a { display: inline-block; white-space: nowrap; font-size: 13px; padding: 9px 18px; border: 1px solid rgba(255,255,255,.35); border-radius: 75px; transition: border-color .8s var(--ease), background-color .8s var(--ease); }
.project-link a:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Burger + full-screen glass menu (mobile & tablet; built by main.js) ---------- */
.burger { display: none; position: relative; justify-self: end; width: 44px; height: 44px; margin: -12px -10px 0 0; padding: 0; background: none; border: 0; cursor: pointer; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: #fff; transition: transform .8s var(--ease), top .8s var(--ease); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 26px; }
.nav.is-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.is-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.mmenu {
  position: fixed; inset: 0; z-index: 4; visibility: hidden; clip-path: inset(0 100% 0 0);
  display: flex; flex-direction: column; padding: 120px var(--side) max(36px, env(safe-area-inset-bottom));
  background: rgba(23,32,46,.78); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
}
.mmenu-lang { display: flex; gap: 28px; font-size: 13px; }
.mmenu-lang a { color: rgba(255,255,255,.5); padding: 6px 0; }
.mmenu-lang a[aria-current] { color: #fff; }
.mmenu-links { margin-top: auto; display: flex; flex-direction: column; }
.mmenu-links a { display: block; overflow: hidden; font-size: clamp(40px, 11vw, 80px); line-height: 1.1; letter-spacing: -0.035em; padding-bottom: .05em; }
.mmenu-links a span { display: inline-block; }
.mmenu-links i { font-style: italic; font-weight: 300; }
.mmenu-links a[aria-current] { opacity: .4; }
.mmenu-foot { margin-top: 36px; font-size: 12px; color: rgba(255,255,255,.55); }
.menu-open, .menu-open body { overflow: hidden; }
.nav.is-open .logo-mark svg { visibility: visible; } /* the glass logo lives in the WebGL layer, blurred under the panel */

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .headline { font-size: clamp(30px, 6.4vw, 64px); }   /* tablets: the headline was too small in portrait */
  .team-hero { min-height: 72vh; min-height: 72svh; }   /* tall tablets: less empty space above the title */
}
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav .menu, .nav .lang { display: none; }             /* replaced by the burger menu */
  .burger { display: block; }
}
@media (max-width: 720px) {
  .nav { padding-top: 28px; }
  .headline { font-size: clamp(30px, 9vw, 44px); }
  .team-hero { padding: 180px 0 80px; min-height: 88vh; min-height: 88svh; }
  .duo { padding-bottom: 96px; }
  .duo-text { grid-template-columns: 1fr; gap: 0; }

  .trait { grid-template-columns: 1fr; gap: 12px; }
  .traits, .team-cta, .roles { padding-bottom: 96px; }
  .steps-wrap { grid-template-columns: 1fr; gap: 0; padding-bottom: 96px; }
  .steps-side { display: none; } /* on a phone each step already shows its own content in full */
  .mstep { min-height: 0; padding: 40px 0 48px; }
  .mstep:not(.is-active) > * { opacity: 1; }
  .roles-grid { grid-template-columns: 1fr; }
  .principle { grid-template-columns: 1fr; gap: 8px; padding: 40px 0 64px; }
  .manif-lead-wrap, .creed { padding-bottom: 110px; }
  .contact-grid { grid-template-columns: 1fr; padding-bottom: 96px; }
  .project { grid-template-columns: 1fr; gap: 24px; padding: 40px 0 48px; }
  .projects { padding-bottom: 96px; }
  .project-link a { white-space: normal; } /* very small phones: let the long address wrap rather than overflow */
}

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
}

/* inner pages: the nav stays readable over portraits */
.page .nav { mix-blend-mode: difference; }
.page .nav { transition: transform 1s var(--ease), opacity .6s ease; }
.page .nav.nav--hidden { transform: translateY(-110%); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .page .nav { transition: none; } }
