@import url('./design/tokens.css');

/* A native sticky scene: the page itself never moves or changes height. */
.intro-stage { display: none; }
.intro-enabled .intro-stage { display: block; position: relative; height: 240svh; z-index: 2; pointer-events: none; }
.brand-intro { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.intro-scenery { position: absolute; inset: 0; display: grid; place-items: center; padding: 4vw; background: var(--color-void-canvas); color: var(--color-bone-white); opacity: var(--intro-opacity, 1); }
.intro-scenery span { font-size: clamp(48px, 10vw, 160px); font-weight: 700; line-height: .9; letter-spacing: -.08em; }
.intro-scenery i { font-family: var(--font-editorialnew); font-size: .45em; font-weight: 300; }
.intro-frost { position: absolute; inset: 0; background: #ffffff; -webkit-backdrop-filter: blur(var(--intro-blur,24px)); backdrop-filter: blur(var(--intro-blur,24px)); opacity: var(--intro-opacity,1); }
.intro-logo { position: relative; display: block; width: min(90vw,1320px); height: auto; transform-origin: 50% 48%; transform: scale(var(--intro-scale,1)); opacity: var(--intro-logo-opacity,1); }
.intro-continue { position: absolute; bottom: 8svh; left: 50%; transform: translateX(-50%); border: 0; border-bottom: 1px solid currentColor; background: transparent; color: #080808; font: inherit; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 16px 8px; cursor: pointer; pointer-events: auto; opacity: var(--intro-logo-opacity,1); }
.intro-continue:focus-visible { outline: 2px solid #080808; outline-offset: 5px; }
.intro-complete .intro-continue { visibility: hidden; pointer-events: none; }
.intro-enabled .site-content { margin-top: -100svh; }
@media (prefers-reduced-motion: reduce) { .intro-enabled .intro-stage { display: none; } .intro-enabled .site-content { margin-top: 0; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--color-void-canvas); color: var(--color-bone-white); font-family: var(--font-kmr-waldenburg); font-size: var(--text-body); line-height: var(--leading-body); letter-spacing: var(--tracking-body); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 7px; }
a span { display: inline-block; transition: transform .2s ease; }
a:hover span { transform: translate(3px, -3px); }
.skip { position: absolute; top: -100px; left: 24px; padding: 12px; background: var(--color-linen); color: var(--color-void-canvas); z-index: 10; }
.skip:focus { top: 16px; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 32px 4vw; }
.wordmark { font-size: 32px; font-weight: 700; letter-spacing: -.08em; line-height: 1; }
.wordmark span { font-size: 12px; letter-spacing: 0; vertical-align: top; margin-left: 5px; }
nav { display: flex; gap: 32px; }
nav a, .eyebrow, .outlined, .text-link { font-size: 12px; text-transform: uppercase; letter-spacing: .071em; }
nav a { border-bottom: 1px solid transparent; padding: 8px 0; }
nav a:hover { border-color: var(--color-iron); }
.outlined { border: 1px solid var(--color-ash); border-radius: var(--radius-buttons); padding: 12px 24px; display: flex; gap: 24px; }
.hero { position: relative; overflow: hidden; padding: 64px 4vw 32px; min-height: min(860px, 90svh); display: flex; flex-direction: column; justify-content: center; }
.hero-label { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; }
.dot { display: inline-block; height: 16px; width: 16px; border-radius: 50%; background: var(--color-brand-accent); flex-shrink: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--color-bone-white); }
.title-accent { color: var(--color-kochi); }
h1 { position: relative; z-index: 1; font-size: clamp(62px, 11.1vw, var(--text-display-xl)); letter-spacing: -.08em; line-height: var(--leading-display-xl); margin-bottom: 48px; font-weight: 700; }
em { font-family: var(--font-editorialnew); font-weight: var(--font-weight-light); letter-spacing: -.055em; text-transform: none; }
h1 em { font-size: clamp(24px, 2.92vw, var(--text-heading)); margin-right: .12em; }
.second-line { display: block; padding-left: 9vw; }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; position: relative; z-index: 1; gap: 24px; }
.hero-bottom p, .contact-bottom > p { color: var(--color-ash); font-size: 14px; margin-bottom: 0; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; padding: var(--spacing-32) var(--spacing-8); }
.text-link span { font-size: 24px; }
.hero-mark {
  position: absolute; right: -2vw; top: -12%; width: min(45vw, 620px); aspect-ratio: 1024 / 1536;
  background: var(--color-croco-ink); opacity: 1; pointer-events: none; z-index: 0;
  -webkit-mask: url('./assets/croco-brush-mask.svg') center / contain no-repeat;
  mask: url('./assets/croco-brush-mask.svg') center / contain no-repeat;
}
.hero-label, .hero-index { position: relative; z-index: 1; }

.hero-index { margin-top: 72px; color: var(--color-pebble); }
.section { padding: var(--section-gap) 4vw; }
.section-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.section-top p { margin: 0; }
.work { border-top: 1px solid var(--color-iron); }
h2 { font-size: clamp(48px, 5.56vw, var(--text-display)); line-height: var(--leading-display); letter-spacing: -.075em; margin-bottom: 32px; }
.section-intro { color: var(--color-ash); max-width: 570px; font-size: 14px; margin-bottom: 48px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--element-gap); }
figure { margin: 0; min-width: 0; }
.art { aspect-ratio: 4 / 5; position: relative; overflow: hidden; }
.art svg { width: 100%; height: 100%; display: block; }
.art-floral { background: var(--color-linen); color: var(--color-void-canvas); }
.art-orbit { background: var(--color-charcoal-plate); color: var(--color-ash); }
.art-letter { background: var(--color-smoke-plate); color: var(--color-linen); display: grid; place-items: center; }
.art-letter > span:first-child { font-family: var(--font-editorialnew); font-style: italic; font-size: clamp(140px, 28vw, 450px); line-height: .8; padding-bottom: 12%; }
.art-number { position: absolute; left: 20px; bottom: 16px; font-size: 12px; }
figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--color-iron); }
figcaption h3 { font-size: 20px; letter-spacing: -.04em; font-weight: 400; margin: 0; }
figcaption > span { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--color-pebble); text-align: right; }
.approach { background: var(--color-charcoal-plate); color: var(--color-bone-white); }
.approach > .eyebrow { margin-bottom: 64px; }
.approach-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10vw; }
.approach-grid > div { max-width: 460px; padding-top: 8px; }
.approach-grid p { font-size: 14px; }
.approach-grid .lead { font-size: 24px; letter-spacing: -.04em; line-height: 1.2; }
.contact h2 { font-size: clamp(64px, 11.1vw, var(--text-display-xl)); }
.contact-bottom { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; margin-top: 48px; }
.contact-note { border: 1px solid var(--color-brand-accent); border-radius: var(--radius-cards); padding: var(--spacing-24); max-width: 420px; justify-self: end; }
.contact-note p { font-size: 14px; margin: 12px 0 0; color: var(--color-ash); }
footer { background: var(--color-charcoal-plate); padding: 48px 4vw; display: flex; gap: 40px; align-items: center; justify-content: space-between; }
footer p { font-size: 12px; max-width: 330px; color: var(--color-pebble); margin: 0; }
@media (min-width: 1600px) { .hero { min-height: 860px; } }
@media (max-width: 900px) { .header { flex-wrap: wrap; } .header > .outlined { display: none; } .gallery { gap: 16px; } figcaption { align-items: flex-start; flex-direction: column; } .approach-grid { gap: 48px; } footer { flex-wrap: wrap; } }
@media (max-width: 600px) {
  .header { padding: 24px 6vw; gap: 20px; } .wordmark { font-size: 28px; } nav { gap: 16px; } nav a { font-size: 10px; }
  .hero { padding: 48px 6vw 24px; min-height: 650px; } .hero-label { margin-bottom: 56px; } h1 { font-size: 12vw; margin-bottom: 48px; } .second-line { padding-left: 0; } .hero-mark { width: min(90vw, 440px); right: -60px; top: 6%; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 24px; }
.hero-index { margin-top: 48px; font-size: 10px; }
  .section { padding: 56px 6vw; } .section-top { align-items: flex-start; margin-bottom: 32px; } .section-top > span.eyebrow { max-width: 120px; text-align: right; } h2 { font-size: 12vw; }
  .gallery, .approach-grid, .contact-bottom { grid-template-columns: 1fr; } .gallery { gap: 32px; } .art { aspect-ratio: 1 / 1; } .art-letter > span:first-child { font-size: 90vw; } figcaption { flex-direction: row; align-items: baseline; }
  .approach > .eyebrow { margin-bottom: 40px; } .approach-grid { gap: 8px; } .contact h2 { font-size: 16vw; } .contact-bottom { gap: 32px; margin-top: 32px; } .contact-note { justify-self: stretch; max-width: none; }
  footer { padding: 40px 6vw; gap: 24px; } footer p { flex-basis: 100%; order: 3; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } a span { transition: none; } }

