/* ESPACES — v2 — direction artistique "machine à écrire" */

@media (prefers-color-scheme: dark) {
  :root { color-scheme: light; }
}

:root {
  --bg: #f1f1ee;
  --bg-soft: #e6e6e1;
  --ink: #16302c;
  --ink-soft: #4b6360;
  --ink-faint: #8a9b96;
  --line: rgba(22, 48, 44, 0.38);
  --line-soft: rgba(22, 48, 44, 0.16);
  --accent: #2c4f5e;
  --max: 1400px;
  --gut: clamp(24px, 5vw, 96px);
  --nav-w: 300px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: "Courier New", "Courier", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

.blink {
  display: inline-block;
  animation: blink 1s steps(1) infinite;
  font-weight: 400;
  color: var(--ink);
}

@keyframes blink {
  0%, 49.9% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .blink { animation: none; opacity: 1; }
}

/* ---------- shell / layout ---------- */

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gut);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell {
  display: grid;
  grid-template-columns: 1fr var(--nav-w);
  column-gap: clamp(24px, 5vw, 80px);
  align-items: start;
  flex: 1;
  padding-top: clamp(48px, 9vh, 140px);
  padding-bottom: 80px;
}

body.is-section .shell {
  padding-top: clamp(28px, 5vh, 56px);
}

/* ---------- logo / brand ---------- */

.brand {
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: baseline;
  gap: .35em;
  text-align: left;
  transform-origin: left top;
  font-size: clamp(48px, 7.2vw, 108px);
  letter-spacing: -0.01em;
  margin: 0 0 28px 0;
  font-weight: 400;
}

body.is-section .brand {
  font-size: clamp(22px, 2vw, 28px);
  margin-bottom: 56px;
}

.brand .word {
  white-space: nowrap;
}

.brand .blink {
  font-size: 0.9em;
}

/* ---------- left column ---------- */

.col-main { min-width: 0; }

.home-view, .section-view {
  animation: panein .4s ease both;
  animation-delay: .15s;
}

@keyframes panein {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lede {
  max-width: 46ch;
  font-size: clamp(15px, 1.05vw, 17px);
  color: var(--ink);
  margin: 0 0 32px 0;
}

.home-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.text-link {
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0 0 4px 0;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: border-color .2s ease, color .2s ease, padding-left .2s ease;
}

.text-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.heading-stage {
  position: relative;
}

.heading-stage:not(:empty) {
  margin-bottom: 32px;
}

.section-intro {
  max-width: 62ch;
  color: var(--ink);
  margin: 0 0 40px 0;
  font-size: 15px;
}

/* ---------- image rows / grids ---------- */

.imgrow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0 0 48px 0;
}

.imgrow img, .imgcell {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
}

/* ---------- métiers (savoir-faire) ---------- */

/* ---------- projets ---------- */

.projets-list {
  border-top: 1px solid var(--line-soft);
}

.projet-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.projets-list .name {
  font-size: 15px;
}

.projets-list .meta {
  font-size: 12.5px;
  color: var(--ink-soft);
  display: block;
  margin-top: 4px;
}

.projets-list .year {
  font-size: 13px;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* ---------- atelier ---------- */

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 8px 2px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}

.field textarea { resize: vertical; min-height: 90px; }

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); }

.submit-btn {
  margin-top: 8px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  padding: 12px 26px;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}

.submit-btn:hover { background: transparent; color: var(--ink); }

.form-note {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 14px;
}

.contact-info dt {
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 26px 0 8px 0;
}

.contact-info dt:first-child { margin-top: 0; }

.contact-info dd {
  margin: 0;
  font-size: 15px;
}

.contact-info .placeholder-note {
  margin-top: 32px;
  font-size: 12px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}

/* ---------- nav (right column) ---------- */

.col-nav {
  position: sticky;
  top: clamp(28px, 9vh, 140px);
}

body.is-section .col-nav {
  top: clamp(28px, 5vh, 56px);
}

.nav-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 460px;
  position: relative;
}

/* Drawer closed: items huddle together at the top instead of spanning
   the full height. */
body.is-section .nav-list {
  min-height: 0;
  justify-content: flex-start;
}

/* .nav-btn is a single persistent element per section: it lives either
   here (compact, in the drawer) or inside #heading-stage (large, as the
   active page title). Only ONE ruleset below differs per context —
   the JS morph interpolates between the two via inline styles. */
