:root {
  --white: #ffffff;
  --off: #f7f7f5;
  --black: #111111;
  --ink: #1a1a1a;
  --mute: #6b6b6b;
  --line: #d8d8d4;
  --cote: #b8b8b4;
  --cyan: #00b4e6;
  --magenta: #e0188a;
  --ongoing: var(--magenta);
  --yellow: #e6c300;
  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--cyan);
}

/* —— Traits de construction (comme le logo) —— */
.rule {
  position: relative;
  height: 15px;
  margin: 0.1rem 0;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 50% / 1px 15px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 32% 50% / 1px 11px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 68% 50% / 1px 15px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% 50% / 1px 15px no-repeat,
    linear-gradient(rgba(17, 17, 17, 0.2), rgba(17, 17, 17, 0.2)) 0 50% / 100% 1px no-repeat;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.kicker::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--cyan);
  flex-shrink: 0;
}

.kicker--ongoing {
  color: var(--magenta);
}

.kicker--ongoing::before {
  background: var(--magenta);
}

.portrait,
.card figure,
.project-hero {
  position: relative;
}

.portrait::before,
.card figure::before,
.project-hero::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(var(--cyan), var(--cyan)) 0 0 / 14px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 0 0 / 1px 14px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% 0 / 14px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% 0 / 1px 14px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 100% / 14px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 100% / 1px 14px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 100% 100% / 14px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 100% 100% / 1px 14px no-repeat;
  opacity: 0.75;
}

/* —— Intro —— */
.intro {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.intro.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-stage {
  position: relative;
  width: min(96vw, 90vh);
  max-width: 1200px;
}

.intro-logo {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  background: transparent;
  pointer-events: none;
  min-height: 55vh;
}

.intro-logo .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.35s ease forwards;
}

.intro-logo .const.d2 { animation-delay: 0.12s; }
.intro-logo .const.d3 { animation-delay: 0.22s; }
.intro-logo .const.d4 { animation-delay: 0.32s; }
.intro-logo .cyan { animation-delay: 0.45s; }
.intro-logo .cyan.d2 { animation-delay: 0.7s; }
.intro-logo .cyan.d3 { animation-delay: 0.95s; }

.intro-logo .nums,
.intro-logo .letters,
.intro-logo .word {
  opacity: 0;
  animation: introFade 0.7s ease forwards;
}

.intro-logo .nums { animation-delay: 1.25s; }
.intro-logo .letters { animation-delay: 1.45s; }
.intro-logo .word { animation-delay: 1.9s; }

.intro-skip {
  position: absolute;
  bottom: 2rem;
  right: var(--pad);
  color: #6b6b6b;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: none;
  border: 0;
  cursor: pointer;
}

.intro-skip:hover {
  color: var(--cyan);
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes introFade {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-logo .draw,
  .intro-logo .nums,
  .intro-logo .letters,
  .intro-logo .word {
    animation: none;
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.85rem var(--pad);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  margin-right: auto;
}

.brand svg,
.brand img {
  height: auto;
  width: min(26vw, 560px);
  max-width: 100%;
  display: block;
  overflow: visible;
}

.brand .cuts,
.brand .nums {
  transition: stroke 0.4s ease, fill 0.4s ease, stroke-width 0.4s ease;
}

.brand:hover .cuts {
  stroke: #00b4e6;
  stroke-width: 3.6;
}

.brand:hover .nums {
  fill: #00b4e6;
}

.project-ongoing .brand:hover .cuts {
  stroke: var(--magenta);
}

.project-ongoing .brand:hover .nums {
  fill: var(--magenta);
}

@media (prefers-reduced-motion: reduce) {
  .brand .cuts,
  .brand .nums {
    transition: none;
  }
}

.nav {
  display: flex;
  order: 0;
  gap: 1.75rem;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  width: auto;
  padding: 0;
  flex-shrink: 0;
  overflow: visible;
}

.nav a.is-active {
  color: var(--cyan);
}

.project-ongoing .nav a.is-active {
  color: var(--magenta);
}

.project-ongoing .nav a:hover {
  color: var(--magenta);
}

.nav-dessins {
  position: relative;
  overflow: visible;
  transition: color 0.4s ease;
}

.nav-toggle {
  display: none;
}

/* —— Layout —— */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.hero {
  padding: 4.5rem var(--pad) 3rem;
  max-width: var(--max);
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 16ch;
}

.hero p {
  margin-top: 1.25rem;
  color: var(--mute);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 38ch;
}

.hero-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
}

.hero-row h1 {
  margin: 0;
}

.hero-row .hero-aside {
  margin-top: 0;
  text-align: right;
  max-width: 18ch;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .hero-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .hero-row .hero-aside {
    text-align: left;
  }
}

.section {
  padding: 3.5rem 0 4.5rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-head h2::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: var(--cyan);
}

.section-head a {
  font-size: 13px;
  color: var(--mute);
}

.prose .rule {
  margin: 0 0 1.75rem;
}

/* —— Grid —— */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.5rem;
}

