/* V113 — Optimisation conservatrice : blocs entièrement remplacés et anciennes définitions de keyframes retirés. */
/* Portfolio V112 — CSS mis en forme et audité.
   Ordre de cascade, media queries et corrections historiques préservés.
   Ne pas regrouper les sélecteurs identiques sans vérification visuelle. */

:root {
  --ink: #211039;
  --paper: #fff;
  --muted: #776c81;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue",Arial,sans-serif;
}

button,a {
  font: inherit;
}

a {
  color: inherit;
}

.top {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  padding: 0 clamp(22px,5vw,85px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.top>* {
  pointer-events: auto;
}

.wordmark {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .12em;
  font-size: 15px;
}

.wordmark span {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .05em;
  color: var(--muted);
}

.hint {
  font-size: 11px;
  color: var(--muted);
}

.menu {
  border: 0;
  background: transparent;
  font-size: 27px;
  cursor: pointer;
  color: var(--ink);
}

.nav {
  position: absolute;
  right: 5vw;
  top: 65px;
  background: white;
  padding: 20px;
  box-shadow: 0 10px 40px #21103925;
}

.nav:not([hidden]) {
  display: grid;
  gap: 15px;
}

.nav a {
  text-decoration: none;
  font-size: 13px;
}

.scene {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #faf9fa;
}


.scene-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
  transform: translate3d(0,var(--parallax,0px),0);
  transition: transform .2s linear;
}

.scene-art img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: opacity 1.2s ease;
}

.scene-alt {
  opacity: 0;
}

.scene:hover .scene-alt {
  opacity: .22;
}

.scene-copy {
  position: relative;
  z-index: 2;
  width: min(460px,80%);
  margin-left: clamp(25px,10vw,180px);
  padding: 120px 0 50px;
  pointer-events: none;
}

.scene-copy a {
  pointer-events: auto;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}


.next {
  display: inline-flex;
  gap: 25px;
  margin-top: 24px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 10px;
  font-size: 13px;
}

.project {
  padding: clamp(100px,12vw,160px) 0 0;
  background: white;
}

.project-copy {
  width: min(1120px,calc(100% - 48px));
  margin: 0 auto 65px;
}

.project-copy h2 {
  font-size: clamp(65px,9vw,130px);
  letter-spacing: -.06em;
  line-height: 1;
  margin: 25px 0 0;
}


.project-copy .meta {
  font-size: 12px !important;
  color: var(--muted);
  margin-top: 26px;
}

.gallery {
  position: relative;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: clamp(20px,4vw,80px);
  align-items: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 25px max(8vw,calc((100vw - 1050px)/2)) 85px;
  overscroll-behavior-x: contain;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 min(84vw,1050px);
  margin: 0;
  scroll-snap-align: center;
  transform: scale(.86);
  opacity: .7;
  transition: transform .65s cubic-bezier(.2,.75,.25,1),opacity .65s;
}


.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.5;
  object-fit: contain;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  padding: 0 0 70px;
}

.gallery-controls button {
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 32px;
  cursor: pointer;
  padding: 8px 16px;
}

.count {
  font-size: 12px;
  letter-spacing: .1em;
  min-width: 62px;
  text-align: center;
}


.section-continue a {
  text-decoration: none;
  border-bottom: 1px solid;
  padding-bottom: 8px;
  font-size: 13px;
}

.section-continue span {
  margin-left: 18px;
}

@media (max-width:700px) {
  .top {
    height: 64px;
  }

  .hint {
    display: none;
  }

  .scene {
    min-height: 90svh;
    align-items: flex-start;
  }

  .scene-art {
    top: 15%;
    bottom: 2%;
  }

  .scene-copy {
    margin-left: 7vw;
    padding-top: 100px;
    width: 86%;
  }

  .scene-copy h1,.scene-copy h2 {
    font-size: clamp(39px,10vw,65px);
  }

  .scene-copy p {
    font-size: 14px;
    max-width: 240px;
  }

  .project-copy {
    margin-bottom: 25px;
  }

  .gallery-track {
    padding: 15px 8vw 40px;
    gap: 22px;
  }

  .gallery-item {
    flex-basis: 84vw;
  }

  .gallery-item img {
    aspect-ratio: 1.1;
  }

  .gallery-controls {
    padding-bottom: 45px;
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  .scene-art,.gallery-item,.scene-art img {
    transition: none !important;
  }
}

/* V2 — trois calques et galerie pilotée par la position réelle */

.scene-art img {
  will-change: transform,opacity;
  object-fit: contain;
}

.scene-base {
  transform: translate3d(0,calc(var(--layer-shift,0px) * -.45),0);
}

.scene-alt {
  opacity: .16 !important;
  transform: translate3d(0,var(--layer-shift,0px),0);
}

.scene-accent {
  opacity: .11;
  transform: translate3d(0,calc(var(--layer-shift,0px) * 1.5),0);
}

.scene:hover .scene-accent {
  opacity: .22;
}

.gallery-tip {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .025em;
  margin: 0 20px 8px;
}

.gallery-track {
  scroll-padding-inline: 8vw;
  touch-action: pan-x pan-y;
}

.gallery-item {
  opacity: var(--slide-opacity,.65);
  transform: scale(var(--slide-scale,.86));
  transition: opacity .12s linear,transform .12s linear;
  will-change: transform;
}

.gallery-item.is-active {
  opacity: var(--slide-opacity,1);
  transform: scale(var(--slide-scale,1));
}


.gallery-progress span {
  display: block;
  width: 33.333%;
  height: 100%;
  background: var(--ink);
  transform: translateX(calc(var(--slide-index,0) * 100%));
  transition: transform .25s ease;
}

.gallery-controls button:disabled {
  opacity: .25;
  cursor: default;
}

.gallery-controls button:focus-visible,.menu:focus-visible,a:focus-visible {
  outline: 2px solid #704ba2;
  outline-offset: 5px;
}

@media (max-width:700px) {
  .gallery-tip {
    font-size: 11px;
  }

  .gallery-progress {
    width: 54px;
  }

  .scene-accent {
    opacity: .09;
  }
}

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

  .gallery-progress span {
    transition: none !important;
  }
}

/* V3 — direction artistique : respiration, hiérarchie, cadrages */

:root {
  --ink: #1c0b38;
  --muted: #72677b;
  --scene-bg: #f9f8fa;
}

body {
  font-family: Arial,Helvetica,sans-serif;
  -webkit-font-smoothing: antialiased;
}

.top {
  height: 72px;
  padding-inline: clamp(24px,4.7vw,90px);
  background: linear-gradient(180deg,rgba(255,255,255,.84),rgba(255,255,255,0));
}

.wordmark {
  font-size: 13px;
  letter-spacing: .09em;
}

.wordmark span {
  font-weight: 400;
  letter-spacing: .04em;
}

.menu {
  font-size: 0;
  width: 42px;
  height: 42px;
  position: relative;
  display: grid;
  place-items: center;
}

.menu::before {
  content: "☰";
  font-size: 24px;
  font-weight: 300;
}

.menu[aria-expanded=true]::before {
  content: "×";
  font-size: 32px;
}

.nav {
  border: 1px solid #21103914;
  border-radius: 2px;
  min-width: 190px;
  line-height: 1.8;
}

.scene {
  min-height: 100svh;
  isolation: isolate;
  background: var(--scene-bg);
}

.scene:nth-of-type(even) {
  background: #f6f3f8;
}

.scene-art {
  inset: 2% -3%;
  opacity: .84;
}

.scene-art img {
  object-fit: contain;
  object-position: center center;
}

.scene-copy {
  margin-left: clamp(34px,10vw,180px);
  width: min(510px,78%);
  padding-block: 120px 80px;
}


.eyebrow {
  font-size: 11px;
  letter-spacing: .1em;
  font-weight: 500;
}

.eyebrow-line {
  display: inline-block;
  vertical-align: middle;
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .6;
  margin: 0 10px;
}

.next {
  margin-top: 34px;
  gap: 42px;
  font-size: 12px;
  letter-spacing: .02em;
}


.project-copy {
  width: min(1100px,calc(100% - 12vw));
  margin-bottom: clamp(60px,8vw,110px);
}

.project-category {
  display: block;
  font-size: clamp(20px,2.5vw,36px);
  letter-spacing: -.03em;
  font-weight: 400;
}

.project-rule {
  display: block;
  width: 50px;
  height: 1px;
  background: var(--ink);
  margin: 24px 0 66px;
  opacity: .65;
}

.project-number {
  display: block;
  font-size: 18px;
  letter-spacing: .02em;
  margin-bottom: 7px;
}

.project-copy h2 {
  font-size: clamp(74px,9vw,140px);
  font-weight: 650;
  letter-spacing: -.065em;
  margin: 0;
}

.subtitle {
  font-size: clamp(26px,3.2vw,44px);
  font-weight: 400;
  margin: 7px 0 32px;
}

.project-copy>p:not(.subtitle) {
  max-width: 790px;
  font-size: clamp(18px,2vw,26px);
  line-height: 1.5;
  font-weight: 400;
}

.project-copy .meta {
  font-size: 13px !important;
  letter-spacing: .025em;
  margin-top: 28px;
  color: var(--muted);
}

.gallery-tip {
  margin-bottom: 10px;
}

.gallery-track {
  padding-bottom: 60px;
}

.gallery-item img {
  object-fit: contain;
}

.gallery-controls {
  padding-bottom: 80px;
}

.gallery-controls button {
  transition: opacity .2s,transform .2s;
}

.gallery-controls button:not(:disabled):hover {
  transform: scale(1.2);
}

.section-continue {
  padding: 0 0 125px;
}

@media (min-width:1050px) {
  .scene-art {
    inset: 0 -2%;
  }

  .scene-copy {
    margin-left: 10vw;
  }

  .gallery-item {
    flex-basis: min(76vw,1100px);
  }

  .gallery-track {
    padding-inline: max(12vw,calc((100vw - 1100px)/2));
  }
}

@media (max-width:700px) {
  .top {
    height: 60px;
    padding-inline: 6vw;
  }

  .scene {
    min-height: 90svh;
  }

  .scene-art {
    inset: 11% -4% 0;
    opacity: .82;
  }

  .scene-copy {
    margin-left: 7vw;
    width: 85%;
    padding-top: 110px;
  }

  .scene-copy h1,.scene-copy h2 {
    font-size: clamp(42px,10vw,64px);
    margin: 19px 0;
  }

  .scene-copy p {
    max-width: 235px;
    font-size: 13px;
  }

  .eyebrow {
    font-size: 9px;
  }

  .eyebrow-line {
    width: 14px;
    margin: 0 5px;
  }

  .project {
    padding-top: 105px;
  }

  .project-copy {
    width: calc(100% - 14vw);
    margin-bottom: 44px;
  }

  .project-category {
    font-size: 24px;
  }

  .project-rule {
    margin: 20px 0 52px;
  }

  .project-number {
    font-size: 16px;
  }

  .project-copy h2 {
    font-size: clamp(62px,13vw,94px);
  }

  .subtitle {
    font-size: 27px;
    margin-bottom: 28px;
  }

  .project-copy>p:not(.subtitle) {
    font-size: 17px;
    line-height: 1.5;
  }

  .project-copy .meta {
    font-size: 11px !important;
  }

  .gallery-track {
    padding-bottom: 34px;
  }

  .gallery-controls {
    padding-bottom: 55px;
  }

  .section-continue {
    padding-bottom: 90px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .gallery-controls button {
    transition: none;
  }
}

/* V4 — Outfit, composition resserrée, calques SVG sans transparence */

body,button,a {
  font-family: "Outfit",sans-serif;
}

.scene-art {
  opacity: 1;
}

.scene-art .scene-base,.scene-art .scene-alt,.scene-art .scene-accent {
  opacity: 1 !important;
}

.scene:hover .scene-alt,.scene:hover .scene-accent {
  opacity: 1 !important;
}


.project-copy {
  margin-bottom: clamp(30px,4vw,58px);
}

.project-rule {
  margin-bottom: clamp(32px,4vw,52px);
}

.project-copy h2 {
  font-weight: 650;
}

.project-copy .subtitle {
  margin-bottom: 18px;
}

.project-copy>p:not(.subtitle) {
  max-width: 620px;
  font-size: clamp(15px,1.45vw,19px);
  line-height: 1.45;
  margin-top: 0;
}

.project-copy .meta {
  font-size: 11px !important;
  margin-top: 15px;
}

#digital .scene-art {
  inset: 2% -1% 2% 12%;
}

#digital .scene-art img {
  object-position: right center;
}

@media (max-width:700px) {
  .project-copy {
    margin-bottom: 24px;
  }

  .project-rule {
    margin-bottom: 35px;
  }

  .project-copy>p:not(.subtitle) {
    font-size: 15px;
    line-height: 1.45;
  }

  .project-copy .meta {
    font-size: 10px !important;
  }

  #digital .scene-art {
    inset: 11% -3% 0 10%;
  }
}

/* V5 — réglages typographiques demandés pour Créakub */

#creakub .project-category {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0;
}

#creakub .project-copy h2 {
  font-size: 100px;
  font-weight: 500;
  letter-spacing: -.025em;
  margin-left: -5px;
  line-height: 1;
}

#creakub .project-copy .subtitle {
  font-size: 28px;
  font-weight: 400;
}

#creakub .project-copy>p:not(.subtitle):not(.meta) {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
}

@media (max-width:700px) {
  #creakub .project-copy h2 {
    font-size: clamp(54px,13vw,100px);
    margin-left: -4px;
  }

  #creakub .project-category {
    font-size: clamp(18px,4.5vw,22px);
  }

  #creakub .project-copy .subtitle {
    font-size: clamp(23px,5.5vw,28px);
  }

  #creakub .project-copy>p:not(.subtitle):not(.meta) {
    font-size: 18px;
  }
}

/* V6 — système typographique unifié et navigation SVG */

.scene-copy .scene-category {
  display: block;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  max-width: 100%;
}

.scene-copy .scene-category::after {
  content: "";
  display: block;
  width: 50px;
  height: 1px;
  background: var(--ink);
  opacity: .65;
  margin-top: 22px;
}

.scene-copy h1,.scene-copy h2 {
  font-family: "Outfit",sans-serif;
  font-size: 100px;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.02;
  margin: 44px 0 18px -5px;
  max-width: 1050px;
}

.scene-copy {
  width: min(1100px,80%);
}

.scene-copy p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  max-width: 420px;
}