.nav-btn {
  display: block;
  box-sizing: border-box;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

#nav-list .nav-btn {
  width: 100%;
  padding: 22px 0;
  font-size: 17px;
  letter-spacing: .03em;
  transition: color .2s ease;
}

body.is-section #nav-list .nav-btn {
  padding: 12px 0;
  font-size: 14.5px;
}

#nav-list .nav-btn:hover {
  color: var(--accent);
}

#heading-stage .nav-btn {
  width: 100%;
  padding: 0 0 20px 0;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: .02em;
  cursor: default;
}

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--line-soft);
  padding: 22px 0 0 0;
  margin-top: 60px;
  font-size: 11.5px;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .col-nav {
    position: static;
    order: 3;
    margin-top: 56px;
  }
  .nav-list {
    min-height: 0;
    justify-content: flex-start;
  }
  .imgrow { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  body.is-section .shell { padding-top: 24px; }
}

@media (max-width: 520px) {
  .imgrow { grid-template-columns: repeat(2, 1fr); }
  .projet-row { grid-template-columns: 1fr; }
}


/* =====================================================================
   Repositionnement « réalisation » — nouveaux blocs
   ===================================================================== */

.kicker {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 20px 0;
}

.home-headline {
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 400;
  letter-spacing: .03em;
  line-height: 1.3;
  text-transform: uppercase;
  margin: 0 0 18px 0;
  max-width: 28ch;
}

.lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  max-width: 44ch;
  margin: 0 0 28px 0;
  color: var(--ink);
}

.block-title {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 48px 0 16px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.text-link.inline {
  display: inline;
  margin-left: 6px;
}

.hero-fig {
  margin: 44px 0 0 0;
}

.hero-fig img {
  display: block;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

.hero-fig .hero-main { aspect-ratio: 16 / 9; }

.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.hero-strip img { aspect-ratio: 4 / 5; }

.hero-fig figcaption {
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-top: 8px;
}

.passage p {
  max-width: 60ch;
  font-size: 15px;
  margin: 0 0 14px 0;
}

.passage .chips {
  letter-spacing: .04em;
  color: var(--ink-soft);
}

.sf-teasers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
  margin-top: 40px;
}

.sf-teaser {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 6px;
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid var(--line-soft);
  padding: 16px 0 20px 0;
  transition: color .2s ease;
}

.sf-teaser:hover { color: var(--accent); }
.sf-teaser .num { grid-row: 1 / 3; font-size: 12px; color: var(--ink-faint); padding-top: 3px; }
.sf-teaser .t { text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.sf-teaser .d { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* Placeholder for photos still to be supplied */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--line);
  background:
    repeating-linear-gradient(135deg, transparent 0 9px, rgba(22,48,44,.05) 9px 10px),
    var(--bg-soft);
  color: var(--ink-faint);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* Savoir-faire */
.savoirs { margin: 8px 0 36px 0; }

.savoir {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 30px 0 36px 0;
  border-top: 1px solid var(--line-soft);
}

.savoir:last-child { border-bottom: 1px solid var(--line-soft); }
.savoir .num { font-size: 12px; color: var(--ink-faint); padding-top: 6px; }

.savoir h3 {
  margin: 0 0 6px 0;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.savoir .accroche { margin: 0 0 12px 0; font-size: 15px; color: var(--accent); }
.savoir p { max-width: 56ch; font-size: 14.5px; margin: 0 0 14px 0; }

.arrows {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.arrows li { margin: 0 0 4px 0; }
.arrows li::before { content: "→ "; color: var(--ink-faint); }

.arrows.wide {
  columns: 2;
  column-gap: 32px;
  max-width: 60ch;
}

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.duo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}

.trio img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

/* Réalisations — project list + expandable sheets */
.projets-list { border-top: 1px solid var(--line-soft); }

.projet-row,
.fiche summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  list-style: none;
}

.fiche summary { cursor: pointer; transition: color .2s ease; }
.fiche summary::-webkit-details-marker { display: none; }
.fiche summary:hover { color: var(--accent); }

.fiche summary .year::after {
  content: "  +";
  color: var(--ink-faint);
}

.fiche[open] summary .year::after { content: "  −"; }
.fiche[open] summary { border-bottom-color: transparent; }

.fiche-main { display: block; }
.fiche-body {
  padding: 4px 0 30px 0;
  border-bottom: 1px solid var(--line-soft);
}

.fiche-body h4,
.spec-grid h4,
.duo-words h4 {
  margin: 18px 0 6px 0;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.fiche-body p { margin: 0; font-size: 14.5px; max-width: 56ch; }

.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags li {
  border: 1px solid var(--line);
  padding: 3px 10px;
  font-size: 12px;
}

.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.stages figure { margin: 0; }
.stages figcaption {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.stages img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line-soft);
}

/* Atelier / À propos */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 32px;
}

.spec-grid p, .duo-words p { margin: 0 0 14px 0; font-size: 14px; max-width: 42ch; }

.team {
  list-style: none;
  margin: 0;
  padding: 0;
}

.team li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.team li:first-child { border-top: 1px solid var(--line-soft); }
.team b { font-weight: 400; }
.team span { color: var(--ink-soft); }

.duo-words {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
  margin-bottom: 8px;
}

@media (max-width: 860px) {
  .sf-teasers, .spec-grid, .duo-words { grid-template-columns: 1fr; }
  .trio, .stages { grid-template-columns: 1fr; }
  .team li { grid-template-columns: 1fr; gap: 2px; }
  .arrows.wide { columns: 1; }
}


/* Photo walls (natural aspect ratios) */
.masonry {
  columns: 3;
  column-gap: 14px;
  margin: 4px 0 8px 0;
}

.masonry img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 14px 0;
  break-inside: avoid;
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

@media (max-width: 860px) {
  .masonry { columns: 2; }
}

@media (max-width: 520px) {
  .masonry { columns: 1; }
}


/* Atelier — single horizontal photo */
.wide-photo {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center 62%;
  border: 1px solid var(--line-soft);
  margin: 0 0 8px 0;
}

/* Photo credit */
.credit {
  font-size: 11.5px;
  color: var(--ink-faint);
  margin: 2px 0 0 0;
  letter-spacing: .04em;
}

/* Lightbox */
.fiche .masonry img { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 56px 72px 64px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  display: block;
  border: 1px solid var(--line-soft);
}

.lightbox .lb-caption {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-soft);
  text-align: center;
  min-height: 1.5em;
}

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px;
  transition: color .2s ease;
}

