@font-face {
  font-family: "Euripides";
  src: url("../fonts/Euripides.woff2") format("woff2"),
       url("../fonts/Euripides.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2"),
       url("../fonts/IBMPlexMono-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #efefec;
  --text: #111111;
  --line: #8f8f8a;
  --accent: #6457a6;
  --header-h: 64px;
  --page-x: 56px;
  --cross-size: 18px;
  --cross-thickness: 1px;
  --font-title: "Euripides", Georgia, serif;
  --font-text: "Source Serif 4", Georgia, serif;
  --font-meta: "IBM Plex Mono", monospace;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}


/* Accessibilité / SEO : texte disponible pour les lecteurs d’écran et les moteurs, sans impact visuel */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  color: var(--text);
  font-family: var(--font-text);
  cursor: none;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

a,
button,
[role="button"],
.is-clickable {
  cursor: none;
}

/* cursor */
.cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor-dot.is-hover {
  width: 18px;
  height: 18px;
  background: var(--accent);
  opacity: 1;
}

/* topbar */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--page-x);
  background: var(--bg);
  z-index: 100;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.topbar__left,
.topbar__center,
.topbar__right {
  min-width: 0;
  font-family: var(--font-title);
  font-size: 24px;
  line-height: 1;
  white-space: nowrap;
}

.topbar__center {
  justify-self: center;
}

.topbar__right {
  justify-self: end;
}

.topbar__link {
  display: inline-block;
  position: relative;
  color: var(--text);
}

.topbar__link.is-active {
  color: var(--accent);
}

.topbar__label--short {
  display: none;
}

.topbar__link.is-close {
  width: var(--cross-size);
  height: var(--cross-size);
  overflow: hidden;
  color: transparent !important;
}

.topbar__link.is-close::before,
.topbar__link.is-close::after,
.lightbox__close::before,
.lightbox__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%; /* hauteur du groupe ph/ar/e : 48% monte, 52% descend */
  width: var(--cross-size);
  height: var(--cross-thickness);
  background: #111;
  transform-origin: center;
}

.topbar__link.is-close::before,
.lightbox__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.topbar__link.is-close::after,
.lightbox__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.page-shell {
  padding-top: var(--header-h);
  min-height: 100vh;
}

.split-shell {
  position: relative;
}

.has-center-line .split-shell::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--line);
  transform: translateX(-0.5px);
  pointer-events: none;
  z-index: 20;
}

/* catalog */
.catalog-page {
  padding: calc(var(--header-h) + 24px) var(--page-x) 40px;
}

.filters {
  display: flex;
  gap: 18px;
  margin: 0 0 22px;
  flex-wrap: wrap;
}

.filters button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font-family: var(--font-meta);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.03em;
  opacity: 0.5;
}

.filters button.is-active {
  opacity: 1;
  color: var(--accent);
}

.filters-separator {
  display: inline-block;
  width: 24px;
  flex: 0 0 24px;
}

/* grille catalogue : colonnes explicites pour éviter le bug Chrome où les cartes restent uniquement à gauche */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 18px;
  align-items: start;
}

.card {
  display: grid;
  width: 100%;
  gap: 8px;
  margin: 0;
  align-content: start;
}

.card__image-wrap {
  width: 100%;
}

.card__image {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #d8d8d3;
}

.card__title {
  font-family: var(--font-title);
  font-size: 20px;
  line-height: 0.98;
  color: var(--text);
}

.card__sub {
  font-family: var(--font-meta);
  font-size: 13px;
  line-height: 1.05;
  letter-spacing: 0.03em;
  color: var(--text);
}

.card:hover .card__title,
.card:hover .card__sub {
  color: var(--accent);
}

.card[hidden],
.card.is-hidden {
  display: none !important;
}

/* index */
.catalog-index {
  display: grid;
  gap: 0;
}

.index-row {
  border-bottom: 1px solid var(--line);
}

.index-row--head {
  border-top: 0;
}

.index-link {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1.8fr 1fr;
  gap: 16px;
  padding: 10px 0;
  text-decoration: none;
}

.index-link--photo {
  grid-template-columns: 2fr 1.5fr 1fr 1.5fr;
}