.scene-copy .next {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.arrow-icon {
  width: 25px;
  height: 20px;
  object-fit: contain;
  flex: none;
}

.gallery-hint-icon {
  display: inline-block;
  width: 50px;
  height: 20px;
  vertical-align: middle;
  margin-left: 9px;
  object-fit: contain;
  pointer-events: none;
}

.gallery-controls button {
  display: grid;
  place-items: center;
  min-width: 54px;
  min-height: 48px;
}

.gallery-controls button img {
  width: 25px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.section-continue a {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

@media (max-width:1100px) {
  .scene-copy h1,.scene-copy h2 {
    font-size: clamp(48px,8.3vw,100px);
  }
}

@media (max-width:700px) {
  .scene-copy {
    width: 86%;
    margin-left: 7vw;
  }

  .scene-copy .scene-category {
    font-size: clamp(18px,4.5vw,22px);
  }

  .scene-copy .scene-category::after {
    margin-top: 17px;
  }

  .scene-copy h1,.scene-copy h2 {
    font-size: clamp(44px,10vw,68px);
    margin: 30px 0 16px -4px;
    letter-spacing: -.025em;
  }

  .scene-copy p {
    font-size: 16px;
    max-width: 260px;
  }

  .gallery-hint-icon {
    width: 44px;
  }
}

/* V7 — alternance compacte/immersive, navigation iconographique */

.scene-copy h1,.scene-copy h2 {
  font-size: 88px;
}

.scene-copy .next,.section-continue a {
  border: 0;
  padding: 0;
  margin-top: 30px;
  min-width: 46px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 0;
  gap: 0;
  text-decoration: none;
}

.scene-copy .next .arrow-icon,.section-continue .arrow-icon {
  width: 29px;
  height: 29px;
  transition: transform .2s ease;
}

.scene-copy .next:hover .arrow-icon,.section-continue a:hover .arrow-icon {
  transform: translateY(4px);
}

#digital .scene-copy .next:hover .arrow-icon {
  transform: translateY(-4px);
}

.project {
  padding-top: clamp(90px,9vw,125px);
}

.layout-switch {
  width: min(1280px,calc(100% - 10vw));
  margin: 0 auto 26px;
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.layout-option {
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  padding: 6px 0;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.layout-option.is-selected {
  border-bottom-color: var(--ink);
  color: var(--ink);
}

.project-main {
  min-width: 0;
}

.project.layout-compact .project-main {
  width: min(1280px,calc(100% - 10vw));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px,38%) minmax(0,62%);
  gap: clamp(25px,4vw,70px);
  align-items: center;
}

.project.layout-compact .project-copy {
  width: 100%;
  margin: 0;
  align-self: center;
}

.project.layout-compact .project-rule {
  margin: 18px 0 34px;
}

.project.layout-compact .project-copy h2 {
  font-size: clamp(62px,6.7vw,100px);
}

.project.layout-compact .project-copy .subtitle {
  margin-bottom: 24px;
}

.project.layout-compact .project-copy>p:not(.subtitle):not(.meta) {
  font-size: 18px;
  max-width: 420px;
}

.project.layout-compact .gallery {
  min-width: 0;
  overflow: hidden;
}

.project.layout-compact .gallery-track {
  padding: 12px 9% 20px;
  gap: 20px;
  scroll-padding-inline: 9%;
}

.project.layout-compact .gallery-item {
  flex: 0 0 100%;
}

.project.layout-compact .gallery-item img {
  aspect-ratio: 1.35;
  max-height: min(53svh,510px);
  object-fit: contain;
}

.project.layout-compact .gallery-tip {
  margin: 0 0 6px;
}

.project.layout-compact .gallery-controls {
  padding: 10px 0 0;
  gap: 16px;
}

.project.layout-compact .section-continue {
  padding-top: 0;
}

.project.layout-immersive .project-main {
  display: block;
}

.project.layout-immersive .gallery-item {
  flex-basis: min(72vw,920px);
}

.project.layout-immersive .gallery-item img {
  max-height: min(61svh,620px);
  aspect-ratio: 1.5;
}

.project.layout-immersive .gallery-track {
  padding-top: 12px;
  padding-bottom: 20px;
}

.project.layout-immersive .gallery-controls {
  padding-bottom: 18px;
}

.project.layout-immersive .project-copy {
  margin-bottom: 35px;
}

.project.layout-immersive .project-rule {
  margin-bottom: 36px;
}

.project.layout-immersive .project-copy h2 {
  font-size: 100px;
}

.project.layout-immersive .section-continue,.project.layout-compact .section-continue {
  padding: 30px 0 70px;
}

.gallery-controls button {
  min-width: 48px;
  min-height: 48px;
}

@media (max-width:1100px) {
  .scene-copy h1,.scene-copy h2 {
    font-size: clamp(48px,7.6vw,88px);
  }

  .project.layout-compact .project-main {
    grid-template-columns: minmax(230px,40%) minmax(0,60%);
    gap: 24px;
  }
}

@media (max-width:760px) {
  .scene-copy h1,.scene-copy h2 {
    font-size: clamp(44px,10vw,68px);
  }

  .layout-switch {
    width: calc(100% - 14vw);
    margin-bottom: 24px;
  }

  .project.layout-compact .project-main {
    width: 100%;
    display: block;
  }

  .project.layout-compact .project-copy {
    width: calc(100% - 14vw);
    margin: 0 auto 25px;
  }

  .project.layout-compact .project-copy h2,.project.layout-immersive .project-copy h2 {
    font-size: clamp(54px,13vw,88px);
  }

  .project.layout-compact .gallery-track {
    padding: 12px 8vw 15px;
    gap: 18px;
  }

  .project.layout-compact .gallery-item {
    flex-basis: 84vw;
  }

  .project.layout-compact .gallery-item img {
    max-height: 48svh;
    aspect-ratio: 1.1;
  }

  .project.layout-immersive .gallery-item {
    flex-basis: 84vw;
  }

  .project.layout-immersive .gallery-item img {
    max-height: 52svh;
    aspect-ratio: 1.1;
  }

  .project.layout-immersive .project-copy {
    margin-bottom: 25px;
  }

  .project.layout-compact .gallery-controls {
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  .scene-copy .next .arrow-icon,.section-continue .arrow-icon {
    transition: none;
  }
}

/* Ajustement ciblé demandé : texte de la vue compacte seulement.
   La grille, la galerie, ses images et sa navigation ne changent pas. */

@media (min-width:761px) {
  #creakub.layout-compact .project-copy {
    padding-left: clamp(36px,5vw,80px);
  }
}

/* Retouche ciblée : masquer les filets des diapositives voisines
   dans la galerie compacte, sans déplacer ni redimensionner les images. */

@media (min-width:761px) {
  #creakub.layout-compact .gallery-track {
    clip-path: inset(0 9% 0 9%);
  }
}

/* V9 — animation pilote : scène Éditorial uniquement */

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

/* Translation interactive sur le conteneur ; le parallaxe vertical existant
   continue de fonctionner sur chaque calque indépendamment. */

#editorial .scene-art {
  transform: translate3d(var(--pointer-x,0px),calc(var(--parallax,0px) + var(--pointer-y,0px)),0);
  transition: transform .35s ease-out;
}

/* La propriété translate se compose avec transform sans écraser le décalage au scroll. */


@media (prefers-reduced-motion:no-preference) {
  #editorial.is-in-view .scene-base {
    animation: weley-drift-base 12s ease-in-out infinite;
  }

  #editorial.is-in-view .scene-alt {
    animation: weley-drift-alt 15s ease-in-out infinite;
  }

  #editorial.is-in-view .scene-accent {
    animation: weley-drift-accent 10s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion:reduce) {
  #editorial .scene-art {
    transition: none !important;
    transform: translate3d(0,var(--parallax,0px),0) !important;
  }

  #editorial .scene-art img {
    animation: none !important;
    translate: none !important;
  }
}

/* V9 bis : essai d'intensité accrue, scène Éditorial uniquement. */

#editorial .scene-art {
  transition: transform .5s ease-out;
}


@media (prefers-reduced-motion:reduce) {
  #editorial .scene-art {
    transition: none !important;
  }
}

/* V9 équilibrée : 80 % de l'intensité V9 bis. */

@keyframes weley-drift-base {
  0%,100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -7.2px;
  }
}

@keyframes weley-drift-alt {
  0%,100% {
    translate: 0 0;
  }

  50% {
    translate: 8.8px 5.6px;
  }
}

@keyframes weley-drift-accent {
  0%,100% {
    translate: 0 0;
  }

  50% {
    translate: -7.2px 4px;
  }
}

/* Ajustement final : calque rose de la scène Éditorial derrière les autres. */

#editorial .scene-art .scene-accent {
  z-index: 1;
}

/* rose : milieu */

#editorial .scene-art .scene-alt {
  z-index: 0;
}

/* jaune : arriere-plan */

#editorial .scene-art .scene-base {
  z-index: 2;
}

/* bleu : premier plan */

/* Variante validable : rose fixe en arrière-plan ; jaune mobile.
   Le calque rose compense les translations du conteneur et ne dérive plus. */

#editorial .scene-art .scene-accent {
  animation: none !important;
  translate: none !important;
  transform: translate3d(calc(-1 * var(--pointer-x, 0px)),calc(-1 * (var(--parallax, 0px) + var(--pointer-y, 0px))),0);
}

@media (prefers-reduced-motion:reduce) {
  #editorial .scene-art .scene-accent {
    transform: none !important;
  }
}

/* V10 — accueil éditorial, mobile empilé conformément aux maquettes */

.intro-home {
  display: grid;
  grid-template-columns: 44% 56%;
  min-height: 100svh;
  overflow: hidden;
  background: #fff !important;
  align-items: stretch;
}

.intro-home .intro-about {
  grid-column: 1;
  grid-row: 1;
  z-index: 3;
  position: relative;
  padding: clamp(100px,10vh,145px) clamp(25px,4vw,70px) 65px clamp(35px,10vw,180px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}

.intro-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px,3vw,52px);
  margin-bottom: clamp(55px,8vh,115px);
}

.intro-links a {
  font-size: 14px;
  text-decoration: none;
  font-weight: 300;
  transition: opacity .2s;
}

.intro-links a:hover {
  opacity: .5;
}

.intro-about-copy {
  max-width: 470px;
  font-weight: 300;
  font-size: clamp(15px,1.15vw,18px);
  line-height: 1.53;
}

.intro-about-copy p {
  margin: 0 0 20px;
}

.intro-about-copy h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 30px 0 4px;
}

.intro-portfolio-link {
  display: inline-flex;
  width: 45px;
  height: 45px;
  align-items: center;
  margin-top: 12px;
}

.intro-portfolio-link img {
  width: 28px;
  height: 28px;
}

.intro-home .intro-visual {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
}

.intro-home .scene-art {
  inset: -1% -5% -1% -24%;
  z-index: 0;
  opacity: 1;
  transform: translate3d(0,var(--parallax,0px),0);
}

.intro-home .scene-art img {
  object-fit: cover;
  object-position: center center;
}

.intro-home .intro-identity {
  position: absolute;
  z-index: 3;
  left: 3%;
  top: 20%;
  width: 90%;
  pointer-events: none;
}

.intro-home .intro-identity h1 {
  font-size: clamp(58px,5.8vw,110px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.04em;
  margin: 0 0 25px;
}

.intro-home .intro-identity p {
  font-size: clamp(23px,2.3vw,42px);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  max-width: 570px;
}

@media (min-width:761px) and (max-width:1150px) {
  .intro-home {
    grid-template-columns: 48% 52%;
  }

  .intro-home .intro-about {
    padding-left: 6vw;
    padding-right: 3vw;
  }

  .intro-home .intro-identity {
    left: 1%;
    top: 26%;
  }

  .intro-home .intro-identity h1 {
    font-size: clamp(50px,6vw,78px);
  }

  .intro-home .intro-identity p {
    font-size: clamp(22px,2.7vw,32px);
  }
}

@media (max-width:760px) {
  .intro-home {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
  }

  .intro-home .intro-visual {
    min-height: 100svh;
    height: 100svh;
    width: 100%;
    overflow: hidden;
    flex: none;
  }

  .intro-home .scene-art {
    inset: -3% -48% -2% -45%;
    transform: none;
  }

  .intro-home .scene-art img {
    object-fit: cover;
    object-position: 58% center;
  }

  .intro-home .intro-identity {
    top: auto;
    bottom: 11%;
    left: auto;
    right: 8%;
    width: 77%;
    text-align: right;
  }

  .intro-home .intro-identity h1 {
    font-size: clamp(57px,12vw,95px);
    line-height: .94;
    margin-bottom: 45px;
  }

  .intro-home .intro-identity p {
    font-size: clamp(27px,6vw,44px);
    line-height: 1.1;
  }

  .intro-home .intro-about {
    padding: 85px 9vw 95px;
    min-height: 0;
    display: block;
  }

  .intro-home .intro-links {
    display: none;
  }

  .intro-home .intro-about-copy {
    font-size: clamp(18px,4.2vw,24px);
    line-height: 1.53;
    max-width: 650px;
  }

  .intro-home .intro-about-copy p {
    margin-bottom: 22px;
  }

  .intro-home .intro-about-copy h2 {
    font-size: clamp(19px,4.4vw,25px);
    margin: 40px 0 12px;
  }

  .intro-home .intro-portfolio-link {
    margin-top: 25px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .intro-home .scene-art {
    transition: none !important;
  }
}

/* V10 ajustée : hiérarchie desktop/iPad et cadrage */

@media (min-width:761px) {
  .intro-home {
    grid-template-columns: 44% 56%;
  }

  .intro-home .intro-about {
    padding-top: clamp(115px,12vh,170px);
  }

  .intro-home .intro-identity {
    position: static;
    width: auto;
    pointer-events: auto;
    margin: 0 0 clamp(32px,4vh,55px);
    text-align: left;
  }

  .intro-home .intro-identity h1 {
    font-size: clamp(46px,4.7vw,78px);
    margin: 0 0 17px;
    line-height: 1;
  }

  .intro-home .intro-identity p {
    font-size: clamp(19px,1.65vw,29px);
    line-height: 1.15;
  }

  .intro-home .intro-links {
    margin-bottom: clamp(45px,6vh,80px);
  }

  .intro-home .scene-art {
    inset: 2% 0 2% -3%;
  }

  .intro-home .scene-art img {
    object-fit: contain;
    object-position: right center;
  }
}

@media (min-width:761px) and (max-width:1150px) {
  .intro-home .intro-identity {
    position: static;
    left: auto;
    top: auto;
    width: auto;
  }

  .intro-home .intro-identity h1 {
    font-size: clamp(43px,5vw,65px);
  }

  .intro-home .intro-identity p {
    font-size: clamp(19px,2.1vw,26px);
  }

  .intro-home .intro-about {
    padding-top: 110px;
  }
}

/* Illustration : surface droite seulement, soit environ 2/3 de la fenêtre */

@media (min-width:761px) {
  .intro-home .intro-visual {
    overflow: visible;
  }

  .intro-home .scene-art {
    left: -19%;
    right: 0;
    overflow: hidden;
  }
}

/* Mobile : identité dans la partie image, puis présentation en second */

@media (max-width:760px) {
  .intro-home .intro-identity {
    position: absolute;
    top: auto;
    bottom: 12%;
    left: auto;
    right: 8%;
    width: 77%;
    text-align: right;
    z-index: 4;
    pointer-events: none;
  }

  .intro-home .intro-identity h1 {
    font-size: clamp(49px,10.6vw,82px);
    margin-bottom: 35px;
  }

  .intro-home .intro-identity p {
    font-size: clamp(24px,5.35vw,39px);
  }

  .intro-home .scene-art {
    inset: 0 -41% 0 -39%;
  }

  .intro-home .intro-visual {
    position: relative;
  }
}

/* Burger visible après défilement, ou lorsque le menu est ouvert */

.top .menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .25s,transform .25s,visibility .25s;
}

.top.show-menu .menu,.top .menu[aria-expanded=true] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav[hidden] {
  display: none !important;
}

.nav-submenu {
  display: grid;
  gap: 8px;
  padding: 3px 0 7px 14px;
  border-left: 1px solid #21103945;
}

.nav-submenu a {
  font-size: 12px;
  color: var(--muted);
}

.contact-anchor {
  padding: 100px clamp(30px,10vw,180px);
  background: #f5f3f6;
  min-height: 250px;
}

.contact-anchor h2 {
  font-size: clamp(26px,3vw,40px);
  font-weight: 500;
  margin: 0 0 15px;
}

.contact-anchor p {
  font-size: 18px;
  font-weight: 300;
}

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

.identity-mobile {
  display: none;
}

@media (max-width:760px) {
  .intro-home .intro-about>.identity-desktop {
    display: none;
  }

  .intro-home .intro-visual>.identity-mobile {
    display: block;
  }
}

/* V10 — réglages typographiques et superposition mobile, 21 octobre */

@media (min-width:761px) {
  .intro-home .intro-identity h1 {
    letter-spacing: .012em;
    margin-left: -5px;
  }

  .intro-home .intro-identity p {
    letter-spacing: .035em;
  }

  .intro-home .intro-links {
    column-gap: clamp(35px,4.3vw,78px);
  }

  .intro-home .intro-links a {
    letter-spacing: .065em;
  }
}

@media (max-width:760px) {
  /* Burger présent dès l'arrivée, même sans défilement */

  .top .menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .intro-home .intro-identity h1 {
    letter-spacing: .012em;
  }

  .intro-home .intro-identity p {
    letter-spacing: .028em;
  }

  /* Trois dessins recalés ensemble, sans décalage lié au scroll */

  .intro-home .scene-art .scene-base,
  .intro-home .scene-art .scene-alt,
  .intro-home .scene-art .scene-accent {
    transform: translate3d(0,0,0) !important;
    translate: none !important;
  }
}

/* V10 — dernier équilibrage accueil, 21 octobre */

@media (min-width:761px) {
  /* Le dessin reste dans la colonne de droite, sans passer sous le texte courant.
     Largeur préservée en compensant le retrait gauche par le débord droit. */

  .intro-home .intro-visual {
    overflow: hidden;
  }

  .intro-home .scene-art {
    left: 0;
    right: -19%;
  }
}

@media (max-width:760px) {
  /* Sous-titre plus discret par rapport au prénom, comme sur desktop. */

  .intro-home .intro-identity p {
    font-size: clamp(19px,4.25vw,31px);
    line-height: 1.14;
  }
}

/* V10 — dernier ajustement : illustration d'accueil légèrement réduite sur mobile.
   Les trois calques conservent exactement le même cadrage et leur superposition. */

@media (max-width:760px) {
  .intro-home .scene-art {
    inset: 3% -34% 3% -32%;
  }
}

/* V11 — menus de catégories inspirés des maquettes, sans modifier l'accueil */

.category-menu-scene {
  min-height: 100svh;
  display: block;
  isolation: isolate;
  background: #fff !important;
}

.category-menu-scene .scene-art {
  inset: 0;
  z-index: 0;
  opacity: 1;
}

.category-menu-scene .scene-art img {
  object-fit: cover;
  object-position: center center;
}

.category-menu-layout {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  padding: clamp(80px,10vh,135px) clamp(32px,10vw,160px) 55px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(250px,370px);
  grid-template-rows: auto 1fr auto;
  align-items: start;
  pointer-events: none;
}

.category-heading {
  grid-column: 2;
  grid-row: 1;
  text-align: center;
}

.category-heading .scene-category {
  display: block;
  font-size: clamp(17px,1.7vw,24px);
  font-weight: 300;
  letter-spacing: .005em;
  text-transform: none;
}

.category-heading .scene-category::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  background: currentColor;
  opacity: .65;
  margin: 18px auto 0;
}

.category-projects {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  pointer-events: auto;
}

.category-project {
  appearance: none;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: "Outfit",sans-serif;
  font-weight: 600;
  font-size: clamp(32px,3.55vw,62px);
  line-height: 1.09;
  letter-spacing: -.018em;
  text-align: right;
  text-decoration: none;
  padding: 1px 0;
  cursor: pointer;
  transition: transform .24s ease;
}

.category-project:hover,.category-project:focus-visible {
  transform: translateX(-9px);
}

.category-project:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.category-feedback {
  grid-column: 2;
  grid-row: 3;
  text-align: right;
  font-size: 12px;
  min-height: 20px;
  margin: 0 0 5px;
  opacity: .8;
}

.category-next {
  position: absolute;
  bottom: 7%;
  left: 10%;
  width: 38px;
  height: 38px;
  pointer-events: auto;
}

.category-next img {
  width: 28px;
  height: 28px;
}

@media (min-width:761px) {
  .category-menu-scene .scene-art {
    inset: -2% 0 -2% -5%;
  }

  .category-menu-scene .scene-art img {
    object-fit: contain;
    object-position: center left;
  }
}