.lightbox button:hover { color: var(--accent); }
.lightbox .lb-close { top: 18px; right: 22px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); font-size: 22px; }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); font-size: 22px; }
.lightbox .lb-count { position: absolute; top: 24px; left: 28px; font-size: 12px; color: var(--ink-faint); letter-spacing: .08em; }

@media (max-width: 860px) {
  .lightbox { padding: 56px 16px 64px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 14px; transform: none; }
  .lightbox .lb-prev { left: 16px; }
  .lightbox .lb-next { right: 16px; }
}


/* Project sheet — exhibition context + details table */
.fiche-body > p { margin: 0 0 14px 0; max-width: 64ch; }

.details {
  margin: 0 0 28px 0;
  border-top: 1px solid var(--line-soft);
  max-width: 64ch;
}

.details > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}

.details dt { color: var(--ink-soft); }
.details dd { margin: 0; text-align: right; }


/* Réalisations — filter chips */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px 0;
}

.chip {
  background: none;
  border: 1px solid var(--line);
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.chip:hover { border-color: var(--ink); }

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.projets-list [hidden] { display: none !important; }
.projets-list > * { animation: panein .3s ease both; }


/* =====================================================================
   Occupation de l'écran
   - Accueil : composition plein écran (logo en haut, texte en bas,
     menu réparti sur toute la hauteur)
   - Rubrique ouverte : le menu se resserre à droite, la colonne de
     contenu gagne de la place
   ===================================================================== */

:root {
  --max: 1680px;
  --pt: clamp(48px, 9vh, 140px);
  --home-h: max(460px, calc(100vh - var(--pt) - 88px));
  --nav-w: clamp(280px, 28vw, 460px);
}

body.is-section {
  --nav-w: clamp(180px, 15vw, 230px);
}

body.is-section .shell {
  column-gap: clamp(24px, 3.5vw, 56px);
}

/* Home — full-height composition */
body:not(.is-section) .col-main {
  display: flex;
  flex-direction: column;
  min-height: var(--home-h);
}

body:not(.is-section) .nav-list {
  min-height: var(--home-h);
}

body:not(.is-section) .brand {
  font-size: clamp(56px, 9.5vw, 170px);
}

body:not(.is-section) .home-view {
  margin-top: auto;
}

body:not(.is-section) .kicker {
  font-size: clamp(12px, .95vw, 15px);
  margin-bottom: 22px;
}

body:not(.is-section) .home-headline {
  font-size: clamp(24px, 2.7vw, 44px);
  max-width: 22ch;
  margin-bottom: 22px;
}

body:not(.is-section) .lede {
  font-size: clamp(16px, 1.3vw, 21px);
  max-width: 44ch;
  margin-bottom: 30px;
}

body:not(.is-section) .text-link {
  font-size: clamp(13px, 1vw, 15px);
}

body:not(.is-section) #nav-list .nav-btn {
  font-size: clamp(17px, 1.5vw, 24px);
}

