/* Corps & Sens — noir profond, or champagne, blanc cassé */
:root {
  --ink: #0d0b09;
  --deep: #14110d;
  --champagne: #C9A96E;
  --champagne-soft: rgba(201, 169, 110, .3);
  --gold-ink: #7a5f30;
  --paper: #F2EDE4;
  --smoke: #a89f90;
  --smoke-ink: #5d564b;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 84px);
  --ease: cubic-bezier(.2, .8, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 1px solid var(--champagne); outline-offset: 4px; }
::selection { background: var(--champagne); color: var(--ink); }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.hp { position: absolute; left: -9999px; }

/* ——— Barre de navigation ——— */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--gutter);
  color: var(--paper);
  transition: color .5s ease, padding .5s var(--ease);
}
.bar::before {
  content: ""; position: absolute; inset: 0 0 -28px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--ink) 55%, rgba(13, 11, 9, 0));
  opacity: 0; transition: opacity .5s ease;
}
.bar.solid::before { opacity: 1; }
.bar.on-paper { color: var(--ink); }
.bar.on-paper::before { background: linear-gradient(var(--paper) 55%, rgba(242, 237, 228, 0)); }
.mark { font-family: var(--serif); font-size: 1.7rem; line-height: 1; letter-spacing: .005em; }
.mark i, .foot-mark i { font-style: italic; color: var(--champagne); }
.bar.on-paper .mark i { color: var(--gold-ink); }
.bar nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 44px); font-size: .9rem; font-weight: 400; letter-spacing: .02em; }
.bar nav a { position: relative; padding: 4px 0; }
.bar nav a:not(.bar-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.bar nav a:not(.bar-cta):hover::after { transform: scaleX(1); }
.bar-cta { border: 1px solid var(--champagne); padding: 10px 20px !important; transition: background .4s ease, color .4s ease; }
.bar-cta:hover { background: var(--champagne); color: var(--ink); }
.bar.on-paper .bar-cta { border-color: var(--gold-ink); }
.bar.on-paper .bar-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ——— Ouverture ——— */
.hero { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--ink); }
.hero.is-gone { visibility: hidden; }
.hero-inner-wrap { position: absolute; inset: 0; }

.hero-photo {
  position: absolute; z-index: 1;
  right: var(--gutter); top: 13vh; bottom: 9vh;
  width: min(30vw, 470px);
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transform-origin: 50% 30%; }
.js .hero-photo { animation: photo-in 1.9s var(--ease) .15s both; }
.js .hero-photo img { animation: photo-scale 3.4s var(--ease) .15s both; }
@keyframes photo-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes photo-scale { from { transform: scale(1.35); } to { transform: scale(1); } }

.hero-title {
  position: absolute; z-index: 2;
  left: var(--gutter); bottom: 11vh;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.3rem, 11.2vw, 11.6rem);
  line-height: .9;
  letter-spacing: -.012em;
  --track-from: .06em;
}
.hero-title .ln { display: block; white-space: nowrap; }
.hero-title .ln-2 { margin-left: clamp(0px, 13vw, 240px); }
.js .hero-title .ln { animation: settle 3.2s var(--ease) .4s both; }
@keyframes settle { from { letter-spacing: var(--track-from); } to { letter-spacing: -.012em; } }

/* Lettres masquées : montée depuis la ligne */
.w { display: inline-block; white-space: nowrap; }
.m { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em .01em .14em; margin: -.16em -.01em -.14em; }
.c { display: inline-block; }
.js .hero-title .c { transform: translateY(112%); animation: rise 1.5s var(--ease) both; animation-delay: calc(.55s + var(--i) * 48ms); }
@keyframes rise { from { transform: translateY(112%); } to { transform: none; } }

.hero-lede {
  position: absolute; z-index: 2; left: var(--gutter); top: 15vh;
  font-size: 1rem; line-height: 1.6; color: var(--smoke); font-weight: 300;
}
.hero-lede sup { font-size: .7em; line-height: 0; }
.hero-foot {
  position: absolute; z-index: 2; left: var(--gutter); bottom: 4.2vh;
  font-size: .85rem; color: var(--smoke); letter-spacing: .03em;
}
.js .hero-lede, .js .hero-foot { animation: fade 1.6s ease 2.3s both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ——— Page : glisse comme un rideau sur l'ouverture ——— */
.page { position: relative; z-index: 1; }
.stage { height: 100vh; }
.sec { position: relative; padding: clamp(96px, 15vh, 190px) 0; }
.paper { background: var(--paper); color: var(--ink); }
.ink { background: var(--ink); color: var(--paper); }
.deep { background: var(--deep); color: var(--paper); }
#philosophie { box-shadow: 0 -40px 80px rgba(0, 0, 0, .55); }

h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.7rem, 5.6vw, 5.4rem);
  line-height: 1; letter-spacing: -.012em;
}
h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.3vw, 2.2rem); line-height: 1.12; }
.paper p { color: #2b2620; }

/* Mots masqués pour les titres, révélés à l'entrée */
[data-words] .m { padding-top: .2em; margin-top: -.2em; }
.js [data-words] .c { transform: translateY(112%); transition: transform 1.25s var(--ease); transition-delay: calc(var(--i) * 34ms); }
.js [data-words].in .c { transform: none; }

/* Filets d'or qui se tracent */
.rule { display: block; height: 1px; background: var(--gold-ink); margin-bottom: 26px; }
.ink .rule, .deep .rule { background: var(--champagne); }
.js .rule { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.js .in .rule, .js .rule.in { transform: scaleX(1); }

/* Cadres photo qui s'ouvrent au défilement */
.frame { position: relative; overflow: hidden; background: var(--deep); }
.frame img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.js .frame[data-expand] { clip-path: inset(var(--cy, 0%) var(--cx, 0%) var(--cy, 0%) var(--cx, 0%)); }

/* ——— Philosophie ——— */
.phil-top { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); align-items: end; margin-bottom: clamp(80px, 13vh, 160px); }
.phil-statement { grid-column: 1 / span 7; font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1.04; align-self: start; padding-top: 6vh; }
.phil-figure { grid-column: 9 / span 4; aspect-ratio: 4 / 5; }
.phil-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 72px); }
.phil-grid h3 { margin-bottom: 14px; }
.phil-grid p { max-width: 36ch; }

