@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

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

:root {
  --page-x: clamp(20px, 4vw, 60px);
  --header-y: clamp(14px, 2vw, 22px);
  --header-h: 64px;
  --black: #050505;
  --muted: #4b4b4b;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  overflow-x: hidden;
  background: #fff;
  color: var(--black);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding: 0 0 40px;
  text-transform: uppercase;
  position: relative;
  left: 0;
  transition: left 0.85s var(--ease);
}

/* Éléments qui se décalent à l'ouverture du volet contact */
body.contact-open {
  left: -120px;
}

body.contact-open .header {
  transform: translateX(-120px);
}

/* CORRECTION : On décale la card en changeant sa coordonnée 'right' 
   pour éviter que l'animation CSS n'écrase le transform */
body.contact-open #projectCard {
  right: calc(clamp(16px, 3vw, 40px) + 120px);
}

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

button {
  color: inherit;
}

img {
  display: block;
}

/* ─── Header Fixe ────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: var(--header-y) var(--page-x);
  background: transparent;
  color: #fff;
  transition: transform 0.85s var(--ease), background 0.45s ease, color 0.45s ease;
}

.header.is-past-hero {
  background: transparent; 
  color: var(--black);
}

.header .menu-left,
.footer-left {
  display: flex;
  gap: clamp(12px, 1.6vw, 22px);
  justify-self: start;
}

.header .menu-right,
.footer-right {
  justify-self: end;
}

.header a,
.header button,
footer a,
footer button,
.overlay button {
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.header a,
.header button,
footer a,
footer button {
  position: relative;
}

.header a::after,
.header button::after,
footer a::after,
footer button::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.header a:hover::after,
.header button:hover::after,
footer a:hover::after,
footer button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.logo {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 110;
  width: min(420px, 86vw);
  height: 100vh;
  padding: clamp(28px, 6vw, 60px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(24px);
  transform: translateX(-105%);
  transition: transform 0.85s var(--ease);
  overflow-y: auto;
}

.overlay.active {
  transform: translateX(0);
}

.overlay button {
  margin-bottom: 40px;
}

.overlay p {
  max-width: 28ch;
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.12;
}

/* ─── Panneau Information enrichi (logo / bio / skills / instagram) ─ */
.info-panel__content {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3.4vw, 32px);
}

.info-panel__logo {
  align-self: flex-start;
  padding: 12px 20px;
  background: #2b46ff;
  color: #fff;
  font-weight: 800;
  font-size: clamp(17px, 2vw, 22px);
  letter-spacing: 0.01em;
  border-radius: 6px;
  text-transform: uppercase;
}

.overlay .info-panel__text {
  max-width: 32ch;
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 400;
  line-height: 1.6;
  text-transform: none;
  color: var(--black);
}

.info-panel__text strong {
  font-weight: 700;
}

.info-panel__link {
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: default;
}

.info-panel__mail {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  font-size: clamp(14px, 1.3vw, 16px);
  text-transform: none;
  color: var(--black);
  text-decoration: none;
}

.info-panel__mail:hover {
  text-decoration: underline;
}

.info-panel__skills h3 {
  font-family: inherit;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 700;
  text-transform: none;
  line-height: 1;
  margin-bottom: 16px;
  color: var(--black);
}

.info-panel__skills ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.info-panel__skills li {
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 400;
  text-transform: none;
  color: var(--black);
}

.info-panel__insta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-weight: 700;
  font-size: 14px;
  color: var(--black);
  text-decoration: none;
}

.info-panel__insta:hover {
  text-decoration: underline;
}

/* ─── Header sur pages projet (texte noir + dégradé blur) ────────── */
body.project-page .header {
  color: var(--black);
}

body.project-page .header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0) 100%);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

/* ─── Hero Section ───────────────────────────────────────────────── */
.featured {
  display: block;
  width: 100vw;
  height: 100vh;
  margin-bottom: clamp(80px, 12vw, 160px);
  overflow: hidden;
  position: relative;
}

.featured img,
.featured video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  max-height: none;
  display: block;
  transform: translate3d(var(--pointer-x, 0), calc(var(--parallax-y, 0px) + var(--pointer-y, 0px)), 0) scale(1.06);
  transition: filter 0.6s ease;
  will-change: transform;
}