body:not(.is-section) .foot {
  margin-top: 48px;
}

@media (max-width: 860px) {
  body:not(.is-section) .col-main { display: block; min-height: 0; }
  body:not(.is-section) .nav-list { min-height: 0; }
  body:not(.is-section) .home-view { margin-top: 0; }
  body:not(.is-section) .brand { font-size: clamp(48px, 14vw, 90px); }
}


/* =====================================================================
   Refonte : accueil resserré, réalisations en cartes + tiroir,
   savoir-faire sur une seule vue, atelier plus ample
   ===================================================================== */

/* ---- Home: smaller left side, logo brought down next to the text ---- */
body:not(.is-section) .brand {
  align-self: flex-start;
  font-size: clamp(44px, 6.2vw, 104px);
  margin-top: auto;
  margin-bottom: 34px;
}

body:not(.is-section) .home-view {
  margin-top: 0;
  margin-bottom: 56px;
}



body:not(.is-section) .kicker { font-size: clamp(11px, .8vw, 13px); margin-bottom: 16px; }

body:not(.is-section) .home-headline {
  font-size: clamp(19px, 1.9vw, 30px);
  max-width: 24ch;
  margin-bottom: 16px;
}

body:not(.is-section) .lede {
  font-size: clamp(14px, 1.05vw, 17px);
  max-width: 42ch;
  margin-bottom: 24px;
}

body:not(.is-section) .text-link { font-size: clamp(12px, .9vw, 14px); }

/* ---- Global readability ---- */
.section-intro { font-size: 16px; line-height: 1.6; }
.lead { font-size: clamp(17px, 1.45vw, 22px); max-width: 48ch; }

/* ---- Réalisations: cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 38px 26px;
  margin-bottom: 8px;
}

.card [hidden], .card[hidden], .projet-row[hidden], .others-title[hidden] { display: none !important; }

.card-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.card-cover {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
}

.card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.4, 0, .2, 1);
}

.card-btn:hover .card-cover img,
.card-btn:focus-visible .card-cover img { transform: scale(1.045); }

.card-info { display: block; padding-top: 12px; }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}

.card-name { font-size: 15.5px; line-height: 1.3; transition: color .2s ease; }
.card-btn:hover .card-name { color: var(--accent); }
.card-year { font-size: 12px; color: var(--ink-faint); }
.card-meta { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 5px; line-height: 1.4; }

.others-title { margin-top: 56px; }

/* ---- Project drawer ---- */
.panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(22, 48, 44, .16);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s ease;
}

.panel-backdrop.is-open { opacity: 1; visibility: visible; }

.panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 130;
  width: min(780px, 100vw);
  background: var(--bg);
  border-left: 1px solid var(--line);
  overflow-y: auto;
  padding: 34px clamp(24px, 3.4vw, 48px) 70px;
  transform: translateX(102%);
  transition: transform .6s cubic-bezier(.65, 0, .35, 1);
}

.panel.is-open { transform: none; }

.panel-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 7px 14px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}

.panel-close:hover { background: var(--ink); color: var(--bg); }

.panel-year { display: block; font-size: 12px; letter-spacing: .12em; color: var(--ink-faint); margin: 6px 0 12px 0; }

.panel-title {
  font-size: clamp(22px, 2.1vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 8px 0;
  padding-right: 110px;
}

.panel-meta { font-size: 13px; color: var(--ink-soft); margin: 0 0 30px 0; padding-bottom: 22px; border-bottom: 1px solid var(--line); }

.panel-body > p { font-size: 15px; line-height: 1.75; max-width: 62ch; margin: 0 0 16px 0; }
.panel-body h4 { margin-top: 30px; }
.panel .details { max-width: none; }
.panel .details > div { font-size: 14px; padding: 11px 0; }
.panel .masonry { columns: 2; column-gap: 12px; margin-top: 30px; }
.panel .masonry img { margin-bottom: 12px; cursor: zoom-in; }
.panel .credit { margin-top: 4px; }

.fiche .masonry img { cursor: default; }

/* ---- Savoir-faire: everything in one view ---- */
.sf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 34px 26px;
  margin: 8px 0 34px 0;
}

