/* Grilles : toujours 3 colonnes. Ne pas passer à 1 ou 2. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../assets/fonts/HankenGrotesk-Regular.woff2") format("woff2"),
    url("../assets/fonts/HankenGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../assets/fonts/HankenGrotesk-Bold.woff2") format("woff2"),
    url("../assets/fonts/HankenGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

:root {
  --bg: #121212;
  --ink: #f7f1e8;
  --ink-soft: #e0d2b8;
  --muted: #b7ab9a;
  --rule: #2c2c2c;
  --accent: #d4af37;
  --accent-line: 1px;
  --paper: #e0d2b8;
  --stroke: #2c2c2c;
  --sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --content: 1040px;
  --side: clamp(14px, 4.8vw, 64px);
  --gap: clamp(8px, 1.2vw, 18px);
  --radius: clamp(8px, 1.25vw, 16px);
  color-scheme: dark;
}

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

html {
  overflow-x: clip;
}

body {
  --edge: clamp(16px, 3.143vw, 40px);
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: calc(1rem + 2px);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

h2,
h2.category-title {
  font-size: calc(1.2rem + 2px);
  font-weight: 400;
}

img,
svg,
video {
  max-width: 100%;
}

img {
  height: auto;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  background: var(--ink);
  color: var(--bg);
  padding: 0.45rem 0.7rem;
  font-family: var(--sans);
  font-size: calc(0.8rem + 2px);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.frame {
  margin: 0;
  border: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1 0 auto;
}

.measure {
  width: min(var(--content), calc(100% - 2 * var(--side)));
  max-width: 100%;
  margin-inline: auto;
}

.site-header {
  position: relative;
  border-bottom: 0;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--accent-line);
  /* v50 : 30 % -> 100 % vers 20 % -> 0 % au bout */
  background: linear-gradient(to right, rgba(212, 175, 55, 0.3) 0, rgba(212, 175, 55, 1) var(--line-full, 3vw), rgba(212, 175, 55, 1) var(--line-zero, 16vw), rgba(212, 175, 55, 0) 100%);
  /* v51 : v52 : 100 % du P de PHILIPPE au M de TREMBLAY, puis long dégradé jusqu'à 0 % au bord droit.
     --line-full et --line-zero sont mesurés par js/layout.js (placeHeaderLine). */
  pointer-events: none;
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  height: 48.3px;
  padding-block: 0;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  max-width: calc(100% - 52px);
}

.brand-name {
  font-family: "Big Shoulders Display", "League Gothic", Impact, "Arial Narrow", sans-serif; /* v39 : nom en Big Shoulders */
  font-weight: 800;
  font-size: calc(19px + 2px);
  line-height: 1.05;
  letter-spacing: 0.11em;
  white-space: nowrap;
}