/* ─── Logo hero centré → se range dans le header au scroll ────────── */
.hero-logo {
  position: fixed;
  top: 50vh;
  left: 50vw;
  transform: translate(-50%, -50%);
  z-index: 95;
  color: #fff;
  font-weight: 800;
  font-size: clamp(28px, 6vw, 68px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  will-change: transform, top, left, opacity;
}

.hero-skills {
  position: fixed;
  top: 32vh;
  left: 50vw;
  transform: translate(-50%, -50%);
  z-index: 94;
  pointer-events: none;
  text-align: center;
}

.hero-skill {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  white-space: nowrap;
  color: #fff;
  font-weight: 700;
  font-size: clamp(14px, 1.8vw, 20px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
}

.hero-overlay-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20; 
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: clamp(20px, 4vw, 40px);
  padding: 0 var(--page-x);
  color: #fff;
  align-items: center; 
  will-change: transform;
  pointer-events: none;
  transform: translate3d(0, var(--text-parallax-y, 0px), 0);
}

.hero-col-left, .hero-col-right {
  font-size: clamp(11px, 1.2vw, 14px);
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero-col-left {
  text-align: left;
  max-width: 26ch;
}

.hero-col-right {
  text-align: right;
  max-width: 26ch;
  justify-self: end;
}

.hero-col-center {
  text-align: center;
}

.hero-col-center h1 {
  font-size: clamp(20px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ─── Styles Carrousel ───────────────────────────────────────────── */
.carousel-section {
  display: flex;
  flex-direction: column;
  padding: 0 var(--page-x);
  margin-bottom: clamp(80px, 12vw, 160px);
}

.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.carousel-header h2 {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 400;
  text-transform: none;
}

.carousel-browse {
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
}

.carousel-container {
  width: 100%;
  overflow-x: auto;
  cursor: grab;
  scrollbar-width: none; 
}
.carousel-container::-webkit-scrollbar {
  display: none;
}
.carousel-container.is-dragging {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  will-change: transform;
}

.carousel-item {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 280px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 900px) {
  .carousel-item {
    flex: 0 0 calc(50% - 12px);
  }
}
@media (max-width: 760px) {
  .carousel-item {
    flex: 0 0 82%;
  }
}

.carousel-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  background: #f4f4f4;
  overflow: hidden;
  margin-bottom: 16px;
}

.carousel-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

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

.carousel-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.carousel-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
}

.carousel-notes {
  font-size: 12px;
  color: var(--muted);
  text-transform: none;
}

.carousel-price {
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  gap: 40px;
}

.carousel-scrollbar {
  flex: 1;
  height: 2px;
  background: #e0e0e0;
  position: relative;
  overflow: hidden;
}

.carousel-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 20%;
  background: var(--black);
  transform-origin: left center;
}

.carousel-nav {
  display: flex;
  gap: 12px;
}

.carousel-arrow {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  color: var(--muted);
  transition: color 0.3s ease;
}
.carousel-arrow:hover {
  color: var(--black);
}

/* ─── Section Bannière Plein Pot + Rectangle Centré ────────── */
.subscribe-banner {
  position: relative;
  width: 100vw;
  height: clamp(500px, 75vh, 800px);
  overflow: hidden;
  margin-bottom: clamp(80px, 12vw, 160px);
}

.subscribe-banner img[data-banner-img] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140%; 
  object-fit: cover;
  will-change: transform;
  transform: translate3d(0, var(--banner-parallax-y, 0px), 0);
}

.subscribe-project-card {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;
  width: 260px; 
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transform: translate(-50%, -50%) translateY(0px);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.subscribe-project-card:hover {
  transform: translate(-50%, -50%) translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16);
}

.sub-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.sub-card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
}

.sub-card-body {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 12px;
}

.sub-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1.5 / 1; 
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.sub-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sub-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}

.sub-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  text-transform: none;
}

.sub-card-subtitle {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}

.sub-card-cta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 4px;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 10px;
}

/* ─── Section Showcase Lieu (Echo Park) ───────────────────────── */
.location-showcase {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 100px);
  padding: 0 var(--page-x);
  margin-bottom: clamp(80px, 12vw, 160px);
  align-items: center;
}