/* Visuels originaux : planches entières et photographies monochromes. */
.site-content { position: relative; }
.nav-logo { display: block; width: 140px; height: auto; filter: invert(1); mix-blend-mode: screen; }
.flash-link { display: block; background: var(--color-linen); }
.flash-link img { display: block; width: 100%; height: auto; }
.flash-link:focus-visible { outline-offset: 5px; }
.artist-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 7vw; align-items: center; }
.artist-portrait { width: 100%; height: auto; display: block; filter: grayscale(1); }
.artist-copy .approach-grid { display: block; }
.artist-copy .approach-grid > div { max-width: 520px; }
.artist-copy h2 { margin-bottom: 40px; }
.session-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spacing-24); }
.session-gallery img { width: 100%; height: auto; display: block; filter: grayscale(1); }
.session-gallery figure:nth-child(3n + 2) { padding-top: 64px; }
.session-gallery figcaption { padding: 12px 0; }
.session-gallery figcaption span { font-size: 11px; }
@media (max-width: 900px) { .session-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .session-gallery figure:nth-child(3n + 2) { padding-top: 0; } }
@media (max-width: 600px) {
  .header { align-items: center; } .nav-logo { width: 105px; } nav { gap: 12px; flex-wrap: wrap; }
  .artist-layout { grid-template-columns: 1fr; gap: 40px; } .artist-portrait { max-height: 75svh; object-fit: contain; object-position: left; }
  .session-gallery { gap: 24px 16px; } .session-gallery figure:nth-child(even) { padding-top: 32px; }
  .intro-continue { font-size: 10px; white-space: nowrap; }
}

