/* ─── Fonts ─────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Coconat';
  src: url('../fonts/Coconat/Coconat-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Reforma';
  src: url('../fonts/reforma/Reforma2018-Gris.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Reforma';
  src: url('../fonts/reforma/Reforma2018-GrisItalica.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}


/* ─── Reset ─────────────────────────────────────────────────────────────── */

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

ul { list-style: none; }

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

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}


/* ─── Tokens ─────────────────────────────────────────────────────────────── */

:root {
  --color-bg:    #f5f4f0;
  --color-text:  #1a1a1a;
  --color-muted: #888;
  --color-rule:  #c8c6c2;
  --color-menu-overlay: #fde2d3;

  --font-sans: 'Reforma', sans-serif;
  --font-display: 'Coconat', sans-serif;

  /* typographic scale — desktop & mobile identiques */
  --text-h1-size:      3rem;       /* 48px / 48px */
  --text-h1-lh:        1;

  --text-h2-size:      1.625rem;   /* 26px / 36px */
  --text-h2-lh:        1.3846;

  --text-intro-size:   2rem;       /* 32px / 42px */
  --text-intro-lh:     1.3125;
  --text-display-tracking: -0.025em;

  --text-body-m-size:  1.125rem;   /* 18px / 26px */
  --text-body-m-lh:    1.4444;

  --text-body-s-size:  1rem;       /* 16px / 24px */
  --text-body-s-lh:    1.5;

  --text-body-xs-size: 0.875rem;   /* 14px / 24px */
  --text-body-xs-lh:   1.7143;

  --nav-height:    4rem;
  --page-pad:      1.25rem;

  /* Page Liens — fond panneau texte */
  --color-links-surface: #fdfaf7;

  /* Home — hauteur intro fixe (nav + hero) */
  --home-intro-height: 100vh;
}

@media (min-width: 769px) {
  :root {
    --home-intro-height: 88vh;
  }
}


/* ─── Base ───────────────────────────────────────────────────────────────── */

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-body-s-size);
  line-height: var(--text-body-s-lh);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}


/* ─── Type styles ────────────────────────────────────────────────────────── */

/* Gros titres — Coconat */
h1, .h1,
.project-title,
.footer-title,
.workshops-cta-title,
.not-found-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  letter-spacing: var(--text-display-tracking);
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-lh);
}

h2, .h2 {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-lh);
}

.footer-title,
.workshops-cta-title,
.not-found-title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-lh);
}

/* Texte d'intro — Coconat */
.bio-text,
.links-intro,
.not-found-haiku-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: var(--text-intro-size);
  line-height: var(--text-intro-lh);
}

.body-m {
  font-size: var(--text-body-m-size);
  line-height: var(--text-body-m-lh);
}

.body-s {
  font-size: var(--text-body-s-size);
  line-height: var(--text-body-s-lh);
}

.body-xs {
  font-size: var(--text-body-xs-size);
  line-height: var(--text-body-xs-lh);
}


/* ─── Intro fixe (nav + hero) ────────────────────────────────────────────── */

.site-intro {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--home-intro-height);
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.site-header {
  background-color: var(--color-bg);
  flex-shrink: 0;
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--nav-height);
  padding: 0 var(--page-pad);
}

.nav-left,
.nav-right {
  display: flex;
  gap: 1.25rem;
  font-size: var(--text-body-xs-size);
  line-height: var(--text-body-xs-lh);
}

.nav-right {
  justify-content: flex-end;
}