.sf-media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

.sf-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .6s ease;
}

.sf-media .b { opacity: 0; }
.sf:hover .sf-media .b { opacity: 1; }

.sf-text { padding-top: 14px; }
.sf .num { display: block; font-size: 12px; color: var(--ink-faint); margin-bottom: 6px; }

.sf h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sf .accroche { margin: 0 0 10px 0; font-size: 13.5px; color: var(--accent); }
.sf p { margin: 0 0 12px 0; font-size: 13.5px; line-height: 1.6; }
.sf .arrows { font-size: 12.5px; margin-bottom: 0; }

/* ---- Atelier: larger ---- */
.wide-photo { aspect-ratio: 16 / 7; object-position: center 60%; margin-bottom: 4px; }

.statement {
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.5;
  max-width: 46ch;
  margin: 30px 0 10px 0;
}

.spec-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 36px;
}

.spec-grid h4 { font-size: 12.5px; margin-top: 22px; }
.spec-grid p { font-size: 15px; line-height: 1.6; max-width: 34ch; }

.arrows.wide { columns: 3; font-size: 15px; max-width: none; }
.arrows.wide li { margin-bottom: 8px; }

.block-title { margin-top: 60px; }

@media (max-width: 860px) {
  .arrows.wide { columns: 2; }
  .panel { padding-top: 24px; }
  .panel .masonry { columns: 1; }
}

.section-view > .lead { margin-bottom: 22px; }


/* =====================================================================
   Cohérence : une seule échelle typographique et d'espacement
   label 12 · petit 13 · texte 15 · chapeau 18–21
   espaces 8 · 16 · 24 · 40 · 64
   ===================================================================== */

:root {
  --fs-label: 12px;
  --fs-small: 13px;
  --fs-body: 15px;
  --fs-lead: clamp(18px, 1.45vw, 21px);
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 40px;
  --sp-5: 64px;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  max-width: 52ch;
  margin: 0 0 var(--sp-4) 0;
}

.section-view > .lead { margin-bottom: var(--sp-4); }

.cta-line {
  font-size: var(--fs-body);
  line-height: 1.6;
  margin: var(--sp-4) 0 0 0;
}

/* Block = label on the left, content on the right (Atelier, À propos) */
.block {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  gap: var(--sp-2) var(--sp-4);
  padding: var(--sp-3) 0 var(--sp-4) 0;
  border-top: 1px solid var(--line-soft);
}

.block-label {
  margin: 0;
  padding-top: 3px;
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.block-content p {
  font-size: var(--fs-body);
  line-height: 1.7;
  max-width: 62ch;
  margin: 0 0 var(--sp-2) 0;
}

.block-content > *:last-child { margin-bottom: 0; }

.block-content.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-3) var(--sp-4);
}

.spec-grid h4 {
  margin: 0 0 6px 0;
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.spec-grid p { margin: 0; font-size: 14.5px; line-height: 1.6; max-width: 32ch; }

.arrows.cols3 {
  columns: 3;
  column-gap: var(--sp-4);
  margin: 0;
  font-size: var(--fs-body);
  color: var(--ink);
}

.arrows.cols3 li { margin: 0 0 var(--sp-1) 0; break-inside: avoid; }

.block-content .team li { font-size: var(--fs-body); padding: 13px 0; grid-template-columns: 210px 1fr; }
.block-content .team li:first-child { border-top: none; padding-top: 0; }

.wide-photo {
  aspect-ratio: 16 / 6;
  margin: 0 0 var(--sp-4) 0;
}

/* ---- Savoir-faire: accordion lines ---- */
.sf-list { border-top: 1px solid var(--line); }
.sf-row { border-bottom: 1px solid var(--line); }

.sf-head {
  display: grid;
  grid-template-columns: 44px minmax(190px, auto) 1fr 24px;
  align-items: baseline;
  gap: 0 20px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 0;
  cursor: pointer;
}

.sf-head .num { font-size: var(--fs-label); color: var(--ink-faint); }

.sf-title {
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: color .2s ease;
}

.sf-head:hover .sf-title { color: var(--accent); }
.sf-acc { font-size: 14px; color: var(--ink-soft); }

.sf-sign {
  position: relative;
  justify-self: end;
  align-self: center;
  width: 14px;
  height: 14px;
}

.sf-sign::before, .sf-sign::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform .4s cubic-bezier(.65, 0, .35, 1);
}