.location-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: clamp(380px, 50vh, 520px);
  padding: 20px 0;
}

.location-text-wrap {
  max-width: 44ch;
}

.location-title {
  font-size: clamp(22px, 2.2vw, 42px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--black);
  text-transform: none;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.location-title strong {
  font-weight: 700;
}

.location-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
}

.location-thumbs {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}

.thumb-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 0;
  opacity: 0.4;
  transition: opacity 0.4s ease;
  width: clamp(70px, 8vw, 100px);
}

.thumb-btn.is-active {
  opacity: 1;
}

.thumb-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--black);
}

.thumb-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0f0f0;
}

.thumb-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-right {
  width: 100%;
}

.main-display-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.25; 
  background: #f7f7f7;
  overflow: hidden;
}

.display-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  transform: scale(1.02);
  pointer-events: none;
}

.display-img.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

@media (max-width: 860px) {
  .location-showcase {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .location-left {
    min-height: auto;
  }
  .main-display-wrap {
    aspect-ratio: 1 / 1.1;
  }
}

/* ─── Grille Principale Asymétrique ─────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(44px, 7vw, 92px) clamp(18px, 3vw, 42px);
  padding: 0 var(--page-x);
}

.item {
  position: relative;
  transform:
    translate3d(var(--settle-x, 0px), var(--settle-y, 0px), 0)
    scale(var(--settle-scale, 1))
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    rotate(var(--float-rot, 0deg));
  will-change: transform, opacity;
  perspective: 900px;
  transform-style: preserve-3d;
}

.grid > .item:nth-child(1),
.grid > .item:nth-child(2) {
  grid-column: span 3;
}

.grid > .item:nth-child(3),
.grid > .item:nth-child(4),
.grid > .item:nth-child(5) {
  grid-column: span 2;
}

.grid > .item:nth-child(6),
.grid > .item:nth-child(7) {
  grid-column: span 3;
}

.grid > .item:nth-child(n+8) {
  grid-column: span 3;
}

.item a {
  display: block;
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease);
}

.item img {
  width: 100%;
  max-width: 100%;
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(var(--hover-scale, 1));
  transition: transform 0.9s var(--ease), opacity 0.55s ease, filter 0.55s ease;
  will-change: transform;
}

.item:hover img {
  --hover-scale: 1.035;
  filter: contrast(1.02);
}

.title {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}

.meta {
  color: var(--muted);
  font-size: 12px;
}

.item.hover-image .img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.item.hover-image:hover .img-hover {
  opacity: 1;
  --hover-scale: 1.035;
}

.item.hover-image:hover .img-default {
  opacity: 0;
  --hover-scale: 1.035;
}

/* ─── Page All Projects ─────────────────────────────────────────── */
.all-projects-main {
  padding: clamp(120px, 14vw, 180px) var(--page-x) 0;
}

.all-projects-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.38fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(42px, 7vw, 84px);
}

.all-projects-hero h1 {
  font-size: clamp(42px, 8vw, 120px);
  font-weight: 400;
  line-height: 0.95;
  text-transform: none;
}

.all-projects-hero p {
  max-width: 36ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-transform: none;
}

.all-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(34px, 5vw, 72px) clamp(18px, 3vw, 42px);
}

.all-project-card {
  transform:
    translate3d(var(--settle-x, 0px), var(--settle-y, 0px), 0)
    scale(var(--settle-scale, 1));
  will-change: transform, opacity;
}

.all-project-card a {
  display: block;
  aspect-ratio: 1 / 1.1;
  overflow: hidden;
  background: #f4f4f4;
}

.all-project-card .carousel-img-wrap {
  margin-bottom: 0;
}

.all-project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(var(--hover-scale, 1));
  transition: transform 0.9s var(--ease), filter 0.55s ease;
  will-change: transform;
}

.all-project-card:hover img {
  --hover-scale: 1.035;
  filter: contrast(1.02);
}

.project-hero {
  display: flex;
  min-height: calc(100vh - 120px);
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vw, 80px);
  padding: 0 var(--page-x);
}