.nav-trailing {
  grid-column: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-trailing .nav-right a {
  text-transform: lowercase;
}

.nav-mobile-contact {
  display: none;
}

.nav-mobile-contact a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-logo {
  justify-self: center;
}

.nav-logo img {
  height: 2rem;
  width: auto;
}

.nav-toggle {
  display: none;
}

.hero {
  flex: 1;
  min-height: 0;
}

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


/* ─── Contenu principal (défile par-dessus l'intro fixe) ────────────────── */

.page-content {
  position: relative;
  z-index: 10;
  margin-top: var(--home-intro-height);
  background-color: var(--color-bg);
  max-width: 100%;
  overflow-x: clip;
}


/* ─── Section bio ────────────────────────────────────────────────────────── */

.bio {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
  padding: 2rem var(--page-pad) 2.5rem;
}

.bio-text {
  grid-column: 1 / span 3;
}

.bio-contact {
  grid-column: 4 / span 1;
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.2rem;
  text-align: left;
}

.bio-contact-label {
  color: var(--color-muted);
  margin-bottom: 0.15rem;
}


/* ─── Divider entre projets ──────────────────────────────────────────────── */

.project-divider {
  border: none;
  border-top: 1px solid var(--color-rule);
  margin: 0;
}


/* ─── Bandeau images avant les projets ───────────────────────────────────── */

.featured-strip {
  margin-bottom: 48px;
}


/* ─── Section projet ─────────────────────────────────────────────────────── */

.project {
  position: relative;
  border-top: none;
  margin-bottom: 3rem; /* 48px */
}

.project::before {
  content: '';
  position: absolute;
  left: var(--page-pad);
  right: var(--page-pad);
  top: 0;
  height: 1px;
  background-color: var(--color-text);
}


/* Grilles d'images */

.project-grid {
  display: grid;
  gap: 1rem;
  padding: 0 var(--page-pad);
  max-width: 100%;
}

/* Espacement entre deux lignes de galerie = gap interne (1rem) */
.project > .project-grid + .project-grid {
  margin-top: 1rem;
}

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

.project-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-img {
  background-color: #ababab; /* placeholder */
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

/* Placeholders HTML sans <img> — ratios de la maquette */
.project-img:not(:has(img)) {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.project-img:not(:has(img)).project-img--tall {
  aspect-ratio: 3 / 4;
}

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

.project .project-img,
.featured-strip .project-img {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.project .project-img.project-img--visible,
.featured-strip .project-img.project-img--visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .project .project-img,
  .featured-strip .project-img {
    opacity: 1;
    transition: none;
  }
}


/* En-tête projet : titre H1 à gauche, méta à droite */

.project-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding: 2rem var(--page-pad) 1.25rem; /* 32px en haut */
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.4rem;
}

.project-credits {
  color: var(--color-muted);
}

.project-credits a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.project-meta sup {
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: var(--text-body-xs-size);
  line-height: var(--text-body-xs-lh);
  font-weight: 400;
  vertical-align: super;
}

.project-meta sup a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ─── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  position: relative;
  border-top: none;
  padding: 3rem var(--page-pad) 1.5rem;
  text-align: center;
}

.site-footer::before {
  content: '';
  position: absolute;
  left: var(--page-pad);
  right: var(--page-pad);
  top: 0;
  height: 1px;
  background-color: var(--color-text);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  height: 7.92rem;
  width: auto;
  margin-bottom: 0.5rem;
}

.footer-title {
  /* hérite h2 */
}

.footer-inner .body-s a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal {
  color: var(--color-muted);
  margin-top: 1.5rem;
  max-width: min(72rem, 100%);
}


/* ─── Page Feed (grille masonry) ─────────────────────────────────────────── */

.site-intro.site-intro--feed {
  height: auto;
  min-height: 0;
  position: relative;
}

.page-content.page-content--feed {
  margin-top: 0;
}

.feed-main {
  padding: 0 var(--page-pad) 3rem;
}

.feed-grid {
  column-count: 3;
  column-gap: 1rem;
}

.feed-card {
  margin: 0 0 1rem;
  break-inside: avoid;
  opacity: 0;
  transition: opacity 0.7s ease var(--feed-reveal-delay, 0ms);
}

.feed-card.feed-card--visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .feed-card {
    opacity: 1;
    transition: none;
  }
}

.feed-card__toggle {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}

.feed-card__toggle:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 4px;
}

.feed-card__thumb {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  background-color: #ababab;
  object-fit: unset;
}

.feed-card__toggle .feed-card__thumb {
  width: 100%;
  height: auto;
}

/* Modificateurs de ratio — placeholders HTML statiques (<span>) uniquement */
span.feed-card__thumb--square {
  aspect-ratio: 1 / 1;
}

span.feed-card__thumb--tall {
  aspect-ratio: 2 / 3;
}

span.feed-card__thumb--portrait {
  aspect-ratio: 3 / 4;
}

span.feed-card__thumb--short {
  aspect-ratio: 4 / 3;
}

span.feed-card__thumb--wide {
  aspect-ratio: 16 / 9;
}

