:root {
  --black: #0a0514;
  --white: #ebe5ed;
  --violet: #6934bd;
  --bluegreen: #00ab9c;
  --border-color: #00ab9caa;
  --border-width: 5rem;
  --border-height: 5rem;
  --div: 0.6;
}
:root[data-invert] {
    --black: #ebe5ed;
    --white: #0a0514;
    --violet: #00ab9c;
    --bluegreen: #6934bd;
    --border-color: #6934bdaa;
  }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;

}

#smooth-wrapper {
  position: fixed;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  top: 0;
  left: 0;
  pointer-events: none;
}
#smooth-content {
  min-height: 100vh;
  will-change: transform;
  pointer-events: none;
}

body {
  background-color: var(--white);
  color: var(--black);
  font-family: "Neue Haas Grotesk Display Pro", sans-serif;
  font-weight: normal;
  font-size: 1rem;
  line-height: 1.5;
}

h1 {
  font-weight: bold;
  font-size: clamp(3.5rem, 9vw, 6.25rem);
  letter-spacing: -0.05em;
  
}
h2 {
  font-weight: bold;
  font-size: clamp(3.5rem, 9vw, 6.25rem);
  letter-spacing: -0.05em;
  
}
h3 {
  font-weight: bold;
  font-size: clamp(1.5rem, 3vw, 3.2rem);
  letter-spacing: -0.05em;
  
  line-height: 1;
}

h3 > div:nth-of-type(2) {
  margin-bottom: 0.5em;
}
header  {
  pointer-events: auto;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  opacity: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100000;
}

header .menu a {
  margin-right: 1.5rem;
}

header .menu a,
header .cta a {
  text-decoration: none;
  color: var(--black);
  font-weight: bold;
  font-size: 0.9rem;
  padding: 0.25rem 1.0rem;
  background-color: var(--white);
  border: 2px solid var(--violet);
  border-radius: 500px;
  border-width: 3px;
  transition: background-color 0.15s, color 0.15s;
  display: flex;
  align-content: center;
}
.handshake, .iconmenu {
  display: inline-block;
  height: 2rem;
  margin-top: -.3rem;
  margin-bottom: -.5rem;
  width: auto;
}

.iconmenu {
  margin-top: -.25rem;
  margin-bottom: -.5rem;
  height: 1.7rem;
  width: auto;
}

@media screen and (max-width: 765px) {
  .collab, .menutxt {
    visibility: hidden;
    display: none;
  }

  header .menu a,
header .cta a {
  padding: 0.5rem 0.5rem;
  transition: background-color 0.15s, color 0.15s, fill 0.15s, border-color 0.15s;
  display: flex;
  align-content: center;
  
}
.handshake, .iconmenu {
  display: inline-block;
  height: 2rem;
  margin-top: -.3rem;
  margin-bottom: -.4rem;
  width: auto;
  transition: fill 0.15s;
}
}


.cta .handshake:hover, .cta .iconmenu:hover {
  display: inline-block;
  height: 2rem;
  fill: var(--white);
  margin-top: -.3rem;
  margin-bottom: -.5rem;
  width: auto;
}

header .logo {
  text-decoration: none;
  color: var(--black);
}

header .menu a:hover,
header .cta a:hover {
  background-color: var(--bluegreen);
  border-color: var(--bluegreen);
  color: var(--white);
  fill: var(--white)
  
}

header > .logo {
  position: relative;
  text-align: center;
  margin-left: 3rem;
  font-weight: bold;
  font-size: 1.5rem;
  letter-spacing: -0.03em;

}

@media (max-width: 1000px) {
  header > .logo {
    margin-left: 0;
margin-right: 1.65rem;
  
  }
}
header .logo .txt::before {
  position: absolute;
  content: "";
  top: 0;
  left: 50%;
  translate: -50% -18%;
  width: 45px;
  height: 60px;
  background-image: url("./img/SVG/logo-left.svg");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
}

header .logo .txt::after {
  position: absolute;
  content: "";
  top: 0;
  left: 50%;
  translate: -50% -18%;
  width: 45px;
  height: 60px;
  background-image: url("./img/SVG/logo-right.svg");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
}

header .logogram {
  position: absolute;
  top: 50%;
  left: 50%;
 transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}





@keyframes scaleb {
  0%, 15%, 100% {
    width: calc(4rem * var(--div));
    height: calc(6rem * var(--div));
    left: 50%;
    translate: -50% -50%;
  }
  50%, 65% {
    width: calc(5rem * var(--div));
    height: calc(5rem * var(--div));
    left: 50%;
    translate: -50% -50%;
  }
  25%, 40% {
    width: calc(6.5rem * var(--div));
    height: calc(3.5rem * var(--div));
    left: 50%;
    translate: -50% -50%;
  }
  75%, 90% {
    width: calc(3rem * var(--div));
    height: calc(7rem * var(--div));
    left: 50%;
    translate: -50% -50%;
  }
}

@keyframes flip {
  from {
    transform: rotateX(30deg) rotateZ(-10deg) rotateY(160deg);
  }
  to {
    transform: rotateX(30deg) rotateZ(-10deg) rotateY(-20deg);
  }
}