.project-intro {
  max-width: 320px;
  font-size: 14px;
  line-height: 1.5;
}

.project-hero img {
  width: 100%;
  max-width: 65vw;
  max-height: 80vh;
  height: auto;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 60px);
  padding: 60px var(--page-x) 0;
}

/* ─── Slot image desktop / mobile ───────────────────────────────── */
.img-slot {
  width: 100%;
}

.img-slot .img--mobile {
  display: none;
}

.project-single img,
.project-diptych img,
.project-triptych img {
  width: 100%;
  max-width: 100%;
  display: block;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}

.project-single,
.project-diptych,
.project-triptych {
  will-change: opacity;
}

.project-diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 32px);
}

/* ─── Section Triptyque ─────────────────────────────────────────── */
.project-triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 32px);
  will-change: opacity;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 75vh;
  margin: 100px 0 -40px;
  padding: var(--page-x);
  background: #000;
  color: #fff;
}

/* Sur les pages projet, le contenu (dernière image) ne doit pas laisser
   un grand vide blanc avant le footer noir */
body.project-page footer {
  margin-top: 40px;
}

.footer-center {
  text-align: center;
}

.footer-center .main-text {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.05;
}

.footer-center .secondary-text {
  display: inline-block;
  color: #d8d8d8;
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 1024px) {
  .project-hero img {
    max-width: 58vw;
  }

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

/* Responsive Mobile */
@media (max-width: 760px) {
  .header {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 14px;
    column-gap: 18px;
    text-align: center;
  }

  .header.is-past-hero {
    color: var(--black);
  }

  .header .menu-left,
  .header .menu-right {
    order: 1;
    justify-self: unset;
    gap: 16px;
  }

  .header .logo {
    order: 2;
    flex-basis: 100%;
    width: 100%;
    justify-self: unset;
  }

  .hero-overlay-text {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-content: center;
    align-content: center; 
    gap: 32px;
    text-align: center;
    padding: 0 24px;
  }
  
  .hero-col-center {
    grid-row: 1; 
  }
  
  .hero-col-center h1 {
    font-size: clamp(24px, 6vw, 32px); 
    line-height: 1.2;
  }

  .hero-col-left {
    grid-row: 2;
    text-align: center;
    max-width: 32ch;
    justify-self: center;
    font-size: 12px;
  }

  .hero-col-right {
    grid-row: 3;
    text-align: center;
    max-width: 32ch;
    justify-self: center;
    font-size: 12px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .grid > .item {
    grid-column: span 1 !important;
  }

  .project-hero {
    flex-direction: column;
    min-height: auto;
    align-items: flex-start;
    padding-top: calc(var(--header-h) + 18px);
  }

  .project-hero img {
    max-width: 100%;
  }

  .project-intro {
    max-width: 100%;
    width: 100%;
    font-size: 12px;
    text-transform: none;
  }

  .project-diptych,
  .project-triptych {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-content {
    gap: 16px;
  }

  /* Bascule image desktop / mobile */
  .img-slot .img--desktop {
    display: none;
  }

  .img-slot .img--mobile {
    display: block;
  }

  .all-projects-hero,
  .all-projects-grid {
    grid-template-columns: 1fr;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 42px;
    align-items: center;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    justify-self: center;
  }

  /* Panneau Information : arrive du haut plutôt que de la gauche */
  #infoPanel {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 88vh;
    padding: 26px 22px 34px;
    border-radius: 0 0 20px 20px;
    transform: translateY(-105%);
  }

  #infoPanel.active {
    transform: translateY(0);
  }
}

.item.is-hovered a {
  box-shadow: 0 24px 52px -12px rgba(0,0,0,0.16);
}

.js-ready .reveal,
.js-ready .project-single,
.js-ready .project-diptych,
.js-ready .project-triptych,
.js-ready .project-hero {
  opacity: 0;
  transform: translate3d(0, 38px, 0);
  transition:
    opacity  1.05s ease var(--reveal-delay, 0ms),
    transform 1.05s var(--ease) var(--reveal-delay, 0ms);
}

.js-ready .reveal.is-visible,
.js-ready .project-single.is-visible,
.js-ready .project-diptych.is-visible,
.js-ready .project-triptych.is-visible,
.js-ready .project-hero.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* CORRECTIF DE SÉCURITÉ : Force l'affichage si le script JS ignore la classe */
.project-triptych {
  opacity: 1 !important;
  transform: none !important;
}

.overlay--right {
  left: auto;
  right: 0;
  box-shadow: -8px 0 40px rgba(0,0,0,0.08);
  transform: translateX(105%);
}

.overlay--right.active {
  transform: translateX(0);
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.contact-label {
  max-width: 14ch;
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.1;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-links a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.contact-links a:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-type {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.contact-value {
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  position: relative;
  display: inline-block;
}

.contact-value::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.contact-links a:hover .contact-value::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact-based {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  text-transform: none;
}

/* ─── Card "Dernier Projet" ──────────────────────────────────────── */
.ig-card {
  position: fixed;
  bottom: clamp(20px, 4vw, 40px); 
  right: clamp(16px, 3vw, 40px);
  z-index: 90;
  width: 200px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  opacity: 0;
  /* Correction : transition globale sur right ET transform */
  transition: opacity 0.6s var(--ease), right 0.85s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
  overflow: hidden;
}

.ig-card__img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1 !important; 
  transition: none !important;
}

#projectCard.is-ready {
  opacity: 1;
  pointer-events: auto;
}

#projectCard.is-dismissed {
  opacity: 0;
  transform: translateY(12px) scale(0.96) !important; 
  pointer-events: none;
}

@keyframes ig-float {
  0%, 100%  { transform: translateY(0px); }
  50%       { transform: translateY(-5px); }
}

/* L'animation s'exécute toujours normalement */
#projectCard.is-ready:not(.is-dismissed) {
  animation: ig-float 5s ease-in-out infinite;
  animation-delay: 0.8s;
}