.feed-card__caption {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  padding: 0 0.125rem;
  opacity: 0;
  overflow: hidden;
  transition:
    grid-template-rows 0.4s ease,
    opacity 0.35s ease 0.05s,
    margin-top 0.35s ease;
}

.feed-card__caption.is-open {
  grid-template-rows: 1fr;
  margin-top: 0.5rem;
  opacity: 1;
}

.feed-card__caption-inner {
  overflow: hidden;
  min-height: 0;
}

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

  .feed-card__caption:not(.is-open) {
    display: none;
  }
}


/* ─── Page À propos ────────────────────────────────────────────────────────── */

.about-page {
  padding-bottom: 0;
}

.about-top {
  padding: 2rem var(--page-pad) 2.5rem;
}

.about-top-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

.about-photo {
  grid-column: span 5;
}

.about-photo-img {
  width: 100%;
  height: auto;
  display: block;
}

.about-photo-placeholder {
  width: 100%;
  background-color: #ababab;
  aspect-ratio: 3 / 4;
}

.about-bio {
  grid-column: span 4;
}

/* Libellés : même échelle que .body-xs, couleur grise (sans capitales ni tracking type maquette erroné) */
.about-label,
.about-row-label,
.about-more-label {
  color: var(--color-muted);
}

.about-page h2.about-label,
.about-page h2.about-row-label {
  font-family: var(--font-sans);
  font-weight: 400;
}

.about-label {
  margin: 0 0 1rem;
}

.about-bio-text p {
  margin: 0;
}

.about-bio-text p + p {
  margin-top: 1rem;
}

.about-contact-block {
  margin-top: 2rem;
}

.about-contact-block > .about-label {
  margin-bottom: 0.4rem;
}

.about-contact-block .body-s {
  margin: 0;
}

.about-contact-block .body-s + .body-s {
  margin-top: 0.25rem;
}