@media (min-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .grid,
  .grid--3 {
    grid-template-columns: 1fr;
  }
}

.card {
  display: block;
  color: inherit;
}

.card figure {
  overflow: hidden;
  background: var(--off);
  aspect-ratio: 4 / 3;
  position: relative;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.card:hover img {
  transform: scale(1.03);
}

.card figcaption {
  padding-top: 0.85rem;
}

.card .meta {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-top: 0.2rem;
}

.badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 0.15rem 0.4rem;
  margin-bottom: 0.35rem;
}

/* —— Accueil photos —— */
body.home {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.home .site-footer {
  margin-top: 0;
  flex-shrink: 0;
  padding-top: 0.85rem;
  padding-bottom: 1.1rem;
}

body.projets {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.projets .hero {
  padding: 1.25rem 0 0;
  max-width: none;
  margin: 0;
  text-align: left;
}

body.projets .hero h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.9rem);
}

body.projets .hero p {
  max-width: 22ch;
}

body.projets .hero-lead {
  margin-top: 1.25rem;
}

.geo-switch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.geo-switch button {
  background: none;
  border: 0;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  cursor: pointer;
  padding: 0 0 0.12rem;
  border-bottom: 1px solid transparent;
}

.geo-switch button:hover {
  color: var(--ink);
}

.geo-switch button.is-on {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

body.projets .site-footer {
  margin-top: 0;
  flex-shrink: 0;
  padding-top: 0.85rem;
  padding-bottom: 1.1rem;
}

.show {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.show-viewport {
  flex: 1;
  min-height: 0;
  position: relative;
}

.show-track {
  position: relative;
  height: 100%;
  width: 100%;
}

.show-item {
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.575s ease;
  z-index: 0;
}

.show-item.is-on {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.show-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--off);
}

@media (prefers-reduced-motion: reduce) {
  .show-item {
    transition: none;
  }
}

/* —— Project page —— */
.project-hero {
  position: relative;
}

.project-hero img {
  width: 100%;
  max-height: 78vh;
  object-fit: cover;
  background: var(--off);
}

.project-hero + .wrap::before {
  content: "";
  display: block;
  height: 15px;
  margin: 0.85rem 0 0;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 50% / 1px 15px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 32% 50% / 1px 11px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 68% 50% / 1px 15px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% 50% / 1px 15px no-repeat,
    linear-gradient(rgba(17, 17, 17, 0.2), rgba(17, 17, 17, 0.2)) 0 50% / 100% 1px no-repeat;
}

.project-meta h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.03em;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.75rem 0 2rem;
  padding: 1.5rem 0;
  background:
    linear-gradient(rgba(17, 17, 17, 0.2), rgba(17, 17, 17, 0.2)) 0 0 / 100% 1px no-repeat,
    linear-gradient(rgba(17, 17, 17, 0.2), rgba(17, 17, 17, 0.2)) 0 100% / 100% 1px no-repeat;
}

.facts > div {
  padding-left: 0.75rem;
  border-left: 1px solid rgba(0, 180, 230, 0.4);
}

.project-ongoing .facts > div {
  border-left-color: rgba(224, 24, 138, 0.45);
}