@media (max-width:760px) {
  .category-menu-scene {
    min-height: 100svh;
  }

  .category-menu-scene .scene-art {
    inset: 10% -27% -4% -24%;
    transform: none !important;
  }

  .category-menu-scene .scene-art img {
    object-fit: cover;
    object-position: center;
  }

  .category-menu-layout {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding: clamp(115px,15vh,185px) 9vw 85px;
    align-items: stretch;
  }

  .category-heading {
    text-align: left;
    margin-bottom: clamp(55px,10vh,105px);
  }

  .category-heading .scene-category {
    font-size: clamp(20px,5vw,28px);
  }

  .category-heading .scene-category::after {
    margin: 17px 0 0;
    width: 45px;
  }

  .category-projects {
    align-self: flex-start;
    align-items: flex-start;
    gap: 2px;
    max-width: 100%;
  }

  .category-project {
    text-align: left;
    font-size: clamp(36px,9vw,66px);
    line-height: 1.12;
    overflow-wrap: normal;
  }

  .category-project:hover,.category-project:focus-visible {
    transform: translateX(6px);
  }

  .category-feedback {
    text-align: left;
    margin-top: 18px;
  }

  .category-next {
    left: 9%;
    bottom: 4%;
  }
}

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

/* V12 — Alignements et finesse typographique */

@media (min-width:761px) {
  .category-heading {
    text-align: left;
  }

  .category-heading .scene-category::after {
    margin-left: 0;
    margin-right: 0;
  }

  .category-projects {
    align-items: flex-start;
  }

  .category-project {
    text-align: left;
    letter-spacing: .006em;
  }

  .category-project:hover,.category-project:focus-visible {
    transform: translateX(9px);
  }

  .category-feedback {
    text-align: left;
  }
}

@media (max-width:760px) {
  .category-project {
    letter-spacing: .008em;
  }

  /* La dernière illustration couvre le cadre, sans bandes blanches latérales. */

  #digital.category-menu-scene .scene-art {
    inset: 5% -45% -5% -45%;
  }

  #digital.category-menu-scene .scene-art img {
    object-fit: cover;
    object-position: center center;
  }
}

.category-heading .scene-category {
  letter-spacing: .035em;
}

/* V13 — alternance des compositions : éditorial à droite, les deux autres à gauche.
   Desktop/tablette seulement : la version mobile validée reste inchangée. */

@media (min-width:761px) {
  #identite .category-menu-layout,
  #digital .category-menu-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  #identite .category-heading, #identite .category-projects, #identite .category-feedback,
  #digital .category-heading, #digital .category-projects, #digital .category-feedback {
    grid-column: 1;
  }

  #identite .category-projects, #digital .category-projects {
    align-items: flex-start;
  }

  #identite .category-project, #digital .category-project {
    text-align: left;
  }
}

/* V14 — Éditorial : amplitude par profondeur (bleu > jaune > rose).
   Les autres scènes et les mises en page restent inchangées. */

@media (prefers-reduced-motion: no-preference) {
  /* Le mouvement du conteneur est compensé ou amplifié selon le calque. */

  #editorial .scene-art .scene-accent {
    /* rose : discret */
    animation: weley-editorial-rose 18s ease-in-out infinite !important;
    transform: translate3d(calc(-.85 * var(--pointer-x, 0px)),calc(-.85 * var(--pointer-y, 0px) - var(--parallax, 0px) + var(--layer-shift, 0px) * .15),0);
  }

  #editorial .scene-art .scene-alt {
    /* jaune : intermédiaire */
    animation: weley-editorial-jaune 15s ease-in-out infinite !important;
    transform: translate3d(calc(-.3 * var(--pointer-x, 0px)),calc(-.3 * var(--pointer-y, 0px) + var(--layer-shift, 0px) * .6),0);
  }

  #editorial .scene-art .scene-base {
    /* bleu : mouvement le plus ample */
    animation: weley-editorial-bleu 12s ease-in-out infinite !important;
    transform: translate3d(calc(.5 * var(--pointer-x, 0px)),calc(.5 * var(--pointer-y, 0px) - var(--layer-shift, 0px) * .45),0);
  }
}

@keyframes weley-editorial-rose {
  0%,100% {
    translate: 0 0;
  }

  50% {
    translate: -2px 1.5px;
  }
}

@keyframes weley-editorial-jaune {
  0%,100% {
    translate: 0 0;
  }

  50% {
    translate: 7px 5px;
  }
}

@keyframes weley-editorial-bleu {
  0%,100% {
    translate: 0 0;
  }

  50% {
    translate: -14px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #editorial .scene-art .scene-base,
  #editorial .scene-art .scene-alt,
  #editorial .scene-art .scene-accent {
    animation: none !important;
    translate: none !important;
    transform: none !important;
  }
}

/* V15 — même profondeur sur l'accueil et les trois menus de catégories.
   Rose derrière, jaune au milieu, bleu devant. Aucun changement de mise en page. */

.scene .scene-art .scene-accent {
  z-index: 1;
}

.scene .scene-art .scene-alt {
  z-index: 0;
}

.scene .scene-art .scene-base {
  z-index: 2;
}

@media (prefers-reduced-motion:no-preference) {
  .scene.is-in-view .scene-art .scene-accent {
    animation: weley-editorial-rose 18s ease-in-out infinite !important;
    transform: translate3d(calc(-.85 * var(--pointer-x,0px)),calc(-.85 * var(--pointer-y,0px) - var(--parallax,0px) + var(--layer-shift,0px) * .15),0) !important;
  }

  .scene.is-in-view .scene-art .scene-alt {
    animation: weley-editorial-jaune 15s ease-in-out infinite !important;
    transform: translate3d(calc(-.3 * var(--pointer-x,0px)),calc(-.3 * var(--pointer-y,0px) + var(--layer-shift,0px) * .6),0) !important;
  }

  .scene.is-in-view .scene-art .scene-base {
    animation: weley-editorial-bleu 12s ease-in-out infinite !important;
    transform: translate3d(calc(.5 * var(--pointer-x,0px)),calc(.5 * var(--pointer-y,0px) - var(--layer-shift,0px) * .45),0) !important;
  }

  .scene:not(.is-in-view) .scene-art img {
    animation-play-state: paused !important;
  }
}

@media (prefers-reduced-motion:reduce) {
  .scene .scene-art img {
    animation: none !important;
    translate: none !important;
  }
}

/* V16 — repère de catégorie fixe, aligné sur les introductions de catégories.
   Desktop/tablette uniquement : galerie et contenu du projet inchangés. */

@media (min-width:761px) {
  #creakub.project {
    position: relative;
  }

  #creakub .project-category {
    position: absolute;
    top: clamp(80px,10vh,135px);
    left: clamp(32px,10vw,160px);
    font-size: clamp(17px,1.7vw,24px);
    font-weight: 300;
    letter-spacing: .035em;
    line-height: 1.3;
  }

  #creakub .project-rule {
    position: absolute;
    top: calc(clamp(80px,10vh,135px) + 48px);
    left: clamp(32px,10vw,160px);
    width: 42px;
    height: 1px;
    margin: 0;
    opacity: .65;
  }

  /* L'espace libéré est réintroduit dans la colonne texte. */

  #creakub .project-copy {
    padding-top: 82px;
  }
}

/* V17 — repère de catégorie commun aux projets, sans toucher aux menus. */

@media (min-width:761px) {
  #fibois.project {
    position: relative;
  }

  #fibois .project-category {
    position: absolute;
    top: clamp(80px,10vh,135px);
    left: clamp(32px,10vw,160px);
    font-size: clamp(17px,1.7vw,24px);
    font-weight: 300;
    letter-spacing: .035em;
    line-height: 1.3;
  }

  #fibois .project-rule {
    position: absolute;
    top: calc(clamp(80px,10vh,135px) + 48px);
    left: clamp(32px,10vw,160px);
    width: 42px;
    height: 1px;
    margin: 0;
    opacity: .65;
  }

  #fibois .project-copy {
    padding-top: 82px;
  }
}

#fibois .project-copy h2 {
  font-size: clamp(62px,6.7vw,100px);
  font-weight: 500;
  letter-spacing: -.025em;
}

#fibois .project-copy .subtitle {
  font-size: 28px;
  font-weight: 400;
}

#fibois .project-copy>p:not(.subtitle):not(.meta) {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
}

@media (max-width:760px) {
  #fibois .project-copy h2 {
    font-size: clamp(54px,13vw,100px);
  }

  #fibois .project-copy .subtitle {
    font-size: clamp(23px,5.5vw,28px);
  }
}

/* V18 — aligner la colonne de texte Fibois sur Créakub, desktop/tablette. */

@media (min-width:761px) {
  #fibois.layout-compact .project-copy {
    padding-left: clamp(36px,5vw,80px);
  }
}

/* V19 - Masquer le filet de la diapositive voisine dans la galerie compacte Fibois, sans modifier le cadrage. */

@media (min-width:761px) {
  #fibois.layout-compact .gallery-track {
    clip-path: inset(0 9% 0 9%);
  }
}

/* V21 — essai Fibois : galerie à gauche, descriptif à droite.
   La version mobile et la vue immersive conservent leur comportement. */

@media (min-width:761px) {
  #fibois.layout-compact .project-main {
    grid-template-columns: minmax(0, 60%) minmax(0, 40%);
    gap: clamp(25px,4vw,70px);
  }

  #fibois.layout-compact .gallery {
    grid-column: 1;
    grid-row: 1;
  }

  #fibois.layout-compact .project-copy {
    grid-column: 2;
    grid-row: 1;
    padding-left: 0;
    padding-right: clamp(12px,2vw,35px);
  }
}

@media (min-width:761px) and (max-width:1100px) {
  #fibois.layout-compact .project-main {
    grid-template-columns: minmax(0, 57%) minmax(0, 43%);
    gap: 24px;
  }
}

/* V22 — léger recentrage vertical des descriptifs face aux visuels.
   Uniquement en vue compacte desktop/tablette, sans toucher aux repères de catégorie. */

@media (min-width:761px) {
  #creakub.layout-compact .project-copy,
  #fibois.layout-compact .project-copy {
    transform: translateY(-32px);
  }
}

/* V24 : IRTESS reprend la grille Créakub, galerie à droite */

@media (min-width:761px) {
  #irtess.project {
    position: relative;
  }

  #irtess .project-category {
    position: absolute;
    top: clamp(80px,10vh,135px);
    left: clamp(32px,10vw,160px);
    font-size: clamp(17px,1.7vw,24px);
    font-weight: 300;
    letter-spacing: .035em;
    line-height: 1.3;
  }

  #irtess .project-rule {
    position: absolute;
    top: calc(clamp(80px,10vh,135px) + 48px);
    left: clamp(32px,10vw,160px);
    width: 42px;
    height: 1px;
    margin: 0;
    opacity: .65;
  }

  #irtess.layout-compact .project-copy {
    transform: translateY(-32px);
  }

  #irtess.layout-compact .gallery-track {
    clip-path: inset(0 9% 0 9%);
  }
}

/* V25 — Irtess : même grille typographique et placement que Créakub. */

#irtess .project-category {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0;
}

#irtess .project-copy h2 {
  font-size: 100px;
  font-weight: 500;
  letter-spacing: -.025em;
  margin-left: -5px;
  line-height: 1;
}

#irtess .project-copy .subtitle {
  font-size: 28px;
  font-weight: 400;
}

#irtess .project-copy>p:not(.subtitle):not(.meta) {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
}

@media (min-width:761px) {
  #irtess.layout-compact .project-copy {
    padding-left: clamp(36px,5vw,80px);
    padding-top: 82px;
    transform: translateY(-32px);
  }

  #irtess .project-category {
    position: absolute;
    top: clamp(80px,10vh,135px);
    left: clamp(32px,10vw,160px);
    font-size: clamp(17px,1.7vw,24px);
    font-weight: 300;
    letter-spacing: .035em;
    line-height: 1.3;
  }
}

@media (max-width:760px) {
  #irtess .project-copy h2 {
    font-size: clamp(54px,13vw,100px);
    margin-left: -4px;
  }

  #irtess .project-copy .subtitle {
    font-size: clamp(23px,5.5vw,28px);
  }

  #irtess .project-category {
    font-size: clamp(18px,4.5vw,22px);
  }
}

/* V27 : Idéha reprend les proportions validées de Irtess et Créakub */

#ideha .project-category {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0;
}

#ideha .project-copy h2 {
  font-size: 100px;
  font-weight: 500;
  letter-spacing: -.025em;
  margin-left: -5px;
  line-height: 1;
}

#ideha .project-copy .subtitle {
  font-size: 28px;
  font-weight: 400;
}

#ideha .project-copy>p:not(.subtitle):not(.meta) {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
}

@media (min-width:761px) {
  #ideha.layout-compact .project-copy {
    padding-left: clamp(36px,5vw,80px);
    padding-top: 82px;
    transform: translateY(-32px);
  }

  #ideha .project-category {
    position: absolute;
    top: clamp(80px,10vh,135px);
    left: clamp(32px,10vw,160px);
    font-size: clamp(17px,1.7vw,24px);
    font-weight: 300;
    letter-spacing: .035em;
    line-height: 1.3;
  }
}

@media (max-width:760px) {
  #ideha .project-copy h2 {
    font-size: clamp(54px,13vw,100px);
    margin-left: -4px;
  }

  #ideha .project-copy .subtitle {
    font-size: clamp(23px,5.5vw,28px);
  }

  #ideha .project-category {
    font-size: clamp(18px,4.5vw,22px);
  }
}

/* V28 — Idéha reprend la composition validée de Fibois : galerie à gauche, texte à droite. */

@media (min-width:761px) {
  #ideha.layout-compact .project-main {
    grid-template-columns: minmax(0,60%) minmax(0,40%);
    gap: clamp(25px,4vw,70px);
  }

  #ideha.layout-compact .gallery {
    grid-column: 1;
    grid-row: 1;
  }

  #ideha.layout-compact .project-copy {
    grid-column: 2;
    grid-row: 1;
    padding-left: 0;
    padding-right: clamp(12px,2vw,35px);
    padding-top: 82px;
    transform: translateY(-32px);
  }

  #ideha .project-rule {
    position: absolute;
    top: calc(clamp(80px,10vh,135px) + 48px);
    left: clamp(32px,10vw,160px);
    width: 42px;
    height: 1px;
    margin: 0;
    opacity: .65;
  }

  #ideha.layout-compact .gallery-track {
    clip-path: inset(0 9% 0 9%);
  }
}

@media (min-width:761px) and (max-width:1100px) {
  #ideha.layout-compact .project-main {
    grid-template-columns: minmax(0,57%) minmax(0,43%);
    gap: 24px;
  }
}

/* V29 : repere categorie Ideha au meme emplacement que Fibois */

@media (min-width:761px) {
  #ideha.project {
    position: relative;
  }

  #ideha .project-category {
    display: block;
    position: absolute;
    top: clamp(80px,10vh,135px);
    left: clamp(32px,10vw,160px);
    z-index: 5;
    margin: 0;
    font-size: clamp(17px,1.7vw,24px);
    font-weight: 300;
    letter-spacing: .035em;
    line-height: 1.3;
  }

  #ideha .project-rule {
    display: block;
    position: absolute;
    top: calc(clamp(80px,10vh,135px) + 48px);
    left: clamp(32px,10vw,160px);
    z-index: 5;
    width: 42px;
    height: 1px;
    margin: 0;
    opacity: .65;
  }
}

/* V30 — Idéha : harmonisation mobile avec Fibois, sans changement desktop/tablette. */

@media (max-width:760px) {
  #ideha.layout-compact .project-copy,
  #ideha.layout-immersive .project-copy {
    box-sizing: border-box;
    width: calc(100% - 14vw);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    transform: none;
  }

  #ideha .project-copy h2 {
    font-size: clamp(54px,13vw,100px);
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1;
    margin-left: 0;
  }

  #ideha .project-copy .subtitle {
    font-size: clamp(23px,5.5vw,28px);
    font-weight: 400;
  }

  #ideha .project-category {
    font-size: clamp(18px,4.5vw,22px);
    font-weight: 300;
  }
}

/* V31 — repères de catégorie cohérents sur tous les projets, mobile uniquement.
   La marge suit exactement la grille des blocs descriptifs (7vw). */

@media (max-width:760px) {
  #creakub.project .project-category,
  #fibois.project .project-category,
  #irtess.project .project-category,
  #ideha.project .project-category {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    box-sizing: border-box;
    width: 86%;
    margin: 0 auto;
    padding: 0;
    font-size: clamp(18px,4.5vw,22px);
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1.3;
  }

  #creakub.project .project-rule,
  #fibois.project .project-rule,
  #irtess.project .project-rule,
  #ideha.project .project-rule {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 50px;
    height: 1px;
    margin: 20px 0 52px 7%;
    padding: 0;
  }
}

/* V32 — Grand Besançon Habitat, modèle Créakub */

#gbh .project-copy h2 {
  font-size: clamp(48px,5.4vw,82px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin-left: -4px;
}

#gbh .project-copy .subtitle {
  font-size: 28px;
  font-weight: 400;
}

#gbh .project-copy>p:not(.subtitle):not(.meta) {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
}

@media (min-width:761px) {
  #gbh.project {
    position: relative;
  }

  #gbh .project-category {
    position: absolute;
    top: clamp(80px,10vh,135px);
    left: clamp(32px,10vw,160px);
    font-size: clamp(17px,1.7vw,24px);
    font-weight: 300;
    letter-spacing: .035em;
    line-height: 1.3;
  }

  #gbh .project-rule {
    position: absolute;
    top: calc(clamp(80px,10vh,135px) + 48px);
    left: clamp(32px,10vw,160px);
    width: 42px;
    height: 1px;
    margin: 0;
    opacity: .65;
  }

  #gbh.layout-compact .project-copy {
    padding-left: clamp(36px,5vw,80px);
    transform: translateY(-32px);
  }

  #gbh.layout-compact .gallery-track {
    clip-path: inset(0 9% 0 9%);
  }
}

