@font-face { font-family: Manrope; src: url(manrope-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url(manrope-semibold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Cormorant; src: url(cormorant-italic.woff2) format("woff2"); font-style: italic; font-display: swap; }

/* Transitions fluides inter-pages natives (Chrome / Edge View Transitions) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.3s cubic-bezier(0.16, 1, 0.3, 1) both fade-out; }
::view-transition-new(root) { animation: 0.35s cubic-bezier(0.16, 1, 0.3, 1) both fade-in; }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

  :root {
    --paper: #F6F4EF;
    --paper-2: #ECE8E0;
    --ink: #16140F;
    --ink-2: #48443D;
    --ink-3: #695f50;
    --line: rgba(22, 20, 15, 0.1);
    --night: #0E0D0B;
    --gold: #C9A46A;
    --sans: Manrope, system-ui, sans-serif;
    --serif: Cormorant, Georgia, serif;
    --mono: ui-monospace, monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  img { display: block; max-width: 100%; }
  a { color: inherit; }

  /* Navigation decoupled architecture */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px clamp(18px, 4vw, 48px);
    pointer-events: none;
    white-space: nowrap;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  /* 1. ARKATHEON — FIXE EN HAUT À GAUCHE */
  .nav-brand {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 18px;
    border-radius: 100px;
    font-weight: 600;
    letter-spacing: 0.12em;
    font-size: 13px;
    text-decoration: none;
    color: #F6F4EF;
    transition: color .25s ease;
  }
  .nav-brand:hover { color: #e9d6b4; }
  .brand-mark { color: var(--gold); font-size: 16px; flex-shrink: 0; }

  /* 2. CAPSULE DE NAVIGATION CENTRÉE (GLASS TABS) */
  .nav-links {
    pointer-events: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    border-radius: 100px;
    background: rgba(14, 13, 11, 0.65);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #F6F4EF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  }
  .nav-links a {
    text-decoration: none;
    opacity: .75;
    padding: 7px 15px;
    font-size: 13.5px;
    border-radius: 100px;
    transition: opacity .2s ease, color .2s ease;
  }
  .nav-links a:hover,
  .nav-links a[aria-current] {
    opacity: 1;
    text-decoration: none;
  }

  /* 3. BOUTON D'ACTION (CTA) FIXE EN HAUT À DROITE */
  .nav-cta {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 100px;
    background: #F6F4EF;
    color: var(--ink);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    transition: transform .2s var(--ease), background .2s, color .2s;
  }
  .nav-cta:hover { transform: translateY(-1px); }

  .home .nav:not(.light) .nav-cta {
    background: transparent;
    color: #f4e3ca;
    box-shadow: inset 0 0 0 1px #d4b68d99;
  }
  .home .nav:not(.light) .nav-cta:hover,
  .home .nav:not(.light) .nav-cta:focus-visible {
    background: #d4b68d24;
  }

  /* 4. ÉTAT LIGHT (SUR CONTENU CLAIR OU PAGES INTÉRIEURES) */
  .nav.light .nav-brand,
  .interior .nav .nav-brand { color: var(--ink); }

  .nav.light .nav-links,
  .interior .nav .nav-links {
    background: rgba(246, 244, 239, 0.85);
    border-color: rgba(22, 20, 15, 0.12);
    color: var(--ink);
    box-shadow: 0 10px 30px rgba(22, 20, 15, 0.08);
  }

  .nav.light .nav-cta,
  .interior .nav .nav-cta {
    background: var(--night);
    color: var(--paper);
    box-shadow: 0 10px 30px rgba(22, 20, 15, 0.12);
  }

  @media (max-width: 820px) {
    .nav {
      padding: 14px 16px;
    }
    .nav-brand {
      padding: 8px 14px;
      font-size: 12px;
    }
    .nav-links {
      position: static;
      transform: none;
      gap: 2px;
      padding: 3px 5px;
    }
    .nav-links a {
      padding: 6px 10px;
      font-size: 12px;
    }
    .nav-cta {
      padding: 8px 14px;
      font-size: 12px;
    }
    .wide { display: none; }
    .short { display: inline; }
  }

  @media (max-width: 580px) {
    .nav {
      flex-wrap: wrap;
      gap: 10px;
      justify-content: space-between;
    }
    .nav-links {
      order: 3;
      width: 100%;
      justify-content: center;
      margin-top: 2px;
    }
  }
html { scroll-padding-top: 94px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #a87436; outline-offset: 4px; }
.skip {
  position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-150%);
  padding: 10px 16px; background: var(--paper); color: var(--ink);
}
.skip:focus { transform: none; }
.short { display: none; }

.wrap { width: min(100%, 1280px); margin-inline: auto; padding-inline: clamp(20px, 5vw, 68px); }
.page { padding-block: clamp(125px, 14vw, 190px) clamp(76px, 10vw, 130px); }
.page-head { margin-bottom: clamp(38px, 6vw, 76px); }
.page h1 { max-width: 16ch; font-size: clamp(48px, 7vw, 104px); line-height: .99; letter-spacing: -.055em; }
.page-lead { max-width: 53ch; margin-top: 24px; color: var(--ink-2); font-size: clamp(16px, 1.6vw, 20px); }
.sec-label { color: var(--ink-3); font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .13em; margin-bottom: 14px; }
h2 { font-size: clamp(30px, 4vw, 58px); line-height: 1.03; letter-spacing: -.04em; }
h1 em, h2 em { font-family: var(--serif); font-weight: 400; color: #765a33; }

.btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font-size: 14px; font-weight: 600; padding: 13px 22px; min-height: 46px; border-radius: 100px;
  transition: transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-dark { background: var(--night); color: var(--paper); }
.end-cta { margin-top: 30px; }

.section { padding-block: clamp(64px, 9vw, 120px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 28px; flex-wrap: wrap; margin-bottom: 30px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2.2vw, 28px); }
.feature { text-decoration: none; min-width: 0; }
.feature .work-shot { border-radius: 14px; }
.feature:hover img { transform: scale(1.035); }
.feature-copy { padding: 13px 0 0; }
.feature-copy h3 { font-size: clamp(17px, 1.8vw, 22px); letter-spacing: -.03em; }
.feature-copy p { color: var(--ink-2); font-size: 14px; margin-top: 5px; }
.home-note { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; align-items: end; padding-bottom: clamp(65px, 9vw, 110px); }
.home-note p:not(.sec-label) { max-width: 45ch; color: var(--ink-2); }

.works-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-btn {
  padding: 8px 14px; min-height: 42px; border: 1px solid var(--line); border-radius: 30px;
  background: white; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--night); color: var(--paper); }
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.work { border-radius: 18px; background: #fffdf9; border: 1px solid var(--line); overflow: hidden; }
.work-trigger { display: block; text-decoration: none; }
.work-trigger:focus-visible { outline-offset: -4px; }
.work-shot { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); position: relative; }
  .work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.1s var(--ease); }
  .work:hover .work-shot img { transform: scale(1.035); }
  .work-shot-badge {
    position: absolute; top: 12px; left: 12px; background: rgba(14, 13, 11, 0.75);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    color: #F6F4EF; font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
.work-meta { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: clamp(16px, 2vw, 24px); }
.work-meta h2 { font-size: clamp(19px, 2.2vw, 26px); letter-spacing: -.025em; }
.work-meta p { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.work-plus {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 20px; transition: transform .45s var(--ease), background .3s, color .3s;
}
.work:hover .work-plus, .work:focus-visible .work-plus { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.visit { display: inline-block; margin-top: 14px; font-size: 14px; text-underline-offset: 4px; font-weight: 600; }
.visit:hover { color: #765a33; }

.editorial-row {
  display: grid; grid-template-columns: 60px minmax(170px, 1fr) 1.3fr; gap: 16px 26px;
  align-items: start; padding-block: clamp(23px, 4vw, 42px); border-block-start: 1px solid var(--line);
}
.editorial-row:last-of-type { border-block-end: 1px solid var(--line); }
.editorial-row .index { font-family: var(--mono); color: var(--ink-3); font-size: 13px; }
.editorial-row h2 { font-size: clamp(22px, 3vw, 36px); }
.editorial-row p { max-width: 52ch; color: var(--ink-2); }

.contact-panel {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 42px; align-items: end;
  background: radial-gradient(ellipse at 85% 100%, #382a19, var(--night) 68%);
  border-radius: 24px; color: var(--paper); padding: clamp(28px, 6vw, 85px);
}
.contact-panel h1 em, .contact-panel .sec-label { color: #e9d6b4; }
.contact-panel .page-lead, .contact-panel .address { color: #e1d9cc; }
.footer {
  display: flex; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap;
  padding-block: 25px 32px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px;
}
.footer a { font-weight: 600; text-underline-offset: 4px; }

@keyframes reveal { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: no-preference) {
  .interior .page:not(.case-page), .case-head { animation: reveal .26s var(--ease) both; }
}
@media (max-width: 720px) {
  .nav { inset-inline: 12px; gap: 0 12px; padding: 5px 12px; grid-template-columns: 1fr auto; }
  .nav-brand { letter-spacing: .03em; gap: 4px; font-size: 12px; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: clamp(14px, 5vw, 36px); font-size: 13px; }
  html { scroll-padding-top: 118px; }
  .nav-cta { grid-column: 2; grid-row: 1; font-size: 12px; padding: 8px 10px; }
  .wide { display: none; }
  .short { display: inline; }
  .features, .works, .home-note, .contact-panel { grid-template-columns: 1fr; }
  .features { gap: 28px; }
  .editorial-row { grid-template-columns: 24px 1fr; gap: 9px 12px; }
  .editorial-row > :last-child { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}

.brand-mark { display: block; flex: none; width: 25px; height: 25px; }
.project-feature {
  display: grid; grid-template-columns: 1.55fr 1fr; align-items: center;
  background: #181612; color: var(--paper); border-radius: 20px; overflow: hidden;
}
.project-feature-image { display: block; background: #10131a; }
.project-feature-image img { width: 100%; height: auto; }
.project-feature-copy { padding: clamp(22px, 5vw, 58px); }
.project-feature-copy .sec-label { color: #e6c79b; }
.project-feature-copy h3 { font-size: clamp(36px, 5vw, 76px); line-height: 1; letter-spacing: -.06em; }
.project-feature-copy p:not(.sec-label) { margin-top: 14px; color: #e1d9cc; max-width: 36ch; }
.project-feature-copy .visit:hover, .trace-demo a:not(.btn):hover { color: #e6c79b; }
.home-features { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 26px; }
.home-features .work-shot { aspect-ratio: 16 / 9; }
.home-note { padding-bottom: 0; }
.home-cta {
  padding-bottom: clamp(64px, 9vw, 115px);
  display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 24px;
}
.offer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.offer-links a {
  display: grid; grid-template-columns: 32px 1fr auto; gap: 4px 10px;
  border-block-start: 1px solid var(--line); padding: 18px 0; text-decoration: none;
}
.offer-links a::after { content: "↗"; grid-column: 3; grid-row: 1; }
.offer-links span { font: 12px/2 var(--mono); color: var(--ink-3); }
.offer-links strong { font-size: clamp(15px, 2vw, 22px); }
.offer-links small { grid-column: 2; color: var(--ink-2); font-size: 14px; }
.offer-links a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.service-contact { margin-left: 18px; }

.trace-demo { margin-top: clamp(64px, 9vw, 120px); padding-block: clamp(48px, 7vw, 90px); background: #161411; color: var(--paper); }
.trace-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(28px, 5vw, 64px); }
.trace-intro .sec-label, .trace-intro em { color: #e6c79b; }
.trace-intro > p:not(.sec-label) { margin-top: 15px; max-width: 34ch; color: #e1d9cc; }
.trace-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 22px; font-size: 14px; }
.trace-console { border: 1px solid #7a6a54; background: #201d18; border-radius: 14px; min-width: 0; }
.trace-console-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 15px;
  padding: 14px 18px; border-bottom: 1px solid #5c503f; color: #e6c79b; font: 12px/1.5 var(--mono);
}
.trace-console svg { display: block; width: 100%; margin-top: 12px; }
.trace-console svg rect { fill: #2b261e; stroke: #84735a; }
.trace-console svg text { fill: #fff5e5; text-anchor: middle; font: 22px var(--sans); }
.trace-guide { stroke: #96856f; stroke-dasharray: 4 7; }
.trace-ray { stroke: #f0ca92; stroke-width: 4; }
.trace-ray-off { visibility: hidden; }
.trace-readout { padding: 0 18px 16px; min-height: 118px; }
.trace-readout h3 { font-size: clamp(19px, 2.5vw, 28px); overflow-wrap: anywhere; }
.trace-readout p { color: #e1d9cc; font-size: 14px; }
.trace-readout .trace-time { color: #f0ca92; font: 12px/1.6 var(--mono); }
.trace-steps { display: flex; flex-wrap: wrap; gap: 8px; padding: 13px 18px; border-top: 1px solid #5c503f; }
.trace-steps button { min-height: 42px; padding: 7px 10px; border-radius: 6px; background: transparent; color: #f6e4cc; border: 1px solid #84735a; font: 12px var(--mono); cursor: pointer; }
.trace-steps button[aria-pressed="true"] { background: #f0ca92; color: #23170f; }
@media (prefers-reduced-motion: no-preference) {
  .trace-console [data-trace-ray]:not(.trace-ray-off) { animation: reveal .3s var(--ease) both; }
}

.case-page .back-link { display: inline-block; font-size: 14px; text-underline-offset: 4px; margin-bottom: 24px; }
.case-head { margin-bottom: clamp(25px, 5vw, 56px); }
.case-page h1 { max-width: 19ch; overflow-wrap: anywhere; font-size: clamp(40px, 7vw, 94px); }
.action-row, .case-next { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 20px; }
.action-row .visit, .case-next .visit { margin-top: 0; }
.case-cover img, .case-gallery img { width: 100%; border-radius: 12px; height: auto; }
.case-page figcaption { padding-block: 7px; color: var(--ink-3); font-size: 13px; }
.case-story { margin-block: clamp(24px, 5vw, 60px); padding-block: 22px; border-block: 1px solid var(--line); }
.case-story dl, .case-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.case-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-story dt { font-weight: 600; margin-bottom: 7px; }
.case-story dd { color: var(--ink-2); }
.case-next { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 32px; }
.studio-faq { margin-top: clamp(50px, 8vw, 90px); max-width: 780px; }
.studio-faq h2 { margin-bottom: 24px; }
.studio-faq details { padding-block: 13px; border-block-start: 1px solid var(--line); }
.studio-faq summary { cursor: pointer; font-weight: 600; }
.studio-faq details p { padding: 10px 0 0 18px; max-width: 62ch; color: var(--ink-2); }

.contact-panel { align-items: start; grid-template-columns: 1fr 1fr; }
.contact-panel .visit:hover { color: #e6c79b; }
.project-form { display: grid; gap: 9px; min-width: 0; }
.project-form label { font-weight: 600; color: #f6f4ef; }
.project-form select, .project-form textarea {
  width: 100%; border: 1px solid #aa9c86; border-radius: 7px;
  background: var(--paper); color: var(--ink); font: inherit; padding: 10px 11px;
}
.project-form textarea { resize: vertical; }
.project-form p { color: #e1d9cc; font-size: 13px; }
.project-form .btn { justify-self: start; margin-top: 4px; border: 0; font-family: inherit; cursor: pointer; }
.contact-reference { border-left: 2px solid #d7ab73; padding-left: 8px; }

@media (max-width: 780px) {
  .project-feature, .trace-grid, .case-story dl, .contact-panel { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .home-features, .offer-links, .case-gallery { grid-template-columns: 1fr; }
  .service-contact { display: table; margin-left: 0; }
  .brand-mark { width: 19px; height: 19px; }
}
@media (max-width: 360px) {
  .brand-mark { display: none; }
}

.case-cover > a { display: block; }
.case-cover img { transform-origin: top left; }
.case-page .trace-demo { border-radius: 16px; }
.case-gallery-title { margin-block: 28px 20px; }
.studio-example { margin-block-start: 48px; padding: clamp(20px, 4vw, 42px); border-radius: 16px; background: var(--paper-2); }
.studio-example h2 { font-size: clamp(27px, 4vw, 45px); }
.studio-example > p:not(.sec-label) { margin-top: 10px; max-width: 56ch; }