header .logo .txt .i {
  
    color: var(--violet);
    transition: scale 0.3, margin 0.3s;
    -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform, margin;
  }

.logo:hover .txt .i.rotate {
  -webkit-font-smoothing:antialiased; /* au lieu de subpixel-antialiased */
  image-rendering: -webkit-optimize-contrast;
  text-rendering: optimizeLegibility;
  transform: rotate(90deg) scaleY(1.9) translateZ(0);
  transition: transform 0.3s linear, margin 0.3s linear;
  margin: 0px 15px 0 13px;
   transform-origin: center center;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}



header .logo .txt .i.rotate {
  -webkit-font-smoothing:antialiased; /* au lieu de subpixel-antialiased */
  image-rendering: -webkit-optimize-contrast;
  text-rendering: optimizeLegibility;
  display: inline-block;
  margin: 0px 7px;
  transform: rotate(90deg) scaleY(1.0) translateZ(0);
   transition: transform 0.3s linear, margin 0.3s linear;
  will-change: transform, margin;
  transition: scale 0.3s linear, margin 0.3s linear;
}

header .logo .txt .am.slide {
  -webkit-font-smoothing:antialiased; 
  image-rendering: -webkit-optimize-contrast;
  text-rendering: optimizeLegibility;
  display: inline-block;
  transform: rotate(90deg);
  margin: 0px -6px;
}



.landing {
  width: 100%;
  min-height: 85vh;
  max-height: 85vh;
    opacity: 0; /* Ajout : masquer au départ */
  visibility: hidden; /* Ajout : éviter les interactions */
max-height: calc(75vh - 8rem); /* AJOUTEZ CETTE LIGNE */
  /* overflow: hidden; AJOUTEZ CETTE LIGNE */
position: relative;}



.landing .title {
  padding-top: 30vh;
  padding-left: 18%;
  width:100%;
  max-width: 1280px;
  margin: 0 auto;
   text-align: left;
  line-height: 1;
  z-index: 10;
  letter-spacing: -0.05em;
  pointer-events: none;
  
}

.landing .subtitle {

  padding-top: 3vh;
  margin-left: 67%;
  /* width: 20ch; */
  font-size: inherit; /* ou une valeur fixe */
  width: 30%;
  box-sizing: border-box;
  white-space: normal;
  word-break: normal;
  /* overflow-wrap: normal; */
  display: block;

  box-sizing: border-box;
    text-align: left;
  line-height: 1.2;
  z-index: 10;
/* font-size: clamp(3.5rem, 12vw, 6.25rem); */
  letter-spacing: -0.02em;

  
}

@media (max-width: 780px) {
  .landing .title {
    padding-left: 2rem;
  }

  .landing .subtitle {
    margin-left: 33%;
    width: 60%;
  
  }
}

.work {
  position: relative;
  width: 100%;
  padding: 2rem 2rem 2rem 2rem;
 color: var(--black);
  display: flex;
    flex-direction: row;
  gap: 1rem;
  margin-bottom: 10vh;
  opacity: 0;
  z-index: 20;
  
  pointer-events: auto;
}

.case {
  pointer-events: auto;
  flex: 2;
  width:25%;
 /* aspect-ratio: 4 / 3; */
 background-color: lightgray;
  border-radius: 15px;
  min-height: 14rem;
  padding:  0 clamp(.8rem, 2vw, 2rem) 1rem clamp(.8rem, 2vw, 2rem) ;
  display: flex;
  height: max-content;
  line-height: 1;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s, box-shadow 0.3s, flex 0.3s;
}

.case .number {
  margin-left: -0.15em;
  font-size: clamp(3rem, 8vw, 6rem);
  opacity: .7;
  font-weight: 900;
  letter-spacing: -0.05em ;
  line-height: 1;
  color: var(--white);
  transition: opacity 0.3s;
}

.case .titlecase {
  font-weight: bold;
  
}
.case .titlecase,
.case .subtitlecase {
  letter-spacing: -0.05em;
  line-height: 1.2;
font-size: clamp(.8rem, 2vw, 1.2rem);
  clip-path: polygon(0 0, 100% 0, 100% 110%, 0% 110%);
  will-change: opacity, translate, clip-path;
  transition: translate 0.3s ease, clip-path 0.6s ease, opacity 0.3s ease;
}

.case:hover .titlecase,
.case:focus .titlecase,
.case:hover .subtitlecase,
.case:focus .subtitlecase {
  translate: 0 1em;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0% 0%);
  transition: translate 0.3s, clip-path 0.3s;
}

.case:hover .number,
.case:focus .number {
  opacity: 0.3
}
.case:hover,
.case:focus {
 flex: 3;
}
.copy {
  max-width: 41ch;
  color: lightgray;
 margin-left: 33%;
 font-size: clamp(1.25rem, 3.5vw, 1.7rem);
  font-weight: normal;
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.copy p {
  margin-bottom: 0.6em;
}
.case .info {
  display: flex;
  flex-direction: column;
  justify-content:end
}