#projectCard.is-ready:hover {
  animation-play-state: paused;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.ig-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.ig-card__handle {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
}

.ig-card__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  padding: 0 2px;
  font-family: inherit;
  transition: color 0.2s ease;
}
.ig-card__close:hover { color: var(--black); }

.ig-card__body {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 10px 12px 12px;
}

.ig-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}

.ig-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.ig-card__likes {
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  text-transform: none;
}

.ig-card__date {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}

.ig-card__cta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── Styles Modale Code Secret ──────────────────────────────────── */
.pwd-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.pwd-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.pwd-modal__blur {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.pwd-modal__box {
  position: relative;
  z-index: 10;
  width: min(380px, 92vw);
  background: #fff;
  padding: 44px 32px 36px;
  border-radius: 2px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.2);
  text-align: center;
  transform: translateY(15px);
  transition: transform 0.4s var(--ease);
}

.pwd-modal.is-active .pwd-modal__box {
  transform: translateY(0);
}

.pwd-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.pwd-modal__close:hover { color: var(--black); }

.pwd-modal__header {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.pwd-modal__text {
  font-size: 12px;
  color: var(--muted);
  text-transform: none;
  line-height: 1.6;
  margin-bottom: 28px;
}

.pwd-modal__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pwd-modal__input {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0;
  font-family: inherit;
  font-size: 14px;
  text-align: center;
  outline: none;
  text-transform: none;
  background: #fafafa;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.pwd-modal__input:focus {
  border-color: var(--black);
  background: #fff;
}

.pwd-modal__btn {
  width: 100%;
  padding: 15px;
  background: var(--black);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}
.pwd-modal__btn:hover { opacity: 0.9; }

.pwd-modal__error {
  display: none;
  margin-top: 16px;
  font-size: 11px;
  color: #cc0000;
  text-transform: none;
  font-weight: 600;
}
.pwd-modal__error.is-visible {
  display: block;
}

/* ─── Coming Soon Beachwood ──────────────────────────────────────── */
.carousel-img-wrap {
  position: relative;
}

.coming-soon-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(58%, 360px);
  height: min(20%, 150px);
  min-width: 220px;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  font-family: inherit;
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 700;
  line-height: 0.92;
  text-align: center;
  text-transform: lowercase;
  pointer-events: none;
  transform: translate3d(-50%, calc(-50% + var(--soon-y, 0px)), 0);
  will-change: transform;
}