/* ——— Prestations ——— */
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); align-items: end; margin-bottom: clamp(56px, 10vh, 120px); }
.sec-head h2 { grid-column: 1 / span 7; }
.sec-intro { grid-column: 9 / span 4; color: var(--smoke); max-width: 38ch; }
.sec-head-wide h2 { grid-column: 1 / span 8; }

.carte { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); align-items: start; }
.carte-visual { grid-column: 1 / span 4; position: sticky; top: 14vh; height: 72vh; }
.carte-stack { position: relative; width: 100%; height: 100%; overflow: hidden; }
.carte-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.1s ease, transform 1.8s var(--ease); }
.carte-stack img.is-on { opacity: 1; transform: none; }
.carte-list { grid-column: 6 / span 7; }
.group { padding-bottom: clamp(64px, 12vh, 140px); }
.group h3 { font-size: clamp(2.1rem, 3.4vw, 3.2rem); }
.group-note { color: var(--smoke); margin: 10px 0 34px; max-width: 46ch; }
.menu li {
  display: grid; grid-template-columns: 1fr auto 5.5rem; column-gap: 20px; align-items: baseline;
  padding: 17px 0; border-top: 1px solid rgba(201, 169, 110, .22);
  transition: color .4s ease, padding .5s var(--ease);
}
.menu li:last-child { border-bottom: 1px solid rgba(201, 169, 110, .22); }
.menu li:hover { color: var(--champagne); padding-left: 10px; }
.menu .n { font-size: 1.05rem; font-weight: 400; }
.menu .d { font-size: .9rem; color: var(--smoke); white-space: nowrap; }
.menu .p { font-family: var(--serif); font-size: 1.45rem; text-align: right; color: var(--champagne); white-space: nowrap; }
.carte-foot { color: var(--smoke); font-size: .9rem; max-width: 52ch; }

/* ——— Praticien ——— */
.prat { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); align-items: start; }
.prat-figure { grid-column: 1 / span 5; aspect-ratio: 3 / 4; }
.prat-body { grid-column: 7 / span 6; }
.prat-title { margin-top: 18px; color: var(--gold-ink) !important; font-weight: 400; }
.prat-lead { margin: 34px 0 52px; font-family: var(--serif); font-size: clamp(1.55rem, 2.2vw, 2.1rem); line-height: 1.32; max-width: 30em; color: var(--ink) !important; }
.parcours li { display: grid; grid-template-columns: 5.5rem 1fr; column-gap: 18px; padding: 18px 0; border-top: 1px solid rgba(13, 11, 9, .18); }
.parcours li:last-child { border-bottom: 1px solid rgba(13, 11, 9, .18); }
.parcours .y { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; color: var(--gold-ink); }
.parcours .t { max-width: 44ch; }
.prat-foot { margin-top: 34px; color: var(--smoke-ink) !important; max-width: 46ch; }

/* ——— Cabinet ——— */
.cab { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(40px, 8vh, 96px); align-items: start; }
.cab figcaption { margin-top: 14px; font-size: .9rem; color: var(--smoke); max-width: 34ch; }
.cab-a { grid-column: 1 / span 8; }
.cab-a .frame { aspect-ratio: 4 / 3; }
.cab-b { grid-column: 10 / span 3; margin-top: clamp(40px, 12vh, 150px); }
.cab-b .frame { aspect-ratio: 3 / 4; }
.cab-c { grid-column: 3 / span 7; }
.cab-c .frame { aspect-ratio: 3 / 2; }

/* ——— Rendez-vous ——— */
.rdv { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); align-items: start; }
.rdv-intro { grid-column: 1 / span 5; }
.rdv-intro h2 { font-size: clamp(2.5rem, 4.6vw, 4.5rem); margin-bottom: 30px; }
.rdv-intro > p { color: var(--smoke); max-width: 38ch; }
.infos { margin-top: 56px; display: grid; gap: 26px; }
.infos div { display: grid; grid-template-columns: 6rem 1fr; }
.infos dt { color: var(--champagne); font-weight: 400; }
.infos dd { color: var(--paper); }
.infos a { border-bottom: 1px solid var(--champagne-soft); transition: border-color .3s; }
.infos a:hover { border-color: var(--champagne); }

