/* ==========================================================
   STUDIO LIGNES — Swiss Grid / International Typographic
   Une seule famille (Inter), grille 12 colonnes stricte,
   accent rouge Vignelli unique. Fond blanc, texte noir.
   ========================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root{
  --c-bg: #FFFFFF;
  --c-ink: #000000;
  --c-ink-2: #1a1a1a;
  --c-mute: #6b6b6b;
  --c-rule: #000000;
  --c-rule-soft: #e6e6e6;
  --c-accent: #E10600;     /* Rouge Vignelli, ~5% max */
  --ff: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: 24px;
  --max: 1440px;
}

html, body { background: var(--c-bg); color: var(--c-ink); }
body {
  font-family: var(--ff);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- GRID 12 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* Helpers de colonnes */
.col-1-2  { grid-column: 1 / span 2; }
.col-1-3  { grid-column: 1 / span 3; }
.col-1-4  { grid-column: 1 / span 4; }
.col-1-5  { grid-column: 1 / span 5; }
.col-1-6  { grid-column: 1 / span 6; }
.col-1-7  { grid-column: 1 / span 7; }
.col-1-12 { grid-column: 1 / span 12; }
.col-3-7  { grid-column: 3 / span 5; }
.col-3-10 { grid-column: 3 / span 8; }
.col-4-6  { grid-column: 4 / span 3; }
.col-5-9  { grid-column: 5 / span 5; }
.col-6-8  { grid-column: 6 / span 3; }
.col-6-10 { grid-column: 6 / span 5; }
.col-6-12 { grid-column: 6 / span 7; }
.col-7-9  { grid-column: 7 / span 3; }
.col-7-12 { grid-column: 7 / span 6; }
.col-8-12 { grid-column: 8 / span 5; }
.col-9-12 { grid-column: 9 / span 4; }
.col-10-12{ grid-column: 10 / span 3; }
.col-11-12{ grid-column: 11 / span 2; }
.col-12   { grid-column: 1 / span 12; }

/* ---------- TYPO TOKENS (échelle stricte) ---------- */
.section__num,
.eyebrow,
.brand__num,
.side__num,
.side__label,
.gallery__legend,
.svc__num,
.foot__small,
.idx__num,
.idx__page,
.meta__line,
.caption,
.tag,
.foot__head,
.ch__label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.lead,
.contact__lead,
.atelier__sub,
.hero__caption,
.manifest__list li,
.svc p,
.foot__line {
  font-size: 14px;
  line-height: 1.55;
}

p, dd { font-size: 18px; line-height: 1.55; }

h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.section__title,
.manifest__head,
.atelier__head {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.hero__slogan {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 22ch;
}

.hero__metier {
  font-size: 96px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.data__num {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* ---------- TOPBAR ---------- */
.topbar {
  position: sticky;
  top: 0;
  background: var(--c-bg);
  z-index: 50;
  padding-top: 20px;
}
.topbar__inner { align-items: center; padding-bottom: 16px; }
.topbar__brand { display: flex; align-items: center; gap: 16px; }
.brand__num {
  color: var(--c-accent);
  font-weight: 700;
}
.brand__mark {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.topbar__nav {
  display: flex;
  gap: 28px;
  justify-content: flex-end;
  align-items: center;
}
.topbar__nav a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}
.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--c-ink);
  transition: right 0.25s ease;
}
.topbar__nav a:hover::after { right: 0; }
.topbar__rule {
  height: 1px;
  background: var(--c-ink);
  width: 100%;
}

/* ---------- HERO ---------- */
.hero { padding: 72px 0 90px; }

.hero .grid { row-gap: 48px; }

.hero__meta { display: flex; flex-direction: column; gap: 6px; }
.tag {
  display: inline-block;
  width: max-content;
  padding: 4px 8px;
  border: 1px solid var(--c-ink);
  margin-bottom: 12px;
}
.tag--accent {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}
.meta__line { color: var(--c-mute); }

.eyebrow {
  display: block;
  margin-bottom: 24px;
  color: var(--c-ink);
}
.eyebrow::before {
  content: "— ";
  color: var(--c-accent);
}

.hero__title { display: flex; flex-direction: column; gap: 28px; }
.hero__slogan { color: var(--c-ink-2); }

.hero__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  text-align: right;
  border-left: 1px solid var(--c-ink);
  padding-left: 12px;
}
.side__num { color: var(--c-accent); font-weight: 700; }
.side__label { line-height: 1.3; }

.hero__visual {
  max-width: var(--max);
  margin: 56px auto 0;
  padding: 0 32px;
}
.hero__visual img {
  width: 100%;
  height: 62vh;
  max-height: 640px;
  object-fit: cover;
}
.hero__caption {
  margin-top: 12px;
  color: var(--c-mute);
  display: flex;
  gap: 12px;
}
.hero__caption span { color: var(--c-accent); font-weight: 700; }

/* ---------- INDEX ---------- */
.index { padding: 90px 0; border-top: 1px solid var(--c-ink); }
.section__num {
  color: var(--c-accent);
  font-weight: 700;
  margin-bottom: 12px;
}
.index__list { display: flex; flex-direction: column; gap: 0; }
.idx {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-rule-soft);
  position: relative;
}
.idx:first-child { border-top: 1px solid var(--c-ink); }
.idx__num { color: var(--c-accent); font-weight: 700; }
.idx__title { font-size: 18px; font-weight: 500; letter-spacing: -0.005em; }
.idx__dots {
  height: 1px;
  border-bottom: 1px dotted #c8c8c8;
  align-self: center;
}
.idx__page { color: var(--c-mute); }
.idx:hover .idx__title { transform: translateX(4px); transition: transform 0.2s; }