@media (max-width:760px) {
  #gbh.project .project-category {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    box-sizing: border-box;
    width: 86%;
    margin: 0 auto;
    padding: 0;
    font-size: clamp(18px,4.5vw,22px);
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1.3;
  }

  #gbh.project .project-rule {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 50px;
    height: 1px;
    margin: 20px 0 52px 7%;
    padding: 0;
  }

  #gbh .project-copy h2 {
    font-size: clamp(44px,10vw,70px);
    overflow-wrap: normal;
  }

  #gbh .project-copy .subtitle {
    font-size: clamp(23px,5.5vw,28px);
  }
}

/* V33 — Préval : composition Fibois, galerie à gauche */

#preval .project-copy h2 {
  font-size: clamp(54px,6.5vw,100px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1;
  margin-left: -5px;
}

#preval .project-copy .subtitle {
  font-size: 28px;
  font-weight: 400;
}

#preval .project-copy>p:not(.subtitle):not(.meta) {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
}

@media (min-width:761px) {
  #preval.project {
    position: relative;
  }

  #preval .project-category {
    position: absolute;
    top: clamp(80px,10vh,135px);
    left: clamp(32px,10vw,160px);
    font-size: clamp(17px,1.7vw,24px);
    font-weight: 300;
    letter-spacing: .035em;
    line-height: 1.3;
  }

  #preval .project-rule {
    position: absolute;
    top: calc(clamp(80px,10vh,135px) + 48px);
    left: clamp(32px,10vw,160px);
    width: 42px;
    height: 1px;
    margin: 0;
    opacity: .65;
  }

  #preval.layout-compact .project-main {
    grid-template-columns: minmax(0,60%) minmax(0,40%);
    gap: clamp(25px,4vw,70px);
  }

  #preval.layout-compact .gallery {
    grid-column: 1;
    grid-row: 1;
  }

  #preval.layout-compact .project-copy {
    grid-column: 2;
    grid-row: 1;
    padding-left: 0;
    padding-right: clamp(12px,2vw,35px);
    transform: translateY(-32px);
  }

  #preval.layout-compact .gallery-track {
    clip-path: inset(0 9% 0 9%);
  }
}

@media (min-width:761px) and (max-width:1100px) {
  #preval.layout-compact .project-main {
    grid-template-columns: minmax(0,57%) minmax(0,43%);
    gap: 24px;
  }
}

@media (max-width:760px) {
  #preval.project .project-category {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    box-sizing: border-box;
    width: 86%;
    margin: 0 auto;
    padding: 0;
    font-size: clamp(18px,4.5vw,22px);
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1.3;
  }

  #preval.project .project-rule {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 50px;
    height: 1px;
    margin: 20px 0 52px 7%;
    padding: 0;
  }

  #preval .project-copy h2 {
    font-size: clamp(54px,13vw,100px);
    margin-left: -4px;
  }

  #preval .project-copy .subtitle {
    font-size: clamp(23px,5.5vw,28px);
  }
}

/* Carnets Comtois : image unique sans commandes de carrousel */


#carnets.layout-compact .project-main {
  grid-template-columns: minmax(0,38%) minmax(0,62%);
}

#carnets .gallery-track {
  overflow: visible;
  scroll-snap-type: none;
  clip-path: none;
  padding: 12px 0 20px;
}

#carnets .gallery-item {
  flex: 0 0 100%;
  opacity: 1 !important;
  transform: none !important;
}

#carnets .gallery-item img {
  width: 100%;
  height: auto;
  max-height: 65svh;
  aspect-ratio: auto;
  object-fit: contain;
}

#carnets .gallery-tip {
  cursor: default;
}

#carnets.layout-immersive .gallery-track {
  max-width: min(1100px,90vw);
  margin: auto;
}

#carnets.layout-immersive .gallery-item img {
  max-height: 78svh;
}

@media (max-width:760px) {
  #carnets.layout-compact .project-main {
    display: block;
    width: 100%;
  }

  #carnets .project-copy h2 {
    font-size: clamp(48px,11vw,72px);
  }

  #carnets .gallery-track {
    padding: 12px 7vw 24px;
  }

  #carnets .gallery-item img {
    max-height: none;
  }

  #carnets .gallery-tip {
    text-align: center;
  }
}

/* V35 — Carnets Comtois : alignements et typo du modèle Créakub */

#carnets .project-copy h2 {
  font-size: clamp(48px,5.1vw,78px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.02;
  margin-left: -4px;
}

#carnets .project-copy .subtitle {
  font-size: 28px;
  font-weight: 400;
}

#carnets .project-copy>p:not(.subtitle):not(.meta) {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
}

@media (min-width:761px) {
  #carnets.project {
    position: relative;
  }

  #carnets .project-category {
    position: absolute;
    top: clamp(80px,10vh,135px);
    left: clamp(32px,10vw,160px);
    font-size: clamp(17px,1.7vw,24px);
    font-weight: 300;
    letter-spacing: .035em;
    line-height: 1.3;
  }

  #carnets .project-rule {
    position: absolute;
    top: calc(clamp(80px,10vh,135px) + 48px);
    left: clamp(32px,10vw,160px);
    width: 42px;
    height: 1px;
    margin: 0;
    opacity: .65;
  }

  #carnets.layout-compact .project-copy {
    padding-left: clamp(36px,5vw,80px);
    padding-top: 82px;
    transform: translateY(-32px);
  }
}

@media (max-width:760px) {
  #carnets.project .project-category {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    box-sizing: border-box;
    width: 86%;
    margin: 0 auto;
    padding: 0;
    font-size: clamp(18px,4.5vw,22px);
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1.3;
  }

  #carnets.project .project-rule {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 50px;
    height: 1px;
    margin: 20px 0 52px 7%;
    padding: 0;
  }

  #carnets .project-copy h2 {
    font-size: clamp(44px,10vw,70px);
    margin-left: -4px;
  }

  #carnets .project-copy .subtitle {
    font-size: clamp(23px,5.5vw,28px);
  }
}

/* V37 : retour à la ligne de progression continue, indicateur proportionnel */

.project .gallery-track {
  padding-top: 4px !important;
}

.gallery-progress {
  width: 78px;
  height: 2px;
  background: #21103924;
  position: relative;
  overflow: hidden;
}

.gallery-progress span {
  display: block;
  height: 100%;
  background: var(--ink);
  transform: translateX(calc(var(--slide-index,0) * 100%)) !important;
  transition: transform .25s ease;
}

@media (max-width:700px) {
  .gallery-progress {
    width: 54px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .gallery-progress span {
    transition: none !important;
  }
}

/* V39 — Lombardot : composition Fibois et alignements corrigés */

#lombardot.project {
  position: relative;
}

#lombardot .project-copy h2 {
  font-size: clamp(62px,6.7vw,100px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1;
  margin-left: -4px;
}

#lombardot .project-copy .subtitle {
  font-size: 28px;
  font-weight: 400;
}

#lombardot .project-copy>p:not(.subtitle):not(.meta) {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
}

@media (min-width:761px) {
  #lombardot .project-category {
    position: absolute;
    top: clamp(80px,10vh,135px);
    left: clamp(32px,10vw,160px);
    font-size: clamp(17px,1.7vw,24px);
    font-weight: 300;
    letter-spacing: .035em;
    line-height: 1.3;
  }

  #lombardot .project-rule {
    position: absolute;
    top: calc(clamp(80px,10vh,135px) + 48px);
    left: clamp(32px,10vw,160px);
    width: 42px;
    height: 1px;
    margin: 0;
    opacity: .65;
  }

  #lombardot.layout-compact .project-main {
    grid-template-columns: minmax(0,60%) minmax(0,40%);
    gap: clamp(25px,4vw,70px);
  }

  #lombardot.layout-compact .gallery {
    grid-column: 1;
    grid-row: 1;
  }

  #lombardot.layout-compact .project-copy {
    grid-column: 2;
    grid-row: 1;
    padding-left: 0;
    padding-right: clamp(12px,2vw,35px);
    padding-top: 82px;
    transform: translateY(-32px);
  }

  #lombardot.layout-compact .gallery-track {
    clip-path: inset(0 9% 0 9%);
  }
}

@media (min-width:761px) and (max-width:1100px) {
  #lombardot.layout-compact .project-main {
    grid-template-columns: minmax(0,57%) minmax(0,43%);
    gap: 24px;
  }
}

@media (max-width:760px) {
  #lombardot.project .project-category {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    box-sizing: border-box;
    width: 86%;
    margin: 0 auto;
    padding: 0;
    font-size: clamp(18px,4.5vw,22px);
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1.3;
  }

  #lombardot.project .project-rule {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 50px;
    height: 1px;
    margin: 20px 0 52px 7%;
    padding: 0;
  }

  #lombardot.layout-compact .project-copy {
    padding: 0;
    width: 86%;
    margin: 0 auto 25px;
    transform: none;
  }

  #lombardot .project-copy h2 {
    font-size: clamp(48px,11vw,72px);
    margin-left: -4px;
  }

  #lombardot .project-copy .subtitle {
    font-size: clamp(23px,5.5vw,28px);
  }
}

/* V40 — Sucré Salé, disposition Créakub */

#sucresale .project-copy h2 {
  font-size: clamp(62px,6.7vw,100px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1;
  margin-left: -4px;
}

#sucresale .project-copy .subtitle {
  font-size: 28px;
  font-weight: 400;
}

#sucresale .project-copy>p:not(.subtitle):not(.meta) {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
}

@media (min-width:761px) {
  #sucresale {
    position: relative;
  }

  #sucresale .project-category {
    position: absolute;
    top: clamp(80px,10vh,135px);
    left: clamp(32px,10vw,160px);
    font-size: clamp(17px,1.7vw,24px);
    font-weight: 300;
    letter-spacing: .035em;
    line-height: 1.3;
  }

  #sucresale .project-rule {
    position: absolute;
    top: calc(clamp(80px,10vh,135px) + 48px);
    left: clamp(32px,10vw,160px);
    width: 42px;
    height: 1px;
    margin: 0;
    opacity: .65;
  }

  #sucresale.layout-compact .project-copy {
    padding-left: clamp(36px,5vw,80px);
    padding-top: 82px;
    transform: translateY(-32px);
  }

  #sucresale.layout-compact .gallery-track {
    clip-path: inset(0 9% 0 9%);
  }
}

@media (max-width:760px) {
  #sucresale.project .project-category {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    width: 86%;
    margin: 0 auto;
    padding: 0;
    font-size: clamp(18px,4.5vw,22px);
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1.3;
  }

  #sucresale.project .project-rule {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    width: 50px;
    height: 1px;
    margin: 20px 0 52px 7%;
  }

  #sucresale .project-copy h2 {
    font-size: clamp(48px,11vw,72px);
    margin-left: -4px;
  }

  #sucresale .project-copy .subtitle {
    font-size: clamp(23px,5.5vw,28px);
  }
}

/* V42 — Charles Legend : reprise ciblée du modèle Fibois */

#charles-legend .project-copy h2 {
  font-family: "Outfit",sans-serif;
  font-size: clamp(48px,5.1vw,78px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.02;
  margin-left: -4px;
  overflow-wrap: normal;
}

#charles-legend .project-copy .subtitle {
  font-size: 28px;
  font-weight: 400;
}

#charles-legend .project-copy>p:not(.subtitle):not(.meta) {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
}

@media (min-width:761px) {
  #charles-legend {
    position: relative;
  }

  #charles-legend .project-category {
    position: absolute;
    top: clamp(80px,10vh,135px);
    left: clamp(32px,10vw,160px);
    font-size: clamp(17px,1.7vw,24px);
    font-weight: 300;
    letter-spacing: .035em;
    line-height: 1.3;
  }

  #charles-legend .project-rule {
    position: absolute;
    top: calc(clamp(80px,10vh,135px) + 48px);
    left: clamp(32px,10vw,160px);
    width: 42px;
    height: 1px;
    margin: 0;
    opacity: .65;
  }

  #charles-legend.layout-compact .project-main {
    grid-template-columns: minmax(0,60%) minmax(0,40%);
    gap: clamp(25px,4vw,70px);
  }

  #charles-legend.layout-compact .gallery {
    grid-column: 1;
    grid-row: 1;
  }

  #charles-legend.layout-compact .project-copy {
    grid-column: 2;
    grid-row: 1;
    padding: 82px clamp(12px,2vw,35px) 0 0;
    transform: translateY(-32px);
  }

  #charles-legend.layout-compact .gallery-track {
    clip-path: inset(0 9% 0 9%);
  }
}

@media (min-width:761px) and (max-width:1100px) {
  #charles-legend.layout-compact .project-main {
    grid-template-columns: minmax(0,57%) minmax(0,43%);
    gap: 24px;
  }

  #charles-legend .project-copy h2 {
    font-size: clamp(43px,5.1vw,66px);
  }
}

@media (max-width:760px) {
  #charles-legend.project .project-category {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    width: 86%;
    margin: 0 auto;
    padding: 0;
    font-size: clamp(18px,4.5vw,22px);
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1.3;
  }

  #charles-legend.project .project-rule {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    width: 50px;
    height: 1px;
    margin: 20px 0 52px 7%;
  }

  #charles-legend.layout-compact .project-copy {
    width: 86%;
    margin: 0 auto 25px;
    padding: 0;
    transform: none;
  }

  #charles-legend .project-copy h2 {
    font-size: clamp(44px,10vw,70px);
    margin-left: -4px;
  }

  #charles-legend .project-copy .subtitle {
    font-size: clamp(23px,5.5vw,28px);
  }
}

/* V43 — Jura Supérieur : modèle Créakub */

#jura-superieur .project-copy h2 {
  font-family: "Outfit",sans-serif;
  font-size: clamp(62px,6.7vw,100px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1;
  margin-left: -4px;
}

#jura-superieur .project-copy .subtitle {
  font-size: 28px;
  font-weight: 400;
}

#jura-superieur .project-copy>p:not(.subtitle):not(.meta) {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
}

@media (min-width:761px) {
  #jura-superieur {
    position: relative;
  }

  #jura-superieur .project-category {
    position: absolute;
    top: clamp(80px,10vh,135px);
    left: clamp(32px,10vw,160px);
    font-size: clamp(17px,1.7vw,24px);
    font-weight: 300;
    letter-spacing: .035em;
    line-height: 1.3;
  }

  #jura-superieur .project-rule {
    position: absolute;
    top: calc(clamp(80px,10vh,135px) + 48px);
    left: clamp(32px,10vw,160px);
    width: 42px;
    height: 1px;
    margin: 0;
    opacity: .65;
  }

  #jura-superieur.layout-compact .project-copy {
    padding-left: clamp(36px,5vw,80px);
    padding-top: 82px;
    transform: translateY(-32px);
  }

  #jura-superieur.layout-compact .gallery-track {
    clip-path: inset(0 9% 0 9%);
  }
}

@media (max-width:760px) {
  #jura-superieur.project .project-category {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    width: 86%;
    margin: 0 auto;
    padding: 0;
    font-size: clamp(18px,4.5vw,22px);
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1.3;
  }

  #jura-superieur.project .project-rule {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    width: 50px;
    height: 1px;
    margin: 20px 0 52px 7%;
  }

  #jura-superieur .project-copy h2 {
    font-size: clamp(48px,11vw,72px);
    margin-left: -4px;
  }

  #jura-superieur .project-copy .subtitle {
    font-size: clamp(23px,5.5vw,28px);
  }
}

/* V44 — Comté Marcel Petite : galerie à gauche, texte à droite */

#comte-marcel-petite .project-copy h2 {
  font-family: "Outfit",sans-serif;
  font-size: clamp(62px,6.7vw,100px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1;
  margin-left: -4px;
}

#comte-marcel-petite .project-copy .subtitle {
  font-size: 28px;
  font-weight: 400;
}

#comte-marcel-petite .project-copy>p:not(.subtitle):not(.meta) {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
}

@media (min-width:761px) {
  #comte-marcel-petite {
    position: relative;
  }

  #comte-marcel-petite .project-category {
    position: absolute;
    top: clamp(80px,10vh,135px);
    left: clamp(32px,10vw,160px);
    font-size: clamp(17px,1.7vw,24px);
    font-weight: 300;
    letter-spacing: .035em;
    line-height: 1.3;
  }

  #comte-marcel-petite .project-rule {
    position: absolute;
    top: calc(clamp(80px,10vh,135px) + 48px);
    left: clamp(32px,10vw,160px);
    width: 42px;
    height: 1px;
    margin: 0;
    opacity: .65;
  }

  #comte-marcel-petite.layout-compact .project-main {
    grid-template-columns: minmax(0,60%) minmax(0,40%);
    gap: clamp(25px,4vw,70px);
  }

  #comte-marcel-petite.layout-compact .gallery {
    grid-column: 1;
    grid-row: 1;
  }

  #comte-marcel-petite.layout-compact .project-copy {
    grid-column: 2;
    grid-row: 1;
    padding: 82px clamp(12px,2vw,35px) 0 0;
    transform: translateY(-32px);
  }

  #comte-marcel-petite.layout-compact .gallery-track {
    clip-path: inset(0 9% 0 9%);
  }
}

@media (min-width:761px) and (max-width:1100px) {
  #comte-marcel-petite.layout-compact .project-main {
    grid-template-columns: minmax(0,57%) minmax(0,43%);
    gap: 24px;
  }
}

@media (max-width:760px) {
  #comte-marcel-petite.project .project-category {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    width: 86%;
    margin: 0 auto;
    padding: 0;
    font-size: clamp(18px,4.5vw,22px);
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1.3;
  }

  #comte-marcel-petite.project .project-rule {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    width: 50px;
    height: 1px;
    margin: 20px 0 52px 7%;
  }

  #comte-marcel-petite.layout-compact .project-copy {
    width: 86%;
    margin: 0 auto 25px;
    padding: 0;
    transform: none;
  }

  #comte-marcel-petite .project-copy h2 {
    font-size: clamp(48px,11vw,72px);
    margin-left: -4px;
  }

  #comte-marcel-petite .project-copy .subtitle {
    font-size: clamp(23px,5.5vw,28px);
  }
}

