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

html,
body {
  width: 100%;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  background-color: #f2efe7;
  color: #14100d;
}

body {
  height: auto;
}

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

a {
  text-decoration: none;
  color: #14100d;
  font-size: 13.5px;
  font-weight: 500;
}

/* ===== LOADER (cg-savoirfaire-landing-page-reveal-animation) ===== */

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #14100d;
  color: #f2efe7;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  z-index: 100;
}

.count-wrapper {
  position: relative;
  width: 180px;
  height: 360px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  will-change: transform;
}

.count {
  position: relative;
  width: 1080px;
  height: 360px;
  display: flex;
  justify-content: space-between;
  transform: translateX(-1080px);
  will-change: transform;
}

.digit {
  position: relative;
  width: 180px;
  height: 360px;
}

.digit h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  font-family: "Fraunces", serif;
  font-size: 360px;
  font-weight: 300;
  line-height: 1;
}

.revealer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ===== NAV (cg-lp-reveal-anim) ===== */

nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5em 2em;
  display: flex;
  z-index: 20;
}

nav .logo a {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
}

nav > div {
  flex: 1;
}

nav .nav-items {
  display: flex;
  gap: 2em;
  justify-content: center;
}

nav .contact {
  display: flex;
  justify-content: flex-end;
}

/* ===== AMBIENT PARALLAX FIELD (cg-cosmos-parallax-effect-mousemove) ===== */