.index-link--head {
  pointer-events: none;
}

.index-col {
  font-family: var(--font-meta);
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: 0.03em;
}

.index-title {
  font-family: var(--font-title);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
}

.index-link:hover .index-col,
.index-link:hover .index-title {
  color: var(--accent);
}

/* detail */
.detail-page,
.reportage-layout {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pane,
.reportage-left,
.reportage-right {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
}

.pane::-webkit-scrollbar,
.reportage-left::-webkit-scrollbar,
.reportage-right::-webkit-scrollbar {
  width: 10px;
}

.pane::-webkit-scrollbar-thumb,
.reportage-left::-webkit-scrollbar-thumb,
.reportage-right::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

.project-copy,
.reportage-intro,
.project-section,
.viewer,
.contact-sheet,
.thumbs,
.notes {
  padding-left: var(--page-x);
  padding-right: var(--page-x);
}

.project-copy,
.reportage-intro {
  padding-top: 18px;
  padding-bottom: 8px;
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.project-section__body,
.notes figcaption,
.viewer__caption {
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.section-separator {
  height: 1px;
  margin: 10px var(--page-x);
  background-image: repeating-linear-gradient(
    to right,
    var(--line) 0,
    var(--line) 4px,
    transparent 4px,
    transparent 8px
  );
}

.project-section {
  padding-top: 6px;
  padding-bottom: 10px;
}

.project-section__title {
  font-family: var(--font-title);
  font-size: 18px;
  line-height: 1;
  margin: 0 0 10px;
}

.meta-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.meta-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
}

.meta-row dt,
.meta-row dd {
  margin: 0;
  font-family: var(--font-meta);
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: 0.03em;
}

.thumbs,
.contact-sheet {
  padding-top: 12px;
  padding-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: start;
}

.thumb,
.contact-thumb,
.viewer__media-button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  display: block;
  width: 100%;
  box-shadow: none;
  outline: none;
  border-radius: 0;
  text-align: left;
}

.thumb img,
.contact-thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #d8d8d3;
}

.notes {
  padding-top: 12px;
  padding-bottom: 24px;
  display: grid;
  gap: 32px;
}

.viewer__item--notes {
  display: grid;
  gap: 8px;
}

.viewer__item--notes .viewer__media-button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  border-radius: 0;
  text-align: left;
}

.viewer__item--notes img {
  width: auto;
  max-width: 100%;
  max-height: min(72vh, 900px);
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  background: transparent;
}

.viewer__caption--notes {
  max-width: 100%;
  text-align: left;
}

/* viewer */
.viewer {
  padding-top: 24px;
  padding-bottom: 48px;
  display: grid;
  gap: 32px;
}

.viewer__item {
  display: grid;
  gap: 8px;
}

.viewer__item img {
  width: auto;
  max-width: 100%;
  max-height: min(72vh, 900px);
  object-fit: contain;
  margin: 0 auto;
  background: #d8d8d3;
}