.about-contact-block a,
.email-protect {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.about-clients {
  grid-column: span 3;
  border-left: 1px solid var(--color-text);
  padding-left: 2rem;
  align-self: stretch;
}

.about-client-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.about-client-logo {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.25rem;
  min-width: 0;
  min-height: 0;
}

.about-client-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.about-more-label {
  margin: 0 0 0.5rem;
}

.about-client-more {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-client-more li + li {
  margin-top: 0.25rem;
}

.about-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  padding: 1.75rem var(--page-pad);
  border-bottom: none;
}

.about-row::after {
  content: '';
  position: absolute;
  left: var(--page-pad);
  right: var(--page-pad);
  bottom: 0;
  height: 1px;
  background-color: var(--color-text);
}

.about-row:last-child::after {
  display: none;
}

.about-row-label {
  margin: 0;
  grid-column: span 3;
}

.about-row-body {
  grid-column: span 9;
}

.about-row-body p {
  margin: 0;
}

.about-row-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-row-body ul li + li {
  margin-top: 0.35rem;
}

.about-row-body a {
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ─── Page 404 ───────────────────────────────────────────────────────────── */

.not-found-page {
  padding-bottom: 0;
}

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(3rem, 12vh, 6rem) var(--page-pad) clamp(4rem, 14vh, 7rem);
  min-height: calc(100dvh - var(--nav-height));
}

.not-found-code {
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.not-found-title {
  max-width: 24rem;
  margin-bottom: 3rem;
}

.not-found-haiku {
  margin: 0 0 3rem;
  padding: 0;
  border: none;
  max-width: 28rem;
}

.not-found-haiku-text {
  margin: 0;
}

.not-found-haiku-line {
  display: block;
}

.not-found-haiku-line + .not-found-haiku-line {
  margin-top: 0.35rem;
}

.not-found-haiku-cite {
  color: var(--color-muted);
  margin-top: 1.5rem;
  font-style: normal;
}

.not-found-haiku-cite cite {
  font-style: italic;
}

.not-found-back {
  margin: 0;
}

.not-found-back a {
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ─── Page Ateliers / Workshops ─────────────────────────────────────────── */

.workshops-page {
  padding-bottom: 0;
}

.workshops-cta {
  position: relative;
  text-align: center;
  padding: 3rem var(--page-pad) 3.5rem;
  margin-bottom: 0;
}

.workshops-cta::before {
  content: '';
  position: absolute;
  left: var(--page-pad);
  right: var(--page-pad);
  top: 0;
  height: 1px;
  background-color: var(--color-text);
}

.workshops-cta-title {
  max-width: 28rem;
  margin: 0 auto 1.25rem;
}

.workshops-cta-text {
  max-width: 40rem;
  margin: 0 auto 1.5rem;
}

.workshops-cta-contact {
  margin: 0;
}

.workshops-cta-contact a {
  text-decoration: underline;
  text-underline-offset: 2px;
}


@media (min-width: 1400px) {
  .feed-grid {
    column-count: 4;
  }
}

@media (max-width: 900px) {
  .feed-grid {
    column-count: 2;
  }

  .project-grid--3,
  .project-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-top-grid {
    grid-template-columns: 1fr;
  }

  .about-photo,
  .about-bio,
  .about-clients {
    grid-column: 1 / -1;
  }

  .about-clients {
    border-left: none;
    padding-left: 0;
    align-self: auto;
  }

  .about-photo {
    display: flex;
    justify-content: center;
  }

  .about-photo-img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 28rem;
  }

  .about-photo-placeholder {
    width: auto;
    max-width: 100%;
    max-height: 28rem;
    margin-inline: auto;
  }

  .about-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .about-row-label,
  .about-row-body {
    grid-column: 1 / -1;
  }
}


/* ─── Mobile ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .site-intro {
    position: relative;
    height: auto;
    min-height: 0;
  }

  .hero {
    flex: none;
  }

  .hero-img {
    height: auto;
    max-height: none;
    object-fit: unset;
    object-position: center;
  }

  .page-content {
    margin-top: 0;
  }

  :root {
    --page-pad: 8px;
    --text-h1-size: 2.125rem;
    --text-h2-size: 1.375rem;
    --text-intro-size: 1.75rem;
    --text-intro-lh: 1.3125;
  }

  .site-intro.site-intro--menu-open {
    z-index: 100;
  }

  body.nav-menu-open {
    overflow: hidden;
  }

  .site-header:has(.nav.nav--open) {
    min-height: var(--nav-height);
  }

  .nav {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    height: auto;
    min-height: var(--nav-height);
  }

  .nav.nav--open {
    position: fixed;
    inset: 0;
    z-index: 100;
    min-height: 100dvh;
    height: 100dvh;
    box-sizing: border-box;
    align-items: center;
    align-content: start;
    background-color: var(--color-menu-overlay);
    border-bottom: none;
    grid-template-rows: var(--nav-height) minmax(0, 1fr) auto;
    grid-template-columns: 1fr auto;
    padding: 0 var(--page-pad) max(var(--page-pad), env(safe-area-inset-bottom, 0px));
    gap: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-logo {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
  }

  .nav.nav--open .nav-logo {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .nav.nav--open .nav-toggle {
    align-self: center;
  }

  .nav-toggle {
    display: block;
    position: relative;
    width: 1.75rem;
    height: 2.75rem;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }

  .nav-toggle:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 4px;
  }

  .nav-toggle-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-text);
    border-radius: 0;
    transition: transform 0.2s ease, top 0.2s ease;
    transform-origin: center;
  }

  /* Burger : deux barres horizontales, centrées verticalement */
  .nav:not(.nav--open) .nav-toggle-line:first-child {
    top: calc(50% - 4.5px);
    transform: none;
  }

  .nav:not(.nav--open) .nav-toggle-line:last-child {
    top: calc(50% + 3.5px);
    transform: none;
  }

  /* Croix : même axe central, rotations symétriques */
  .nav.nav--open .nav-toggle-line:first-child,
  .nav.nav--open .nav-toggle-line:last-child {
    top: calc(50% - 0.5px);
  }

  .nav.nav--open .nav-toggle-line:first-child {
    transform: rotate(45deg);
  }

  .nav.nav--open .nav-toggle-line:last-child {
    transform: rotate(-45deg);
  }

  .nav:not(.nav--open) .nav-left,
  .nav:not(.nav--open) .nav-trailing {
    display: none;
  }

  .nav.nav--open .nav-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.25rem;
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: stretch;
    justify-self: stretch;
    padding: 1rem 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-style: normal;
    letter-spacing: var(--text-display-tracking);
    font-size: clamp(1.5rem, 5.5vw, 2rem);
    line-height: 1.15;
    text-transform: lowercase;
    text-align: center;
  }

  .nav.nav--open .nav-trailing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    grid-column: 1 / -1;
    grid-row: 3;
    padding-top: 1rem;
    width: 100%;
    max-width: 100%;
  }

  .nav.nav--open .nav-mobile-contact {
    display: block;
    text-align: center;
    font-size: var(--text-body-s-size);
    line-height: var(--text-body-s-lh);
    max-width: 22rem;
  }

  .nav.nav--open .nav-right {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.25rem;
    font-size: var(--text-body-s-size);
    line-height: var(--text-body-s-lh);
  }

  .nav.nav--open .nav-right a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-transform: capitalize;
  }

  .bio {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem var(--page-pad) 2rem;
  }

  .bio-text {
    grid-column: 1 / -1;
  }

  .bio-contact {
    grid-column: 1 / -1;
    justify-self: start;
    padding-top: 0;
  }

  .featured-strip {
    margin-bottom: 2rem;
  }

  .project-grid {
    padding: 0;
    gap: 0;
  }

  .project > .project-grid + .project-grid {
    margin-top: 0;
  }

  .project-grid--1,
  .project-grid--2,
  .project-grid--3,
  .project-grid--4 {
    grid-template-columns: 1fr;
  }

  .project {
    margin-bottom: 2rem;
  }

  .project-header {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem var(--page-pad) 1rem;
  }

  .project-meta {
    padding-top: 0;
  }

  .site-footer {
    padding: 2rem var(--page-pad) 1.25rem;
  }

  .footer-legal {
    max-width: none;
  }

  .feed-grid {
    column-count: 1;
  }

  .feed-main {
    padding-bottom: 2rem;
  }
}


