/* Nautilus — site (squelette A « la planche » + studio, fiche, cabinet). Repose sur base.css. */
section { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--rule); }
section.first { border-top: 0; padding-top: clamp(28px, 4vw, 56px); }
.head2 { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.lead { font-size: 22px; line-height: 1.45; max-width: 46ch; }
.sub { max-width: 52ch; color: var(--sepia); }
/* planche */
.plate { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.frame { position: relative; border: 1px solid var(--ink); padding: clamp(14px, 2vw, 26px); background: var(--paper); margin: 0; }
.frame::before { content: ""; position: absolute; inset: 6px; border: .5px solid var(--sepia); pointer-events: none; }
.frame .pl { display: flex; justify-content: space-between; gap: 10px; font: italic 17px/1.2 var(--serif); color: var(--sepia); margin-bottom: 6px; }
.frame .art { aspect-ratio: 1; }
.frame figcaption { margin-top: 8px; font: italic 16px/1.4 var(--serif); color: var(--sepia); border-top: .5px solid var(--sepia); padding-top: 10px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.frame figcaption .data { font-style: normal; color: var(--ink); }
.hero h1 { margin-bottom: 22px; }
.hero .lede { font-size: 23px; line-height: 1.45; max-width: 30ch; margin-bottom: 30px; }
.acts { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .acts { margin-bottom: 26px; }
.hero .fine { font-size: 17px; color: var(--sepia); max-width: 40ch; }
/* compteur */
.ticks { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.tick { padding: 16px 10px 0 0; border-right: .5px solid var(--rule); position: relative; }
.tick:last-child { border-right: 0; }
.tick .n { font: 500 clamp(28px, 3.4vw, 50px)/1 var(--serif); font-feature-settings: "lnum"; }
.tick .k { font: 400 13px/1.3 var(--mono); color: var(--sepia); margin-top: 8px; }
.tick::before { content: ""; position: absolute; top: -1.5px; left: 0; height: 5px; width: 0; background: var(--ink); transition: width .4s; }
.tick.sealed::before { width: 100%; }
.tick.cur::before { width: var(--f, 0%); background: var(--accent); }
.tick.sealed .k::after { content: " · sealed"; color: var(--ink); }
.tick.cur .k::after { content: " · filling"; color: var(--accent-ink); }
/* cabinet */
.drawers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.drawer { background: var(--paper-2); padding: 18px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: grid; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.drawer:hover { background: var(--paper); color: var(--ink); }
.drawer .tag { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; }
.drawer .tag b { font: 500 22px/1.1 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer .tag span { font: 13px var(--mono); color: var(--sepia); }
.drawer .data { color: var(--sepia); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.drawer .cr { color: var(--crack); }
.empty { border: 1px dashed var(--sepia); padding: 36px; text-align: center; color: var(--sepia); }
.empty .btn { margin-top: 16px; }
/* frise */
.frieze { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; align-items: end; margin-top: 40px; }
.fr { display: grid; gap: 10px; }
.fr .bar { background: repeating-linear-gradient(135deg, var(--paper-2) 0 5px, rgba(122,78,45,.28) 5px 6px); border: 1px solid var(--sepia); border-bottom: 1.5px solid var(--ink); }
.fr .t { font: 500 22px/1 var(--serif); }
.fr .p { font: 13px var(--mono); color: var(--sepia); }
/* studio teaser */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 54px 1fr; gap: 6px 16px; padding: 22px 0; border-top: .5px solid var(--rule); }
.steps li::before { content: "Fig. " counter(s); font: italic 17px/1.6 var(--serif); color: var(--sepia); grid-row: span 2; }
.steps b { font: 500 25px/1.2 var(--serif); }
.steps p { color: var(--sepia); }
.nofee { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.nofee div { padding: 14px 12px 0 0; }
.nofee .n { font: 500 34px/1 var(--serif); }
.nofee .k { font-size: 16px; color: var(--sepia); }
/* faq */
.faqgrid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 80px); }
details { border-top: .5px solid var(--rule); }
details:last-child { border-bottom: .5px solid var(--rule); }
summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font: 500 24px/1.25 var(--serif); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details > p { padding: 0 0 22px; max-width: 62ch; }
/* pied */
footer.foot { border-top: 1.5px solid var(--ink); padding: 40px 0 56px; }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--sepia); font-size: 17px; }
footer.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.foot a { color: var(--sepia); }
/* formulaires (studio) */
.field { display: grid; gap: 6px; margin-bottom: 20px; min-width: 0; }
.field > label, .lbl { font: 500 19px/1.2 var(--serif); }
.field .hint { font-size: 16px; color: var(--sepia); }
input[type=text], input[type=url], input[type=number], textarea, select { width: 100%; min-width: 0; font: 15px/1.4 var(--mono); color: var(--ink); background: var(--paper); border: 1px solid var(--sepia); border-radius: 4px; padding: 11px 12px; }
textarea { min-height: 96px; resize: vertical; font-family: var(--serif); font-size: 18px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent-ink); outline-offset: 0; border-color: var(--accent-ink); }
input[type=range] { width: 100%; accent-color: var(--accent-ink); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.drop { display: grid; place-items: center; gap: 6px; min-height: 120px; border: 1px dashed var(--sepia); border-radius: 4px; cursor: pointer; text-align: center; padding: 12px; color: var(--sepia); background: var(--paper-2); overflow: hidden; }
.drop img { max-height: 120px; width: auto; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fieldset { border: 0; border-top: 1.5px solid var(--ink); margin: 0 0 34px; padding: 22px 0 0; min-width: 0; }
.fieldset legend { padding: 0 12px 0 0; font: italic 20px var(--serif); color: var(--sepia); }
.fieldset h2 { font-size: 34px; margin-bottom: 18px; }
.out { font: 500 15px var(--mono); color: var(--accent-ink); }
.msg { padding: 12px 14px; border: 1px solid var(--accent-ink); background: var(--paper-2); margin: 12px 0; font-size: 17px; }
.msg.bad { border-color: var(--crack); color: var(--crack); }
.msg.good { border-color: var(--ink); }
.signlist { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.signlist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--rule); background: var(--paper); flex-wrap: wrap; }
.signlist .done { color: var(--ink); } .signlist .todo { color: var(--sepia); }
.addr { font: 13px var(--mono); overflow-wrap: anywhere; }
/* tableaux */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font: italic 400 17px/1.2 var(--serif); color: var(--sepia); padding: 10px 12px; border-bottom: 1px solid var(--ink); }
td { padding: 12px; border-bottom: .5px solid var(--rule); vertical-align: middle; }
.num { text-align: right; font-family: var(--mono); font-size: 14px; white-space: nowrap; }
@media (max-width: 900px) {
  .plate, .split, .faqgrid { grid-template-columns: 1fr; }
  .plate .text { order: -1; }
  .drawers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticks { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 22px; }
  .tick:nth-child(4) { border-right: 0; }
  .frieze { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 22px; }
}
@media (max-width: 520px) {
  .hero .lede { font-size: 20px; } .nofee .n { font-size: 26px; } .drawer { padding: 12px; } .drawer .tag b { font-size: 19px; }
  .row2, .row3 { grid-template-columns: 1fr; }
}

/* ===== v2 : plus de relief, plus de rythme ===== */
.top nav { margin-left: auto; }
.top .net + nav { margin-left: 18px; }
.top .net { margin-left: auto; }
@media (max-width: 1000px) { .top .net + nav { margin-left: auto; } }
.btn.big { min-height: 54px; padding: 0 30px; font-size: 15.5px; }
/* héros */
.hero { position: relative; padding-bottom: clamp(56px, 7vw, 96px); }
.hero::before { content: ""; position: absolute; inset: -80px 0 0; pointer-events: none; z-index: -1;
  background: radial-gradient(48% 60% at 28% 48%, rgba(217,140,106,.20), transparent 70%), radial-gradient(30% 40% at 34% 40%, rgba(227,228,214,.55), transparent 70%); }
.hero h1 { font-size: clamp(48px, 6.6vw, 104px); line-height: .98; letter-spacing: -.02em; }
/* cadre gravé à coins ornés */
.frame.ornate { box-shadow: 0 1px 0 var(--paper), 0 30px 60px -30px rgba(90,58,34,.35); background: linear-gradient(var(--paper), #f7f2ea); }
.frame.ornate::after { content: ""; position: absolute; inset: -1px; pointer-events: none;
  background:
    radial-gradient(circle at 0 0, var(--ink) 0 3px, transparent 3.5px), radial-gradient(circle at 100% 0, var(--ink) 0 3px, transparent 3.5px),
    radial-gradient(circle at 0 100%, var(--ink) 0 3px, transparent 3.5px), radial-gradient(circle at 100% 100%, var(--ink) 0 3px, transparent 3.5px); }
/* bandeau de chiffres */
/* frise de Fibonacci qui défile */
/* tiroirs : étiquette de laiton, lueur nacrée sous le curseur, léger soulèvement */
.drawers { gap: 0; }
.drawer { position: relative; overflow: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, background .3s; }
.drawer:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgba(90,58,34,.45); z-index: 1; background: var(--paper-2); }
.drawer > * { position: relative; }
.drawer .tag { border: 1px solid var(--sepia); padding: 7px 10px; background: linear-gradient(180deg, #efe4d1, #e3d3b8); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.drawer svg { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.drawer:hover svg { transform: rotate(-4deg) scale(1.03); }
/* frise des brûlures : la part écrite dans la barre */
.fr .bar { position: relative; display: flex; align-items: flex-start; justify-content: center; }
.fr .bar span { font: 12px var(--mono); color: var(--ink); background: var(--paper); padding: 2px 5px; margin-top: 8px; border: .5px solid var(--sepia); white-space: nowrap; }
.fr .p { font-family: var(--serif); font-style: italic; font-size: 16px; }
@media (max-width: 1100px) { .fr .bar span { font-size: 10.5px; padding: 1px 3px; } }
/* bande encre (studio) */
/* pied */
footer.foot.big { background: var(--ink); color: var(--nacre); border-top: 0; padding: 72px 0 40px; }
footer.foot.big .wrap { display: block; }
footer.foot.big .mark { display: flex; align-items: center; gap: 18px; font: 500 clamp(56px, 10vw, 150px)/.9 var(--serif); color: var(--paper); letter-spacing: -.02em; }
footer.foot.big .mark span { width: clamp(56px, 8vw, 120px); flex: none; }
footer.foot.big .mark .shell .sh-wall, footer.foot.big .mark .shell .sh-septum { stroke: var(--paper); }
footer.foot.big .foot-line { margin: 18px 0 40px; font-size: 21px; color: #cdbfae; }
footer.foot.big .foot-row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-top: 1px solid rgba(244,239,230,.2); padding-top: 20px; font-size: 17px; }
footer.foot.big a { color: var(--nacre); }
footer.foot.big a:hover { color: var(--paper); }
footer.foot.big nav { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 760px) {
}
/* coquilles décoratives sur fond encre : gravure au trait seulement */
footer.foot.big .mark .shell path { fill: none !important; }
footer.foot.big .mark .shell .sh-wall-under { stroke: var(--accent); stroke-opacity: .25; }
footer.foot.big .mark .shell .sh-closed, footer.foot.big .mark .shell .sh-ghost, footer.foot.big .mark .shell .sh-proto, footer.foot.big .mark .shell .sh-current { stroke: var(--nacre-mid); stroke-opacity: .7; }
/* tiroir vide */
.drawer.vacant { background: transparent; color: var(--sepia); }
.drawer.vacant .tag { background: none; box-shadow: none; border-style: dashed; }
.drawer.vacant .tag b { font-style: italic; font-weight: 400; color: var(--sepia); }
.drawer.vacant .vac { opacity: .35; }
.drawer.vacant .data span:last-child { color: var(--accent-ink); }

/* ---- v3 : l'établi (accueil 4 choisi par Alex). Cadre encre, ombre portée douce, boutons carrés. ---- */
:root { --bench-shadow: 0 40px 80px -50px rgba(90,58,34,.55); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dialrow { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0 12px; }
.dialrow output { font: 500 15px var(--mono); color: #8a4225; white-space: nowrap; }
.bench-hero .intro { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 28px; }
.bench-hero h1 { font-size: clamp(42px, 5vw, 72px); max-width: 15ch; text-wrap: balance; }
.bench-hero .intro p { max-width: 42ch; color: var(--ink-2); }
.bench { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); border: 1px solid var(--ink); background: var(--paper); box-shadow: var(--bench-shadow); }
.bench-form { padding: clamp(20px, 2.6vw, 32px); border-right: 1px solid var(--ink); display: grid; gap: 4px; align-content: start; }
.bench-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
.bench-go .hint { font-size: 16px; color: var(--sepia); }
.bench-go { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.bench-prev { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.bench-shell { padding: 22px; border-right: .5px solid var(--rule); display: grid; align-content: start; gap: 18px; }
.bench-id b { font: 500 26px/1.1 var(--serif); overflow-wrap: anywhere; }
.bench-id span { display: block; font: 13px var(--mono); color: var(--sepia); margin-top: 4px; }
.bench-plan table { font-size: 15px; }
.bench-plan td, .bench-plan th { padding: 9px 16px; }
.bench-plan td { font: 14px var(--mono); font-feature-settings: "tnum"; }
.bench-sum { padding: 14px 16px; font-size: 16px; color: var(--sepia); }
.bench-pledge { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 40px; padding: 26px 0 0; margin: 0; font: italic 20px var(--serif); color: var(--sepia); }
.frame, .card, .devBox { box-shadow: var(--bench-shadow); }
@media (max-width: 1100px) { .bench { grid-template-columns: 1fr; } .bench-form { border-right: 0; border-bottom: 1px solid var(--ink); } }
@media (max-width: 640px) { .bench-prev { grid-template-columns: 1fr; } .bench-shell { border-right: 0; border-bottom: .5px solid var(--rule); } .bench-row { grid-template-columns: 1fr; } .bench-pledge { font-size: 18px; gap: 6px 24px; } }
footer.foot.big .foot-row > span { color: #cdbfae; }

/* lien X : bouton carré de l'en-tête (même trait et même rayon que les boutons), lien avec icône dans le pied */
.top .xlink { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border: 1.5px solid var(--ink); border-radius: 2px; color: var(--ink); transition: background .15s, color .15s; }
.top .xlink svg { width: 17px; height: 17px; fill: currentColor; }
.top .xlink:hover { background: var(--ink); color: var(--paper); }
.top .xlink + .btn { margin-left: -16px; }
@media (max-width: 760px) { .top .xlink { margin-left: auto; width: 42px; height: 42px; } .top .xlink + .btn { margin-left: -16px; } }
footer.foot.big .xfoot { display: inline-flex; align-items: center; gap: 8px; }
footer.foot.big .xfoot svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