.sf-sign::before { left: 0; right: 0; top: 6.5px; height: 1px; }
.sf-sign::after { top: 0; bottom: 0; left: 6.5px; width: 1px; }
.sf-row.is-open .sf-sign::after { transform: scaleY(0); }

.sf-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s cubic-bezier(.65, 0, .35, 1);
}

.sf-row.is-open .sf-body { grid-template-rows: 1fr; }
.sf-inner { overflow: hidden; min-height: 0; }

.sf-cols {
  display: grid;
  grid-template-columns: minmax(240px, 4fr) 6fr;
  gap: var(--sp-4);
  padding: 0 0 var(--sp-4) 64px;
}

.sf-copy p { font-size: var(--fs-body); line-height: 1.7; margin: 0 0 var(--sp-2) 0; max-width: 46ch; }
.sf-copy .arrows { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

.sf-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }

.sf-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

@media (max-width: 860px) {
  .block { grid-template-columns: 1fr; gap: var(--sp-1); }
  .arrows.cols3 { columns: 2; }
  .block-content .team li { grid-template-columns: 1fr; }
  .sf-head { grid-template-columns: 34px 1fr 24px; }
  .sf-acc { grid-column: 2 / 3; grid-row: 2; margin-top: 4px; }
  .sf-sign { grid-column: 3; grid-row: 1; }
  .sf-cols { grid-template-columns: 1fr; padding-left: 0; }
}


/* =====================================================================
   TEST — accueil « bandeau duotone » (activé par ?accueil=photo)
   Photo duotone #d32301 / #f9f4ed en haut, logo dessus ; texte et menu
   dans la zone claire en dessous.
   ===================================================================== */

.home-bg { display: none; }

@media (min-width: 861px) {

  body.home-photo {
    --band: 52vh;
    --red: #d32301;
  }

  .home-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--band);
    z-index: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity .6s ease;
  }

  .home-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 57%;
  }

  body.home-photo .home-bg { display: block; }
  body.home-photo:not(.is-section) .home-bg { opacity: 1; }
  body.home-photo .page { position: relative; z-index: 1; }

  body.home-photo:not(.is-section) {
    --ink: var(--red);
    --ink-soft: var(--red);
    --ink-faint: var(--red);
    --line: rgba(211, 35, 1, .5);
    --line-soft: rgba(211, 35, 1, .4);
    --accent: #8f1a00;
  }

  body.home-photo:not(.is-section) .shell {
    padding-top: 0;
    padding-bottom: 0;
  }

  /* Left: logo sits at the bottom of the photo band, text below */
  body.home-photo:not(.is-section) .col-main {
    min-height: 100vh;
    padding-bottom: 34px;
    box-sizing: border-box;
  }

  body.home-photo:not(.is-section) .brand {
    font-size: clamp(44px, 6.2vw, 104px);
    margin-top: calc(var(--band) - 1.2em - 22px);
    margin-bottom: 44px;
    color: var(--red);
  }

  body.home-photo:not(.is-section) .blink { color: var(--red); }
  body.home-photo:not(.is-section) .home-view { margin-bottom: 0; }
  body.home-photo:not(.is-section) .foot { margin-top: auto; border-top-color: var(--line); }

  /* Right: menu gathered inside the light area, never over the photo */
  body.home-photo:not(.is-section) .col-nav {
    padding-top: calc(var(--band) + 44px);
    padding-bottom: 34px;
  }

  body.home-photo:not(.is-section) .nav-list {
    min-height: calc(100vh - var(--band) - 44px - 34px);
  }

  body.home-photo:not(.is-section) #nav-list .nav-btn {
    padding: 13px 0;
    font-size: clamp(14px, 1.15vw, 17px);
    color: var(--red);
  }

  body.home-photo:not(.is-section) #nav-list .nav-btn:hover { color: var(--accent); }
}

/* ---------- atelier stats band ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin: 0 0 var(--sp-4) 0;
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat b {
  display: block;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 400;
  color: var(--accent);
}

.stat span {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; gap: var(--sp-2); text-align: left; }
}

/* Home stats band relocated to sit just above the footer, sharing its line */
.home-stats { display: none; }

body:not(.is-section) .home-stats {
  display: grid;
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
  border-bottom: none;
  padding-top: 22px;
  padding-bottom: 0;
  margin-bottom: 0;
}

body:not(.is-section) .home-stats + .foot {
  border-top: none;
  margin-top: 22px;
  padding-top: 0;
}