/* ---------- MANIFEST ---------- */
.manifest { padding: 90px 0; border-top: 1px solid var(--c-ink); }
.manifest__head {
  letter-spacing: -0.025em;
}
.manifest__body p + p { margin-top: 16px; }
.manifest__list {
  margin-top: 28px;
  border-top: 1px solid var(--c-rule-soft);
}
.manifest__list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--c-rule-soft);
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
}
.manifest__list li span { color: var(--c-accent); }

/* ---------- DATA ---------- */
.data {
  padding: 80px 0;
  border-top: 1px solid var(--c-ink);
  border-bottom: 1px solid var(--c-ink);
}
.data__cell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 1px solid var(--c-ink);
  padding-left: 16px;
}
.data__cell:first-child { border-left: none; padding-left: 0; }
.data__num span { font-size: 24px; color: var(--c-mute); font-weight: 400; margin-left: 4px; }
.data__label { color: var(--c-mute); line-height: 1.4; }

/* ---------- GALLERY ---------- */
.gallery { padding: 100px 0; }
.gallery__head { margin-bottom: 48px; }
.gallery__legend {
  margin-top: 12px;
  color: var(--c-accent);
  font-weight: 700;
  text-align: right;
}
.gallery__plates { row-gap: 56px; }
.plate figure, .plate { margin: 0; }
.plate img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  filter: grayscale(8%);
}
.plate:first-child img { height: 480px; }
.plate figcaption {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-mute);
  display: flex;
  gap: 10px;
}
.acc { color: var(--c-accent); font-weight: 700; }

/* ---------- ATELIER ---------- */
.atelier { padding: 100px 0; border-top: 1px solid var(--c-ink); }
.atelier__head { margin-bottom: 16px; }
.atelier__sub { color: var(--c-mute); }
.atelier p + p { margin-top: 16px; }
.hl { border-bottom: 2px solid var(--c-accent); padding-bottom: 1px; }

/* ---------- SERVICES ---------- */
.services { padding: 100px 0; border-top: 1px solid var(--c-ink); }
.services__head { margin-bottom: 56px; }
.services__grid { row-gap: 48px; }
.svc {
  border-top: 1px solid var(--c-ink);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.svc__num { color: var(--c-accent); font-weight: 700; }
.svc h3 { letter-spacing: -0.01em; }

/* ---------- ACCÈS ---------- */
.acces { padding: 100px 0; border-top: 1px solid var(--c-ink); }
.acces__head { margin-bottom: 56px; }
.acces__body { row-gap: 32px; }
.acces__info dl { display: flex; flex-direction: column; }
.acces__info dl > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--c-rule-soft);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  align-items: baseline;
}
.acces__info dl > div:first-child { border-top: 1px solid var(--c-ink); }
.acces__info dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--c-mute);
}
.acces__info dd { font-size: 16px; line-height: 1.45; }
.acces__info a { border-bottom: 1px solid var(--c-ink); padding-bottom: 1px; }
.acces__info .ext { color: var(--c-accent); border-bottom-color: var(--c-accent); font-weight: 500; }