/* Progressive image entrances, independent of layout and scroll direction. */
.media-reveal { display: block; position: relative; overflow: hidden; }
.motion-enabled .media-reveal { opacity: 0; translate: 0 64px; clip-path: inset(100% 0 0 0); transition: opacity .8s ease, translate .95s cubic-bezier(.2,.7,.2,1), clip-path .95s cubic-bezier(.2,.7,.2,1); }
.motion-enabled .media-reveal.is-visible { opacity: 1; translate: 0 0; clip-path: inset(0); }
.media-reveal:focus-visible, .media-reveal:focus-within { opacity: 1; translate: 0 0; clip-path: inset(0); }
[data-photo-motion="photo"] img { transform: scale(1.22); transform-origin: center; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
[data-photo-motion="photo"].is-visible img { transform: scale(var(--photo-zoom,1)); }
[data-photo-motion="sheet"] img { transform: scale(.88); transform-origin: center; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
[data-photo-motion="sheet"].is-visible img { transform: scale(var(--sheet-zoom,1)); }
.motion-enabled figure:has(.media-reveal) figcaption { opacity: 0; translate: 0 10px; transition: opacity .6s ease .2s, translate .6s ease .2s; }
.motion-enabled figure:has(.media-reveal.is-visible) figcaption { opacity: 1; translate: 0 0; }
.portrait-frame { align-self: start; }
.session-frame { background: var(--color-charcoal-plate); }
@media (prefers-reduced-motion: reduce) {
  .motion-enabled .media-reveal { opacity: 1; translate: none; clip-path: none; transition: none; }
  [data-photo-motion] img, [data-photo-motion].is-visible img { transform: none; transition: none; }
  .motion-enabled figure:has(.media-reveal) figcaption { opacity: 1; translate: none; transition: none; }
}

/* Trois vues couleur du salon, alignées sur une même rangée. */
.salon { border-top: 1px solid var(--color-iron); }
.salon-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spacing-24); align-items: start; }
.salon-gallery figure { min-width: 0; }
.salon-frame { display: block; aspect-ratio: 1; background: var(--color-charcoal-plate); }
.salon-frame img { width: 100%; height: auto; display: block; filter: none; }
.salon-gallery figcaption { padding: 16px 0; }
@media (max-width: 900px) { .salon-gallery { gap: var(--spacing-16); } .salon-gallery figcaption { flex-direction: column; } }
@media (max-width: 600px) { .salon-gallery { grid-template-columns: 1fr; gap: var(--spacing-32); } .salon-gallery figcaption { flex-direction: row; } }