.reportage-layout .viewer__item img {
  width: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

/* infos */
.info-page {
  padding-top: var(--header-h);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.info-block {
  min-height: calc(100vh - var(--header-h));
  padding: 48px var(--page-x) 56px;
}

.info-block h1,
.info-block h2 {
  margin: 0 0 22px;
  font-family: var(--font-title);
  font-size: 24px;
  line-height: 0.95;
  font-weight: normal;
}

.info-block p,
.info-block li {
  margin: 0 0 16px;
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.info-block p:last-child,
.info-block li:last-child {
  margin-bottom: 0;
}

.info-block strong {
  font-family: var(--font-meta);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.info-block a {
  color: inherit;
  text-decoration: none;
}

.info-block a:hover {
  color: var(--accent);
}

.info-contact {
  margin-bottom: 26px !important;
  font-family: var(--font-meta) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  letter-spacing: 0.04em !important;
}

.info-contact a {
  display: inline-block;
  border-bottom: 1px solid transparent;
}

.info-contact a:hover {
  border-bottom-color: var(--accent);
}

.info-location {
  font-family: var(--font-meta) !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  letter-spacing: 0.05em !important;
  opacity: 0.8;
  margin-top: 4px;
}

.info-logo {
  width: auto;
  max-width: 180px;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 22px;
}

.info-logos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 300;
  display: none;
}

.lightbox.is-open {
  display: block;
}

.lightbox__close {
  appearance: none;
  -webkit-appearance: none;
  position: fixed;
  top: 24px;
  right: var(--page-x);
  width: var(--cross-size);
  height: var(--cross-size);
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  z-index: 500;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.lightbox__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 40px calc(var(--page-x) + 48px);
}

.lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox__nav {
  appearance: none;
  -webkit-appearance: none;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 0;
  z-index: 350;
}

.lightbox__nav--prev {
  left: var(--page-x);
}

.lightbox__nav--next {
  right: var(--page-x);
}

.lightbox__nav::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: auto;
  border-top: 1px solid #111;
  border-right: 1px solid #111;
}

.lightbox__nav--prev::before {
  transform: rotate(-135deg);
}

.lightbox__nav--next::before {
  transform: rotate(45deg);
}

.lightbox__topbar,
.lightbox__caption {
  display: none !important;
}

/* legal dot */
.legal-dot {
  position: fixed;
  left: 50%;
  bottom: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 90;
}

.legal-dot.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mobile-bottom-bar {
  display: none;
}

/* home */
.home-alt__letters {
  display: grid;
  row-gap: 4px;
  justify-items: center;
}

.home-alt__word {
  position: relative;
  display: inline-block;
  font-family: var(--font-title);
  font-size: clamp(20px, 3.4vw, 38px);
  line-height: 0.95;
  color: var(--text);
}

.home-alt__prefix,
.home-alt__suffix {
  display: inline-block;
  white-space: nowrap;
  transition: color 0.16s ease, opacity 0.16s ease;
}

.home-alt__prefix {
  color: var(--text);
}

.home-alt__suffix {
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: 0.08em;
  opacity: 0;
  pointer-events: none;
  color: var(--accent);
}

.home-alt__word:hover .home-alt__prefix,
.home-alt__word.is-open .home-alt__prefix {
  color: var(--accent);
}

.home-alt__word:hover .home-alt__suffix,
.home-alt__word.is-open .home-alt__suffix {
  opacity: 1;
}

/* responsive */
@media (min-width: 1600px) {
  .thumbs,
  .contact-sheet {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .home-preview__frame {
    width: min(24vw, 320px);
    height: min(34vw, 420px);
  }

  .home-links {
    gap: 56px;
  }
}

@media (max-width: 980px) {
  .thumbs,
  .contact-sheet {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .index-link {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }

  .index-row--head {
    display: none;
  }
}

@media (max-width: 800px) {
  :root {
    --page-x: 18px;
  }

  body,
  a,
  button,
  [role="button"],
  .is-clickable {
    cursor: auto;
  }

  .cursor-dot {
    display: none;
  }

  .topbar {
    padding: 0 18px;
  }

  .topbar__left,
  .topbar__center,
  .topbar__right {
    font-size: 20px;
  }

  .topbar__label--full {
    display: none;
  }

  .topbar__label--short {
    display: inline;
  }

  .catalog-page {
    padding-left: 18px;
    padding-right: 18px;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .has-center-line .split-shell::before {
    display: none;
  }

  .thumbs,
  .contact-sheet {
    display: none;
  }

  .reportage-layout {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    display: block;
    padding-top: var(--header-h);
  }

  .reportage-left,
  .reportage-right {
    overflow: visible;
  }

  .reportage-intro,
  .viewer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .viewer {
    padding-top: 20px;
  }

  .reportage-layout .viewer__item img {
    width: 100%;
    max-height: none;
  }

  .detail-page {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    display: block;
    padding-top: var(--header-h);
  }

  .detail-page .pane {
    overflow: visible;
  }

  .detail-page .pane--info,
  .detail-page .pane--images {
    display: none;
  }

  body.page-project-mobile-images .detail-page .pane--images {
    display: block;
  }

  body.page-project-mobile-text .detail-page .pane--info {
    display: block;
  }

  .project-copy,
  .project-section,
  .notes,
  .viewer,
  .info-block {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-separator {
    margin-left: 18px;
    margin-right: 18px;
  }

  .viewer__item img {
    width: 100%;
    max-height: none;
  }

  .lightbox__stage {
    padding: 20px 18px;
  }

  .lightbox__close {
    top: 18px;
    right: 18px;
  }

  .lightbox__nav--prev {
    left: 8px;
  }

  .lightbox__nav--next {
    right: 8px;
  }

  .info-page {
    position: static;
    display: block;
    padding-top: var(--header-h);
  }

  .info-block {
    min-height: auto;
    display: none;
    padding: 32px 18px calc(var(--header-h) + 28px);
  }

  body.page-infos-mobile-architecture .info-block--architecture {
    display: block;
  }

  body.page-infos-mobile-photographie .info-block--photographie {
    display: block;
  }

  .home-inner {
    width: 100%;
    padding: 0 18px;
  }

  .home-title {
    margin-bottom: 28px;
    font-size: 36px;
  }

  .home-links {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-link {
    justify-items: center;
  }

  .home-link__title {
    font-size: 20px;
  }

  .home-mail {
    font-size: 12px;
  }

  .home-preview {
    display: none;
  }

  .filters__index-button {
    display: none;
  }

  .mobile-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--header-h);
    display: block;
    background: var(--bg);
    z-index: 120;
  }

  .mobile-bottom-bar::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: var(--line);
  }

  .mobile-bottom-bar a {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 18px;
    font-size: 20px;
    line-height: 1;
  }

  .mobile-bottom-bar__label {
    grid-column: 1;
    text-align: left;
    font-family: var(--font-title);
  }

  .mobile-bottom-bar__label--right {
    grid-column: 2;
    justify-self: end;
    text-align: right;
  }

  .mobile-bottom-bar__arrow {
    position: relative;
    width: var(--cross-size);
    height: var(--cross-size);
  }

  .mobile-bottom-bar__arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--cross-size);
    height: var(--cross-size);
    transform-origin: center;
    box-sizing: border-box;
  }

  .mobile-bottom-bar__arrow--left {
    grid-column: 1;
    margin-right: 10px;
  }

  .mobile-bottom-bar__arrow--right {
    grid-column: 3;
    justify-self: end;
  }

  .mobile-bottom-bar__arrow--left::before {
    border-top: 1px solid #111;
    border-left: 1px solid #111;
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .mobile-bottom-bar__arrow--right::before {
    border-top: 1px solid #111;
    border-right: 1px solid #111;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  body.page-project-mobile-images,
  body.page-project-mobile-text,
  body.page-infos-mobile-architecture,
  body.page-infos-mobile-photographie {
    padding-bottom: var(--header-h);
  }

  .legal-dot,
  .theme-dot {
    display: block;
  }

  body.page-project-mobile-images .legal-dot,
  body.page-project-mobile-text .legal-dot,
  body.page-infos-mobile-architecture .legal-dot,
  body.page-infos-mobile-photographie .legal-dot,
  body.page-project-mobile-images .theme-dot,
  body.page-project-mobile-text .theme-dot,
  body.page-infos-mobile-architecture .theme-dot,
  body.page-infos-mobile-photographie .theme-dot {
    bottom: calc(var(--header-h) + 14px);
  }
}



/* =====================
   PH/AR/E + DARK THEME OVERRIDES
   ===================== */
body.dark-theme {
  --bg: #101010;
  --text: #f1f0eb;
  --line: rgba(241,240,235,.34);
  color: var(--text);
}

body.dark-theme .topbar,
body.dark-theme .lightbox,
body.dark-theme .mobile-bottom-bar {
  background: var(--bg);
}

body.dark-theme .topbar__link.is-close::before,
body.dark-theme .topbar__link.is-close::after,
body.dark-theme .lightbox__close::before,
body.dark-theme .lightbox__close::after {
  background: var(--text);
}

body.dark-theme .lightbox__nav::before {
  background: transparent;
  border-top-color: var(--text);
  border-right-color: var(--text);
}

body.dark-theme .mobile-bottom-bar__arrow--left::before {
  border-top-color: var(--text);
  border-left-color: var(--text);
}

body.dark-theme .mobile-bottom-bar__arrow--right::before {
  border-top-color: var(--text);
  border-right-color: var(--text);
}

:root {
  --header-h: 52px;
  --page-x: 18px;
}

.topbar__left,
.topbar__center,
.topbar__right {
  font-size: 20px;
}

.topbar {
  padding: 0 var(--page-x);
}

.filters button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font-family: var(--font-meta);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--text);
  opacity: 0.68;
}

.filters button:hover {
  color: var(--accent);
  opacity: 1;
}

.filters button.is-active,
.filters button.is-view-active {
  color: var(--accent);
  opacity: 1;
}

body.dark-theme .filters button {
  color: var(--text);
  opacity: 0.72;
}

body.dark-theme .filters button:hover,
body.dark-theme .filters button.is-active,
body.dark-theme .filters button.is-view-active {
  color: var(--accent);
  opacity: 1;
}

.index-row--head {
  border-top: 0;
}

.index-link:hover .index-col,
.index-link:hover .index-title {
  color: inherit;
}

.index-link:not(.index-link--head):hover .index-col,
.index-link:not(.index-link--head):hover .index-title {
  color: var(--accent);
}

.index-col,
.index-title {
  font-family: var(--font-meta);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.index-title {
  font-size: 12px;
  opacity: .82;
}

.index-sort {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  font-family: var(--font-meta);
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: 0.03em;
  color: inherit;
  opacity: .66;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
  cursor: pointer;
}

.index-sort:hover {
  color: var(--accent);
  opacity: 1;
}

.index-sort.is-active {
  color: var(--accent);
  opacity: 1;
}

.index-sort::after {
  content: "";
  font-size: 11px;
  line-height: 1;
  opacity: .9;
}

.index-sort.is-sort-asc::after { content: "↑"; }
.index-sort.is-sort-desc::after { content: "↓"; }

.theme-dot {
  position: fixed;
  left: calc(50% + 10px);
  bottom: 12px;
  width: 10px;
  height: 10px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: #111;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
  transform: translateX(-50%) translateY(6px);
}

.theme-dot.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* bouton thème : croissant de lune en clair, cercle blanc en sombre */
.theme-dot::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  left: 3px;
  top: -1px;
  border-radius: 50%;
  background: var(--bg);
  transition: opacity 0.25s ease, background 0.25s ease;
}

body.dark-theme .theme-dot { background: #fff; }
body.dark-theme .theme-dot::after { opacity: 0; }
body.dark-theme .legal-dot { background: var(--accent); }
.legal-dot { left: calc(50% - 10px); }

/* home phare */
.home-page--phare { cursor: none; }
.home-phare {
  position: fixed;
  inset: 0;
  background: var(--bg);
  overflow: hidden;
}

.home-phare__center {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  z-index: 2;
}

.home-phare__word {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block;
  width: max-content;
  font-family: var(--font-title);
  font-size: clamp(22px, 2.8vw, 40px);
  /* Évite que les descendantes (g, j, p, q, y) soient coupées quand le mot se déploie. */
  line-height: 1.25;
  padding-bottom: .22em;
  overflow: visible;
  color: var(--text);
  will-change: transform;
  pointer-events: none;
  transition: transform 900ms cubic-bezier(.22,1,.36,1), color .15s ease;
}

.home-phare__word--photo {
  transform: translate(-1.85em, 0);
}

.home-phare__word--archi {
  transform: translate(-0.5em, 0);
}

.home-phare__word--infos {
  transform: translate(0.6em, 0);
}

/* Réglages de position de la home :
   - le 1er nombre décale horizontalement,
   - le 2e nombre décale verticalement.
   Pour régler la hauteur globale du groupe, modifier top dans .home-phare__center. */
.home-phare__center.is-ready .home-phare__word--photo {
  transform: translate(-1.95em, -0.86em);
}

.home-phare__center.is-ready .home-phare__word--archi {
  transform: translate(-0.5em, 0);
}

.home-phare__center.is-ready .home-phare__word--infos {
  transform: translate(0.95em, 0.86em);
}

.home-phare__center.is-ready .home-phare__word {
  pointer-events: auto;
}

.home-phare__prefix {
  position: relative;
  z-index: 2;
  color: var(--text);
  transition: color .15s ease;
}

.home-phare__suffix {
  position: absolute;
  left: 100%;
  top: 0;
  white-space: nowrap;
  opacity: 0;
  /* On laisse une marge haute/basse dans le masque pour ne pas couper la queue du g. */
  clip-path: inset(-0.35em 100% -0.45em 0);
  pointer-events: none;
  color: var(--accent);
  transition: clip-path .18s ease, opacity .12s ease, color .15s ease, top .15s ease;
}


@media (hover: hover) and (pointer: fine) {
  .home-phare__word:hover .home-phare__prefix,
  .home-phare__word:hover .home-phare__suffix {
    color: var(--accent);
  }

  .home-phare__word:hover .home-phare__suffix {
    clip-path: inset(-0.35em 0 -0.45em 0);
    opacity: 1;
  }
}

.home-phare__preview {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}
.home-phare__preview--left { left: 5vw; }
.home-phare__preview--right { right: 5vw; }
.home-phare__preview-frame {
  width: min(28vw, 420px);
  height: min(38vw, 520px);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}
.home-phare__preview-frame.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-page--phare .legal-dot,
.home-page--phare .theme-dot {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .home-phare__word,
  .home-phare__suffix,
  .home-phare__preview-frame {
    transition: none;
  }
}

body.page-architecture-catalog .card__title,
body.page-photographie-catalog .card__title {
  font-size: 17px;
}

@media (max-width: 800px) {
  body.page-project-detail .topbar,
  body.page-reportage-detail .topbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 10px;
  }

  body.page-project-detail .topbar__left,
  body.page-reportage-detail .topbar__left {
    min-width: 0;
    overflow: hidden;
  }

  body.page-project-detail .topbar__left > .topbar__link,
  body.page-reportage-detail .topbar__left > .topbar__link {
    display: block;
    min-width: 0;
    width: 100%;
    overflow: hidden;
  }

  .topbar__title-marquee {
    display: block;
    position: relative;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
  }

  .topbar__title-track {
    display: inline-block;
    min-width: 100%;
    will-change: transform;
    transform: translateX(0);
  }

  .topbar__title-text {
    display: inline-block;
    padding-right: 28px;
  }

  body.page-project-detail .topbar__right,
  body.page-reportage-detail .topbar__right {
    position: relative;
    z-index: 3;
    background: var(--bg);
    padding-left: 16px;
  }

  body.page-project-detail .topbar__right::before,
  body.page-reportage-detail .topbar__right::before {
    content: "";
    position: absolute;
    top: -8px;
    bottom: -8px;
    left: -40px;
    width: 56px;
    background: linear-gradient(to right, transparent, var(--bg) 45%);
    pointer-events: none;
  }

  body.page-project-detail .topbar__link.is-close,
  body.page-reportage-detail .topbar__link.is-close {
    position: relative;
    z-index: 4;
    background: var(--bg);
  }

  .topbar__title-marquee.is-overflow .topbar__title-track {
    animation: topbar-marquee 12s ease-in-out infinite;
  }

  @keyframes topbar-marquee {
    0%, 22% { transform: translateX(0); }
    78%, 100% { transform: translateX(calc(-1 * var(--marquee-shift, 0px))); }
  }
}

/* FIX 2026-04-26 : éviter le rognage des descendantes sur la home */
.home-phare__word,
.home-phare__prefix,
.home-phare__suffix {
  overflow: visible;
}
.home-phare__suffix {
  line-height: 1.25;
  padding-bottom: .35em;
  margin-bottom: -.35em;
  clip-path: inset(-0.45em 100% -0.65em 0);
}
@media (hover: hover) and (pointer: fine) {
  .home-phare__word:hover .home-phare__suffix {
    clip-path: inset(-0.45em 0 -0.65em 0);
  }
}

/* Alignement des légendes : le JS calcule la largeur réelle de l’image affichée */
.viewer__caption.is-measured {
  justify-self: center;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
