/* ==========================================================================
   Melanie Kathan — identité « L'encre et le sceau »
   Deux encres d'impression (bleu outremer / rouge vermillon) qui se
   superposent comme deux langues, un sceau de traductrice, une seule
   famille typographique (Archivo, de 62 % à 125 % de chasse).
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f5f5f1;
  --ink: #141418;
  --ink-2: #4b4b55;
  --line: #d9d9d2;
  --bleu: #2443c6;
  --rouge: #e5392b;
  --font: "Archivo", "Arial Narrow", Arial, sans-serif;
  --max: 1320px;
  --pad: clamp(18px, 4.2vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
/* paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 800; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--bleu); color: var(--paper); }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; }

.wrap { max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }

.skip {
  position: absolute; left: 10px; top: -80px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: var(--paper); text-decoration: none;
}
.skip:focus { top: 10px; }

/* Condensed display voice */
.cond {
  font-stretch: 62%;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.005em;
}
.wide { font-stretch: 125%; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.74rem; }
.bleu { color: var(--bleu); }
.rouge { color: var(--rouge); }

/* Bilingual signage: main language + other language underneath */
.sign { display: block; }
.sign-alt {
  display: block;
  margin-top: 0.35em;
  font-stretch: 100%;
  font-weight: 500;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.32em;
  line-height: 1.1;
  color: var(--rouge);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 15px 22px 14px;
  background: var(--bleu); color: #fff;
  font-stretch: 105%; font-weight: 600; font-size: 0.86rem;
  text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none;
  box-shadow: 3px 3px 0 var(--rouge);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--rouge); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--rouge); }