.acces__map { display: flex; flex-direction: column; gap: 12px; }
#map-card {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  border: 1px solid var(--c-ink);
}
#leaflet-map { width: 100%; height: 100%; }
#map-loader {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f7f7f7;
  z-index: 10;
  font-size: 13px;
  color: var(--c-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.caption { color: var(--c-mute); }

/* ---------- CONTACT ---------- */
.contact { padding: 100px 0; border-top: 1px solid var(--c-ink); }
.contact__lead {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 32ch;
  margin-bottom: 40px;
}
.contact__channels {
  border-top: 1px solid var(--c-ink);
}
.contact__channels li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--c-rule-soft);
}
.ch__label { color: var(--c-mute); }
.ch__value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
a.ch__value { position: relative; display: inline-block; }
a.ch__value::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--c-accent);
  transition: right 0.3s ease;
}
a.ch__value:hover::after { right: 0; }

/* ---------- FOOTER ---------- */
.foot {
  padding: 80px 0 36px;
  border-top: 1px solid var(--c-ink);
}
.foot__top { row-gap: 32px; }
.foot__brand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.foot__line { color: var(--c-mute); }
.foot__head {
  margin-bottom: 12px;
  color: var(--c-accent);
  font-weight: 700;
}
.foot__head + p { margin-bottom: 4px; font-size: 14px; }
.foot__head + p a { border-bottom: 1px solid var(--c-ink); }
.foot__small { color: var(--c-mute); line-height: 1.55; }
.foot__rule { margin: 40px auto 20px; }
.rule { height: 1px; background: var(--c-ink); width: 100%; }
.foot__bottom { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-mute); }
.foot__bottom .right { text-align: right; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero__metier { font-size: 72px; }
  .hero__slogan { font-size: 24px; }
  .section__title,
  .manifest__head,
  .atelier__head { font-size: 36px; }
  .data__num { font-size: 48px; }
  .ch__value { font-size: 24px; }

  /* Reset les colonnes : tout sur 12 */
  .col-1-2, .col-1-3, .col-1-4, .col-1-5, .col-1-6, .col-1-7,
  .col-3-7, .col-3-10, .col-4-6, .col-5-9, .col-6-8, .col-6-10, .col-6-12,
  .col-7-9, .col-7-12, .col-8-12, .col-9-12, .col-10-12, .col-11-12 {
    grid-column: 1 / -1;
  }
  .topbar__nav { justify-content: flex-start; flex-wrap: wrap; gap: 16px 20px; }
  .hero__side {
    flex-direction: row;
    justify-content: space-between;
    border-left: none;
    border-top: 1px solid var(--c-ink);
    padding-left: 0;
    padding-top: 12px;
  }
  .data__cell { border-left: none; padding-left: 0; border-top: 1px solid var(--c-ink); padding-top: 12px; }
  .data__cell:first-child { border-top: 1px solid var(--c-ink); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid { padding: 0 20px; gap: 16px; }
  .hero { padding: 48px 0 64px; }
  .hero__visual { padding: 0 20px; }
  .hero__visual img { height: 56vh; }
  .hero__metier { font-size: 56px; }
  .hero__slogan { font-size: 20px; }
  .section__title,
  .manifest__head,
  .atelier__head { font-size: 30px; }
  .data__num { font-size: 40px; }
  .plate img, .plate:first-child img { height: 240px; }
  .index, .manifest, .data, .gallery, .atelier, .services, .acces, .contact {
    padding: 56px 0;
  }
  .acces__info dl > div { grid-template-columns: 1fr; gap: 4px; }
  .contact__channels li { grid-template-columns: 1fr; gap: 4px; }
  .ch__value { font-size: 22px; }
  #map-card { height: 360px; }
}