/* V46 — harmonisation des titres de projets */

.project .project-copy h2 {
  letter-spacing: -.015em;
}

@media (min-width:761px) {
  #lombardot .project-copy h2,
  #sucresale .project-copy h2,
  #jura-superieur .project-copy h2,
  #comte-marcel-petite .project-copy h2 {
    font-size: clamp(48px,5.4vw,82px);
    line-height: 1.02;
  }
}

@media (max-width:760px) {
  #lombardot .project-copy h2,
  #sucresale .project-copy h2,
  #jura-superieur .project-copy h2,
  #comte-marcel-petite .project-copy h2 {
    font-size: clamp(44px,10vw,70px);
    line-height: 1.02;
  }
}

/* V47 — Lamborghini Porrentruy : composition indépendante */

.lamborghini-project {
  background: #fff;
  min-height: 100svh;
  overflow: hidden;
  font-family: "Outfit",sans-serif;
  padding: 70px 0 45px;
}

.lamborghini-wrap {
  width: min(1280px,calc(100% - 12vw));
  min-height: 800px;
  margin: auto;
  position: relative;
  display: grid;
  grid-template-columns: 32% 68%;
  grid-template-rows: 180px auto 80px;
  align-items: start;
}

.lamborghini-category {
  grid-column: 1;
  grid-row: 1;
  font-size: clamp(18px,1.65vw,24px);
  font-weight: 300;
  padding-top: 28px;
}

.lamborghini-category span {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--ink);
  margin-top: 18px;
}

.lamborghini-copy {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  max-width: 245px;
  padding-bottom: 45px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 300;
}

.lamborghini-copy p {
  margin: 0 0 22px;
}

.lamborghini-copy h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 18px 0 2px;
}

.lamborghini-heading {
  position: absolute;
  z-index: 4;
  right: 0;
  top: 32px;
  width: 48%;
  text-align: right;
}

.lamborghini-heading h2 {
  font-size: clamp(40px,4vw,62px);
  line-height: 1.03;
  letter-spacing: -.015em;
  font-weight: 600;
  margin: 0;
}

.lamborghini-heading p {
  font-size: 22px;
  font-weight: 300;
  margin: 3px 0 0;
}

.lamborghini-art {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  width: 100%;
  aspect-ratio: 1.25;
  align-self: center;
  margin-top: 40px;
}

.lamborghini-desktop {
  display: block;
  position: absolute;
  z-index: 1;
  width: 91%;
  height: auto;
  right: 0;
  bottom: 0;
}

.lamborghini-phone {
  position: absolute;
  z-index: 2;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 5px 5px #21103915);
}

.lamborghini-phone-left {
  width: 34%;
  left: -27%;
  top: 3%;
}

.lamborghini-phone-right {
  width: 31%;
  left: -6%;
  top: -27%;
}

.lamborghini-link {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  align-self: center;
  font-size: 18px;
  text-decoration: none;
  position: relative;
  z-index: 4;
}

.lamborghini-link:hover {
  text-decoration: underline;
}

.lamborghini-arrows {
  grid-column: 1;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  align-self: end;
  gap: 0;
  font-size: 32px;
  line-height: .65;
  font-weight: 600;
}

.lamborghini-arrows a {
  text-decoration: none;
  width: 32px;
  height: 27px;
}

@media (max-width:900px) {
  .lamborghini-wrap {
    width: 86%;
    grid-template-columns: 35% 65%;
    min-height: 650px;
  }

  .lamborghini-heading {
    width: 58%;
  }

  .lamborghini-art {
    margin-top: 90px;
  }

  .lamborghini-copy {
    font-size: 13px;
    max-width: 190px;
  }

  .lamborghini-phone-left {
    left: -22%;
  }
}

@media (max-width:760px) {
  .lamborghini-project {
    padding: 95px 0 50px;
    min-height: auto;
  }

  .lamborghini-wrap {
    width: 86%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .lamborghini-category {
    padding: 0;
    font-size: 20px;
    order: 0;
  }

  .lamborghini-heading {
    position: static;
    width: 100%;
    text-align: left;
    order: 1;
    margin: 65px 0 0;
  }

  .lamborghini-heading h2 {
    font-size: clamp(40px,10vw,64px);
  }

  .lamborghini-heading p {
    font-size: 23px;
  }

  .lamborghini-art {
    order: 2;
    aspect-ratio: 1.15;
    width: 95%;
    align-self: flex-end;
    margin: 80px 0 20px;
  }

  .lamborghini-desktop {
    width: 100%;
    right: 0;
    bottom: 0;
  }

  .lamborghini-phone-left {
    width: 36%;
    left: -9%;
    top: 0;
  }

  .lamborghini-phone-right {
    width: 33%;
    left: 12%;
    top: -23%;
  }

  .lamborghini-copy {
    order: 4;
    max-width: 100%;
    padding: 30px 0 0;
    font-size: 16px;
    align-self: stretch;
  }

  .lamborghini-link {
    order: 3;
    align-self: flex-end;
    font-size: 14px;
  }

  .lamborghini-arrows {
    order: 5;
    align-self: flex-start;
    margin-top: 45px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .lamborghini-project * {
    animation: none !important;
  }
}

/* V48 — Harmonisation du texte Lamborghini avec les autres projets */

.lamborghini-copy {
  max-width: 280px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 300;
  padding-bottom: 0;
  position: relative;
  z-index: 3;
}

.lamborghini-copy>p:not(.lamborghini-meta) {
  margin: 0 0 24px;
}

.lamborghini-copy .lamborghini-meta {
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .025em;
  color: var(--muted);
  margin: 0;
}

@media (min-width:761px) and (max-width:1100px) {
  .lamborghini-copy {
    max-width: 235px;
    font-size: 16px;
  }
}

@media (max-width:760px) {
  .lamborghini-copy {
    max-width: 100%;
    font-size: 18px;
    padding-top: 30px;
  }

  .lamborghini-copy .lamborghini-meta {
    font-size: 11px;
  }
}

/* V49 — Ajustements ciblés Lamborghini, sans effet sur les autres projets */

@media (min-width:761px) {
  .lamborghini-wrap {
    grid-template-columns: 32% 68%;
    grid-template-rows: 200px auto 80px;
  }

  .lamborghini-heading {
    top: 112px;
  }

  .lamborghini-copy {
    transform: translateY(85px);
    max-width: 270px;
  }

  .lamborghini-art {
    width: 91%;
    justify-self: end;
    margin-top: 48px;
  }

  .lamborghini-desktop {
    width: 91%;
  }

  .lamborghini-phone-left {
    width: 30%;
    left: -25%;
    top: 4%;
  }

  .lamborghini-phone-right {
    width: 27%;
    left: -5%;
    top: -23%;
  }
}

.lamborghini-arrows {
  gap: 12px;
  align-self: end;
}

.lamborghini-arrows a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.lamborghini-arrows img {
  display: block;
  width: 27px;
  height: 27px;
  object-fit: contain;
}

@media (max-width:760px) {
  .lamborghini-copy {
    transform: none;
  }

  .lamborghini-heading {
    top: auto;
  }

  .lamborghini-art {
    width: 95%;
    margin-top: 80px;
  }

  .lamborghini-phone-left {
    width: 33%;
    left: -9%;
    top: 0;
  }

  .lamborghini-phone-right {
    width: 30%;
    left: 12%;
    top: -21%;
  }
}

/* V50 — Lamborghini : composition resserrée dans le cadre commun des projets */

@media (min-width:761px) {
  .lamborghini-project {
    padding: 64px 0 38px;
    min-height: 100svh;
  }

  .lamborghini-wrap {
    width: min(1180px,calc(100% - 14vw));
    min-height: 0;
    grid-template-columns: 34% 66%;
    grid-template-rows: 140px minmax(420px,auto) 62px;
  }

  .lamborghini-category {
    padding-top: 12px;
  }

  .lamborghini-heading {
    top: 94px;
    right: 0;
    width: 48%;
  }

  .lamborghini-heading h2 {
    font-size: clamp(38px,3.65vw,55px);
  }

  .lamborghini-heading p {
    font-size: 20px;
  }

  .lamborghini-art {
    width: 86%;
    margin-top: 48px;
    aspect-ratio: 1.34;
    align-self: center;
  }

  .lamborghini-desktop {
    width: 92%;
  }

  .lamborghini-phone-left {
    width: 29%;
    left: -24%;
    top: 5%;
  }

  .lamborghini-phone-right {
    width: 26%;
    left: -4%;
    top: -21%;
  }

  .lamborghini-copy {
    transform: translateY(45px);
    max-width: 265px;
  }

  .lamborghini-link {
    font-size: 16px;
  }

  .lamborghini-arrows {
    align-self: center;
  }
}

@media (min-width:761px) and (max-width:1050px) {
  .lamborghini-wrap {
    width: 86%;
    grid-template-rows: 150px minmax(370px,auto) 65px;
  }

  .lamborghini-art {
    width: 91%;
    margin-top: 55px;
  }

  .lamborghini-heading {
    top: 95px;
  }

  .lamborghini-copy {
    transform: translateY(30px);
  }
}

/* V51 — cadre commun et titre dégagé (desktop uniquement) */

@media (min-width:1101px) {
  .lamborghini-wrap {
    width: min(1100px,calc(100% - 20vw));
  }

  .lamborghini-heading {
    right: 54px;
    top: 56px;
    width: 52%;
  }

  .lamborghini-heading h2 {
    font-size: clamp(36px,3.3vw,51px);
  }

  .lamborghini-art {
    margin-top: 70px;
  }

  .lamborghini-link {
    right: 0;
  }
}

/* V52 — navigation uniforme et entrée discrète des téléphones */

.lamborghini-continue {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: center;
  align-self: end;
  padding: 0 !important;
  text-align: center;
  position: relative;
  z-index: 5;
}

.lamborghini-continue a {
  margin: 0;
  justify-content: center;
}

.lamborghini-phone {
  will-change: transform,opacity;
}

@media (prefers-reduced-motion:no-preference) {
  .lamborghini-project.lamborghini-ready .lamborghini-phone {
    opacity: 0;
    transition: opacity .9s ease,transform 1.05s cubic-bezier(.25,.1,.25,1);
  }

  .lamborghini-project.lamborghini-ready .lamborghini-phone-left {
    transform: translate3d(-85px,85px,0);
  }

  .lamborghini-project.lamborghini-ready .lamborghini-phone-right {
    transform: translate3d(55px,-100px,0);
  }

  .lamborghini-project.lamborghini-ready.lamborghini-visible .lamborghini-phone {
    opacity: 1;
    transform: translate3d(0,0,0);
  }

  .lamborghini-project.lamborghini-ready .lamborghini-phone-right {
    transition-delay: .22s;
  }
}

@media (max-width:760px) {
  .lamborghini-continue {
    order: 5;
    align-self: center;
    margin-top: 45px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .lamborghini-phone {
    will-change: auto;
  }
}

/* V56 — téléphones Lamborghini +10 % uniquement sur desktop ; mobile inchangé */

@media (min-width:761px) {
  .lamborghini-phone-left {
    width: 31.9%;
  }

  .lamborghini-phone-right {
    width: 28.6%;
  }
}

/* V57 — Rabian SA : scène indépendante, Lamborghini et projets précédents inchangés */

.rabian-project {
  background: #fff;
  min-height: 100svh;
  overflow: hidden;
  font-family: "Outfit",sans-serif;
  padding: 64px 0 38px;
}

.rabian-wrap {
  width: min(1100px,calc(100% - 20vw));
  margin: auto;
  position: relative;
  display: grid;
  grid-template-columns: 68% 32%;
  grid-template-rows: 140px minmax(420px,auto) 62px;
  align-items: start;
}

.rabian-category {
  grid-column: 1;
  grid-row: 1;
  padding-top: 12px;
  font-size: clamp(18px,1.65vw,24px);
  font-weight: 300;
}

.rabian-category span {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--ink);
  margin-top: 18px;
}

.rabian-heading {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  margin-bottom: 5px;
  position: relative;
  z-index: 4;
}

.rabian-heading h2 {
  font-size: clamp(36px,3.3vw,51px);
  line-height: 1.04;
  letter-spacing: -.015em;
  font-weight: 600;
  margin: 0;
}

.rabian-heading p {
  font-size: 20px;
  font-weight: 300;
  margin: 4px 0 0;
}

.rabian-art {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  width: 94%;
  aspect-ratio: 1.36;
  align-self: center;
  margin-top: 26px;
}

.rabian-desktop {
  position: absolute;
  display: block;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
}

.rabian-tablet {
  position: absolute;
  z-index: 2;
  width: 37%;
  height: auto;
  right: -17%;
  top: -18%;
  object-fit: contain;
  filter: drop-shadow(0 9px 12px #21103924);
  will-change: transform,opacity;
}

.rabian-copy {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  justify-self: end;
  width: 85%;
  max-width: 270px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 300;
  position: relative;
  z-index: 3;
  margin-top: 100px;
}

.rabian-copy>p:first-child {
  margin: 0 0 24px;
}

.rabian-meta {
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .025em;
  color: var(--muted);
  margin: 0;
}

.rabian-link {
  grid-column: 1;
  grid-row: 3;
  align-self: center;
  justify-self: start;
  font-size: 16px;
  text-decoration: none;
  position: relative;
  z-index: 4;
}

.rabian-link:hover {
  text-decoration: underline;
}

.rabian-continue {
  grid-column: 1/-1;
  grid-row: 3;
  justify-self: center;
  align-self: end;
  padding: 0 !important;
  text-align: center;
  position: relative;
  z-index: 5;
}

.rabian-continue a {
  margin: 0;
  justify-content: center;
}

@media (prefers-reduced-motion:no-preference) {
  .rabian-project.rabian-ready .rabian-tablet {
    opacity: 0;
    transform: translate3d(100px,-110px,0);
    transition: transform 1.05s cubic-bezier(.25,.1,.25,1),opacity .9s ease;
  }

  .rabian-project.rabian-ready.rabian-visible .rabian-tablet {
    opacity: 1;
    transform: translate3d(0,0,0);
  }
}

@media (min-width:761px) and (max-width:1100px) {
  .rabian-wrap {
    width: 86%;
    grid-template-columns: 65% 35%;
  }

  .rabian-copy {
    font-size: 16px;
    max-width: 220px;
  }

  .rabian-tablet {
    width: 38%;
    right: -12%;
  }
}

@media (max-width:760px) {
  .rabian-project {
    padding: 95px 0 50px;
    min-height: auto;
  }

  .rabian-wrap {
    width: 86%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .rabian-category {
    padding: 0;
    font-size: 20px;
    order: 0;
  }

  .rabian-heading {
    order: 1;
    margin: 65px 0 0;
    align-self: stretch;
  }

  .rabian-heading h2 {
    font-size: clamp(40px,10vw,64px);
  }

  .rabian-heading p {
    font-size: 23px;
  }

  .rabian-art {
    order: 2;
    width: 100%;
    aspect-ratio: 1.32;
    align-self: stretch;
    margin: 85px 0 10px;
  }

  .rabian-tablet {
    width: 40%;
    right: -3%;
    top: -26%;
  }

  .rabian-link {
    order: 3;
    align-self: flex-start;
    font-size: 14px;
    margin: 15px 0 0;
  }

  .rabian-copy {
    order: 4;
    align-self: stretch;
    justify-self: auto;
    width: 100%;
    max-width: none;
    font-size: 18px;
    margin: 38px 0 0;
  }

  .rabian-continue {
    order: 5;
    align-self: center;
    margin-top: 45px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .rabian-tablet {
    will-change: auto;
  }
}

/* V58 — Rabian : titre dans la colonne descriptive sur écran large.
   Mobile : composition V57 conservée à l'identique. */

@media (min-width:761px) {
  .rabian-heading {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    justify-self: end;
    width: 85%;
    max-width: 270px;
    margin: 0;
    transform: translateY(-112px);
    z-index: 4;
  }

  .rabian-copy {
    margin-top: 115px;
  }
}

@media (min-width:761px) and (max-width:1100px) {
  .rabian-heading {
    max-width: 220px;
  }

  .rabian-heading h2 {
    font-size: clamp(33px,3.6vw,46px);
  }
}

/* V59 — Galerie mixte CGFL */

#cgfl .project-copy h2 {
  font-size: clamp(35px,3.8vw,58px);
  line-height: 1.08;
  letter-spacing: -.035em;
  overflow-wrap: normal;
}

#cgfl .project-copy .subtitle {
  font-size: clamp(20px,2vw,28px);
  line-height: 1.2;
}

#cgfl .gallery-item video {
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: contain;
  background: #17121d;
}

#cgfl .gallery-item {
  min-width: 0;
}

@media (max-width:700px) {
  #cgfl .project-copy h2 {
    font-size: clamp(36px,8vw,54px);
  }

  #cgfl .gallery-item video {
    aspect-ratio: 1.1;
  }
}

/* V60 — CGFL : alignements et typographie, galerie inchangée */

@media (min-width:761px) {
  #cgfl.project {
    position: relative;
  }

  #cgfl .project-category {
    position: absolute;
    top: clamp(80px,10vh,135px);
    left: clamp(32px,10vw,160px);
    font-size: clamp(17px,1.7vw,24px);
    font-weight: 300;
    letter-spacing: .035em;
    line-height: 1.3;
  }

  #cgfl .project-rule {
    position: absolute;
    top: calc(clamp(80px,10vh,135px) + 48px);
    left: clamp(32px,10vw,160px);
    width: 42px;
    height: 1px;
    margin: 0;
    opacity: .65;
  }

  #cgfl.layout-compact .project-copy {
    padding-left: clamp(36px,5vw,80px);
    min-width: 0;
    transform: translateY(-20px);
  }

  #cgfl.layout-compact .project-copy h2 {
    font-size: clamp(34px,3.05vw,46px);
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.08;
    margin-left: 0;
  }

  #cgfl.layout-compact .project-copy .subtitle {
    font-size: clamp(18px,1.65vw,24px);
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 24px;
  }

  #cgfl.layout-compact .project-copy>p:not(.subtitle):not(.meta) {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.5;
  }
}

