:root {
  --color-bg: #d4e4f3;
  --label-color: #2860a1;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; overflow-x: hidden; }
body { background: var(--color-bg); }

.grille {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: grid;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
  contain: layout style;
}

@media (max-width: 479px) and (orientation: portrait) {
  .grille { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 1fr); }
  .cellule:nth-child(n+9)  { display: none; }
}
@media (min-width: 480px) and (max-width: 767px) and (orientation: portrait) {
  .grille { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(5, 1fr); }
  .cellule:nth-child(n+16) { display: none; }
}
@media (orientation: landscape) and (max-width: 767px) {
  .grille {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    height: 100dvh;
  }
  .cellule:nth-child(n+13) { display: none; }
  .cellule { contain: layout paint; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .grille { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); }
  .cellule:nth-child(n+17) { display: none; }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .grille { grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 1fr); }
  .cellule:nth-child(n+25) { display: none; }
}
@media (min-width: 1440px) and (max-width: 1919px) {
  .grille { grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(4, 1fr); }
  .cellule:nth-child(n+29) { display: none; }
}
@media (min-width: 1920px) {
  .grille { grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(5, 1fr); }
}

.cellule {
  contain: strict;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

@media (max-width: 767px) and (orientation: portrait) { .cellule { background-image: url("SVG/VERT-JAUNE.svg"); } }
@media (orientation: landscape), (min-width: 768px)   { .cellule { background-image: url("SVG/BLANC-ORANGE-BLEU.svg"); } }

@keyframes tourner-droite { to { transform: rotate(360deg);  } }
@keyframes tourner-gauche { to { transform: rotate(-360deg); } }

.scroll-spacer {
  height: 550vh;
  width: 1px;
  pointer-events: none;
  visibility: hidden;
}

.defs-holder { position: absolute; width: 0; height: 0; overflow: hidden; }

.mot {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: none;
  place-items: center;
  pointer-events: none;
}

@media (max-width: 767px) and (orientation: portrait) { .mot--portrait  { display: grid; } }
@media (orientation: landscape), (min-width: 768px)   { .mot--landscape { display: grid; } }

.lettre {
  grid-area: 1 / 1;
  height: auto;
  opacity: 0;
  will-change: transform, opacity;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.85));
}

.mot--landscape .lettre { width: min(90vw, 70vh * 1.817); }
.mot--portrait  .lettre { width: min(72vw, 86vh * 0.559); }

.trace { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mot--landscape .trace { stroke: url(#chrome-gradient-landscape); stroke-width: 40px; }
.mot--portrait  .trace { stroke: url(#chrome-gradient-portrait);  stroke-width: 30px; }

.chaise-longue {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: 4rem 2rem 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}

.chaise {
  position: relative;
  width: min(92vw, 1100px);
  aspect-ratio: 620 / 220;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.2));
}

.chaise__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: none;
}

.chaise__roue { transform-box: fill-box; transform-origin: 50% 50%; }
.chaise.vers-droite .chaise__roue { animation: tourner-droite 1.2s linear infinite; }
.chaise.vers-gauche .chaise__roue { animation: tourner-gauche 1.2s linear infinite; }
.chaise.pause       .chaise__roue { animation-play-state: paused !important; }

.meuble-longue {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: 4rem 2rem 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}

.meuble {
  position: relative;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.2));
}

.meuble--fauteuil    { width: min(80vw, 460px); aspect-ratio: 171.64 / 143.3;  }
.meuble--siege       { width: min(80vw, 500px); aspect-ratio: 184.11 / 133.62; }
.meuble--siegedouble { width: min(85vw, 680px); aspect-ratio: 279.13 / 157.86; }
.meuble--table       { width: min(88vw, 760px); aspect-ratio: 264.24 / 115.4;  }

.meuble__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  pointer-events: none;
}

@media (max-width: 599px) and (orientation: portrait) {
  .chaise__svg--vert,  .meuble__svg--vert  { display: block; }
  :root { --label-color: #71ae51; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .chaise__svg--blanc, .meuble__svg--blanc { display: block; }
  :root { --label-color: #fafcfc; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .chaise__svg--jaune, .meuble__svg--jaune { display: block; }
  :root { --label-color: #f1e250; }
}
@media (min-width: 1200px) and (max-width: 1599px) {
  .chaise__svg--orange, .meuble__svg--orange { display: block; }
  :root { --label-color: #e08335; }
}
@media (min-width: 1600px) {
  .chaise__svg--bleu, .meuble__svg--bleu { display: block; }
  :root { --label-color: #2860a1; }
}

.meuble-titre {
  margin: 0 0 2rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.6vw, 2rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: var(--label-color);
}