.form { grid-column: 7 / span 6; display: grid; gap: 30px; padding-top: 10px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; color: var(--paper);
  border: 0; border-bottom: 1px solid rgba(242, 237, 228, .28); border-radius: 0;
  padding: 26px 0 10px; font: inherit; font-size: 1.05rem; font-weight: 300; resize: none;
  transition: border-color .4s ease; appearance: none; -webkit-appearance: none;
}
.field select { background: transparent; cursor: pointer; }
.field select option { background: var(--deep); color: var(--paper); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--champagne); }
.field label {
  position: absolute; left: 0; top: 26px; color: var(--smoke); pointer-events: none;
  transition: transform .5s var(--ease), color .4s ease, font-size .5s var(--ease); transform-origin: left top;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label { transform: translateY(-24px) scale(.82); color: var(--champagne); }
.field:has(select)::after { content: ""; position: absolute; right: 4px; bottom: 18px; width: 7px; height: 7px; border-right: 1px solid var(--champagne); border-bottom: 1px solid var(--champagne); transform: rotate(45deg); pointer-events: none; }
.field.invalid input, .field.invalid select { border-bottom-color: #d98c7a; }

.form-end { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 12px; }
.btn {
  font: inherit; font-size: .95rem; font-weight: 400; letter-spacing: .03em; cursor: pointer;
  color: var(--ink); background: var(--champagne); border: 1px solid var(--champagne);
  padding: 17px 34px; transition: background .4s ease, color .4s ease;
}
.btn:hover { background: transparent; color: var(--champagne); }
.btn[disabled] { opacity: .5; cursor: progress; }
.form-note { font-size: .85rem; color: var(--smoke); max-width: 30ch; line-height: 1.5; }
.form-status { min-height: 1.6em; font-size: .95rem; color: var(--champagne); }
.form.is-sent > *:not(.form-status) { display: none; }
.form.is-sent .form-status { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.25; }

/* ——— Pied de page ——— */
.foot { background: var(--deep); border-top: 1px solid rgba(201, 169, 110, .2); padding: 64px 0 56px; }
.foot-in { display: grid; gap: 18px; }
.foot-mark { font-family: var(--serif); font-size: 2.2rem; line-height: 1; margin-bottom: 8px; }
.foot-small { font-size: .82rem; color: var(--smoke); max-width: 96ch; line-height: 1.6; }

/* ——— Tablette et mobile ——— */
@media (max-width: 1000px) {
  .bar nav a:not(.bar-cta) { display: none; }
  .hero-photo { width: 44vw; top: 11vh; bottom: 30vh; }
  .hero-title { bottom: 12vh; }
  .hero-title .ln-2 { margin-left: 8vw; }
  .phil-top { display: block; }
  .phil-statement { padding-top: 0; margin-bottom: 56px; }
  .phil-figure { width: 72%; margin-left: auto; }
  .phil-grid { grid-template-columns: 1fr; gap: 44px; }
  .sec-head { display: block; }
  .sec-head h2 { margin-bottom: 24px; }
  .carte { display: block; }
  .carte-visual { display: none; }
  .prat { display: block; }
  .prat-figure { width: 76%; margin-bottom: 56px; }
  .cab { display: block; }
  .cab figure { margin-bottom: 56px; }
  .cab-b { width: 62%; margin-left: auto; margin-top: 0; }
  .cab-c { width: 88%; }
  .rdv { display: block; }
  .rdv-intro { margin-bottom: 64px; }
  .row { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  .bar { padding: 18px var(--gutter); }
  .mark { font-size: 1.4rem; }
  .bar-cta { padding: 8px 14px !important; font-size: .82rem; }
  .hero-photo { right: 0; left: 34vw; top: 0; bottom: 42vh; width: auto; }
  .hero-lede { top: auto; bottom: 4vh; left: var(--gutter); }
  .hero-foot { display: none; }
  .hero-title { bottom: 17vh; --track-from: .02em; }
  .hero-title .ln-2 { margin-left: 0; }
  .menu li { grid-template-columns: 1fr auto; row-gap: 2px; }
  .menu .d { grid-column: 1; grid-row: 2; }
  .menu .p { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .parcours li { grid-template-columns: 4rem 1fr; }
  .infos div { grid-template-columns: 5rem 1fr; }
  .form-end { flex-direction: column; align-items: flex-start; }
}

/* ——— Mouvement réduit ——— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-photo, .js .hero-photo img, .js .hero-title .ln, .js .hero-title .c, .js .hero-lede, .js .hero-foot { animation: none !important; transform: none !important; opacity: 1 !important; }
  .js [data-words] .c { transform: none !important; transition: none !important; }
  .js .rule { transform: none !important; transition: none !important; }
  .js .frame[data-expand] { clip-path: none !important; }
  .carte-stack img { transition: opacity .3s ease; transform: none !important; }
}