.project-ongoing .site-footer::before,
.project-ongoing .project-hero + .wrap::before,
.project-ongoing .rule {
  background:
    linear-gradient(var(--ink), var(--ink)) 0 50% / 1px 15px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 32% 50% / 1px 11px no-repeat,
    linear-gradient(var(--magenta), var(--magenta)) 68% 50% / 1px 15px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% 50% / 1px 15px no-repeat,
    linear-gradient(rgba(17, 17, 17, 0.2), rgba(17, 17, 17, 0.2)) 0 50% / 100% 1px no-repeat;
}

@media (max-width: 720px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }
}

.facts dt {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.facts dd {
  font-weight: 300;
  margin-top: 0.2rem;
}

.prose {
  max-width: 62ch;
  font-weight: 300;
  color: #333;
  text-align: justify;
  hyphens: auto;
}

.prose p + p {
  margin-top: 1rem;
}

.gallery {
  display: grid;
  gap: 0.75rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.gallery img {
  width: 100%;
}

.back {
  display: inline-block;
  margin: 2.5rem 0 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.map-float {
  position: fixed;
  left: var(--pad);
  bottom: 1.35rem;
  z-index: 25;
  display: flex;
  flex-direction: column;
  width: min(11.5rem, 42vw);
  padding: 0.5rem 0.55rem 0.7rem;
  background: transparent;
  color: inherit;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.map-float.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.map-float-map {
  position: relative;
  display: block;
  width: 5.5rem;
  max-width: 100%;
  aspect-ratio: 1000 / 818.7;
  margin: 0.15rem auto 0.5rem;
  overflow: visible;
  container-type: size;
}

.map-float-map--paris {
  aspect-ratio: 1000 / 1043.8;
}

.map-float-map--metro {
  aspect-ratio: 1000 / 965.9;
}

.map-float-map img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
}

.map-float-map::after {
  content: "Projets";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-weight: 800;
  font-size: 28cqw;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #007199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.95),
    0 0 8px rgba(255, 255, 255, 0.8);
}

.map-float-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border: 1px solid var(--ink);
  background: #fff;
  border-radius: 50%;
  box-sizing: border-box;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.map-float-copy {
  padding: 0 0.15rem;
}

.map-float-copy strong {
  display: block;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.25rem;
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.95),
    0 0 10px rgba(255, 255, 255, 0.85),
    0 0 18px rgba(255, 255, 255, 0.7);
}

.map-float-title {
  display: block;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.95),
    0 0 10px rgba(255, 255, 255, 0.85),
    0 0 18px rgba(255, 255, 255, 0.7);
}

.map-float:hover .map-float-map::after,
.map-float:focus-visible .map-float-map::after {
  opacity: 1;
}

.map-float--ongoing .map-float-map img {
  filter: grayscale(1) sepia(0.55) hue-rotate(262deg) saturate(3.1) brightness(1.04);
}

.map-float--ongoing .map-float-map::after {
  color: #a01062;
}

.map-float:hover .map-float-dot,
.map-float:focus-visible .map-float-dot {
  opacity: 0;
}

@media (max-width: 640px) {
  .map-float {
    width: min(10.75rem, 46vw);
    bottom: 0.85rem;
    left: 0.85rem;
  }

  .map-float-map {
    width: 4.75rem;
  }

  .map-float-title {
    font-size: 15px;
  }
}

/* —— Agence —— */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.split > .rule {
  grid-column: 1 / -1;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.portrait {
  background: var(--off);
}

.portrait img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1;
}

/* —— Contact —— */
.form {
  max-width: 480px;
  display: grid;
  gap: 1rem;
}

.form label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  display: grid;
  gap: 0.4rem;
}

.form input,
.form textarea {
  font: inherit;
  font-weight: 300;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0;
  background: transparent;
  color: var(--ink);
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-bottom-color: var(--cyan);
}

.form button,
.btn {
  justify-self: start;
  margin-top: 0.5rem;
  background: var(--black);
  color: var(--white);
  border: 0;
  padding: 0.75rem 1.4rem;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.form button:hover,
.btn:hover {
  background: var(--cyan);
}

.form-note {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--mute);
  line-height: 1.45;
  max-width: 28rem;
}

.form-note a {
  color: inherit;
}

.grecaptcha-badge {
  visibility: hidden;
}