@media (max-width:760px) {
  #cgfl.project .project-category {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    width: 86%;
    margin: 0 auto;
    font-size: clamp(18px,4.5vw,22px);
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1.3;
  }

  #cgfl.project .project-rule {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    width: 50px;
    height: 1px;
    margin: 20px 0 52px 7%;
    padding: 0;
  }

  #cgfl .project-copy h2 {
    font-size: clamp(35px,8vw,54px);
    font-weight: 500;
    letter-spacing: -.025em;
  }

  #cgfl .project-copy .subtitle {
    font-size: clamp(20px,5vw,26px);
  }
}

/* V61 — CGFL : titre harmonisé sur Grand Besançon Habitat */

#cgfl .project-copy h2 {
  font-size: clamp(48px,5.4vw,82px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin-left: -4px;
}

@media (min-width:761px) {
  #cgfl.layout-compact .project-copy h2 {
    font-size: clamp(48px,5.4vw,82px);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.02;
    margin-left: -4px;
  }
}

@media (max-width:760px) {
  #cgfl .project-copy h2 {
    font-size: clamp(44px,10vw,70px);
    line-height: 1.02;
  }
}

/* Masquer les bords des diapositives voisines, comme pour GBH. */

#cgfl.layout-compact .gallery-track {
  clip-path: inset(0 9% 0 9%);
}

/* Transition légère du contenu dynamique, sans toucher à la galerie. */

#cgfl .project-copy .subtitle,#cgfl .project-copy #cgfl-description,#cgfl .project-copy #cgfl-meta {
  transition: opacity .23s ease,transform .23s ease;
  opacity: 1;
  transform: translateY(0);
}

#cgfl .project-copy.cgfl-copy-out .subtitle,#cgfl .project-copy.cgfl-copy-out #cgfl-description,#cgfl .project-copy.cgfl-copy-out #cgfl-meta {
  opacity: 0;
  transform: translateY(9px);
}

@media (prefers-reduced-motion:reduce) {
  #cgfl .project-copy .subtitle,#cgfl .project-copy #cgfl-description,#cgfl .project-copy #cgfl-meta {
    transition: none;
  }
}

/* V62 — CGFL : titre moins imposant, bloc recentré (desktop seulement) */

@media (min-width:761px) {
  #cgfl.layout-compact .project-copy h2 {
    font-size: clamp(35px,4.05vw,61px);
    line-height: 1.06;
  }

  #cgfl.layout-compact .project-copy {
    transform: translateY(0);
  }
}

/* V63 — CGFL : titre fixe et espaces réservés pour les textes dynamiques.
   Les hauteurs sont calculées par JS selon le contenu le plus long, y compris en mobile. */

#cgfl .project-copy {
  position: relative;
}

#cgfl #cgfl-subtitle,#cgfl #cgfl-description,#cgfl #cgfl-meta {
  box-sizing: border-box;
}

/* V65 — Banque Populaire : galerie à gauche, texte à droite */

#banque-populaire {
  position: relative;
}

#banque-populaire .project-copy h2 {
  font-size: clamp(35px,4.05vw,61px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.06;
  margin: 0 0 10px;
}

#banque-populaire .project-copy .subtitle {
  font-size: clamp(18px,1.65vw,24px);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 24px;
}

#banque-populaire .project-copy>p:not(.subtitle):not(.meta) {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.5;
}

#banque-populaire .project-copy .meta {
  font-size: 11px !important;
  color: var(--muted);
}

#banque-populaire .gallery-item video {
  display: block;
  width: 100%;
  aspect-ratio: 1.35;
  max-height: min(53svh,510px);
  object-fit: contain;
  background: #17121d;
}

#banque-populaire .gallery-item {
  min-width: 0;
}

#banque-populaire .gallery-track {
  clip-path: inset(0 9% 0 9%);
}

#banque-populaire .project-copy .subtitle,#banque-populaire #banque-description,#banque-populaire #banque-meta {
  transition: opacity .23s ease,transform .23s ease;
  opacity: 1;
  transform: translateY(0);
  box-sizing: border-box;
}

#banque-populaire .project-copy.cgfl-copy-out .subtitle,#banque-populaire .project-copy.cgfl-copy-out #banque-description,#banque-populaire .project-copy.cgfl-copy-out #banque-meta {
  opacity: 0;
  transform: translateY(9px);
}

@media (min-width:761px) {
  #banque-populaire .project-category {
    position: absolute;
    top: clamp(80px,10vh,135px);
    left: clamp(32px,10vw,160px);
    font-size: clamp(17px,1.7vw,24px);
    font-weight: 300;
    letter-spacing: .035em;
    line-height: 1.3;
  }

  #banque-populaire .project-rule {
    position: absolute;
    top: calc(clamp(80px,10vh,135px) + 48px);
    left: clamp(32px,10vw,160px);
    width: 42px;
    height: 1px;
    margin: 0;
    opacity: .65;
  }

  #banque-populaire.layout-compact .project-main {
    grid-template-columns: minmax(0,60%) minmax(0,40%);
    gap: clamp(25px,4vw,70px);
  }

  #banque-populaire.layout-compact .gallery {
    grid-column: 1;
    grid-row: 1;
  }

  #banque-populaire.layout-compact .project-copy {
    grid-column: 2;
    grid-row: 1;
    padding-left: clamp(10px,2vw,28px);
    padding-right: 12px;
  }
}

@media (min-width:761px) and (max-width:1100px) {
  #banque-populaire.layout-compact .project-main {
    grid-template-columns: minmax(0,57%) minmax(0,43%);
    gap: 24px;
  }
}

@media (max-width:760px) {
  #banque-populaire.project .project-category {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    width: 86%;
    margin: 0 auto;
    font-size: clamp(18px,4.5vw,22px);
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1.3;
  }

  #banque-populaire.project .project-rule {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    width: 50px;
    height: 1px;
    margin: 20px 0 52px 7%;
    padding: 0;
  }

  #banque-populaire.layout-compact .project-main {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 28px;
  }

  #banque-populaire.layout-compact .gallery {
    width: 100%;
    order: 0;
  }

  #banque-populaire.layout-compact .project-copy {
    width: 86%;
    order: 1;
    margin: 0 auto;
  }

  #banque-populaire .project-copy h2 {
    font-size: clamp(39px,9vw,55px);
  }

  #banque-populaire .gallery-item video {
    aspect-ratio: 1.1;
    max-height: 48svh;
  }
}

@media (prefers-reduced-motion:reduce) {
  #banque-populaire .project-copy .subtitle,#banque-populaire #banque-description,#banque-populaire #banque-meta {
    transition: none;
  }
}

/* V67 — Contact : maquette desktop / mobile */

.contact-section {
  background: #f1f0ef;
  color: var(--ink);
  font-family: "Outfit",sans-serif;
}

.contact-layout {
  width: min(1160px,calc(100% - 12vw));
  margin: auto;
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(0,.95fr);
  gap: clamp(48px,6vw,100px);
  align-items: center;
  padding: 90px 0;
}

.contact-content {
  min-width: 0;
}

.contact-content h2 {
  font-size: clamp(24px,2.15vw,31px);
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
}

.contact-rule {
  display: block;
  width: 34px;
  height: 1px;
  background: var(--ink);
  margin: 20px 0 28px;
}

.contact-intro {
  font-size: clamp(15px,1.18vw,18px);
  font-weight: 300;
  line-height: 1.55;
  max-width: 590px;
  margin: 0 0 52px;
}

#contact-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.contact-field {
  display: block;
  width: 100%;
}

.contact-field input,.contact-field textarea {
  width: 100%;
  display: block;
  border: 0;
  border-bottom: 1px solid #82798b;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 300 17px "Outfit",sans-serif;
  outline-offset: 4px;
  padding: 9px 2px 13px;
  resize: vertical;
}

.contact-field input::placeholder,.contact-field textarea::placeholder {
  color: var(--ink);
  opacity: .9;
}

.contact-message textarea {
  height: 145px;
  min-height: 110px;
}

.contact-send {
  border: 0;
  border-radius: 0;
  background: #1c0b38;
  color: white;
  padding: 15px 32px;
  cursor: pointer;
  font: 300 19px "Outfit",sans-serif;
  letter-spacing: .025em;
}

.contact-send:hover {
  background: #362052;
}

.contact-send:disabled {
  opacity: .6;
  cursor: wait;
}

.contact-status {
  font-size: 14px;
  min-height: 1.2em;
  margin: 0;
}

.contact-thanks {
  font-size: clamp(23px,2.3vw,32px);
  font-weight: 600;
  margin: 40px 0 0;
}

.contact-photo {
  margin: 0;
  align-self: center;
}

.contact-photo img {
  display: block;
  width: 100%;
  height: clamp(480px,51vw,670px);
  object-fit: cover;
  object-position: 50% 35%;
}

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

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.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;
}

.site-footer {
  background: #fff;
  color: #a99aac;
  text-align: right;
  padding: 25px clamp(28px,9vw,150px);
  font: 300 17px "Outfit",sans-serif;
}

@media (max-width:760px) {
  .contact-section {
    background: #fff;
  }

  .contact-mobile-intro {
    display: block;
    position: relative;
    height: min(79vw,510px);
    min-height: 340px;
    overflow: hidden;
    background: #f1f0ef;
  }

  .contact-mobile-intro>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 48% 25%;
    clip-path: inset(0 51% 0 0);
  }

  .contact-mobile-identity {
    position: absolute;
    top: 37%;
    right: 7%;
    width: 52%;
    text-align: right;
    color: var(--ink);
  }

  .contact-mobile-identity h2 {
    font-size: clamp(25px,6.6vw,49px);
    font-weight: 600;
    line-height: 1.08;
    margin: 0 0 12px;
    white-space: nowrap;
    letter-spacing: -.035em;
  }

  .contact-mobile-identity p {
    font-size: clamp(17px,4vw,30px);
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
  }

  .contact-layout {
    display: block;
    width: calc(100% - 17vw);
    min-height: 0;
    padding: 58px 0 65px;
  }

  .contact-photo {
    display: none;
  }

  .contact-content h2 {
    font-size: clamp(27px,5vw,38px);
  }

  .contact-rule {
    margin: 18px 0 36px;
    width: 44px;
  }

  .contact-intro {
    font-size: clamp(18px,3.4vw,25px);
    line-height: 1.5;
    margin-bottom: 34px;
  }

  #contact-form {
    gap: 20px;
  }

  .contact-field input,.contact-field textarea {
    font-size: clamp(17px,3.4vw,24px);
  }

  .contact-message textarea {
    height: 125px;
  }

  .contact-send {
    font-size: clamp(18px,3.5vw,23px);
    padding: 15px 32px;
  }

  .contact-thanks {
    display: none;
  }

  .site-footer {
    background: #f1f0ef;
    padding: 20px 8%;
    font-size: 15px;
  }
}

@media (max-width:420px) {
  .contact-mobile-intro {
    height: 350px;
    min-height: 0;
  }

  .contact-mobile-identity {
    right: 5%;
    width: 54%;
  }

  .contact-mobile-identity h2 {
    font-size: clamp(23px,6.1vw,28px);
  }

  .contact-mobile-identity p {
    font-size: clamp(16px,4.2vw,19px);
  }
}

/* V68 — Ajustements ciblés de la section Contact */

@media (min-width:761px) {
  .contact-layout {
    width: 86%;
    max-width: none;
    grid-template-columns: minmax(0,1.25fr) minmax(0,.88fr);
    gap: clamp(45px,6vw,110px);
  }

  .contact-content h2 {
    font-size: clamp(18px,1.7vw,24px);
    font-weight: 300;
    letter-spacing: .035em;
    line-height: 1.3;
  }

  .contact-thanks {
    font-weight: 400;
  }
}

@media (max-width:760px) {
  .contact-mobile-intro {
    height: clamp(205px,54vw,290px);
    min-height: 0;
  }

  .contact-mobile-intro>img {
    inset: 0 auto 0 0;
    width: 51%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 29%;
    clip-path: none;
  }

  .contact-mobile-identity {
    top: 50%;
    transform: translateY(-50%);
    right: 5%;
    width: 48%;
  }

  .contact-mobile-identity h2 {
    font-size: clamp(21px,5.5vw,35px);
    margin-bottom: 9px;
  }

  .contact-mobile-identity p {
    font-size: clamp(14px,3.4vw,21px);
    line-height: 1.17;
  }

  .contact-layout {
    width: 86%;
    padding: 30px 0 42px;
  }

  .contact-content h2 {
    font-size: clamp(22px,5.3vw,27px);
    font-weight: 300;
    letter-spacing: .025em;
  }

  .contact-rule {
    margin: 12px 0 20px;
    width: 42px;
  }

  .contact-intro {
    font-size: clamp(15px,3.65vw,18px);
    line-height: 1.42;
    margin-bottom: 19px;
  }

  #contact-form {
    gap: 11px;
  }

  .contact-field input,.contact-field textarea {
    font-size: 16px;
    padding: 6px 1px 8px;
  }

  .contact-message textarea {
    height: 67px;
    min-height: 60px;
  }

  .contact-send {
    font-size: 16px;
    padding: 10px 25px;
  }

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

@media (max-width:420px) {
  .contact-mobile-intro {
    height: clamp(195px,54vw,230px);
  }

  .contact-mobile-identity {
    right: 4%;
    width: 48%;
  }

  .contact-mobile-identity h2 {
    font-size: clamp(20px,5.2vw,25px);
  }

  .contact-mobile-identity p {
    font-size: clamp(13px,3.4vw,16px);
  }
}

/* V69 — Contact : alignement sur la grille des projets et marge mobile */

@media (min-width: 901px) {
  .contact-layout {
    width: 80%;
    max-width: none;
  }
}

@media (max-width: 900px) {
  .contact-mobile-identity {
    right: 7%;
    width: 45%;
  }
}

/* V70 — Galerie des identités : indépendante des galeries projets */

.logo-showcase {
  position: relative;
  min-height: 100svh;
  padding: clamp(85px,9vw,145px) 0 45px;
  background: #f8f8f6;
  color: #191919;
  overflow: hidden;
}


.logo-heading .project-category {
  display: block;
}


.logo-viewport {
  width: 84%;
  max-width: 1450px;
  margin: 0 auto;
  position: relative;
  min-height: clamp(320px,37vw,560px);
}

.logo-set {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  grid-template-rows: repeat(2,minmax(130px,1fr));
  grid-auto-flow: column;
  column-gap: clamp(20px,4vw,75px);
  row-gap: clamp(15px,3vw,48px);
  width: 100%;
  height: 100%;
  min-height: inherit;
  align-items: center;
}

.logo-set[hidden] {
  display: none;
}

.logo-tile {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  height: 100%;
  padding: 12px 8px;
  will-change: transform,opacity;
}

.logo-tile img {
  display: block;
  max-width: 100%;
  max-height: clamp(95px,12vw,185px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.logo-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px,3vw,44px);
  margin: 28px auto 0;
}

.logo-controls button {
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  cursor: pointer;
  width: 54px;
  height: 54px;
  padding: 12px;
}

.logo-controls button img {
  max-width: 100%;
  max-height: 100%;
}

.logo-controls button:disabled {
  opacity: .25;
  cursor: default;
}

.logo-count {
  font-size: 14px;
  letter-spacing: .12em;
  min-width: 74px;
  text-align: center;
}

.logo-showcase .section-continue {
  text-align: center;
  padding: 45px 0 20px;
}

@media (max-width:700px) {
  .logo-showcase {
    padding-top: 80px;
    min-height: 85svh;
  }

  .logo-heading {
    width: 86%;
    margin-bottom: 22px;
  }

  .logo-viewport {
    width: 92%;
    min-height: 310px;
  }

  .logo-set {
    column-gap: 8px;
    row-gap: 12px;
    grid-template-rows: repeat(2,minmax(115px,1fr));
  }

  .logo-tile {
    padding: 4px;
  }

  .logo-tile img {
    max-height: 100px;
  }

  .logo-heading h2 {
    font-size: clamp(35px,9vw,60px);
  }
}

@media (prefers-reduced-motion:reduce) {
  .logo-tile {
    will-change: auto;
  }
}

/* V71 — Galerie : grille fixe superposée, rythme resserré et typographie harmonisée */

.logo-showcase {
  min-height: 0;
  padding: clamp(72px,7.5vh,110px) 0 34px;
  background: #fff;
}

.logo-heading {
  width: 80%;
  max-width: 1400px;
  margin: 0 auto 12px;
}

.logo-heading .project-rule {
  margin: 16px 0 25px;
}


.logo-heading p {
  font-size: clamp(17px,1.9vw,27px);
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
}