.cosmos-field {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.cosmos-item {
  position: absolute;
  width: 130px;
  height: 175px;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.cosmos-item img {
  opacity: 0.35;
  filter: grayscale(0.15) sepia(0.08);
}

/* ===== HERO CONTENT (cg-lp-reveal-anim) ===== */

.container {
  position: relative;
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 5;
}

.items {
  width: 100%;
  display: flex;
}

.items-col {
  flex: 1;
  display: flex;
}

.items-col-main {
  flex: 0 0 340px;
  display: flex;
  justify-content: center;
}

.item {
  position: relative;
  top: 15vh;
  height: 320px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.item-copy {
  padding: 0.5em;
  height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.item-copy-wrapper {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.item-copy-wrapper p {
  position: relative;
  margin-bottom: 0.25em;
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 100%;
  opacity: 0.6;
}

.item-side .item-img {
  flex: 1;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
}

.item-main {
  position: relative;
  top: 15vh;
  width: 340px;
  height: 470px;
  overflow: hidden;
}

.item-main .item-img {
  position: relative;
  height: calc(100% - 50px);
  overflow: hidden;
}

.item-main .item-img img {
  transform: scale(0.5);
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
}

.item-main .item-img canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.header {
  position: absolute;
  bottom: 35%;
  transform-origin: center center;
  width: 100%;
  display: flex;
  gap: 2vw;
  z-index: 10;
}

.header-item {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  transform: scale(0.25);
}

.header-item-1 {
  left: 16vw;
}

.header-item-2 {
  right: 16vw;
}

.letter {
  flex: 0 0 auto;
  font-family: "Fraunces", serif;
  font-size: 9.5vw;
  font-weight: 300;
  display: flex;
  justify-content: center;
  align-items: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.letter-wrapper {
  position: relative;
}

/* ===== SAVOIR-FAIRE (CGMWTAUGUST2025/terrene Spotlight) ===== */

.spotlight {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #14100d;
}

.spotlight-outline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1rem solid #8a5a3b;
  border-radius: 3rem;
  z-index: 2;
}

.spotlight-outline::after {
  content: "";
  position: absolute;
  top: -1rem;
  left: -1rem;
  width: 100%;
  height: 100%;
  border: 1rem solid #8a5a3b;
  z-index: 1;
}

.spotlight-inner {
  position: relative;
  width: calc(100% - 2rem);
  height: calc(100% - 2rem);
  overflow: hidden;
  border-radius: 2rem;
  background-color: #14100d;
}

.spotlight-intro-text-wrapper {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 0.5rem;
}

.spotlight-intro-text {
  flex: 1;
  position: relative;
  will-change: transform;
  color: rgba(242, 239, 231, 0.45);
}

.spotlight-intro-text p {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 2.5rem;
}

.spotlight-intro-text:nth-child(1) {
  display: flex;
  justify-content: flex-end;
}

.spotlight-bg-img {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transform: scale(0);
  will-change: transform;
  border-radius: 2rem;
  opacity: 0.65;
}

.spotlight-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.5);
  will-change: transform;
}

.spotlight-titles-container {
  position: absolute;
  top: 0;
  left: 15vw;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: polygon(
    50svh 0px,
    0px 50%,
    50svh 100%,
    100% calc(100% + 100svh),
    100% -100svh
  );
  --before-opacity: 0;
  --after-opacity: 0;
}

.spotlight-titles-container::before,
.spotlight-titles-container::after {
  content: "";
  position: absolute;
  width: 100svh;
  height: 2px;
  background: #f2efe7;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.spotlight-titles-container::before {
  top: 0;
  left: 0;
  transform: rotate(-45deg) translate(-7rem);
  opacity: var(--before-opacity);
}

.spotlight-titles-container::after {
  bottom: 0;
  left: 0;
  transform: rotate(45deg) translate(-7rem);
  opacity: var(--after-opacity);
}

.spotlight-titles {
  position: relative;
  left: 15%;
  width: 75%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 5rem;
  transform: translateY(100%);
  z-index: 2;
}

.spotlight-titles h1 {
  font-family: "Fraunces", serif;
  color: #f2efe7;
  opacity: 0.35;
  transition: opacity 0.3s ease;
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1;
}

.spotlight-images {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  min-width: 300px;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.spotlight-img {
  position: absolute;
  width: 200px;
  height: 150px;
  will-change: transform;
  border-radius: 1rem;
  overflow: hidden;
}

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

.spotlight-header {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: #f2efe7;
  transition: opacity 0.3s ease;
  z-index: 2;
  opacity: 0;
}

.spotlight-header p {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1;
  color: #f2efe7;
}

.spotlight-mobile-label {
  display: none;
}

@media (max-width: 900px) {
  .spotlight-titles,
  .spotlight-titles-container::before,
  .spotlight-titles-container::after {
    display: none;
  }

  .spotlight-images {
    right: -4rem;
  }

  .spotlight-intro-text p {
    font-size: 1.7rem;
  }

  .spotlight-mobile-label {
    display: block;
    position: absolute;
    bottom: 8%;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .spotlight-mobile-label p {
    font-family: "Fraunces", serif;
    font-weight: 400;
    font-size: 6vw;
    color: #f2efe7;
  }
}

/* ===== PIÈCES (cg PRODUCT SLIDER SVG MORPH OVERLAY) ===== */

.pieces-intro {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2em;
  background-color: #f2efe7;
  color: #14100d;
}

.pieces-intro .title {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: 7vw;
}

.pieces-intro button,
.wines button {
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #8a5a3b;
  color: #f2efe7;
  border: none;
  padding: 0.9em 1.8em;
  border-radius: 2px;
}

.wines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.wrapper {
  position: absolute;
  inset: 0;
}

.wrapper > .transition {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#wrap {
  position: absolute;
  top: 0;
  left: 25%;
  width: 150%;
  height: 100vh;
  display: flex;
  align-items: center;
  margin: 0 25%;
}

.block {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1em;
  z-index: 2;
  width: 320px;
  height: 420px;
  margin: 0 1em;
  background: #2e2918;
  overflow: clip;
  clip-path: inset(0 0 0 0);
}

.product {
  position: relative;
  display: block;
  width: 320px !important;
  height: 340px !important;
  z-index: 2;
  padding: 2em;
}

.product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-label {
  position: relative;
  z-index: 2;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 15px;
  color: #f2efe7;
  opacity: 0.8;
}

button#closeBtn {
  position: absolute;
  top: 2em;
  right: 2em;
  background: none;
  color: #f2efe7;
  border: 1px solid rgba(242, 239, 231, 0.4);
  pointer-events: all !important;
}

@media (max-width: 900px) {
  /* Catalogue : scroll horizontal natif au lieu du pan à la souris */
  .wines {
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .wines::-webkit-scrollbar {
    display: none;
  }

  /* Le fond SVG et le bouton Fermer restent fixes pendant le scroll */
  .wines .wrapper {
    position: fixed;
    inset: 0;
  }

  #wrap {
    position: relative;
    left: 0;
    width: max-content;
    margin: 0;
    padding: 0 calc(50vw - 126px);
  }

  .block {
    width: 220px;
    height: 320px;
    scroll-snap-align: center;
  }

  .product {
    width: 220px !important;
    height: 240px !important;
  }

  button#closeBtn {
    position: fixed;
  }
}

/* ===== CONTACT / FOOTER (cg-bennett-clive-scroll-animation) ===== */

.footer-sticky-bar {
  position: fixed;
  width: 100%;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  padding: 1em 2em;
  display: flex;
  mix-blend-mode: difference;
  z-index: 30;
  pointer-events: none;
}

.footer-sticky-bar .fsb-item:nth-child(1),
.footer-sticky-bar .fsb-item:nth-child(3) {
  flex: 2;
}

.footer-sticky-bar .fsb-item:nth-child(3) {
  text-align: right;
}

.footer-sticky-bar .fsb-item:nth-child(2) {
  flex: 1;
  text-align: center;
}

.footer-sticky-bar .fsb-item p {
  color: #fff;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.25vw;
}

.woods {
  width: 100%;
  padding: 8em 1em;
  background: #f2efe7;
}

.wood-row {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1em;
}

.wood p {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-style: italic;
  font-size: 34px;
  color: #14100d;
  opacity: 0.5;
}

.footer-trigger {
  position: relative;
  width: 100%;
  height: 300vh;
  background: #14100d;
}

.footer-trigger img {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  opacity: 0.35;
}

.footer-contact {
  position: absolute;
  bottom: 4em;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  color: #f2efe7;
}

.footer-contact p {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  letter-spacing: 0.03em;
  opacity: 0.7;
}

@media (max-width: 900px) {
  .footer-sticky-bar .fsb-item p {
    font-size: 2.5vw;
  }

  .wood p {
    font-size: 20px;
  }

  .footer-contact {
    bottom: 9em;
  }
}

@media (max-width: 900px) {
  .cosmos-field {
    display: none;
  }

  nav {
    padding: 1.2em 1.5em;
  }

  nav .nav-items {
    display: none;
  }

  .item-side {
    display: none;
  }

  .items-col-main {
    flex: 1;
  }

  .item-main {
    width: 85vw;
    max-width: 340px;
    height: 58vh;
    top: 10vh;
  }

  .header {
    bottom: 45%;
  }

  .header-item-1 {
    left: 0;
  }

  .header-item-2 {
    right: 0;
  }

  .letter {
    font-size: 8.5vw;
  }
}