.contact-aside {
  color: var(--mute);
  font-weight: 300;
}

.contact-aside a {
  color: var(--ink);
}

/* —— Dessins —— */
body.page-dessin .kicker {
  color: var(--yellow);
}
body.page-dessin .kicker::before {
  background: var(--yellow);
}
body.page-dessin .rule,
body.page-dessin .site-footer::before {
  background:
    linear-gradient(var(--ink), var(--ink)) 0 50% / 1px 15px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 32% 50% / 1px 11px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 68% 50% / 1px 15px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% 50% / 1px 15px no-repeat,
    linear-gradient(rgba(17, 17, 17, 0.2), rgba(17, 17, 17, 0.2)) 0 50% / 100% 1px no-repeat;
}
body.page-dessin .brand:hover .cuts {
  stroke: var(--yellow);
}
body.page-dessin .brand:hover .nums {
  fill: var(--yellow);
}
body.page-dessin .nav a:hover {
  color: var(--yellow);
}
body.page-dessin .nav a.is-active {
  color: var(--yellow);
}
body.page-dessin .site-footer a:hover {
  color: var(--yellow);
}

.dessin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.dessin-filters button {
  background: none;
  border: 1px solid var(--line);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.dessin-filters button:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

.dessin-filters button.is-on {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.dessin-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .dessin-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .dessin-gallery {
    grid-template-columns: 1fr;
  }
}

.dessin-item {
  cursor: pointer;
  overflow: hidden;
  position: relative;
  background: var(--off);
}

.dessin-item img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease;
}

.dessin-item:hover img {
  transform: scale(1.03);
}

.dessin-item figcaption {
  padding: 0.75rem 0.65rem;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--mute);
}

.dessin-item figcaption strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 0.15rem;
}

.dessin-item .dessin-tag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  color: var(--ink);
}

.dessin-item .dessin-tag--plans {
  border-left: 2px solid var(--cyan);
}
.dessin-item .dessin-tag--3d {
  border-left: 2px solid var(--magenta);
}
.dessin-item .dessin-tag--facades {
  border-left: 2px solid var(--yellow);
}
.dessin-item .dessin-tag--planches {
  border-left: 2px solid var(--ink);
}

/* lightbox */
.dessin-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  cursor: zoom-out;
}

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

.dessin-lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
}

.dessin-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* —— Footer —— */
.site-footer {
  margin-top: 4rem;
  padding: 0 var(--pad) 2.5rem;
}

.site-footer::before {
  content: "";
  display: block;
  height: 15px;
  max-width: var(--max);
  margin: 0 auto 1.35rem;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 50% / 1px 15px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 32% 50% / 1px 11px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 68% 50% / 1px 15px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% 50% / 1px 15px no-repeat,
    linear-gradient(rgba(17, 17, 17, 0.2), rgba(17, 17, 17, 0.2)) 0 50% / 100% 1px no-repeat;
}

.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.04em;
}

.site-footer a:hover {
  color: var(--cyan);
}

.idf-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr minmax(0, 42%) 1fr;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  padding: 0.5rem var(--pad) 0;
}

.idf-stage .hero {
  align-self: start;
}

.idf-rail {
  align-self: stretch;
  min-height: 0;
}

.idf-maps {
  position: relative;
  width: 100%;
  max-height: 100%;
  justify-self: center;
  align-self: center;
}

.idf {
  position: relative;
  background: #fff;
  width: 100%;
  max-height: 100%;
  aspect-ratio: 1000 / 818.7;
}

.idf[data-geo-panel="paris"] {
  aspect-ratio: 1000 / 1043.8;
}

.idf[data-geo-panel="metro"] {
  aspect-ratio: 1000 / 965.9;
}

.idf.is-on {
  animation: map-fade 0.7s ease-out both;
}

.idf:not(.is-ready) .idf-pin {
  opacity: 0;
  pointer-events: none;
}

.idf.is-ready .idf-pin {
  opacity: 1;
  transition: opacity 0.35s ease;
}

@keyframes map-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .idf.is-on {
    animation: none;
  }

  .idf:not(.is-ready) .idf-pin {
    opacity: 1;
    pointer-events: auto;
  }
}