@media (max-width: 760px) {
  .coming-soon-badge {
    width: 62%;
    height: 18%;
    min-width: 170px;
    min-height: 76px;
    font-size: clamp(24px, 8vw, 38px);
  }
}
/* ─── Liens cliquables dans carousel-meta ───────────────────────── */
a.carousel-price {
  display: inline-block;
  cursor: pointer;
}
a.carousel-price:hover {
  opacity: 0.7;
}

/* ─── Card "Progression Projet" (pages projet) ───────────────────── */
.progress-card {
  position: fixed;
  bottom: clamp(20px, 4vw, 40px);
  right: clamp(16px, 3vw, 40px);
  z-index: 90;
  width: 200px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  opacity: 0;
  transition: opacity 0.6s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
  overflow: hidden;
  cursor: default;
}

.progress-card.is-ready {
  opacity: 1;
  pointer-events: auto;
  animation: ig-float 5s ease-in-out infinite;
  animation-delay: 0.8s;
}

.progress-card.is-ready:hover {
  animation-play-state: paused;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.progress-card.is-next {
  cursor: pointer;
}

.progress-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.progress-card__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
}

.progress-card__body {
  display: block;
  padding: 10px 12px 12px;
  color: inherit;
  text-decoration: none;
}

/* Cercle SVG de progression */
.progress-card__circle-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-card__svg {
  width: 80px;
  height: 80px;
  transform: rotate(-90deg);
  flex-shrink: 0;
}

.progress-card__track {
  fill: none;
  stroke: rgba(5, 5, 5, 0.1);
  stroke-width: 3;
}

.progress-card__fill {
  fill: none;
  stroke: var(--black);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 201.06; /* 2π × 32 */
  stroke-dashoffset: 201.06;
  transition: stroke-dashoffset 0.15s linear;
}

.progress-card__pct {
  position: absolute;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1;
  /* Annule la rotation de -90° du SVG parent → on superpose en absolu */
}

/* Flèche "Projet suivant" */
.progress-card__arrow {
  position: absolute;
  font-size: 28px;
  font-weight: 400;
  color: var(--black);
  line-height: 1;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.progress-card.is-next .progress-card__arrow {
  opacity: 1;
  transform: scale(1);
}

.progress-card.is-next .progress-card__pct {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.progress-card.is-next .progress-card__fill {
  stroke: var(--black);
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.6s var(--ease);
}

.progress-card.is-next .progress-card__circle-wrap {
  background: #f0f0f0;
}

/* ─── Version mobile compacte : petit carré, juste cercle + flèche ── */
@media (max-width: 760px) {
  .progress-card {
    width: 60px;
    background: #fff;
    border-radius: 14px;
    bottom: 16px;
    right: 16px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: width 0.45s var(--ease), opacity 0.6s var(--ease), transform 0.4s var(--ease);
  }

  .progress-card.is-next {
    width: auto;
    max-width: calc(100vw - 32px);
  }

  .progress-card .progress-card__header,
  .progress-card .progress-card__meta {
    display: none;
  }

  .progress-card__body {
    padding: 6px;
  }

  .progress-card.is-next .progress-card__body {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 7px;
  }

  .progress-card__circle-wrap {
    margin-bottom: 0;
    background: transparent;
  }

  .progress-card.is-next .progress-card__circle-wrap {
    flex-shrink: 0;
    width: 40px;
  }

  .progress-card__svg {
    width: 46px;
    height: 46px;
  }

  .progress-card.is-next .progress-card__svg {
    width: 40px;
    height: 40px;
  }

  .progress-card__pct {
    font-size: 12px;
  }

  .progress-card__arrow {
    font-size: 16px;
  }

  .progress-card.is-next .progress-card__circle-wrap {
    background: transparent;
  }

  /* Le texte "Projet suivant ↗" n'apparaît qu'une fois à 100% */
  .progress-card .progress-card__cta {
    display: none;
  }

  .progress-card.is-next .progress-card__cta {
    display: flex;
    white-space: nowrap;
  }
}

.progress-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.progress-card__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  text-transform: none;
}

.progress-card__sub {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}

.progress-card__cta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 4px;
}
