/* ============================================
   BTP MONACO
   Style: éditorial, sobre, grille stricte
   ============================================ */

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Variables ---------- */
:root {
  /* Couleurs - palette neutre crème/blanc cassé */
  --cream: #F5F2EC;
  --cream-warm: #EFEAE0;
  --bone: #E8E2D5;
  --ink: #1A1816;
  --ink-soft: #2D2A26;
  --taupe: #6B6660;
  --taupe-light: #9A958D;
  --line: rgba(26, 24, 22, 0.12);
  --line-soft: rgba(26, 24, 22, 0.06);

  /* Typographie */
  --font-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --pad-x: 32px;
  --pad-x-mobile: 20px;
}

@media (max-width: 768px) {
  :root {
    --pad-x: 20px;
  }
}

/* ---------- Body ---------- */
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

/* ---------- Selection ---------- */
::selection {
  background: var(--ink);
  color: var(--cream);
}

/* ---------- Typography classes ---------- */
.t-display {
  font-family: var(--font-sans);
  font-size: clamp(3rem, 9vw, 9rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.t-h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 5.5vw, 5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.t-h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.t-h3 {
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.t-body {
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
}

.t-body-lg {
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 400;
}

.t-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.t-mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.t-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--taupe);
}

/* Annotations style Studio X (Featured), (Process) */
.t-annotation {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-style: italic;
  color: var(--taupe);
  font-weight: 400;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  padding: 0 var(--pad-x);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .grid-12 {
    gap: 16px;
  }
}

section {
  position: relative;
}

.section-pad {
  padding: 120px 0;
}

.section-pad-sm {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section-pad { padding: 80px 0; }
  .section-pad-sm { padding: 60px 0; }
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: difference;
  color: var(--cream);
}

.header-logo {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.header-logo .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  margin: 0 4px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  position: relative;
  padding: 4px 0;
  transition: opacity 0.3s var(--ease);
}

.header-nav a:hover {
  opacity: 0.6;
}

.header-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: inherit;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 4px 0;
}

@media (max-width: 768px) {
  .header-nav {
    position: fixed;
    inset: 0;
    background: var(--ink);
    color: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 var(--pad-x);
    gap: 24px;
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease-out);
    mix-blend-mode: normal;
  }
  .header-nav.open {
    transform: translateY(0);
  }
  .header-nav a {
    font-size: 2rem;
    font-weight: 300;
  }
  .menu-btn {
    display: block;
  }
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--cream);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 32px var(--pad-x);
  transition: transform 0.9s var(--ease-out), opacity 0.6s var(--ease-out);
}

.loader.gone {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.loader-name {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.loader-pct {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.loader-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--cream);
  width: 0;
  transition: width 1.4s var(--ease-out);
}

.loader.fill .loader-bar {
  width: 100%;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px var(--pad-x) 32px;
}

.footer-top {
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(245, 242, 236, 0.15);
}

.footer-cta {
  font-size: clamp(2.25rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 1100px;
  margin-bottom: 48px;
}

.footer-cta .em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.footer-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border: 1px solid rgba(245, 242, 236, 0.3);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.footer-cta-link:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}

@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

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

.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.footer-brand-tag {
  font-size: 0.875rem;
  color: rgba(245, 242, 236, 0.6);
  max-width: 320px;
  line-height: 1.55;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.5);
  margin-bottom: 20px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list li {
  font-size: 0.9rem;
  color: rgba(245, 242, 236, 0.85);
}

.footer-list a {
  transition: opacity 0.3s var(--ease);
}

.footer-list a:hover {
  opacity: 0.5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.5);
  padding-top: 24px;
}

@media (max-width: 580px) {
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ---------- Reveal animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}

.fade-in.in {
  opacity: 1;
}

[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.4s; }

/* Word-by-word reveal for large titles */
.split-words {
  display: inline-block;
}

.split-words .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.split-words .w span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}

.split-words.in .w span {
  transform: translateY(0);
}

.split-words .w:nth-child(2) span { transition-delay: 0.06s; }
.split-words .w:nth-child(3) span { transition-delay: 0.12s; }
.split-words .w:nth-child(4) span { transition-delay: 0.18s; }
.split-words .w:nth-child(5) span { transition-delay: 0.24s; }
.split-words .w:nth-child(6) span { transition-delay: 0.3s; }

/* ---------- Buttons / Links ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.pill:hover {
  background: var(--ink);
  color: var(--cream);
}

.pill-fill {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.pill-fill:hover {
  background: transparent;
  color: var(--ink);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  position: relative;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  transition: gap 0.3s var(--ease);
}

.link-arrow:hover {
  gap: 14px;
}

/* ---------- Utility ---------- */
.bg-ink { background: var(--ink); color: var(--cream); }
.bg-cream { background: var(--cream); }
.bg-warm { background: var(--cream-warm); }
.bg-bone { background: var(--bone); }

.text-cream { color: var(--cream); }
.text-taupe { color: var(--taupe); }

.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* ---------- Custom cursor (subtle dot) ---------- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease);
}

.cursor-dot.lg {
  width: 56px;
  height: 56px;
  background: rgba(26, 24, 22, 0.08);
  mix-blend-mode: multiply;
}

.cursor-dot.invert {
  background: var(--cream);
}

@media (max-width: 968px) {
  .cursor-dot {
    display: none;
  }
}

body.no-cursor {
  cursor: none;
}

@media (max-width: 968px) {
  body.no-cursor {
    cursor: auto;
  }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--ink-soft);
}