/* ─── Page Liens (template autonome — typo & couleurs site uniquement) ───── */

body.links-body {
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: var(--text-body-s-size);
  line-height: var(--text-body-s-lh);
  color: var(--color-text);
  background-color: var(--color-links-surface);
  -webkit-font-smoothing: antialiased;
}

.links-layout {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.links-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem var(--page-pad) 2rem;
  background-color: var(--color-links-surface);
}

.links-logo {
  display: block;
}

.links-logo img {
  height: 2.75rem;
  width: auto;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.links-intro {
  max-width: 28rem;
  margin: 0 auto 2rem;
}

.links-buttons {
  list-style: none;
  margin: 0 auto 2rem;
  padding: 0;
  width: 100%;
  max-width: 17.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.links-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--color-text);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: var(--text-body-s-size);
  line-height: var(--text-body-s-lh);
  text-align: center;
  background-color: transparent;
  transition: background-color 0.15s ease;
}

.links-btn:hover {
  background-color: rgba(26, 26, 26, 0.05);
}

.links-btn:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

.links-btn--accent {
  background-color: var(--color-menu-overlay);
}

.links-btn--accent:hover {
  background-color: color-mix(in srgb, var(--color-menu-overlay) 88%, var(--color-text));
}

.links-social {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-body-xs-size);
  line-height: var(--text-body-xs-lh);
}

.links-social a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.links-social a:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

.links-social__accent {
  color: color-mix(in srgb, var(--color-menu-overlay) 58%, var(--color-text));
}

.links-contact {
  font-size: var(--text-body-xs-size);
  line-height: var(--text-body-xs-lh);
  max-width: 20rem;
}

.links-contact a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.links-media {
  flex: none;
  width: 100%;
  order: 2;
  min-height: min(42vh, 24rem);
  background-color: #ababab;
}

.links-media-img {
  width: 100%;
  height: 100%;
  min-height: min(42vh, 24rem);
  object-fit: cover;
}

@media (min-width: 769px) {
  .links-layout {
    flex-direction: row;
    align-items: stretch;
    min-height: 100dvh;
  }

  .links-panel {
    flex: 1;
    order: 2;
    width: 50%;
    max-width: none;
    min-height: 100dvh;
    justify-content: center;
    padding: 3rem 2.5rem;
  }

  .links-media {
    flex: 1;
    order: 1;
    width: 50%;
    min-height: 100dvh;
  }

  .links-media-img {
    min-height: 100dvh;
    height: 100%;
  }

  .links-social {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
  }
}