.brand-role {
  font-family: var(--sans);
  font-size: calc(10.12px + 2px);
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.nav-bars {
  width: 27px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-bars span {
  display: block;
  height: 2px;
  background: var(--ink);
}

.site-footer {
  border-top: 0;
  margin-top: auto;
  padding-block: 1.08rem 1.2rem;
}

.site-footer .footer-bar {
  width: min(var(--content), calc(100% - 2 * var(--side)));
  max-width: 100%;
  margin-inline: auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.4rem 1.35rem;
  flex-wrap: nowrap;
  padding-inline: 0;
}

.footer-slot {
  margin: 0;
  font-family: var(--sans);
  font-size: calc(0.86rem + 2px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
}

a.footer-slot:hover,
a.footer-slot:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-menu {
  position: fixed;
  z-index: 40;
  inset: 0;
  background: var(--bg);
  border: 0;
  overflow: auto;
  padding: clamp(16px, 4vw, 40px);
}

.site-menu[hidden] {
  display: none !important;
}

.menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--ink);
}

.menu-top p {
  margin: 0;
  font-size: calc(1rem + 2px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.menu-close,
.player-close {
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--sans);
  font-size: calc(0.68rem + 2px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.55rem 0;
  cursor: pointer;
}

.menu-close {
  font-size: calc(1.65rem + 2px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  width: 44px;
  height: 44px;
  padding: 0;
}

.menu-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}

.menu-list a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 1.12rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-weight: 400;
}

.menu-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.menu-list .menu-label {
  font-weight: 700;
  font-size: clamp(calc(1.2rem + 2px), calc(2.2vw + 2px), calc(1.5rem + 2px));
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* v45 TEST : descriptions de menu retirées. */
.menu-list .menu-desc {
  display: none;
}

.menu-list .menu-desc-unused {
  font-size: calc(0.72rem + 2px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}

.menu-list a[aria-current="page"] .menu-label {
  font-weight: 700;
}

.eyebrow {
  margin: 0;
  font-family: var(--sans);
  font-size: calc(0.68rem + 2px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-main .measure {
  padding-bottom: clamp(1.6rem, 5vh, 3.4rem);
}

.home-intro {
  max-width: 34rem;
  padding-top: clamp(3.2rem, 12vh, 7.5rem);
}

.home-intro h1 {
  margin: 0.55rem 0 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(calc(2rem + 2px), calc(4vw + 2px), calc(3.15rem + 2px));
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: calc(1rem + 2px);
  line-height: 1.55;
  max-width: 36rem;
}

.home-intro .lede {
  margin-top: 1rem;
}

.section-index {
  margin-top: clamp(2.6rem, 8vh, 5rem);
}

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

.index-list a {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr) auto;
  column-gap: 0.7rem;
  row-gap: 0.15rem;
  align-items: baseline;
  text-decoration: none;
  color: inherit;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

.index-list .num {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-size: calc(0.68rem + 2px);
  letter-spacing: 0.12em;
  color: var(--muted);
}

.index-list .name {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(calc(1.05rem + 2px), calc(1.1vw + 0.55rem + 2px), calc(1.4rem + 2px));
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.index-list .desc {
  grid-column: 2;
  grid-row: 2;
  font-size: calc(0.68rem + 2px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.index-list .go {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
}

.index-list a:hover,
.index-list a:focus-visible {
  border-bottom-color: var(--ink);
}

.page-intro {
  text-align: center;
  padding-top: clamp(2rem, 6vh, 4.2rem);
  padding-bottom: clamp(1.3rem, 3vh, 2.2rem);
}

.page-intro h1,
.contact-block h1 {
  margin: 0.35rem 0 0;
  font-family: "Big Shoulders Compressed", "Big Shoulders Display", "League Gothic", Impact, "Arial Narrow", sans-serif; /* v39 */
  font-weight: 800;
  font-size: clamp(calc(1.85rem + 2px), calc(3.6vw + 2px), calc(2.8rem + 2px));
  line-height: 1.031;
  letter-spacing: -0.03em;
}

.page-intro .lede {
  margin: 1rem auto 0;
}

.gallery-label,
.category-title {
  text-align: center;
}

.gallery-label {
  margin: 0 0 0.85rem;
  font-size: calc(0.68rem + 2px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.category-title {
  margin: 0 0 1rem;
  font-family: "Big Shoulders Compressed", "Big Shoulders Display", "League Gothic", Impact, "Arial Narrow", sans-serif; /* v39 */
  font-style: normal;
  font-weight: 800;
  font-size: clamp(calc(1.2rem + 2px), calc(2vw + 2px), calc(1.55rem + 2px));
  line-height: 0.983;
  letter-spacing: -0.02em;
}

.series + .series {
  margin-top: clamp(2.4rem, 7vh, 4.8rem);
}

.feature {
  width: 74%;
  margin-inline: auto;
  margin-bottom: clamp(1.6rem, 4vh, 2.6rem);
  min-width: 0;
}

.feature img,
.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  background: #c8c8c8;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  width: 100%;
}

.gallery figure {
  margin: 0;
  min-width: 0;
}

.video-thumb,
.image-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.lock {
  position: static;
  width: 0.78em;
  height: 0.78em;
  margin-left: 0.32em;
  display: inline-block;
  vertical-align: -0.08em;
}

.thumb-media {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
}

.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(22px, 18%, 46px);
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.feature-caption,
.gallery figcaption {
  font-size: clamp(calc(0.62rem + 2px), calc(0.45vw + 0.5rem + 2px), calc(0.75rem + 2px));
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.35;
}

.feature-caption,
.gallery figcaption {
  margin-top: 0.4rem;
  padding-left: clamp(6px, 0.9vw, 8px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  text-align: left;
}

.cap-meta,
.time {
  color: var(--muted);
}

.contact-main {
  display: flex;
  flex-direction: column;
}

.contact-main .measure {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: clamp(2rem, 6vh, 4.2rem);
}

.contact-block h1 {
  font-style: normal;
  max-width: 12ch;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.7fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: stretch;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.contact-portrait {
  width: min(100%, 280px);
  aspect-ratio: 4 / 5;
  background: #c8c8c8;
  border-radius: var(--radius);
  justify-self: end;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.8rem 1.6rem;
  margin: auto 0 0;
  padding-top: 1.75rem;
}

.contact-links a {
  color: inherit;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(calc(0.95rem + 2px), calc(1.2vw + 2px), calc(1.15rem + 2px));
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact-block .lede {
  margin-top: 1rem;
}

.slots {
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 2rem;
  max-width: 40rem;
}

.slots dt {
  font-size: calc(0.68rem + 2px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.slots dd {
  margin: 0.35rem 0 0;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(calc(1.15rem + 2px), calc(2vw + 2px), calc(1.45rem + 2px));
  color: var(--ink-soft);
}

.slot-note {
  margin: 1.4rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: calc(0.9rem + 2px);
}

.noscript {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: calc(0.9rem + 2px);
}

.overlay-dialog {
  border: none;
  padding: 0;
  background: transparent;
  color: #f4f4f3;
  max-width: calc(100% - 16px);
}

.overlay-dialog::backdrop {
  background: rgba(12, 11, 10, 0.78);
}

.icon-close {
  border: 0;
  background: transparent;
  color: #f4f4f3;
  font-family: var(--sans);
  font-size: calc(1.75rem + 2px);
  line-height: 1;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}

.lightbox-sheet .player-top {
  justify-content: flex-end;
  align-items: center;
}

.lightbox-stage {
  position: relative;
}

.lightbox-hit {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.lightbox-hit-prev { left: 0; }
.lightbox-hit-next { right: 0; }

.lightbox-hit:focus-visible {
  outline: 1px solid #f4f4f3;
  outline-offset: -4px;
}

.lightbox-caption {
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: clamp(calc(0.72rem + 2px), calc(0.5vw + 0.55rem + 2px), calc(0.85rem + 2px));
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f4f4f3;
}

.page-main .home-wide {
  width: 100%;
  max-width: none;
  padding-bottom: 0;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.frame:has(.home-stage) {
  min-height: 100dvh;
}

.frame:has(.home-stage) .page-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.frame:has(.home-stage) .site-footer {
  margin-top: 0;
}

.home-stage {
  display: grid;
  grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
  column-gap: 0;
  align-items: stretch;
  flex: 1 0 auto;
  min-height: 100%;
  position: relative;
  padding: 0;
}

.home-stage .home-menu {
  grid-column: 1;
  grid-row: 1;
}

.home-stage .carousel {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  box-sizing: border-box;
}

.home-stage .section-index {
  margin-top: 0;
}

.home-stage .home-menu {
  display: flex;
  align-self: stretch;
  min-width: 0;
  min-height: 100%;
  border-right: 1px solid rgba(20, 20, 20, 0.14);
  padding: 0;
  box-sizing: border-box;
}

.home-stage .index-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 0;
  margin: 0;
}

.home-stage .index-list li {
  display: flex;
  flex: 1 0 auto;
  min-height: 3.4rem;
}

.home-stage .index-list a {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 1.25rem 0 clamp(28px, 16.7%, 96px);
  border-bottom: 1px solid var(--rule);
  min-height: 0;
}

.home-stage .index-list li:last-child a {
  border-bottom: 0;
}

.home-pair {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: auto;
  max-width: 100%;
}

.home-stage .index-list .name {
  font-size: clamp(calc(1.2rem + 2px), calc(1.7vw + 2px), calc(1.5rem + 2px));
  font-weight: 700;
  line-height: 1.15;
}

.home-stage .index-list .desc {
  margin: 0;
  font-size: calc(0.72rem + 2px);
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.home-stage .go {
  display: none;
}

.carousel-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg);
}

.carousel-track {
  display: flex;
  width: 500%;
  height: 100%;
  transform: translateX(-20%);
  transition: transform 600ms ease;
}

.carousel-track.is-instant {
  transition: none;
}

.carousel-track img {
  flex: 0 0 20%;
  width: 20%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--bg);
}

.carousel-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.carousel-progress {
  height: 1px;
  background: var(--rule);
}

.carousel-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
}

.carousel-progress span.is-run {
  animation: carousel-meter 3s linear forwards;
}

.carousel-progress span.is-paused {
  animation-play-state: paused;
}

@keyframes carousel-meter {
  from { width: 0; }
  to { width: 100%; }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0;
}

.slots a {
  color: inherit;
  font: inherit;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c8c8c8;
  cursor: pointer;
}

.carousel-dots button[aria-selected="true"] {
  background: var(--ink);
}

.carousel-dots button:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .frame:has(.home-stage) {
    min-height: 0;
  }

  .frame:has(.home-stage) .page-main,
  .page-main .home-wide,
  .home-stage {
    display: block;
    flex: none;
    min-height: 0;
  }

  .home-stage .carousel,
  .home-stage .home-menu {
    grid-column: auto;
    grid-row: auto;
  }

  .home-stage .home-menu {
    display: block;
    border-right: 0;
    min-height: 0;
    padding: 8px 0 18px;
  }

  .home-stage .index-list,
  .home-stage .index-list li {
    display: block;
    flex: none;
  }

  .home-stage .index-list a {
    min-height: 52px;
    justify-content: flex-start;
    padding: 0.85rem 16px 0.85rem clamp(28px, 16.7%, 96px);
  }

  .home-stage .carousel {
    display: block;
    padding: 12px 16px 0;
  }

  .carousel-viewport {
    aspect-ratio: 16 / 9;
    flex: none;
    height: auto;
  }
}

.lightbox-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #c8c8c8;
}

.player-sheet {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  width: max-content;
  max-width: 100%;
}

.player-top {
  display: flex;
  justify-content: flex-end;
}

.player-close:focus-visible {
  outline-color: #f4f4f3;
}

.player-stage {
  position: relative;
  background: #0e0d0c;
  border-radius: var(--radius);
  overflow: hidden;
}

.player-stage video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.player-stage video[hidden] {
  display: none !important;
}

.player-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.8rem;
  text-align: center;
}

.player-placeholder p {
  margin: 0;
}

.player-kicker,
.player-ratio {
  font-size: calc(0.68rem + 2px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.76);
}

.player-title,
.player-note,
.player-fallback {
  margin: 0;
  text-align: center;
}

.player-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(calc(1.05rem + 2px), calc(1.6vw + 2px), calc(1.35rem + 2px));
}

.player-note,
.player-fallback {
  font-size: calc(0.82rem + 2px);
  line-height: 1.45;
  color: rgba(243, 239, 230, 0.84);
}

@media (max-width: 760px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-copy {
    min-height: 0;
  }

  .contact-links {
    margin-top: 1.5rem;
    padding-top: 0;
  }

  .contact-portrait {
    width: min(100%, 220px);
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Bandeau gris chaud et pied blanc, sur toutes les pages */
.site-header,
.site-footer {
  background: var(--bg);
}

.site-header .measure,
.home-footer-wrap {
  width: calc(100% - 2 * var(--edge));
  max-width: none;
}

.home-footer-wrap {
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  padding-block: 0.35rem 0.8rem;
}

.home-social {
  display: flex;
  gap: 0.35rem;
}

.home-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
}

.home-icon svg {
  width: 23px;
  height: 23px;
  display: block;
}

.home-copy {
  margin: 0;
  color: var(--muted);
  font-size: calc(10px + 2px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-toggle {
  border: 0;
  box-shadow: none;
  background: transparent;
}

body[data-page="sketchbook"] .lightbox-stage img {
  object-fit: contain;
}

img.contact-portrait {
  display: block;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
}

@font-face {
  font-family: "Anton";
  src: url("../assets/fonts/Anton-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bebas Neue";
  src: url("../assets/fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "League Gothic";
  src: url("../assets/fonts/LeagueGothic.ttf") format("truetype");
  font-weight: 400;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  /* v39 : Big Shoulders Display ExtraBold compressée à 80 % en largeur (fichier généré, licence OFL) */
  font-family: "Big Shoulders Compressed";
  src: url("../assets/fonts/BigShouldersCompressed-ExtraBold.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../assets/fonts/BigShouldersDisplay.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

body[data-page="accueil"] {
  background: var(--bg);
}

body[data-page="accueil"] .frame,
body[data-page="accueil"] .page-main {
  min-height: 0;
  background: var(--bg);
}

body[data-page="accueil"] .site-footer {
  margin-top: 0;
  background: var(--bg);
}

body[data-page="accueil"] .hero {
  position: relative;
  height: 37.5vw;
  overflow: hidden;
  background: var(--bg);
}

body[data-page="accueil"] .hero-media {
  position: absolute;
  top: 0;
  right: 0;
  width: 66.6667%;
  height: 100%;
}

body[data-page="accueil"] .hero-media .carousel-viewport {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 0;
  background: var(--bg);
}

body[data-page="accueil"] .carousel-track,
body[data-page="accueil"] .carousel-track img {
  height: 100%;
}

body[data-page="accueil"] .carousel-track img {
  width: 20%;
  max-width: none;
  object-fit: fill;
  object-position: center;
}

body[data-page="accueil"] .hero-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to right, var(--bg) 0%, rgba(18, 18, 18, 0) 50%);
}

body[data-page="accueil"] .hero-shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 20%;
  pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, rgba(18, 18, 18, 0) 100%);
}

body[data-page="accueil"] .hero-copy {
  position: absolute;
  z-index: 3;
  left: 3.15vw;
  top: 3.4vw;
  right: 2vw;
  margin: 0;
}

body[data-page="accueil"] .hero-kicker {
  margin: 0; /* v48 : espace avec le titre réduit de 50 % (avant : 0 0 0.6vw) */
  color: var(--ink);
  font-size: calc(1.035vw + 2px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

body[data-page="accueil"] .hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Big Shoulders Compressed", "Big Shoulders Display", "League Gothic", Impact, "Arial Narrow", sans-serif;
  font-weight: 800;
  font-stretch: 75%;
  /* v41 : 2e ligne un peu plus grosse, 1re réduite via ::first-line.
     Interligne fixe = même hauteur totale qu'avant (2 x 0.89 x 10.15vw). */
  /* v47 : 1re ligne = 10.15vw (même taille que les titres des autres pages),
     2e ligne un peu plus grosse (11.4vw, environ +12 %). */
  font-size: 10.15vw; /* v53 : 2e ligne = taille des titres des autres pages */
  line-height: 8.2vw;
  letter-spacing: 0.006em;
  word-spacing: -0.08675em;
  text-transform: uppercase;
  text-shadow: none;
}

/* v41 : « FROM A FEW LINES » réduit (environ 9.2vw au lieu de 10.15vw) */
body[data-page="accueil"] .hero-copy h1::first-line {
  font-size: 0.8636em; /* v55 : +1 %, 10.15vw x 0.8636 = 8.77vw */
}

body[data-page="accueil"] .hero-lead {
  max-width: 34vw;
  margin: 1.1vw 0 0;
  color: var(--ink);
  font-size: calc(1.28vw + 2px);
  line-height: 1.35;
}

body[data-page="accueil"] .work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7vw;
  margin-top: 1.5vw;
  padding: 0.7vw 1.15vw;
  border-radius: 0.45vw;
  background: var(--bg);
  color: var(--accent);
  border: 1px solid var(--accent);
  font-size: calc(1.05vw + 2px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

body[data-page="accueil"] .work-link svg {
  width: 1.1vw;
  height: 1.1vw;
}

body[data-page="accueil"] .work-link:hover,
body[data-page="accueil"] .work-link:focus-visible {
  background: rgba(212, 175, 55, 0.14);
}

body[data-page="accueil"] .home-tiles {
  /* v48 : 3 colonnes sur 80 % de la largeur, comme les autres pages
     (avant : 4 colonnes, gap 0.9vw, largeur 100% - 6.3vw) */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 26px);
  /* v49 : même marge à gauche et à droite = marge du bouton Let's collaborate (3.15vw) */
  width: calc(100% - 6.3vw);
  max-width: none;
  position: relative;
  z-index: 4;
  margin: -4.7vw auto 0.35vw;
}

body[data-page="accueil"] .home-tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.9vw;
  color: var(--ink);
  text-decoration: none;
  box-shadow: none;
  filter: none;
}

body[data-page="accueil"] .home-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

body[data-page="accueil"] .carousel-track img,
body[data-page="accueil"] .home-tile img {
  filter: sepia(0.55) saturate(0.45) brightness(0.95);
}

body[data-page="accueil"] .home-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
}

body[data-page="accueil"] .tile-title {
  position: absolute;
  z-index: 1;
  left: 0.7vw;
  right: 0.4vw;
  bottom: 0.45vw;
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 2.55vw;
  line-height: 0.923;
  letter-spacing: -0.03em;
  text-align: left;
  text-transform: uppercase;
  text-shadow: none;
}

body[data-page="accueil"] .tile-line {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  line-height: 0.85;
  font-family: "Big Shoulders Compressed", "Big Shoulders Display", "League Gothic", Impact, "Arial Narrow", sans-serif;
  font-weight: 800;
}

@media (max-width: 600px) {
  body[data-page="accueil"] .home-tiles {
    grid-template-columns: minmax(0, 1fr);
    width: 80%;
    gap: 14px;
    margin: -1.5vw auto 0.35vw;
  }
}

body[data-page="accueil"] .home-tile .lock {
  width: 1.2em;
  height: 1.2em;
  margin-left: 0.12em;
  color: var(--accent);
  vertical-align: baseline;
  filter: none;
}

.hero-copy h1 .accent,
.tile-line .accent,
.accent {
  color: #d4af37;
}

.home-icon:hover,
.home-icon:focus-visible {
  color: var(--accent);
}

body[data-page="accueil"] .home-footer-wrap {
  padding-block: 0.2vw 1.2vw;
}

/* Page Professional Work
   Gabarit : .pw-hero, .pw-project, .pw-mosaic.
   Textes limités à ce qui est déjà dans la page. */

.pw-hero {
  position: relative;
  height: 46vw;
  min-height: 440px;
  max-height: 760px;
  overflow: hidden;
  background: #121212;
}

.pw-hero-media {
  position: absolute;
  top: 0;
  right: 0;
  width: 66.6667%;
  height: 100%;
}

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

.pw-hero-fade,
.pw-hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pw-hero-fade {
  z-index: 1;
  background: linear-gradient(to right, #121212 0%, rgba(18, 18, 18, 0) 50%);
}

.pw-hero-shade {
  z-index: 2;
  background: linear-gradient(to top, #121212 0%, rgba(18, 18, 18, 0) 100%);
  top: auto;
  height: 22%;
}

.pw-hero-copy {
  position: absolute;
  z-index: 3;
  left: var(--edge);
  right: 36%;
  top: clamp(1.4rem, 3.6vw, 3.2rem);
  margin: 0;
}

.pw-kicker {
  margin: 0 0 0.7vw;
  color: #d4af37;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(calc(0.68rem + 2px), calc(1.05vw + 2px), calc(0.95rem + 2px));
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.pw-hero h1 {
  margin: 0;
  color: #f7f1e8;
  font-family: "Big Shoulders Compressed", "Big Shoulders Display", "League Gothic", Impact, "Arial Narrow", sans-serif;
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(2.7rem, 8.4vw, 8.6rem);
  line-height: 0.863;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  text-shadow: none;
}

.pw-hero h1 .accent {
  color: #d4af37;
}

.pw-hero .lock {
  width: 1.05em;
  height: 1.05em;
  margin-left: 0.12em;
  color: #d4af37;
  vertical-align: -0.14em;
  filter: none;
}

.pw-lead {
  max-width: 36rem;
  margin: clamp(1.15rem, 2.8vw, 2.2rem) 0 0;
  color: #f7f1e8;
  font-family: var(--sans);
  font-size: clamp(calc(0.92rem + 2px), calc(1.22vw + 2px), calc(1.12rem + 2px));
  line-height: 1.45;
}

.pw-list {
  padding: clamp(1.5rem, 4vh, 2.5rem) var(--edge) clamp(2.4rem, 7vh, 4.5rem);
}

.pw-project {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.58fr) minmax(0, 1.75fr);
  column-gap: clamp(1.4rem, 4vw, 5.5rem);
  align-items: start;
  padding-block: clamp(3.6rem, 10vh, 7.4rem);
}

.pw-project + .pw-project {
  border-top: 1px solid #2c2c2c;
}

.pw-flip {
  grid-template-columns: minmax(0, 1.75fr) minmax(8.5rem, 0.58fr);
}

.pw-flip .pw-copy {
  order: 2;
}

.pw-num {
  margin: 0 0 0.35rem;
  color: #d4af37;
  font-family: "Big Shoulders Compressed", "Big Shoulders Display", "League Gothic", Impact, "Arial Narrow", sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 4.4vw, 4.6rem);
  line-height: 0.863;
  letter-spacing: 0.02em;
}

.pw-name {
  margin: 0;
  color: #f7f1e8;
  font-family: "Big Shoulders Compressed", "Big Shoulders Display", "League Gothic", Impact, "Arial Narrow", sans-serif;
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(3rem, 5.6vw, 6.4rem);
  line-height: 0.887;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: none;
}

.pw-name .accent {
  color: #d4af37;
}

.pw-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(12px, 1.3vw, 20px);
  align-items: start;
}

.pw-side {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.3vw, 20px);
}

.pw-rest {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.3vw, 20px);
}

.pw-card {
  margin: 0;
  min-width: 0;
}

.pw .video-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.pw .thumb-media {
  border-radius: var(--radius);
  border: 1px solid #2c2c2c;
  border-width: var(--accent-line);
  overflow: hidden;
  transition: border-color 0.45s ease;
}

.pw .thumb-media > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border: 0;
  border-radius: 0;
  background: #c8c8c8;
  transform: scale(1);
  transition: transform 0.55s ease;
}

.pw .video-thumb:hover .thumb-media > img,
.pw .video-thumb:focus-visible .thumb-media > img {
  transform: scale(1.03);
}

.pw-card figcaption {
  margin-top: 0.45rem;
  padding-left: 2px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  color: #e0d2b8;
  font-family: var(--sans);
  font-size: clamp(calc(0.62rem + 2px), calc(0.45vw + 0.5rem + 2px), calc(0.75rem + 2px));
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-align: left;
  text-transform: uppercase;
}

.pw-card .cap-meta {
  color: #b7ab9a;
}

@media (max-width: 800px) {
  .pw-hero {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .pw-hero-media {
    position: relative;
    width: 100%;
    height: 54vw;
    min-height: 168px;
  }

  .pw-hero-fade {
    background: linear-gradient(to top, #121212 0%, rgba(18, 18, 18, 0) 62%);
  }

  .pw-hero-shade {
    display: none;
  }

  .pw-hero-copy {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    padding: 1.15rem var(--edge) 0;
  }

  .pw-lead {
    margin-top: 1.2rem;
  }

  .pw-project,
  .pw-flip {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.35rem;
    padding-block: 2.6rem 2.8rem;
  }

  .pw-flip .pw-copy {
    order: 0;
  }

  .pw-mosaic,
  .pw-side,
  .pw-rest {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    grid-column: auto;
    width: 100%;
  }

  .pw-card,
  .pw .video-thumb,
  .pw .thumb-media {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pw .video-thumb:hover .thumb-media > img,
  .pw .video-thumb:focus-visible .thumb-media > img {
    transform: none;
  }
}

/* Page professional-work-v30
   Hero d'accueil raccourci en 16:6, sans surtitre, sans bouton, sans cartes.
   Ne pas réutiliser ces règles sur data-page="accueil". */

body[data-page="pro-v30"] {
  background: var(--bg);
}

body[data-page="pro-v30"] .frame,
body[data-page="pro-v30"] .page-main {
  min-height: 0;
  background: var(--bg);
}

body[data-page="pro-v30"] .site-footer {
  margin-top: 0;
  background: var(--bg);
}

body[data-page="pro-v30"] .home-footer-wrap {
  padding-block: 0.2vw 1.2vw;
}

body[data-page="pro-v30"] .hero {
  position: relative;
  height: 25vw;
  overflow: hidden;
  background: var(--bg);
}

body[data-page="pro-v30"] .hero-media {
  position: absolute;
  top: 0;
  right: 0;
  width: 66.6667%;
  height: 100%;
}

body[data-page="pro-v30"] .hero-media .carousel-viewport {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 0;
  background: var(--bg);
}

body[data-page="pro-v30"] .carousel-track,
body[data-page="pro-v30"] .carousel-track img {
  height: 100%;
}

body[data-page="pro-v30"] .carousel-track img {
  width: 20%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

body[data-page="pro-v30"] .hero-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to right, var(--bg) 0%, rgba(18, 18, 18, 0) 50%);
}

body[data-page="pro-v30"] .hero-shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 20%;
  pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, rgba(18, 18, 18, 0) 100%);
}

body[data-page="pro-v30"] .hero-copy {
  position: absolute;
  z-index: 3;
  left: 3.15vw;
  right: 2vw;
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
}

body[data-page="pro-v30"] .hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Big Shoulders Compressed", "Big Shoulders Display", "League Gothic", Impact, "Arial Narrow", sans-serif;
  font-weight: 800;
  font-stretch: 75%;
  font-size: 10.15vw;
  line-height: 0.863;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  text-shadow: none;
}

body[data-page="pro-v30"] .hero-lead {
  max-width: 34vw;
  margin: 1.1vw 0 0;
  color: var(--ink);
  font-size: calc(1.28vw + 2px);
  line-height: 1.35;
}

body[data-page="pro-v30"] .carousel-track img {
  filter: sepia(0.55) saturate(0.45) brightness(0.95);
}

@media (max-width: 600px) {
  body[data-page="pro-v30"] .hero {
    height: auto;
    min-height: 25vw;
  }

  body[data-page="pro-v30"] .hero-media {
    top: 50%;
    height: 25vw;
    transform: translateY(-50%);
  }

  body[data-page="pro-v30"] .hero-copy {
    position: relative;
    top: auto;
    transform: none;
    padding: 3.4vw 3.15vw 3.6vw;
  }

  body[data-page="pro-v30"] .hero-copy h1 {
    font-size: 9.2vw;
    line-height: 0.887;
  }

  body[data-page="pro-v30"] .hero-lead {
    max-width: 42vw;
    margin-top: 0.65rem;
    font-size: calc(0.78rem + 2px);
    line-height: 1.35;
  }
}

/* Page Professional Work v31
   Hero statique 16:6 et grille 3 colonnes à 80 % de la largeur.
   Ne s'applique pas à data-page="accueil". */

.work-hero {
  position: relative;
  height: 25vw;
  overflow: hidden;
  background: #121212;
}

.work-hero-media {
  position: absolute;
  top: 0;
  right: 0;
  width: 66.6667%;
  height: 100%;
}

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

.work-hero-fade,
.work-hero-shade {
  position: absolute;
  pointer-events: none;
}

.work-hero-fade {
  top: 0;
  right: 0;
  bottom: 0;
  width: 66.6667%;
  z-index: 1;
  background: linear-gradient(to right, #121212 0%, rgba(18, 18, 18, 0) 50%);
}

.work-hero-shade {
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 20%;
  background: linear-gradient(to top, #121212 0%, rgba(18, 18, 18, 0) 100%);
}

.work-hero-copy {
  position: absolute;
  z-index: 3;
  left: 3.15vw;
  right: auto;
  width: max-content;
  max-width: calc(100% - 4vw);
  top: 3.4vw;
  margin: 0;
}

.work-work {
  display: inline-block;
}

.work-hero h1 {
  margin: 0;
  color: #f7f1e8;
  font-family: "Big Shoulders Compressed", "Big Shoulders Display", "League Gothic", Impact, "Arial Narrow", sans-serif;
  font-weight: 800;
  font-stretch: 75%;
  font-size: 10.15vw;
  line-height: 0.863;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  text-shadow: none;
}

body[data-page="advertising"] .work-hero h1 {
  display: flex;
  align-items: flex-start;
  gap: 0;
  white-space: nowrap;
  font-size: 6.2vw;
  line-height: 0.78;
}

.cm-mark {
  display: block;
  font-size: 2.05em;
  line-height: 0.72;
}

.cm-side {
  display: flex;
  flex-direction: column;
  font-size: 1em;
  line-height: 0.78;
}

.cm-side span {
  display: block;
  line-height: 0.78;
}

.work-list {
  position: relative;
  z-index: 4;
  width: 80vw;
  margin: -3.75vw auto 0;
  padding-bottom: clamp(2.4rem, 6vh, 4rem);
}

.work-project {
  --work-gap: clamp(14px, 1.5vw, 26px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--work-gap);
  align-items: start;
  padding-block: clamp(3.4rem, 8vh, 6.2rem);
}

.work-project + .work-project {
  margin-top: calc(-1.25 * clamp(3.4rem, 8vh, 6.2rem));
}

.work-main {
  grid-column: 1 / span 2;
  grid-row: 1;
}

.work-copy {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  align-self: start;
  position: relative;
  top: 25%;
}

.work-flip:not(.pp-panels) .work-copy {
  grid-column: 1;
  text-align: right;
  align-self: start;
  height: 0;
  min-height: 0;
  overflow: visible;
}

.work-flip .work-main {
  grid-column: 2 / span 2;
}

.work-flip .work-small:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.work-flip .work-small:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}

.work-copy h2 {
  margin: 0;
  color: #f7f1e8;
  font-family: "Big Shoulders Compressed", "Big Shoulders Display", "League Gothic", Impact, "Arial Narrow", sans-serif;
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(2.4rem, 6.6vw, 7.2rem);
  line-height: 0.887;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: none;
  max-width: 100%;
  overflow-wrap: break-word;
}

.work-copy p {
  margin: 0.7rem 0 0;
  color: #f7f1e8;
  font-family: var(--sans);
  font-size: clamp(calc(0.78rem + 2px), calc(0.95vw + 2px), calc(0.95rem + 2px));
  line-height: 1.4;
  max-width: 100%;
}

.work-shot {
  margin: 0;
  min-width: 0;
}

.work-shot .video-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.work-shot .thumb-media,
.cm-grid .thumb-media {
  border-radius: clamp(10px, 1.1vw, 16px);
  overflow: hidden;
}

.work-shot .thumb-media > img,
.cm-grid .thumb-media > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border: 0;
  border-radius: 0;
  background: #c8c8c8;
}

@media (max-width: 600px) {
  .work-list {
    width: calc(100% - 2 * var(--edge));
  }

  .work-copy,
  .work-flip .work-copy,
  .cm-project .work-copy {
    top: 0;
    margin-top: 0;
    height: auto;
  }

  .work-project,
  .work-flip {
    display: flex;
    flex-direction: column;
    padding-block: 2.2rem;
  }

  .work-project + .work-project {
    margin-top: -2.75rem;
  }

  .work-copy,
  .work-flip .work-copy {
    order: -1;
    text-align: left;
    grid-column: auto;
  }

  .work-main,
  .work-flip .work-main,
  .work-small,
  .work-flip .work-small {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
  }

  .cm-grid,
  .pp-rest {
    grid-column: auto;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .cm-grid figure:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

/* Personal Projects et Advertising : mêmes gabarits que Professional Work. */

.work-shift {
  display: inline-block;
}

body[data-page="personal-projects"] .work-project:not(.pp-panels) .work-copy {
  top: 0;
  align-self: start;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: calc((160vw - clamp(14px, 1.5vw, 26px)) * 9 / 48);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  overflow: hidden;
  text-align: left;
}

body[data-page="personal-projects"] .work-project:not(.pp-panels) .work-copy h2,
body[data-page="personal-projects"] .work-project:not(.pp-panels) .work-copy p {
  width: 100%;
  text-align: left;
}

.pp-panels .work-copy {
  grid-column: 1;
  grid-row: 1;
  top: 0;
  height: auto;
  align-self: start;
  justify-self: stretch;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  overflow: hidden;
  text-align: right;
  container-type: size;
}

.pp-panels .work-copy h2 {
  width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0 0 0.16em;
  font-size: clamp(1.176rem, 3.234vw, 3.528rem);
  line-height: 0.923;
  overflow: hidden;
}

.pp-rest {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 26px);
}

.pp-panels .pp-shot:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.pp-panels .pp-shot:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

.cm-project .work-copy {
  top: 0;
  margin-top: calc(7.5vw - 0.046875 * clamp(14px, 1.5vw, 26px));
}

.cm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 26px);
  grid-column: 1 / span 2;
  grid-row: 1;
  min-width: 0;
  width: 100%;
}

.cm-grid figure {
  margin: 0;
  min-width: 0;
  width: 100%;
}

.cm-project.work-flip .cm-grid {
  grid-column: 2 / span 2;
}

.cm-grid figure:last-child:nth-child(odd) {
  grid-column: 1 / span 2;
}

.cm-grid .image-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.cm-grid figure {
  position: relative;
}

.cm-grid figcaption {
  position: absolute;
  left: 50%;
  bottom: 0.45rem;
  z-index: 1;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 1rem);
  margin: 0;
  min-height: 0;
  padding: 0.18rem 0.5rem;
  border-radius: 0.28rem;
  background: rgba(18, 18, 18, 0.6);
  color: #f7f1e8;
  font-family: var(--sans);
  font-size: calc(0.85rem + 2px);
  line-height: 1.3;
  text-align: center;
  pointer-events: none;
}

.cm-grid figcaption:empty {
  display: none;
}

.work-main figcaption {
  min-height: 2.6em;
  margin: 0.35rem 0 0;
  color: #f7f1e8;
  font-family: var(--sans);
  font-size: calc(0.85rem + 2px);
  line-height: 1.3;
}

@media (max-width: 600px) {
  .cm-grid,
  .pp-rest {
    grid-column: auto;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .cm-grid figure:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .cm-project .work-copy {
    margin-top: 0;
  }

  body[data-page="personal-projects"] .work-project:not(.pp-panels) .work-copy {
    height: auto;
    display: block;
    overflow: visible;
  }
}

/* v45 TEST — liens dans le bandeau au-dessus de 760px. Bloc isolé, facile à retirer. */
.banner-nav {
  display: none;
}

@media (min-width: 761px) {
  .nav-toggle {
    display: none;
  }

  .bar .brand {
    max-width: none;
    flex: 0 1 auto;
  }

  .banner-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(0.55rem, 1.15vw, 1.35rem);
    margin-left: auto;
    min-width: 0;
  }

  .banner-nav a {
    font-family: var(--sans);
    font-size: clamp(0.62rem, 0.72vw, 0.78rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    color: #f7f1e8;
    white-space: nowrap;
  }

  .banner-nav a:hover,
  .banner-nav a:focus-visible,
  .banner-nav a[aria-current="page"] {
    color: #d4af37;
  }

  .banner-nav a:focus-visible {
    outline: 1px solid #f7f1e8;
    outline-offset: 3px;
  }

  /* v46 : cadenas = hauteur des majuscules de Hanken Grotesk (0.697em).
     Le dessin occupe 13.5/16 du SVG -> 0.697 / 0.844 = 0.826em ;
     le bas du dessin est posé sur la ligne de base. */
  .banner-nav .lock {
    width: 0.826em;
    height: 0.826em;
    margin-left: 0.32em;
    vertical-align: -0.052em;
  }
}

@media (max-width: 760px) {
  .banner-nav {
    display: none !important;
  }
}

/* v46 : +30 % d'espace entre les projets (Professional Work, Advertising).
   Avant : 2 x padding - 1.25 x padding = 0.75 x padding.
   Après : 0.75 x 1.3 = 0.975 x padding -> margin-top = -1.025 x padding.
   Le bloc « Black and White Panels » (Personal Projects) n'est pas touché. */
.work-project + .work-project:not(.pp-panels) {
  margin-top: calc(-1.025 * clamp(3.4rem, 8vh, 6.2rem));
}

@media (max-width: 600px) {
  /* Mobile : 4.4rem - 2.75rem = 1.65rem -> x 1.3 = 2.145rem */
  .work-project + .work-project:not(.pp-panels) {
    margin-top: -2.255rem;
  }
}

/* v50 : accueil sur la grille de tiers à 80 % des autres pages.
   Les 3 tuiles occupent 80vw centrés (10vw de chaque côté) et les textes
   du haut partent du bord gauche de la première tuile. Mobile inchangé. */
@media (min-width: 601px) {
  body[data-page="accueil"] .home-tiles {
    width: 80vw;
  }

  body[data-page="accueil"] .hero-copy {
    left: calc((100% - 80vw) / 2); /* même bord que la 1re tuile, barre de défilement comprise */
  }
}

/* v56 — ombre portée noire sous les titres des tuiles de l'accueil */
body[data-page="accueil"] .tile-title {
  text-shadow: 0 0.08vw 0.35vw rgba(0, 0, 0, 0.85), 0 0 0.12vw rgba(0, 0, 0, 0.6);
}
body[data-page="accueil"] .home-tile .lock {
  filter: drop-shadow(0 0.08vw 0.3vw rgba(0, 0, 0, 0.85));
}

/* v56 — copyright en couleur texte, toutes pages */
.home-copy,
body[data-page] .home-copy {
  color: var(--ink);
}

/* ==========================================================
   v59 — Page Contact (contact.html)
   Bloc sur la grille 80vw des autres pages.
   A titre · B texte · filet · C accroche + D courriel | E LinkedIn · filet
   ========================================================== */
.ct-main {
  display: block;
}

.ct-block {
  width: 80vw;
  margin: 0 auto;
  padding: 3.2vw 0 4.5vw;
}

/* A — même famille et même interlignage que les titres des autres pages */
.ct-title {
  margin: 0;
  color: var(--ink);
  font-family: "Big Shoulders Compressed", "Big Shoulders Display", "League Gothic", Impact, "Arial Narrow", sans-serif;
  font-weight: 800;
  font-size: 10.15vw; /* v60 : même taille que les titres des autres pages */
  line-height: 0.863;
  letter-spacing: 0.012em;
  text-transform: uppercase;
}

/* B */
.ct-text {
  max-width: 50vw;
  margin-top: 2.4vw;
}

.ct-text p {
  margin: 0;
  color: var(--ink); /* v60 : couleur texte */
  font-family: var(--sans);
  font-size: calc(1.05vw + 3px);
  line-height: 1.6;
}

.ct-text p + p {
  margin-top: 0.9em;
}

/* Filets : 30 % -> 100 % -> long fondu à 0 %, comme le filet du haut */
.ct-rule {
  display: block;
  height: 1px;
  color: transparent;
  margin: 2.6vw 0;
  border: 0;
  background: linear-gradient(to right, rgba(212, 175, 55, 0.3) 0, rgba(212, 175, 55, 1) 4%, rgba(212, 175, 55, 1) 22%, rgba(212, 175, 55, 0) 100%);
}

.ct-info {
  display: flex;
  align-items: center;
  gap: 3.2vw;
}

.ct-reach {
  display: flex;
  flex-direction: column;
  gap: 1.6vw;
}

/* C — l'accroche en Big Shoulders accent ; texte sur deux lignes */
.ct-hook {
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* v60 : les deux lignes centrées sur le titre */
  gap: 0.4vw 1.4vw;
  margin: 0;
}

.ct-ask {
  position: relative;
  display: inline-block;
  color: var(--accent);
  font-family: "Big Shoulders Compressed", "Big Shoulders Display", "League Gothic", Impact, "Arial Narrow", sans-serif;
  font-weight: 800;
  font-size: 3.4vw;
  line-height: 0.9;
  letter-spacing: 0.012em;
  text-transform: uppercase;
}

.ct-note {
  color: var(--ink);
  line-height: 1.35;
  font-family: var(--sans);
  font-size: calc(1.05vw + 4px);
}

/* D — enveloppe accent + adresse ; tout est un seul lien */
.ct-mail {
  display: inline-flex;
  align-items: center;
  gap: 1vw;
  width: max-content;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 700;
  font-size: calc(1.05vw + 4px);
  letter-spacing: 0.22em; /* v60 : plus d'interlettrage */
  text-transform: uppercase;
  text-decoration: none;
}

.ct-mail svg {
  flex: none;
  width: 2.1vw;
  height: 2.1vw;
  color: var(--accent);
}

.ct-mail:hover span,
.ct-mail:focus-visible span {
  color: var(--accent);
}

/* Séparateur vertical : fondu en haut et en bas */
.ct-divider {
  align-self: stretch;
  width: var(--accent-line);
  margin-left: auto;
  margin-right: -1.6vw; /* v60 : rapproché du bouton LinkedIn (1.6vw d'écart) */
  background: linear-gradient(to bottom, rgba(212, 175, 55, 0), rgba(212, 175, 55, 1) 30%, rgba(212, 175, 55, 1) 70%, rgba(212, 175, 55, 0));
}

/* E — même encadré que le bouton Let's collaborate de l'accueil */
.ct-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.8vw;
  padding: 0.9vw 1.6vw;
  border: 1px solid var(--accent);
  border-radius: 0.45vw;
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 700;
  font-size: calc(1.05vw + 2px);
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.ct-linkedin svg {
  width: 1.4vw;
  height: 1.4vw;
}

.ct-linkedin:hover,
.ct-linkedin:focus-visible {
  background: rgba(212, 175, 55, 0.14);
}

.ct-mail:focus-visible,
.ct-linkedin:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Mobile : tout s'empile, sans séparateur vertical */
@media (max-width: 600px) {
  .ct-block {
    width: calc(100% - 2 * var(--edge));
    padding: 8vw 0 10vw;
  }
  .ct-text { max-width: none; margin-top: 6vw; }
  .ct-text p, .ct-note, .ct-mail, .ct-linkedin { font-size: 15px; }
  .ct-rule { margin: 7vw 0; }
  .ct-info { flex-direction: column; align-items: flex-start; gap: 6vw; }
  .ct-reach { gap: 5vw; }
  .ct-ask { font-size: 9vw; }
  .ct-hook { flex-direction: column; align-items: flex-start; gap: 3vw; }
  .ct-mail { gap: 3vw; letter-spacing: 0.14em; }
  .ct-mail svg { width: 26px; height: 26px; }
  .ct-divider { display: none; margin-right: 0; }
  .ct-linkedin { gap: 10px; padding: 12px 18px; border-radius: 6px; }
  .ct-linkedin svg { width: 18px; height: 18px; }
}

/* v61 — bloc entre les deux filets (tailles et positions fines : js/layout.js, placeContact) */
@media (min-width: 601px) {
  .ct-rule:has(+ .ct-info) { margin-bottom: 0; }
  .ct-info + .ct-rule { margin-top: 0; }
  .ct-info { align-items: flex-end; padding: 2.4vw 0; }
  .ct-linkedin { align-self: flex-end; }
}
.ct-note {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.ct-ask { line-height: 1; }
@media (min-width: 601px) {
  .ct-mail { font-size: 1.6vw; letter-spacing: 0.3em; gap: 1.3vw; }
  .ct-mail svg { width: 2.5vw; height: 2.5vw; }
}

/* v62 — filet vertical et LinkedIn rapprochés du bloc courriel ; filet vertical plus discret */
@media (min-width: 601px) {
  .ct-divider {
    width: 1px;
    margin-left: 0;
    margin-right: -1.4vw; /* écart filet → bouton : 3.2vw - 1.4vw = 1.8vw */
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0), rgba(212, 175, 55, 0.4) 40%, rgba(212, 175, 55, 0.4) 60%, rgba(212, 175, 55, 0));
  }
}

/* v63 — haut de page : titre dans la moitié gauche (aligné à droite),
   texte dans la moitié droite (aligné à gauche). Hauteur réduite. */
@media (min-width: 601px) {
  .ct-block {
    padding-top: 2.2vw;
    padding-bottom: 2.6vw;
  }
  .ct-top {
    display: grid;
    grid-template-columns: 50vw 50vw;
    align-items: center;
    width: 100vw;
    margin-left: calc((80vw - 100vw) / 2); /* sort de la grille 80vw pour couvrir toute la page */
  }
  .ct-title {
    padding-right: 1.6vw;
    text-align: right;
  }
  .ct-text {
    max-width: none;
    margin-top: 0;
    padding-left: 1.6vw;
    padding-right: 10vw; /* s'arrête au bord droit de la grille 80vw */
  }
  .ct-top + .ct-rule {
    margin-top: 2.4vw;
  }
}
/* v63 : évite une barre de défilement horizontale (barre verticale Windows + 100vw) */
.ct-main { overflow-x: clip; }

/* v64 — jeu typo du titre : « Let's » et « to » 30 % plus petits.
   Let's : posé sur la ligne de base (aligné en bas) contre BRING.
   to : haut des lettres aligné sur le haut de LIFE.
   Hauteur des capitales Big Shoulders = 0.655em → décalage = 0.655 × (1 − 0.7) / 0.7 = 0.2807em */
.ct-small {
  font-size: 0.7em;
}
.ct-high {
  position: relative;
  top: -0.3424em; /* mesuré au rendu : haut de TO = haut de LIFE */
}
@media (min-width: 601px) {
  .ct-top { align-items: end; } /* le bas des paragraphes est calé sur LIFE par js/layout.js */
}

/* v65 — mots « Let's » et « to » rapprochés ; filet vertical plus uniforme */
.ct-small {
  margin-right: -0.22em;
}
@media (min-width: 601px) {
  .ct-divider {
    align-self: flex-end;
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.5) 20%, rgba(212, 175, 55, 0.5) 80%, rgba(212, 175, 55, 0.15));
  }
}

/* v67 : bouton « Download PDF » sous TISING (page advertising), même style que le bouton de l'accueil.
   margin-left = largeur mesurée du « AD » (14.92vw) pour aligner le bouton sur le bord gauche de VER/TISING. */
body[data-page="advertising"] .cm-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.7vw;
  margin: 1.5vw 0 0 14.92vw; /* marge gauche recalculée par layout.js */
  padding: 0.7vw 1.15vw;
  border-radius: 0.45vw;
  background: var(--bg);
  color: var(--accent);
  border: 1px solid var(--accent);
  font-family: var(--sans);
  font-size: calc(1.05vw + 2px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

body[data-page="advertising"] .cm-pdf svg {
  width: 1.1vw;
  height: 1.1vw;
}

body[data-page="advertising"] .cm-pdf:hover,
body[data-page="advertising"] .cm-pdf:focus-visible {
  background: rgba(212, 175, 55, 0.14);
}


/* v67 : le bouton PDF dépasse sous le bandeau ; on ne coupe plus le bandeau, seule l'image reste rognée */
body[data-page="advertising"] .work-hero {
  overflow: visible;
}

body[data-page="advertising"] .work-hero-media {
  overflow: hidden;
}

/* v67 : mobile, bouton PDF lisible */
@media (max-width: 600px) {
  body[data-page="advertising"] .cm-pdf {
    gap: 6px;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
  }

  body[data-page="advertising"] .cm-pdf svg {
    width: 11px;
    height: 11px;
  }
}

/* v69 : la boîte de la liste remonte sous le bouton PDF et bloquait le clic ;
   seule la zone vide laisse passer les clics, les projets restent cliquables */
body[data-page="advertising"] .work-list,
body[data-page="advertising"] .work-list .work-project {
  pointer-events: none;
}

body[data-page="advertising"] .work-list .work-project > * {
  pointer-events: auto;
}

/* v70 : fenêtre de mot de passe « Professional Work » (créée par layout.js) */
.pf-lock {
  width: min(440px, 90vw);
  max-width: none;
  padding: 0;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.pf-lock::backdrop {
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(3px);
}

.pf-lock-box {
  position: relative;
  margin: 0;
  padding: 30px 30px 24px;
}

.pf-lock-close {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.pf-lock-close:hover,
.pf-lock-close:focus-visible {
  color: var(--accent);
}

.pf-lock-title {
  margin: 0;
  font-family: "Big Shoulders Compressed", "Big Shoulders Display", "League Gothic", Impact, "Arial Narrow", sans-serif;
  font-weight: 800;
  font-size: 46px;
  line-height: 0.9;
  letter-spacing: 0.012em;
  text-transform: uppercase;
}

.pf-lock-text {
  margin: 10px 0 18px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 15px;
}

.pf-lock-row {
  display: flex;
  gap: 10px;
}

.pf-lock-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(247, 241, 232, 0.25);
  border-radius: 6px;
  background: #1a1a1a;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
}

.pf-lock-input:focus {
  outline: none;
  border-color: var(--accent);
}

.pf-lock-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--bg);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.pf-lock-go svg {
  width: 14px;
  height: 14px;
}

.pf-lock-go:hover,
.pf-lock-go:focus-visible {
  background: rgba(212, 175, 55, 0.14);
}

.pf-lock-go:disabled {
  opacity: 0.6;
  cursor: wait;
}

.pf-lock-msg {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: #ff9c8a;
  font-family: var(--sans);
  font-size: 14px;
}