.btn svg { width: 16px; height: 16px; }
.btn--ink { background: var(--ink); box-shadow: 3px 3px 0 var(--bleu); }
.btn--ink:hover { box-shadow: 4px 4px 0 var(--bleu); }
.btn--paper { background: var(--paper); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn--paper:hover { box-shadow: 4px 4px 0 var(--ink); }

.textlink {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 5px; text-decoration-color: var(--rouge);
}
.textlink:hover { color: var(--rouge); }

/* ==========================================================================
   Top bar
   ========================================================================== */
.top { position: relative; z-index: 60; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 84px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { width: 40px; height: 40px; }
.logo b { font-stretch: 85%; font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav ul { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav ul a:hover { color: var(--bleu); }
.nav .nav-cta {
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  font-stretch: 112%; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.nav .nav-cta:hover { background: var(--bleu); }
.lang { display: flex; border: 2px solid var(--ink); font-stretch: 112%; font-weight: 700; font-size: 0.78rem; }
.lang a, .lang span { padding: 5px 9px; line-height: 1; }
.lang span { background: var(--ink); color: var(--paper); }
.lang a:hover { background: var(--rouge); color: #fff; }

.menu-btn {
  display: none; padding: 10px 14px; border: 2px solid var(--ink); background: none; color: var(--ink);
  font: inherit; font-stretch: 112%; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer;
}

@media (max-width: 960px) {
  .menu-btn { display: inline-block; position: relative; z-index: 2; }
  .menu-open .menu-btn { border-color: var(--paper); color: var(--paper); }
  .menu-open .logo { position: relative; z-index: 2; color: var(--paper); }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 36px;
    padding: 100px var(--pad) 40px;
    background: var(--bleu); color: var(--paper);
    visibility: hidden; opacity: 0; transition: opacity 0.2s, visibility 0s 0.2s;
  }
  .menu-open .nav { visibility: visible; opacity: 1; transition: opacity 0.2s; }
  .menu-open { overflow: hidden; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav ul a { font-stretch: 62%; font-weight: 700; font-size: clamp(2.2rem, 9vw, 3.4rem); text-transform: uppercase; line-height: 1; }
  .nav ul a:hover { color: var(--paper); text-decoration: underline; text-decoration-color: var(--rouge); }
  .nav .nav-cta { background: var(--rouge); color: #fff; font-size: 0.95rem; padding: 16px 20px; }
  .lang { border-color: var(--paper); }
  .lang span { background: var(--paper); color: var(--bleu); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: clamp(36px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero-name {
  position: relative;
  font-size: clamp(3.4rem, 11.5vw, 9.5rem);
  color: var(--bleu);
  line-height: 0.88;
  margin-left: -0.02em;
  max-width: 70%;
}
.hero-name span { display: block; }
.hero-name span + span { color: var(--ink); }
.hero-stamp {
  position: absolute;
  right: clamp(0px, 4vw, 80px);
  top: clamp(30px, 4vw, 60px);
  width: clamp(110px, 15vw, 200px);
  color: var(--rouge);
  transform: rotate(-14deg);
  mix-blend-mode: multiply;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 36px clamp(30px, 6vw, 90px);
  margin-top: clamp(34px, 5vw, 60px);
  padding-top: 26px;
  border-top: 2px solid var(--ink);
}
.hero-role { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1; }
.hero-role .sign-alt { font-size: 0.5em; margin-top: 0.5em; }
.hero-lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.45; color: var(--ink-2); max-width: 32em; }
.hero-lede strong { color: var(--ink); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 28px; }

/* ==========================================================================
   Generic section
   ========================================================================== */
.sec { padding: clamp(70px, 10vw, 140px) 0; position: relative; }
.sec-title { font-size: clamp(2.1rem, 4.4vw, 3.6rem); margin-bottom: clamp(32px, 4vw, 52px); }
.sec-title .sign-alt { font-size: 0.36em; }
.sec-intro { max-width: 36em; font-size: 1.1rem; color: var(--ink-2); margin-top: -18px; margin-bottom: clamp(36px, 5vw, 60px); }

/* ==========================================================================
   Pour qui (clients)
   ========================================================================== */
.clients { background: var(--bleu); color: var(--paper); }
.clients .sec-title .sign-alt { color: #ffb0a6; }
.clients-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--paper); }
.client { padding: 28px clamp(18px, 2.4vw, 34px) 34px 0; }
.client + .client { padding-left: clamp(18px, 2.4vw, 34px); border-left: 2px solid rgba(245, 245, 241, 0.35); }
.client .who { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.client .for { display: block; margin: 14px 0 18px; font-weight: 700; font-stretch: 112%; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: #ffb0a6; }
.client p { color: rgba(245, 245, 241, 0.86); }
.client ul li { padding: 9px 0; border-top: 1px solid rgba(245, 245, 241, 0.25); font-weight: 500; }
.client ul li::before { content: "→"; margin-right: 10px; color: #ffb0a6; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(50px, 7vw, 90px); background: var(--paper); color: var(--ink); }
.step { padding: 28px 28px 30px; position: relative; }
.step + .step { border-left: 2px dashed var(--line); }
.step .n { font-size: 2.6rem; color: var(--rouge); line-height: 0.8; }
.step h3 { margin: 16px 0 8px; font-stretch: 100%; font-size: 1.2rem; font-weight: 700; }
.step p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.steps-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 28px; border-top: 1px solid var(--line); }
.steps-cta p { margin: 0; font-weight: 600; font-size: 1.1rem; }

/* ==========================================================================
   Parallel text (about)
   ========================================================================== */
.parallel { border-top: 2px solid var(--ink); }
.parallel-head, .seg { display: grid; grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(16px, 3vw, 44px); }
.parallel-head { padding: 12px 0; border-bottom: 1px solid var(--ink); }
.parallel-head span:nth-child(2) { color: var(--bleu); }
.parallel-head span:nth-child(3) { color: var(--rouge); }
.seg { padding: 20px 0 22px; border-bottom: 1px solid var(--line); align-items: start; }
.seg-n { font-stretch: 125%; font-weight: 700; font-size: 0.78rem; color: var(--ink-2); padding-top: 6px; }
.seg-n::after { content: " ✓"; color: var(--bleu); }
.seg p { margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.4; font-weight: 400; }
.seg p:nth-of-type(1) { color: var(--bleu); }
.seg p:nth-of-type(2) { color: var(--ink); }
.parallel-note { margin-top: 18px; font-size: 0.92rem; color: var(--ink-2); font-style: italic; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(50px, 7vw, 90px); }
.fact { padding: 0 20px 0 0; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--line); }
.fact b { display: block; font-size: clamp(2.4rem, 4.2vw, 3.6rem); color: var(--bleu); }
.fact b small { font-size: 0.45em; color: var(--rouge); }
.fact span { display: block; margin-top: 10px; font-weight: 500; line-height: 1.35; }

/* ==========================================================================
   Domains
   ========================================================================== */
.domains li {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 10px clamp(20px, 4vw, 60px);
  align-items: end;
  padding: 18px 0 20px;
  border-top: 1px solid var(--line);
}
.domains li:first-child { border-top: 2px solid var(--ink); }
.domains li:last-child { border-bottom: 1px solid var(--line); }
.domains h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); transition: color 0.2s; }
.domains h3 .sign-alt { font-size: 0.42em; }
.domains li:hover h3 { color: var(--bleu); }
.domains p { margin: 0 0 6px; color: var(--ink-2); }
.services { margin-top: 34px; font-size: 1.05rem; }
.services b { font-stretch: 125%; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-right: 14px; }
.services span + span::before { content: " / "; color: var(--rouge); font-weight: 700; padding: 0 6px; }

/* ==========================================================================
   Projects as word-count bars
   ========================================================================== */
.bars li { padding: 20px 0 22px; border-top: 1px solid var(--line); }
.bars li:last-child { border-bottom: 1px solid var(--line); }
.bar-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; align-items: baseline; margin-bottom: 12px; }
.bar-top h3 { font-stretch: 100%; font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.3; max-width: 38em; }
.bar-top .tag { color: var(--rouge); }
.bar { display: flex; align-items: center; gap: 14px; }
.bar i {
  display: block; height: 18px; width: var(--w);
  background-color: var(--paper);
  background-image: radial-gradient(var(--bleu) 1.5px, transparent 1.7px);
  background-size: 6px 6px;
  border: 1.5px solid var(--bleu);
  transform-origin: left;
}
.js .bar i { transform: scaleX(0); transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.js .is-in .bar i { transform: scaleX(1); }
.bar b { font-size: 1.5rem; white-space: nowrap; color: var(--bleu); }
.bar b small { font-size: 0.5em; color: var(--ink-2); margin-left: 4px; }
.tools { margin-top: 44px; }
.tools h3 { margin-bottom: 14px; }
.tools-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.tools-grid li { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 0.2s; }
.tools-grid li:hover { background: #ebebe5; }
.tools-grid svg { width: 40px; height: 40px; margin-bottom: 10px; }
.tools-grid b { font-weight: 700; font-size: 1rem; }
.tools-grid span { font-size: 0.85rem; color: var(--ink-2); line-height: 1.35; }
@media (max-width: 960px) { .tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tools-grid li { padding: 14px; } }

/* ==========================================================================
   Journey — two shores of the Atlantic
   ========================================================================== */
.journey { background: #ecece6; }
.shores-head, .shore-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr); }
.shores-head { padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.shores-head span:first-child { color: var(--rouge); }
.shores-head span:last-child { color: var(--bleu); text-align: right; }
.shores-head span:nth-child(2) { text-align: center; color: var(--ink-2); }
.shores { position: relative; }
.shores::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 90px; transform: translateX(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='22'%3E%3Cpath d='M0 11c11.25 0 11.25-8 22.5-8S33.75 11 45 11s11.25-8 22.5-8S78.75 11 90 11' fill='none' stroke='%232443c6' stroke-opacity='.35' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 90px 22px;
}
.shore-row { position: relative; padding: 14px 0; }
.shore-row + .shore-row { border-top: 1px solid var(--line); }
.shore-row .card { grid-column: 1; text-align: right; padding-right: 22px; }
.shore-row.eu .card { grid-column: 3; text-align: left; padding: 0 0 0 22px; }
.shore-row::after {
  content: ""; position: absolute; top: 26px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: var(--rouge); box-shadow: 0 0 0 5px #ecece6;
}
.shore-row.eu::after { background: var(--bleu); }
.card .yr { font-stretch: 125%; font-weight: 700; font-size: 0.8rem; }
.card .place { display: block; margin: 6px 0 8px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.shore-row.na .place { color: var(--rouge); }
.shore-row.eu .place { color: var(--bleu); }
.card h3 { font-stretch: 100%; font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.card .org { margin: 2px 0 6px; font-style: italic; color: var(--ink-2); }
.card .org a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.card .org a:hover { text-decoration-color: var(--rouge); }
.card p:last-child { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
.shore-row.now .place::after { content: " ●"; font-size: 0.4em; vertical-align: 0.6em; color: var(--rouge); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--rouge); color: #fff; overflow: hidden; }
.contact-title { font-size: clamp(2.6rem, 6.5vw, 5.2rem); line-height: 0.9; }
.contact-title .sign-alt { color: var(--ink); font-size: 0.34em; margin-top: 0.4em; }
.contact-stamp { position: absolute; right: var(--pad); top: clamp(40px, 6vw, 80px); width: clamp(100px, 12vw, 160px); color: var(--paper); transform: rotate(9deg); opacity: 0.95; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px clamp(30px, 6vw, 90px); margin-top: clamp(40px, 6vw, 70px); padding-top: 28px; border-top: 2px solid var(--ink); }
.contact-grid > p { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.45; margin: 0; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.contact-actions .alt { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

.foot { background: var(--ink); color: #b9b9c2; font-size: 0.9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding-top: 24px; padding-bottom: 26px; }
.foot a { text-decoration: none; color: #fff; }
.foot a:hover { color: var(--rouge); }

/* Mobile sticky CTA */
.mcta { display: none; }
@media (max-width: 700px) {
  .mcta {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70;
    justify-content: center; padding: 16px; background: var(--bleu); color: #fff; text-decoration: none;
    font-stretch: 112%; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em;
    box-shadow: 4px 4px 0 var(--rouge);
    transform: translateY(140%); transition: transform 0.3s;
  }
  .mcta.is-on { transform: none; }
  .menu-open .mcta { display: none; }
  .foot .wrap { padding-bottom: 96px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .clients-grid { grid-template-columns: minmax(0, 1fr); }
  .client, .client + .client { padding: 26px 0 28px; border-left: 0; }
  .client + .client { border-top: 2px solid rgba(245, 245, 241, 0.35); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step + .step { border-left: 0; border-top: 2px dashed var(--line); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 0; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .domains li { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .parallel-head, .seg { grid-template-columns: minmax(0, 1fr); }
  .parallel-head { display: none; }
  .seg p:nth-of-type(1) { margin-bottom: 8px; }
  .seg p:nth-of-type(1)::before { content: "FR — "; font-stretch: 125%; font-size: 0.6em; font-weight: 700; }
  .seg p:nth-of-type(2)::before { content: "EN — "; font-stretch: 125%; font-size: 0.6em; font-weight: 700; color: var(--rouge); }
  .seg-n { padding: 0 0 6px; }
  .shores-head { display: none; }
  .shores::before { left: 8px; width: 2px; transform: none; background: var(--line); }
  .shore-row, .shore-row.eu { grid-template-columns: minmax(0, 1fr); padding-left: 34px; }
  .shore-row .card, .shore-row.eu .card { grid-column: 1; text-align: left; padding: 0; }
  .shore-row::after { left: 9px; top: 22px; }
  .card .yr::after { content: " · " attr(data-shore); color: var(--ink-2); }
  .bar b { font-size: 1.6rem; }
  .btn { width: 100%; justify-content: center; }
}

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s, transform 0.6s; }
.js .reveal.is-in { opacity: 1; transform: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 700px) {
  .hero-name { font-size: 19vw; max-width: none; }
  .hero-stamp { position: relative; right: auto; top: auto; width: 100px; margin: -40px 0 -46px auto; }
  .contact { padding-top: 130px; }
  .contact-stamp { top: 24px; width: 90px; }
}
