/* Style 1 : élégant. Pierre froide, encre bleu nuit, laiton. Tout le site suit la lumière choisie. */

@font-face { font-family: "Cormorant"; src: url("/assets/fonts/cormorant-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/assets/fonts/cormorant-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root { --laiton: #94743f; --rail: 232px; --air: clamp(20px, 6vw, 96px); --lent: 1.6s cubic-bezier(.3, 0, .2, 1); }

.frame {
  --bg: #eff0ec; --fg: #1d2230; --soft: #59606e; --hair: #cfd2cc; --band: #dfe2dc;
  --wall: #dcdfd9; --shade: #c6cbc5; --deep: #a9afab; --floor: #b6b5ab; --light: #f7f6ee; --sky: #fdfbf0; --sunlight: #f8f2dc; --lamp: 0; --sun-o: 1; --sun-x: 0;
  display: grid; grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: 100vh; background: var(--bg); color: var(--fg); transition: background-color var(--lent), color var(--lent);
}
.frame[data-heure="midi"] { --bg: #f7f6f0; --wall: #eeece2; --shade: #dad8cc; --deep: #bdbcb0; --floor: #cdc9b8; --sunlight: #fff9e3; --sun-x: -170px; }
.frame[data-heure="soir"] { --bg: #1d2230; --fg: #eeeee8; --soft: #aeb3c0; --hair: #3b4256; --band: #272d3e; --wall: #2c3345; --shade: #252b3b; --deep: #3a4258; --floor: #1a1f2c; --light: #49526b; --sky: #5b6688; --sunlight: #2f3648; --lamp: .9; --sun-o: 0; --sun-x: 200px; }

body { font-family: "Jost", "Helvetica Neue", sans-serif; font-size: 17px; line-height: 1.7; background: #eff0ec; }
h1, h2, h3 { font-family: "Cormorant", Georgia, serif; font-weight: 300; line-height: 1.04; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.w { fill: var(--wall); } .s { fill: var(--shade); } .d { fill: var(--deep); } .f { fill: var(--floor); } .l { fill: var(--light); } .i { fill: var(--fg); } .sky { fill: var(--sky); }
.t { fill: none; stroke: var(--fg); stroke-width: 1.5; } .t3 { stroke-width: 3; } .t5 { stroke-width: 5; } .t10 { stroke-width: 10; } .t16 { stroke-width: 16; }
.w, .s, .d, .f, .l, .i, .sky, .t, .sun, .halo { transition: fill var(--lent), stroke var(--lent), opacity var(--lent), transform var(--lent); }
.sun { fill: var(--sunlight); opacity: var(--sun-o); transform: translateX(var(--sun-x)); }
.halo { fill: #ffd98e; opacity: calc(var(--lamp) * .34); }

.rail { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; height: 100vh; padding: 36px 30px; }
.brand { font-family: "Cormorant", Georgia, serif; font-size: 31px; font-style: italic; text-decoration: none; line-height: 1; }
.nav { margin-top: 64px; }
.nav a { position: relative; display: block; padding: 5px 0; color: var(--soft); text-decoration: none; transition: color .4s, padding-left .5s cubic-bezier(.3, 0, .2, 1); }
.nav a:hover { color: var(--fg); padding-left: 10px; }
.nav a[aria-current="page"] { color: var(--fg); padding-left: 34px; }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 1px; background: var(--laiton); }
.rail-note { margin-top: auto; color: var(--soft); font-size: 15px; }
.menu-toggle { border: 1px solid currentColor; border-radius: 0; background: none; }

/* Accueil : la pièce occupe tout, le texte s'y pose. */
.opening { position: relative; min-height: 100vh; }
.opening-room { position: absolute; inset: 0 0 0 26%; overflow: hidden; }
.room { width: 100%; height: 100%; }
.hours { position: absolute; right: var(--air); bottom: 34px; display: flex; gap: 2px; }
.hours button { min-height: 44px; padding: 0 18px; border: 0; background: none; color: var(--fg); font-size: 15px; border-bottom: 1px solid transparent; transition: border-color .5s; }
.hours button[aria-pressed="true"] { border-bottom-color: var(--laiton); }
.hours button:hover { border-bottom-color: var(--soft); }
.opening-copy { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100vh; max-width: 62%; padding: 0 0 clamp(36px, 8vh, 84px) clamp(4px, 1vw, 16px); pointer-events: none; }
.opening-copy > * { pointer-events: auto; }
.opening-copy h1 { font-size: clamp(80px, 13vw, 208px); font-style: italic; line-height: .86; letter-spacing: -0.03em; animation: lever 1.8s cubic-bezier(.2, .7, .2, 1); }
.opening-copy p { max-width: 21em; margin-top: 30px; }
.quiet-link, .demo-button { display: inline-block; align-self: flex-start; margin-top: 14px; padding: 0 0 5px; border: 0; border-bottom: 1px solid var(--laiton); background: none; color: inherit; text-decoration: none; transition: letter-spacing .6s cubic-bezier(.3, 0, .2, 1); }
.quiet-link:hover, .demo-button:hover { letter-spacing: .05em; }

.credo { padding: clamp(110px, 18vw, 250px) var(--air); }
.credo p { max-width: 15em; margin-left: auto; font-family: "Cormorant", Georgia, serif; font-size: clamp(42px, 6.2vw, 96px); font-style: italic; line-height: 1.04; letter-spacing: -0.015em; }

.metiers { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); padding: 0 var(--air) clamp(100px, 14vw, 190px); }
.metiers h2, .projets h2 { font-size: clamp(36px, 4.2vw, 66px); letter-spacing: -0.01em; }
.metiers ul { margin-top: clamp(32px, 5vw, 64px); }
.metier { border-top: 1px solid var(--hair); }
.metier a { display: block; padding: 26px 0; text-decoration: none; }
.metier h3 { font-size: clamp(32px, 3.6vw, 54px); transition: transform .7s cubic-bezier(.3, 0, .2, 1); }
.metier.is-active h3 { transform: translateX(22px); font-style: italic; }
.metier p { max-width: 26em; margin-top: 8px; color: var(--soft); }
.drawing { fill: none; stroke: var(--fg); stroke-width: 1; }
.drawing-inline { display: none; }
.metiers-art { position: sticky; top: 15vh; align-self: start; aspect-ratio: 4 / 3; }
.metiers-art .drawing { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s; }
.metiers-art .drawing.is-shown { opacity: 1; }

.projets { padding-bottom: clamp(100px, 14vw, 190px); }
.projets-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 0 var(--air) 32px; }
.strip-controls { display: flex; gap: 18px; }
.strip-controls button { padding: 0; border: 0; border-bottom: 1px solid var(--laiton); background: none; color: var(--fg); font-size: 15px; }
.strip { display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 48px); overflow-x: auto; padding: 0 var(--air) 18px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--soft) transparent; }
.strip figure { flex: none; width: clamp(240px, 27vw, 420px); scroll-snap-align: center; }
.strip figure:nth-child(odd) { width: clamp(280px, 34vw, 540px); }
.strip a { display: block; overflow: hidden; }
.scene { width: 100%; aspect-ratio: 4 / 5; transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.strip a:hover .scene { transform: scale(1.05); }
figcaption { padding-top: 10px; color: var(--soft); font-size: 15px; }

.methode { padding: clamp(80px, 11vw, 160px) var(--air); background: var(--fg); color: var(--bg); transition: background-color var(--lent), color var(--lent); }
.methode h2 { font-size: clamp(36px, 4.2vw, 66px); }
.methode ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); margin-top: clamp(48px, 8vw, 110px); counter-reset: etape; }
.methode li { counter-increment: etape; padding-top: 18px; border-top: 1px solid var(--laiton); }
.methode li::before { content: counter(etape); font-family: "Cormorant", Georgia, serif; font-size: 22px; font-style: italic; }
.methode h3 { margin: 42px 0 12px; font-size: clamp(38px, 4vw, 62px); font-style: italic; }

.closing { padding: clamp(120px, 18vw, 260px) var(--air); text-align: right; }
.closing h2 { font-size: clamp(60px, 9.4vw, 150px); font-style: italic; letter-spacing: -0.025em; line-height: .92; }
.closing .quiet-link { margin-top: 32px; }

.lent { transition: opacity 1.4s, transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.lent.attend { opacity: 0; transform: translateY(26px); }

@keyframes lever { from { opacity: 0; transform: translateY(.14em); } }

/* Pages intérieures */
.sheet { padding: clamp(56px, 11vw, 150px) var(--air) clamp(64px, 9vw, 130px); }
.sheet-head { max-width: 760px; margin-left: 16.6%; }
.sheet-head h1 { font-size: clamp(54px, 7.6vw, 118px); font-style: italic; letter-spacing: -0.02em; }
.lead { margin-top: 20px; color: var(--soft); font-size: 20px; }
.sheet-body { margin-top: clamp(48px, 8vw, 110px); }

.ledger li { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 48px; padding: 42px 0; border-top: 1px solid var(--hair); }
.ledger h2 { font-size: clamp(34px, 4vw, 58px); }
.ledger p { align-self: end; max-width: 26em; color: var(--soft); }

.works { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(36px, 6vw, 96px) clamp(16px, 2vw, 32px); }
.works figure { grid-column: span 5; }
.works figure:nth-child(4n + 1) { grid-column: 1 / span 7; }
.works figure:nth-child(4n + 2) { grid-column: 9 / span 4; margin-top: 18%; }
.works figure:nth-child(4n + 3) { grid-column: 2 / span 4; }
.works figure:nth-child(4n) { grid-column: 7 / span 6; margin-top: -8%; }

.filters { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-bottom: 48px; }
.filters button { min-height: 44px; padding: 0 0 3px; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--soft); }
.filters button[aria-pressed="true"] { border-bottom-color: var(--laiton); color: var(--fg); }

.prose { font-size: 20px; max-width: 32em; }
.prose p + p { margin-top: 18px; }
.facts > div { padding: 14px 0; border-top: 1px solid var(--hair); }
.facts dt { color: var(--soft); font-size: 15px; }

.faq details { border-top: 1px solid var(--hair); }
.faq summary { padding: 24px 0; font-family: "Cormorant", Georgia, serif; font-size: 30px; line-height: 1.15; }
.faq details p { max-width: 36em; padding-bottom: 26px; color: var(--soft); }

.demo-form { max-width: 720px; }
.demo-form label, .demo-form legend { color: var(--soft); font-size: 15px; }
.demo-form input:not([type="radio"]), .demo-form select, .demo-form textarea { padding-left: 0; border: 0; border-bottom: 1px solid var(--fg); border-radius: 0; background: none; color: var(--fg); font-size: 18px; }
.demo-form select option { color: #1d2230; }
.slot { border: 1px solid var(--hair); color: var(--fg); transition: border-color .25s; }
.slot:hover { border-color: var(--fg); }
.slot:has(input:checked) { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.slot:has(input:focus-visible) { outline: 1px solid var(--fg); outline-offset: 3px; }
.form-result { padding-top: 12px; border-top: 1px solid var(--fg); }
.form-error { color: #a33a2e; border-top-color: #a33a2e; }
.frame[data-heure="soir"] .form-error { color: #ff9c8c; border-top-color: #ff9c8c; }

.recap { border: 1px solid var(--hair); }
.recap h2 { font-size: 34px; font-style: italic; }
.recap dl { margin-top: 14px; }
.recap dl > div { padding: 10px 0; border-top: 1px solid var(--hair); }
.recap dt { color: var(--soft); font-size: 15px; }

.steps { counter-reset: step; }
.steps li { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: baseline; padding: 30px 0; border-top: 1px solid var(--hair); counter-increment: step; font-size: 20px; }
.steps li::before { content: counter(step); font-family: "Cormorant", Georgia, serif; font-size: 54px; font-style: italic; line-height: 1; }
.callout { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--fg); }

.account h2 { padding-bottom: 12px; border-bottom: 1px solid var(--fg); font-size: 38px; font-style: italic; }
.account li { border-bottom: 1px solid var(--hair); }
.account li span:last-child { color: var(--soft); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 32px; padding: 28px var(--air) 36px; border-top: 1px solid var(--hair); color: var(--soft); font-size: 15px; }
.foot-mark { font-family: "Cormorant", Georgia, serif; font-size: 30px; font-style: italic; color: var(--fg); }

@media (prefers-reduced-motion: reduce) { .opening-copy h1 { animation: none; } .frame, .frame * { transition-duration: .01ms !important; } }

@media (max-width: 860px) {
  .frame { display: block; }
  .rail { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; height: auto; padding: 18px 20px; }
  .nav { flex-basis: 100%; margin-top: 18px; font-size: 20px; }
  .rail-note { display: none; }
  .opening { min-height: 0; }
  .opening-room { position: relative; inset: auto; height: 96vw; }
  .hours { right: 10px; bottom: 8px; }
  .hours button { background: var(--bg); transition: background-color var(--lent); }
  .opening-copy { min-height: 0; max-width: none; padding: 24px 20px 0; }
  .opening-copy h1 { font-size: clamp(76px, 23vw, 130px); }
  .opening-copy p { background: none; padding: 0; }
  .credo p { margin-left: 0; }
  .metiers { display: block; }
  .metiers-art { display: none; }
  .metier.is-active h3 { transform: none; font-style: normal; }
  .drawing-inline { display: block; width: 62%; margin: 0 0 26px auto; }
  .methode ol { grid-template-columns: minmax(0, 1fr); }
  .methode h3 { margin-top: 18px; }
  .sheet-head { margin-left: 0; }
  .ledger li { grid-template-columns: minmax(0, 1fr); }
  .works figure, .works figure:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .works figure:nth-child(even) { grid-column: 4 / -1; }
  .steps li { grid-template-columns: 56px minmax(0, 1fr); font-size: 18px; }
}