.logo-viewport {
  width: 84%;
  max-width: 1450px;
  height: clamp(260px,32vh,350px);
  min-height: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.logo-set {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: 100%;
  grid-template-rows: repeat(2,minmax(0,1fr));
  column-gap: clamp(18px,3vw,55px);
  row-gap: clamp(8px,1.6vh,18px);
}

.logo-tile {
  height: 100%;
  padding: 6px 10px;
}


.logo-controls {
  margin: 8px auto 0;
}

.logo-showcase .section-continue {
  padding: 16px 0 0;
}

@media (max-width:700px) {
  .logo-showcase {
    padding: 75px 0 25px;
    min-height: 0;
  }

  .logo-heading {
    width: 86%;
    margin-bottom: 15px;
  }

  .logo-heading .project-rule {
    margin: 15px 0 24px;
  }

  .logo-heading h2 {
    font-size: clamp(44px,10vw,66px);
  }

  .logo-heading p {
    font-size: 16px;
  }

  .logo-viewport {
    width: 94%;
    height: clamp(205px,29vh,280px);
    min-height: 0;
  }

  .logo-set {
    grid-template-rows: repeat(2,minmax(0,1fr));
    column-gap: 5px;
    row-gap: 8px;
  }

  .logo-tile {
    padding: 3px;
  }

  .logo-tile img {
    max-height: clamp(65px,9vh,100px);
  }

  .logo-controls {
    margin-top: 4px;
  }

  .logo-showcase .section-continue {
    padding-top: 10px;
  }
}

/* V72 — cohérence typographique et navigation des identités */


.logo-heading h2 {
  font-size: clamp(62px,6.7vw,100px);
  font-weight: 650;
  letter-spacing: -.065em;
  line-height: 1;
  margin: 0 0 12px;
}


.logo-progress {
  width: 78px;
  height: 2px;
  background: #21103924;
  position: relative;
  overflow: hidden;
}

.logo-progress span {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--ink);
  transform: translateX(0);
  transition: transform .35s ease;
}

.logo-viewport {
  touch-action: pan-y;
  cursor: grab;
}

.logo-viewport.is-dragging {
  cursor: grabbing;
}

.logo-set:not([hidden]) {
  display: grid;
}

.logo-set[hidden] {
  display: none !important;
}

@media (max-width:700px) {
  .logo-heading .project-category {
    font-size: 24px;
  }

  .logo-heading h2 {
    font-size: clamp(54px,13vw,88px);
  }

  .logo-heading p {
    font-size: 15px;
  }

  .logo-progress {
    width: 54px;
  }

  .logo-controls {
    gap: 14px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .logo-progress span {
    transition: none;
  }
}

/* V73 — harmonisation typographique ciblée, galerie et animations inchangées */

.logo-heading .project-category {
  font-family: "Outfit",sans-serif;
  font-size: clamp(17px,1.7vw,24px);
  font-weight: 300;
  letter-spacing: .035em;
  line-height: 1.3;
}

.logo-heading h2 {
  font-family: "Outfit",sans-serif;
  font-size: clamp(48px,5.4vw,82px);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.02;
}

.logo-heading p {
  font-family: "Outfit",sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
}

@media (max-width:700px) {
  .logo-heading .project-category {
    font-size: clamp(18px,4.5vw,22px);
    font-weight: 300;
    letter-spacing: 0;
  }

  .logo-heading h2 {
    font-size: clamp(44px,10vw,70px);
    font-weight: 500;
  }

  .logo-heading p {
    font-size: 18px;
    font-weight: 300;
  }
}

/* V74 — logos plus présents, respiration sous le texte, progression synchronisée */

.logo-heading {
  margin-bottom: clamp(28px,3.2vw,48px);
}

.logo-tile img {
  max-height: clamp(105px,14vh,165px);
}

.logo-progress span {
  transition: transform .92s cubic-bezier(.22,.7,.25,1);
}

@media (max-width:700px) {
  .logo-heading {
    margin-bottom: clamp(24px,5vw,34px);
  }

  .logo-tile img {
    max-height: clamp(78px,11vh,115px);
  }
}

@media (prefers-reduced-motion:reduce) {
  .logo-progress span {
    transition: none;
  }
}

/* V75 — plus grande présence des logos sur ordinateur, deux par vue sur mobile */

@media (min-width:701px) {
  .logo-tile {
    padding: 3px 5px;
  }

  .logo-tile img {
    max-height: clamp(130px,18vh,210px);
    max-width: 100%;
  }
}

@media (max-width:700px) {
  .logo-viewport {
    width: 88%;
    height: clamp(315px,39vh,390px);
  }

  .logo-set {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: repeat(2,minmax(0,1fr));
    grid-auto-flow: row;
    row-gap: clamp(12px,2vh,25px);
  }

  .logo-tile {
    padding: 2px 8px;
  }

  .logo-tile img {
    max-width: min(85%,310px);
    max-height: clamp(125px,17vh,180px);
  }
}

/* V76 — logos plus grands, sans modifier les fichiers SVG ni les animations */

@media (min-width:701px) {
  .logo-tile img {
    max-height: clamp(155px,22vh,255px);
    max-width: 100%;
  }
}

@media (max-width:700px) {
  .logo-viewport {
    height: clamp(390px,48vh,490px);
    width: 94%;
  }

  .logo-set {
    row-gap: clamp(12px,2vh,24px);
  }

  .logo-tile {
    padding: 0 2px;
  }

  .logo-tile img {
    max-width: 100%;
    max-height: clamp(175px,22vh,230px);
  }
}

/* V77 — respiration desktop/tablette, logos mobiles plus présents */

@media (min-width:701px) {
  .logo-heading {
    margin-bottom: clamp(45px,4.7vw,72px);
  }

  .logo-controls {
    margin-top: clamp(24px,2.8vw,42px);
  }
}

@media (max-width:700px) {
  .logo-viewport {
    width: 96%;
    height: clamp(340px,43vh,445px);
  }

  .logo-set {
    row-gap: clamp(2px,.6vh,8px);
  }

  .logo-tile {
    padding: 0;
  }

  .logo-tile img {
    max-width: 100%;
    max-height: clamp(185px,25vh,255px);
  }
}

/* V78 — titre de la galerie sur une ligne, uniquement sur mobile */

@media (max-width:700px) {
  .logo-heading h2 {
    font-size: clamp(22px,6.4vw,28px);
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: -.015em;
    line-height: 1.15;
  }
}

/* V79 — navigation verticale bidirectionnelle centrée */

.section-continue {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.vertical-scene-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: max-content;
  margin-inline: auto;
}

.section-continue .vertical-scene-nav__link,.category-next .vertical-scene-nav__link {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  margin: 0;
  border: 0;
  text-decoration: none;
  color: #211039;
  line-height: 1;
  transition: opacity .2s ease;
}

.vertical-scene-nav__link svg {
  display: block;
  width: 28px;
  height: 28px;
  transition: transform .2s ease;
}

.vertical-scene-nav__up:hover svg {
  transform: translateY(-3px);
}

.vertical-scene-nav__down:hover svg {
  transform: translateY(3px);
}

.category-next.vertical-category-next {
  width: auto;
  height: auto;
  left: 50%;
  transform: translateX(-50%);
  bottom: 4%;
  pointer-events: auto;
}

.category-next .vertical-scene-nav {
  margin: 0;
}

@media (prefers-reduced-motion:reduce) {
  .vertical-scene-nav__link svg {
    transition: none;
  }
}

/* V80 — flèches SVG originales de navigation verticale */

.vertical-scene-nav__link .vertical-scene-nav__icon {
  display: block;
  width: 36px;
  height: auto;
  object-fit: contain;
  transition: transform .2s ease;
}

.vertical-scene-nav__up:hover .vertical-scene-nav__icon {
  transform: translateY(-3px);
}

.vertical-scene-nav__down:hover .vertical-scene-nav__icon {
  transform: translateY(3px);
}

@media (prefers-reduced-motion:reduce) {
  .vertical-scene-nav__link .vertical-scene-nav__icon {
    transition: none;
  }
}

/* V81 — navigation de section alignée sur la marge gauche commune */

.section-continue,
.logo-showcase .section-continue {
  justify-content: flex-start;
  text-align: left;
  padding-left: calc(clamp(32px,10vw,160px) - 5px);
}

.section-continue .vertical-scene-nav {
  margin-left: 0;
  margin-right: 0;
  justify-content: flex-start;
}

@media (max-width:760px) {
  .section-continue,
  .logo-showcase .section-continue {
    padding-left: calc(7vw - 5px);
  }
}

/* V82 — retrait fiable des flèches sur la marge de composition */

.project .section-continue,
.logo-showcase .section-continue {
  box-sizing: border-box;
  padding-left: clamp(32px, 10vw, 160px) !important;
  padding-right: clamp(32px, 10vw, 160px);
}

.project .section-continue .vertical-scene-nav,
.logo-showcase .section-continue .vertical-scene-nav {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (max-width:760px) {
  .project .section-continue,
  .logo-showcase .section-continue {
    padding-left: 7vw !important;
    padding-right: 7vw;
  }
}

/* V83 — espacement resserré et navigation des trois menus de catégories */

.vertical-scene-nav {
  gap: 8px;
}

.category-menu-scene .category-next.vertical-category-next {
  left: clamp(32px,10vw,160px);
  bottom: 4%;
  transform: none;
  width: max-content;
  height: auto;
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  z-index: 10;
}

.category-menu-scene .category-next .vertical-scene-nav__link {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

@media (max-width:760px) {
  .category-menu-scene .category-next.vertical-category-next {
    left: 7vw;
  }
}

/* V84 — accueil : même taille de flèche que les navigations des projets. */

.intro-home .intro-portfolio-link img {
  width: 36px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Remonter le contenu de présentation sans déplacer la flèche. Desktop uniquement. */

@media (min-width:761px) {
  .intro-home .intro-links,
 .intro-home .identity-desktop,
 .intro-home .intro-about-copy > p,
 .intro-home .intro-about-copy > h2 {
    position: relative;
    top: -25px;
  }
}

/* V87 — alignement structurel de l’identité desktop.
   Le titre, son sous-titre et le texte partagent la même origine
   dans la colonne .intro-about ; aucun décalage latéral individuel. */

@media (min-width:761px) {
  .intro-home .intro-about > .identity-desktop {
    left: auto;
    right: auto;
    margin-left: 0;
    padding-left: 0;
    transform: none;
  }

  .intro-home .intro-about > .identity-desktop h1,
  .intro-home .intro-about > .identity-desktop p {
    margin-left: 0;
    padding-left: 0;
    text-indent: 0;
  }
}

/* V88 — retrait optique du nom, desktop uniquement. */

@media (min-width:761px) {
  .intro-home .intro-about > .identity-desktop h1 {
    text-indent: -3px;
  }
}

/* V89 — navigation plein écran, verre dépoli, glissement et fondu */

.top {
  z-index: 1001;
}

.top .menu {
  z-index: 1003;
  position: relative;
}

.top .menu[aria-expanded="true"] {
  opacity: 1;
  visibility: visible;
}

.top .nav {
  position: fixed;
  inset: 0;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(90px,14vh,160px) clamp(32px,10vw,160px);
  background: rgba(255,255,255,.45);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  box-shadow: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0,-32px,0);
  transition: opacity .45s ease,transform .45s cubic-bezier(.22,1,.36,1),visibility .45s;
}

.top .nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0,0,0);
}

.top .nav-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  max-width: 1200px;
}

.top .nav-inner>a,.top .nav-portfolio-toggle {
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  text-decoration: none;
  font-family: Outfit,sans-serif;
  font-weight: 500;
  font-size: clamp(42px,5.7vw,88px);
  line-height: 1.18;
  letter-spacing: .025em;
  color: #211039;
  text-align: left;
  cursor: pointer;
  transition: transform .3s ease,opacity .3s ease;
}

.top .nav-inner>a:hover,.top .nav-portfolio-toggle:hover,
.top .nav-submenu a:hover {
  transform: translateX(9px);
}

.top .nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 0;
  padding: 14px 0 24px 5px;
}

.top .nav-submenu[hidden] {
  display: none !important;
}

.top .nav-submenu a {
  font-family: Outfit,sans-serif;
  font-size: clamp(19px,2.2vw,30px);
  font-weight: 400;
  line-height: 1.25;
  text-decoration: none;
  color: #211039;
  transition: transform .3s ease;
}

body.nav-open {
  overflow: hidden;
}

@media (max-width:760px) {
  .top .nav {
    padding: 95px 9vw 50px;
    align-items: center;
  }

  .top .nav-inner>a,.top .nav-portfolio-toggle {
    font-size: clamp(38px,9vw,62px);
  }

  .top .nav-submenu a {
    font-size: clamp(18px,4.8vw,24px);
  }
}

@media (prefers-reduced-motion:reduce) {
  .top .nav,.top .nav-inner>a,.top .nav-portfolio-toggle,.top .nav-submenu a {
    transition: none !important;
  }
}

/* V92 — fond de menu pastel vivant, léger et lisible */

.top {
  background: transparent !important;
  box-shadow: none !important;
}

.top .nav {
  background: rgba(255,255,255,.48);
  -webkit-backdrop-filter: blur(34px);
  backdrop-filter: blur(34px);
  isolation: isolate;
}

.top .nav::before {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse at 22% 32%,rgba(222,187,229,.26),transparent 45%),radial-gradient(ellipse at 77% 70%,rgba(171,187,234,.23),transparent 47%),radial-gradient(ellipse at 60% 15%,rgba(242,202,214,.18),transparent 42%);
  filter: blur(55px);
  animation: v92-menu-drift 19s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes v92-menu-drift {
  0% {
    transform: translate3d(-3%,-2%,0) scale(1);
  }

  50% {
    transform: translate3d(4%,3%,0) scale(1.08);
  }

  100% {
    transform: translate3d(-1%,5%,0) scale(1.03);
  }
}


/* Flèches conservées à leur place, simplement empilées */

.vertical-scene-nav,.category-menu-scene .category-next.vertical-category-next {
  flex-direction: column;
  gap: 0;
  align-items: center;
}

@media (prefers-reduced-motion:reduce) {
  .top .nav::before {
    animation: none;
  }
}

/* V93 — menu stable sur iPad, fond fondu et nuances mouvantes */

html:has(body.nav-open), body.nav-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.top .nav {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
  background: rgba(255,255,255,.48) !important;
  -webkit-backdrop-filter: blur(75px) saturate(115%) !important;
  backdrop-filter: blur(75px) saturate(115%) !important;
  transform: none !important;
  padding: clamp(90px,14vh,160px) clamp(32px,10vw,160px);
}

.top .nav::before {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  filter: none !important;
  transform: none !important;
  background: radial-gradient(ellipse 60% 65% at 18% 35%,rgba(208,158,223,.36),transparent 75%),
    radial-gradient(ellipse 65% 70% at 82% 58%,rgba(132,158,231,.34),transparent 76%),
    radial-gradient(ellipse 50% 60% at 55% 90%,rgba(241,163,188,.30),transparent 76%);
  background-size: 145% 145%;
  animation: v93-color-flow 13s ease-in-out infinite alternate !important;
}

@keyframes v93-color-flow {
  0% {
    background-position: 0% 0%,100% 10%,30% 100%;
  }

  50% {
    background-position: 45% 35%,35% 80%,80% 20%;
  }

  100% {
    background-position: 100% 70%,0% 20%,10% 40%;
  }
}

.top .nav-inner {
  position: relative;
  z-index: 1;
  max-height: calc(100dvh - 130px);
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

@media (max-width:760px) {
  .top .nav-inner {
    max-height: calc(100dvh - 145px);
  }
}

@media (prefers-reduced-motion:reduce) {
  .top .nav::before {
    animation: none !important;
  }
}

/* Flèches légèrement réduites et alignées au coin inférieur gauche */

.vertical-scene-nav__link .vertical-scene-nav__icon {
  width: 29px !important;
}

.section-continue .vertical-scene-nav__link {
  flex-basis: 39px;
  width: 39px;
  height: 39px;
  min-width: 39px;
  min-height: 39px;
}

#lamborghini,#rabian {
  position: relative;
}

#lamborghini .section-continue,#rabian .section-continue {
  position: absolute !important;
  left: 0;
  bottom: 18px;
  width: 100%;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  z-index: 5;
  pointer-events: none;
}

#lamborghini .section-continue a,#rabian .section-continue a {
  pointer-events: auto;
}

@media (max-width:760px) {
  #lamborghini .section-continue,#rabian .section-continue {
    position: relative !important;
    bottom: auto;
    margin-top: 18px !important;
  }
}

/* V94 — nuances bleues et navigation Rabian à droite */

.top .nav::before {
  background: radial-gradient(ellipse 60% 65% at 18% 35%,rgba(146,191,239,.36),transparent 75%),
 radial-gradient(ellipse 65% 70% at 82% 58%,rgba(111,167,231,.36),transparent 76%),
 radial-gradient(ellipse 50% 60% at 55% 90%,rgba(170,210,244,.29),transparent 76%) !important;
  background-size: 145% 145% !important;
}

#rabian .section-continue {
  justify-content: flex-end !important;
}

@media (max-width:760px) {
  #rabian .section-continue {
    justify-content: flex-end !important;
  }
}

/* V95 — section contact plus étroite, photo affinée sur desktop seulement */

@media (min-width:901px) {
  .contact-layout {
    width: 72%;
    max-width: 1100px;
    grid-template-columns: minmax(0,1.25fr) minmax(0,.82fr);
    gap: clamp(44px,5vw,88px);
    min-height: 690px;
    padding: 75px 0;
  }

  .contact-photo img {
    height: clamp(420px,43vw,590px);
  }
}

@media (min-width:761px) and (max-width:900px) {
  .contact-layout {
    width: 80%;
    grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr);
    gap: 35px;
  }

  .contact-photo img {
    height: clamp(400px,50vw,540px);
  }
}

/* V96 — espacement photo/formulaire et seconde phrase à la ligne */

.contact-intro-next {
  display: block;
}

@media (min-width:901px) {
  .contact-layout {
    gap: clamp(65px,7.5vw,125px);
  }
}

@media (min-width:761px) and (max-width:900px) {
  .contact-layout {
    gap: clamp(42px,5.5vw,65px);
  }
}

/* V97 — Vignettes vidéo 16:9 (CGFL et Banque Populaire) */