.idf img.idf-svg {
  opacity: 0.65;
}

.idf-svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.65;
}

@media (max-width: 800px) {
  .idf-stage {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .idf-rail {
    display: none;
  }

  body.projets .hero {
    padding-top: 0.5rem;
  }

  .idf {
    width: 100%;
  }
}

.idf-pin {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  z-index: 3;
}

.idf-pin-dot {
  display: block;
  width: 12px;
  height: 12px;
  border: 1px solid var(--ink);
  background: #fff;
  border-radius: 50%;
  box-sizing: border-box;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.idf-pin-label {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(4px, 0.4vw, 8px);
  width: max-content;
  max-width: clamp(16rem, 32vw, 32rem);
  padding: 0;
  padding-left: clamp(18px, 1.9vw, 36px);
  background: transparent;
  font-size: clamp(12px, 1.25vw, 24px);
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.idf-pin-label img,
.idf-pin-ph,
.idf-pin-status {
  width: clamp(72px, 7.5vw, 144px);
  height: clamp(54px, 5.625vw, 108px);
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.idf-pin-ph {
  background: #f2f2f2;
}

.idf-pin-status {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  color: var(--magenta);
  font-weight: 500;
  font-size: clamp(11px, 1.05vw, 16px);
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.idf-pin-copy {
  min-width: 0;
}

.idf-pin-label strong {
  display: block;
  font-weight: 500;
  font-size: clamp(10px, 1.04vw, 20px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: clamp(0.15rem, 0.3vw, 0.3rem);
}

.idf-pin:hover,
.idf-pin:focus-visible,
.idf-pin:focus-within {
  color: inherit;
  z-index: 4;
}

.idf-pin:hover .idf-pin-dot,
.idf-pin:focus-visible .idf-pin-dot,
.idf-pin:focus-within .idf-pin-dot {
  background: var(--cyan);
  border-color: var(--cyan);
  transform: scale(1.25);
}

.idf-pin--ongoing:hover .idf-pin-dot,
.idf-pin--ongoing:focus-visible .idf-pin-dot,
.idf-pin--ongoing:focus-within .idf-pin-dot {
  background: var(--magenta);
  border-color: var(--magenta);
}

.idf-pin--split:hover .idf-pin-dot,
.idf-pin--split:focus-visible .idf-pin-dot,
.idf-pin--split:focus-within .idf-pin-dot {
  background: linear-gradient(to right, var(--magenta) 50%, var(--cyan) 50%);
  border-color: #fff;
}

.idf-pin-label--west {
  left: auto;
  right: 12px;
  padding-left: 0;
  padding-right: clamp(18px, 1.9vw, 36px);
}

.idf-pin-label--west .idf-pin-card {
  flex-direction: row-reverse;
  text-align: right;
  padding-left: clamp(8px, 0.83vw, 16px);
  padding-right: clamp(4px, 0.42vw, 8px);
}

.idf-pin--split .idf-pin-label {
  top: 0;
  transform: none;
}

.idf-pin-label--stack {
  max-width: none;
}

.idf-pin-card {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.25vw, 1.2rem);
  padding: clamp(4px, 0.42vw, 8px) clamp(8px, 0.83vw, 16px) clamp(4px, 0.42vw, 8px) clamp(4px, 0.42vw, 8px);
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.idf-pin-title {
  transition: color 0.3s ease;
}

.idf-pin-card:hover .idf-pin-title,
.idf-pin-card:focus-visible .idf-pin-title,
.idf-pin-title:hover {
  color: var(--cyan);
}

.idf-pin--ongoing .idf-pin-card:hover .idf-pin-title,
.idf-pin--ongoing .idf-pin-card:focus-visible .idf-pin-title,
.idf-pin--ongoing .idf-pin-title:hover,
.idf-pin-card--ongoing:hover .idf-pin-title,
.idf-pin-card--ongoing:focus-visible .idf-pin-title {
  color: var(--magenta);
}

.idf-pin:hover .idf-pin-label,
.idf-pin:focus-within .idf-pin-label {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: none) {
  .idf-pin-label {
    opacity: 1;
    pointer-events: auto;
  }
}