/* Le rendez-vous reste accessible pendant tout le parcours. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.has-booking-float { padding-bottom: 128px; }
.booking-float { position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 50; display: flex; align-items: center; gap: 16px; width: 330px; max-width: calc(100vw - 32px); padding: 20px; background: rgba(8,8,8,.96); color: var(--color-bone-white); border: 1px solid var(--color-kochi); border-radius: 12px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: translate .3s ease, border-color .3s; isolation: isolate; animation: booking-beacon 4s ease-in-out infinite; }
.booking-float:hover { translate: 0 -4px; border-color: #658d7d; }
.booking-float:hover span, .booking-teaser:hover span { transform: none; }
.booking-float svg, .booking-teaser svg, .flash-booking svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; flex-shrink: 0; }
.booking-float-icon { display: grid; place-items: center; width: 42px; height: 42px; background: var(--color-kochi); border-radius: 50%; flex-shrink: 0; }
.booking-float-copy { flex: 1; }
.booking-float-copy small { display: block; font-size: 10px; color: var(--color-ash); letter-spacing: .06em; margin-bottom: 4px; }
.booking-float-copy strong { display: block; font-size: 14px; font-weight: 400; }
.booking-float-arrow { transition: transform .3s; }
.booking-float:hover .booking-float-arrow { transform: translate(3px,-3px); }
.glow-surface { overflow: hidden; }
.glow-surface::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(180px circle at var(--glow-x,50%) var(--glow-y,50%), #2e544855, transparent 75%); transition: opacity .4s; pointer-events: none; }
.glow-surface:hover::before { opacity: 1; }
.booking-teaser { display: block; position: relative; isolation: isolate; padding: 32px; max-width: 460px; width: 100%; border-radius: 8px; transition: border-color .3s, translate .3s; background: var(--color-void-canvas); }
.booking-teaser:hover { border-color: #658d7d; translate: 0 -4px; }
.teaser-label { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; }
.booking-signal { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--color-kochi); box-shadow: 0 0 12px #2e544877; }
.booking-teaser h3 { font-size: 32px; font-weight: 700; letter-spacing: -.055em; line-height: 1.05; max-width: 300px; margin-bottom: 20px; }
.booking-teaser p { line-height: 1.65; }
.teaser-action { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--color-iron); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.teaser-action svg { transition: transform .3s; }
.booking-teaser:hover .teaser-action svg { transform: translate(3px,-3px); }
.flash-booking { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; text-transform: uppercase; letter-spacing: .07em; font-size: 10px; color: var(--color-ash); }
.flash-booking svg { width: 16px; height: 16px; }
.motion-enabled figure:has(.media-reveal:not(.is-visible)) .flash-booking { opacity: 0; }
.flash-booking { transition: opacity .6s; }
.cursor-croco { position: fixed; top: 10px; left: 12px; width: 44px; height: 34px; z-index: 1000; pointer-events: none; background: url('./assets/croco-cursor.svg') center / contain no-repeat; transform: translate3d(var(--cursor-x,0px),var(--cursor-y,0px),0) scale(var(--cursor-scale,1)); transform-origin: center; filter: drop-shadow(0 2px 5px #0008); transition: filter .2s ease; }
.cursor-croco[hidden] { display: none; }
.cursor-croco.is-interactive { --cursor-scale: 1.12; filter: drop-shadow(0 0 5px #2e5448aa); }
.cursor-croco.is-pressed { --cursor-scale: .88; }
@keyframes booking-beacon { 0%,100% { box-shadow: 0 0 0 0 #2e544800,0 8px 32px #0005; } 50% { box-shadow: 0 0 0 5px #2e54481c,0 8px 32px #0005; } }
@media (max-width: 600px) {
  .booking-float { right: 16px; left: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: auto; max-width: none; padding: 16px; }
  .booking-teaser { padding: 24px; }
  .has-booking-float { padding-bottom: 112px; }
}
@media (hover: none), (pointer: coarse) { .cursor-croco { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .booking-float, .booking-teaser, .booking-float *, .booking-teaser *, .glow-surface::before { animation: none; transition: none; }
  .cursor-croco { display: none; }
  .booking-float:hover, .booking-teaser:hover { translate: none; }
  .motion-enabled figure:has(.media-reveal:not(.is-visible)) .flash-booking { opacity: 1; }
}