#cgfl .gallery-item video,
#banque-populaire .gallery-item video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: none;
  object-fit: contain;
  background: #17121d;
}

/* V102 — rythme plus posé et séquencement accentué, uniquement Créakub/Fibois */

@media (prefers-reduced-motion:no-preference) {
  .project.motion-test.motion-ready .project-copy h2,
 .project.motion-test.motion-ready .project-copy p,
 .project.motion-test.motion-ready .gallery {
    transition-property: opacity,transform;
    transition-duration: 1.2s;
    transition-timing-function: cubic-bezier(.22,1,.36,1);
    will-change: opacity,transform;
  }

  .project.motion-test.motion-ready.motion-visible .project-copy h2 {
    transition-delay: 0ms;
  }

  .project.motion-test.motion-ready.motion-visible .project-copy .subtitle {
    transition-delay: 230ms;
  }

  .project.motion-test.motion-ready.motion-visible .project-copy p:not(.subtitle):not(.meta) {
    transition-delay: 360ms;
  }

  .project.motion-test.motion-ready.motion-visible .project-copy .meta {
    transition-delay: 480ms;
  }

  .project.motion-test.motion-ready.motion-visible .gallery {
    transition-delay: 550ms;
  }

  .project.motion-test.motion-ready:not(.motion-visible) .project-copy h2,
 .project.motion-test.motion-ready:not(.motion-visible) .project-copy p {
    opacity: 0;
    transform: translate3d(0,38px,0);
    transition-delay: 0ms;
    transition-duration: .72s;
  }

  .project.motion-test.motion-ready:not(.motion-visible) .gallery {
    opacity: 0;
    transform: translate3d(var(--entry-x),0,0);
    transition-delay: 0ms;
    transition-duration: .8s;
  }

  #creakub.motion-test {
    --entry-x: 55px;
  }

  #fibois.motion-test {
    --entry-x: -55px;
  }

  @media (max-width:760px) {
    .project.motion-test.motion-ready:not(.motion-visible) .gallery {
      transform: translate3d(0,25px,0);
    }
  }
}

/* V103 — ralentissement global et décalages lisibles */

@media (prefers-reduced-motion:no-preference) {
  .project.motion-test.motion-ready .project-copy h2,
 .project.motion-test.motion-ready .project-copy p,
 .project.motion-test.motion-ready .gallery {
    transition-duration: 1.75s;
    transition-timing-function: cubic-bezier(.33,0,.2,1);
  }

  .project.motion-test.motion-ready.motion-visible .project-copy h2 {
    transition-delay: 0ms;
  }

  .project.motion-test.motion-ready.motion-visible .project-copy .subtitle {
    transition-delay: 350ms;
  }

  .project.motion-test.motion-ready.motion-visible .project-copy p:not(.subtitle):not(.meta) {
    transition-delay: 700ms;
  }

  .project.motion-test.motion-ready.motion-visible .project-copy .meta {
    transition-delay: 1050ms;
  }

  .project.motion-test.motion-ready.motion-visible .gallery {
    transition-delay: 900ms;
  }

  .project.motion-test.motion-ready:not(.motion-visible) .project-copy h2,
 .project.motion-test.motion-ready:not(.motion-visible) .project-copy p {
    transition-duration: 1.2s;
    transform: translate3d(0,48px,0);
  }

  .project.motion-test.motion-ready:not(.motion-visible) .gallery {
    transition-duration: 1.25s;
    transform: translate3d(var(--entry-x),0,0);
  }

  #creakub.motion-test {
    --entry-x: 68px;
  }

  #fibois.motion-test {
    --entry-x: -68px;
  }

  @media (max-width:760px) {
    .project.motion-test.motion-ready:not(.motion-visible) .gallery {
      transform: translate3d(0,28px,0);
    }
  }
}

/* V105 — ajustement léger du rythme */

@media (prefers-reduced-motion:no-preference) {
  .project.motion-test.motion-ready .project-copy h2,
 .project.motion-test.motion-ready .project-copy p,
 .project.motion-test.motion-ready .gallery {
    transition-duration: 1s;
    transition-timing-function: cubic-bezier(.25,.1,.25,1);
  }

  .project.motion-test.motion-ready.motion-visible .project-copy h2 {
    transition-delay: 160ms;
  }

  .project.motion-test.motion-ready.motion-visible .project-copy .subtitle {
    transition-delay: 260ms;
  }

  .project.motion-test.motion-ready.motion-visible .project-copy p:not(.subtitle):not(.meta) {
    transition-delay: 360ms;
  }

  .project.motion-test.motion-ready.motion-visible .project-copy .meta {
    transition-delay: 520ms;
  }

  .project.motion-test.motion-ready.motion-visible .gallery {
    transition-delay: 100ms;
  }

  .project.motion-test.motion-ready:not(.motion-visible) .project-copy h2,
 .project.motion-test.motion-ready:not(.motion-visible) .project-copy p {
    transition-delay: 0ms;
    transition-duration: .78s;
    transform: translate3d(0,42px,0);
  }

  .project.motion-test.motion-ready:not(.motion-visible) .gallery {
    transition-delay: 0ms;
    transition-duration: .82s;
    transform: translate3d(var(--entry-x),0,0);
  }

  #creakub.motion-test {
    --entry-x: 60px;
  }

  #fibois.motion-test {
    --entry-x: -60px;
  }

  @media (max-width:760px) {
    .project.motion-test.motion-ready:not(.motion-visible) .gallery {
      transform: translate3d(0,25px,0);
    }
  }
}

/* V106 — extension des animations validées aux projets de mise en page classique. */

#irtess.motion-test {
  --entry-x: 60px;
}

#ideha.motion-test {
  --entry-x: -60px;
}

#gbh.motion-test {
  --entry-x: 60px;
}

#preval.motion-test {
  --entry-x: -60px;
}

#carnets.motion-test {
  --entry-x: 60px;
}

#lombardot.motion-test {
  --entry-x: -60px;
}

#sucresale.motion-test {
  --entry-x: 60px;
}

#charles-legend.motion-test {
  --entry-x: -60px;
}

#jura-superieur.motion-test {
  --entry-x: 60px;
}

#comte-marcel-petite.motion-test {
  --entry-x: -60px;
}

#cgfl.motion-test {
  --entry-x: 60px;
}

#banque-populaire.motion-test {
  --entry-x: -60px;
}

/* V107 — Animation du bloc de textes dynamiques, sans perturber les changements de diapositives. */

@media (prefers-reduced-motion:no-preference) {
  #cgfl.motion-test.motion-ready .project-copy,
 #banque-populaire.motion-test.motion-ready .project-copy {
    opacity: 1;
    transition: opacity 1s cubic-bezier(.25,.1,.25,1) 160ms;
  }

  #cgfl.motion-test.motion-ready:not(.motion-visible) .project-copy,
 #banque-populaire.motion-test.motion-ready:not(.motion-visible) .project-copy {
    opacity: 0;
    transition: opacity .78s cubic-bezier(.25,.1,.25,1);
  }

  /* Les textes de la galerie restent gérés par leur fondu spécifique de 230 ms. */

  #cgfl.motion-test.motion-ready .project-copy .subtitle,
 #cgfl.motion-test.motion-ready .project-copy #cgfl-description,
 #cgfl.motion-test.motion-ready .project-copy #cgfl-meta,
 #banque-populaire.motion-test.motion-ready .project-copy .subtitle,
 #banque-populaire.motion-test.motion-ready .project-copy #banque-description,
 #banque-populaire.motion-test.motion-ready .project-copy #banque-meta {
    transition: opacity .23s ease, transform .23s ease;
  }
}

/* V108 — Animer séparément les trois textes dynamiques au scroll.
   Conserver le fondu court existant quand la galerie change de diapositive. */

@media (prefers-reduced-motion: no-preference) {
  #cgfl.motion-test.motion-ready .project-copy,
  #banque-populaire.motion-test.motion-ready .project-copy {
    opacity: 1;
    transition: none;
  }

  #cgfl.motion-test.motion-ready .project-copy .subtitle,
  #cgfl.motion-test.motion-ready .project-copy #cgfl-description,
  #cgfl.motion-test.motion-ready .project-copy #cgfl-meta,
  #banque-populaire.motion-test.motion-ready .project-copy .subtitle,
  #banque-populaire.motion-test.motion-ready .project-copy #banque-description,
  #banque-populaire.motion-test.motion-ready .project-copy #banque-meta {
    transition-property: opacity,transform;
    transition-duration: 1s;
    transition-timing-function: cubic-bezier(.25,.1,.25,1);
  }

  #cgfl.motion-test.motion-ready:not(.motion-visible) .project-copy .subtitle,
  #cgfl.motion-test.motion-ready:not(.motion-visible) .project-copy #cgfl-description,
  #cgfl.motion-test.motion-ready:not(.motion-visible) .project-copy #cgfl-meta,
  #banque-populaire.motion-test.motion-ready:not(.motion-visible) .project-copy .subtitle,
  #banque-populaire.motion-test.motion-ready:not(.motion-visible) .project-copy #banque-description,
  #banque-populaire.motion-test.motion-ready:not(.motion-visible) .project-copy #banque-meta {
    opacity: 0;
    transform: translate3d(0,42px,0);
    transition-delay: 0ms;
    transition-duration: .78s;
  }

  #cgfl.motion-test.motion-ready.motion-visible .project-copy:not(.cgfl-copy-out) .subtitle,
  #banque-populaire.motion-test.motion-ready.motion-visible .project-copy:not(.cgfl-copy-out) .subtitle {
    opacity: 1;
    transform: translate3d(0,0,0);
    transition-delay: 260ms;
  }

  #cgfl.motion-test.motion-ready.motion-visible .project-copy:not(.cgfl-copy-out) #cgfl-description,
  #banque-populaire.motion-test.motion-ready.motion-visible .project-copy:not(.cgfl-copy-out) #banque-description {
    opacity: 1;
    transform: translate3d(0,0,0);
    transition-delay: 360ms;
  }

  #cgfl.motion-test.motion-ready.motion-visible .project-copy:not(.cgfl-copy-out) #cgfl-meta,
  #banque-populaire.motion-test.motion-ready.motion-visible .project-copy:not(.cgfl-copy-out) #banque-meta {
    opacity: 1;
    transform: translate3d(0,0,0);
    transition-delay: 520ms;
  }

  #cgfl.motion-test.motion-ready.motion-visible .project-copy.cgfl-copy-out .subtitle,
  #cgfl.motion-test.motion-ready.motion-visible .project-copy.cgfl-copy-out #cgfl-description,
  #cgfl.motion-test.motion-ready.motion-visible .project-copy.cgfl-copy-out #cgfl-meta,
  #banque-populaire.motion-test.motion-ready.motion-visible .project-copy.cgfl-copy-out .subtitle,
  #banque-populaire.motion-test.motion-ready.motion-visible .project-copy.cgfl-copy-out #banque-description,
  #banque-populaire.motion-test.motion-ready.motion-visible .project-copy.cgfl-copy-out #banque-meta {
    opacity: 0;
    transform: translate3d(0,9px,0);
    transition-duration: .23s;
    transition-delay: 0ms;
  }
}

/* V109 — trois compositions particulières.
   Les visuels de Lamborghini/Rabian gardent leurs animations internes
   (smartphones/tablette) : seul leur conteneur change d'opacité. */

@media (prefers-reduced-motion: no-preference) {
  #lamborghini.motion-test.motion-ready .lamborghini-heading,
  #lamborghini.motion-test.motion-ready .lamborghini-copy p,
  #rabian.motion-test.motion-ready .rabian-heading,
  #rabian.motion-test.motion-ready .rabian-copy p,
  #logos.motion-test.motion-ready .logo-heading h2,
  #logos.motion-test.motion-ready .logo-heading > p {
    transition-property: opacity, transform;
    transition-duration: 1.05s;
    transition-timing-function: cubic-bezier(.25,.1,.25,1);
  }

  #lamborghini.motion-test.motion-ready .lamborghini-art,
  #rabian.motion-test.motion-ready .rabian-art,
  #logos.motion-test.motion-ready .logo-viewport {
    transition: opacity 1.05s cubic-bezier(.25,.1,.25,1);
  }

  #lamborghini.motion-test.motion-ready:not(.motion-visible) .lamborghini-heading,
  #lamborghini.motion-test.motion-ready:not(.motion-visible) .lamborghini-copy p,
  #rabian.motion-test.motion-ready:not(.motion-visible) .rabian-heading,
  #rabian.motion-test.motion-ready:not(.motion-visible) .rabian-copy p,
  #logos.motion-test.motion-ready:not(.motion-visible) .logo-heading h2,
  #logos.motion-test.motion-ready:not(.motion-visible) .logo-heading > p {
    opacity: 0;
    transform: translate3d(0,42px,0);
    transition-delay: 0ms;
    transition-duration: .78s;
  }

  #lamborghini.motion-test.motion-ready:not(.motion-visible) .lamborghini-art,
  #rabian.motion-test.motion-ready:not(.motion-visible) .rabian-art,
  #logos.motion-test.motion-ready:not(.motion-visible) .logo-viewport {
    opacity: 0;
    transition-delay: 0ms;
    transition-duration: .8s;
  }

  #lamborghini.motion-test.motion-ready.motion-visible .lamborghini-heading,
  #rabian.motion-test.motion-ready.motion-visible .rabian-heading,
  #logos.motion-test.motion-ready.motion-visible .logo-heading h2 {
    opacity: 1;
    transform: translate3d(0,0,0);
    transition-delay: 0ms;
  }

  #lamborghini.motion-test.motion-ready.motion-visible .lamborghini-copy p:first-child,
  #rabian.motion-test.motion-ready.motion-visible .rabian-copy p:first-child,
  #logos.motion-test.motion-ready.motion-visible .logo-heading > p {
    opacity: 1;
    transform: translate3d(0,0,0);
    transition-delay: 280ms;
  }

  #lamborghini.motion-test.motion-ready.motion-visible .lamborghini-copy p.lamborghini-meta,
  #rabian.motion-test.motion-ready.motion-visible .rabian-copy p.rabian-meta {
    opacity: 1;
    transform: translate3d(0,0,0);
    transition-delay: 440ms;
  }

  #lamborghini.motion-test.motion-ready.motion-visible .lamborghini-art,
  #rabian.motion-test.motion-ready.motion-visible .rabian-art,
  #logos.motion-test.motion-ready.motion-visible .logo-viewport {
    opacity: 1;
    transition-delay: 400ms;
  }
}

/* V110 — Rabian : préserver le décalage vertical de la composition desktop.
   Animation relative à la position finale, sans déplacer le titre sur le descriptif. */

@media (min-width:761px) and (prefers-reduced-motion:no-preference) {
  #rabian.motion-test.motion-ready:not(.motion-visible) .rabian-heading {
    transform: translate3d(0,-70px,0);
  }

  #rabian.motion-test.motion-ready.motion-visible .rabian-heading {
    transform: translate3d(0,-112px,0);
  }
}

@media (prefers-reduced-motion:no-preference) {
  #contact.contact-motion-ready .contact-photo,#contact.contact-motion-ready .contact-mobile-intro,
#contact.contact-motion-ready #contact-title,#contact.contact-motion-ready .contact-rule,
#contact.contact-motion-ready .contact-intro,#contact.contact-motion-ready .contact-field,
#contact.contact-motion-ready .contact-send,#contact.contact-motion-ready .contact-thanks {
    transition: opacity 1.05s cubic-bezier(.25,.1,.25,1),transform 1.05s cubic-bezier(.25,.1,.25,1);
  }

  #contact.contact-motion-ready:not(.contact-motion-visible) .contact-photo {
    opacity: 0;
    transform: translate3d(35px,0,0);
  }

  #contact.contact-motion-ready:not(.contact-motion-visible) .contact-mobile-intro {
    opacity: 0;
    transform: translate3d(0,18px,0);
  }

  #contact.contact-motion-ready:not(.contact-motion-visible) #contact-title,
#contact.contact-motion-ready:not(.contact-motion-visible) .contact-rule,
#contact.contact-motion-ready:not(.contact-motion-visible) .contact-intro,
#contact.contact-motion-ready:not(.contact-motion-visible) .contact-field,
#contact.contact-motion-ready:not(.contact-motion-visible) .contact-send,
#contact.contact-motion-ready:not(.contact-motion-visible) .contact-thanks {
    opacity: 0;
    transform: translate3d(0,23px,0);
    transition-delay: 0ms;
  }

  #contact.contact-motion-ready.contact-motion-visible .contact-photo,
#contact.contact-motion-ready.contact-motion-visible .contact-mobile-intro,
#contact.contact-motion-ready.contact-motion-visible #contact-title {
    opacity: 1;
    transform: none;
    transition-delay: 0ms;
  }

  #contact.contact-motion-ready.contact-motion-visible .contact-rule {
    opacity: 1;
    transform: none;
    transition-delay: 140ms;
  }

  #contact.contact-motion-ready.contact-motion-visible .contact-intro {
    opacity: 1;
    transform: none;
    transition-delay: 220ms;
  }

  #contact.contact-motion-ready.contact-motion-visible .contact-field:nth-child(1) {
    opacity: 1;
    transform: none;
    transition-delay: 340ms;
  }

  #contact.contact-motion-ready.contact-motion-visible .contact-field:nth-child(2) {
    opacity: 1;
    transform: none;
    transition-delay: 430ms;
  }

  #contact.contact-motion-ready.contact-motion-visible .contact-field:nth-child(3) {
    opacity: 1;
    transform: none;
    transition-delay: 520ms;
  }

  #contact.contact-motion-ready.contact-motion-visible .contact-send {
    opacity: 1;
    transform: none;
    transition-delay: 600ms;
  }

  #contact.contact-motion-ready.contact-motion-visible .contact-thanks {
    opacity: 1;
    transform: none;
    transition-delay: 650ms;
  }
}
