@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

html {
    scroll-behavior: smooth;
}

/* Appliquer à tous les éléments de la page */
::-webkit-scrollbar {
    height: 12px; /* Hauteur de la scrollbar horizontale */
}

/* Personnalisation du "thumb" de la scrollbar (la partie mobile) */
::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.75); /* Couleur en rgba */
    border-radius: 6px; /* Coins arrondis */
    border: 3px solid transparent; /* Bordure pour créer l'illusion d'un arrondi plus prononcé */
    background-clip: padding-box; /* Pour s'assurer que la couleur ne déborde pas sur la bordure */
}

/* Pour Firefox */
* {
    scrollbar-width: 12px; /* Rendre la scrollbar plus épaisse */
    scrollbar-color: rgba(0, 0, 0, 0.75) transparent; /* Couleur du thumb et pas de fond */
}

small {
    font-weight: 200;
}
a ~ img {
    width: 11px;
    height: 11px;
}
body {
    font-size: 40px;
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  color:#0d060f;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: white;
  overflow-x: hidden !important;
}
body > section {
    max-width: 1180px;
    padding: 80px 24px ;
    width: 100%;
    position: relative;
}
section.hero {
    width: 100vw;
max-width: 100vw;
background: #f0f0f0;
display:flex;
flex-direction: column;
align-items: center;
}
section.hero > section > div {
    display: flex;
    gap:1.5em;
    position: relative;
    align-items: center;
}
section div {
    position: relative;
}
section.hero > section > div img {
    display: flex;
    height: 100%;
    max-height: 350px;
    border-radius: 8px;
    max-width: 490px;
    object-fit: cover;
}
section.hero > section  div .code{
    position: absolute;
    left: 0;
    top:33%;
    z-index: 1;
    font-family: monospace;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5em 1em;
    border-radius: 5px;
    background: rgba(255,255,255,.59);
    transform: translate(-10%,-50%);
    backdrop-filter: blur(20px);
    border:1px solid white;
}

section.hero p {
    font-size: 24px;
}
.cta {
    display: flex;
    align-items: flex-start;
    gap: .25em;
    margin-top:1em;
}
.cta button, .cta a {
    font-size: 16px;
}
.cta img {
    display: none !important;
}
section.light {
    background: white;
}
p {
    font-size: 32px;
    line-height: 1.7;
}
button, .button {
    padding: 16px 24px;
    border: 0;
    font-family: "Inter", monospace;
    font-size: 24px;
    background: #0D060F;
    color: white;
    border-radius: 50px;
    border:2px solid #0D060F;
    transition:all .2s cubic-bezier(.75,.1,.1,.75);
    z-index: 1;
    text-decoration: none;
}
a.button ~ img {
    display: none;
}

button.small, .button.small {
    font-size: 16px;
}
button:hover, .button:hover {
    background: transparent;
    color:#0D060F;
}
button.secondary, .button.secondary {
    background: transparent;
    color:#0D060F;
}
button.secondary:hover, .button.secondary:hover {
    opacity: .7;
}
.parentbloc {
    display: flex;
}
.code-container {
    display: flex;
}
.parentbloc {
    display: flex;
    align-items: stretch;
    align-items: normal;
    gap: 24px;
    position: relative;
}
div#how {
    flex-wrap: wrap;
}
div#how > div {
    flex: 1 1 calc(50% - 1em);
}
.blocwrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 24px;
}
.parentbloc > .bloc{
    height: 100%;
    width: 100%;
    min-height: 540px;
    background: #0d060f;
    color:white;
}
.bloc {
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: stretch;
    height: 100%;
    background: #f0f0f0;
        padding: 24px;
        position: relative;
        border-radius: 12px;
            overflow: hidden;
}
.bloc button, .bloc .button {
        align-self: baseline;
    margin: 1em 0 0 0;
    background: white;
}
.parentbloc > .bloc .textanim-color-shift.textanim-visible span {
    color:white;
}
.parentbloc.middle .bloc {
    background: transparent;
    position: relative;
    flex:1 1;
    min-height: 320px;
    color:#0d060f;
        align-items: baseline;
        gap: 24px;
}
.parentbloc.middle .bloc > div:first-of-type {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.parentbloc.middle {
    margin-top:48px;
}
.parentbloc.middle img {
    width: 48px;
    height: 48px;
}
.parentbloc.middle small {
    font-weight: 200;
    padding: 3px 10px;
    border-radius: 50px;
    border: 1px solid;
    font-weight: 400;
    font-size: 14px;
}
.parentbloc.middle .bloc p {
    color:#0d060f;
}
.parentbloc.middle .divider {
    position: absolute;
    height: 100%;
    width: 1px;
    background: #0d060f;
    left: 50%;
    transform: translate(-100%,0);
    opacity: .1;
}
span.pre {
    font-family: 'Ubuntu Mono', monospace;
    font-size: 21px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #272822;
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow:hidden;
}
:not(pre)>code[class*=language-] {
    overflow-x:scroll !important;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    padding: 24px !important;

}
.token.constant, .token.deleted, .token.property, .token.symbol, .token.tag {
    white-space: nowrap;
}
.parentbloc.middle .bloc h3 {
    color:#0d060f;
    margin: 0;
    font-size: 32px;

}
.parentbloc.middle .bloc {
        border: 1px solid rgba(0,0,0,.1);
        min-height: 350px;
}
.blocwrap > .bloc:first-of-type {
    background: #7bff41;
}
.blocwrap > .bloc:first-of-type .textanim-color-shift.textanim-visible span{

}
.bloc h2 {
    margin: 0;
    font-size: 121px;
    z-index: 1;
}
.bloc p {
    font-style: normal;
    font-size: 21px;
    z-index: 1;
    margin: 0;
}
.bloc video {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    z-index: 0;
        filter: brightness(0.2);
}
.blocwrap > .childbloc {
    display: flex;
    gap:24px;
}
.childbloc div {
    flex: 1 1;
}
code {
    display: flex;
    flex-direction: column;
   font-family: "Ubuntu Mono", monospace;
    font-weight: 500;

}


* {
   box-sizing: border-box;

}
i {
  font-family: "Ubuntu Mono", monospace;
  font-weight: 500;
  }

header {
    position: sticky;
    top:0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(0,0,0,.1);
    
    width: 100%;
    align-items: center;
        background: rgba(240, 240, 240, .9);
    z-index: 9;
    backdrop-filter: blur(9px);
    z-index: 9;
}
header > div {
    max-width: 1180px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    
    width: 100%;
    align-items: center;
}
header h1 {
    font-size: 24px;
    font-weight: 500;
}
h2 {
    font-weight: 400;
    font-size: 91px;
    margin: 0px 0
}
h3 {
    font-size: 51px;
    font-weight: normal;
}
h3, h4 {
    margin: 32px 0;
}
ul {
    display: flex;
    gap:24px;
    margin: 0;
}
ul li {
    list-style-type: none;
    font-size: 17px;
}
ul li, ul a,
ul li, ul img  {
    transition: all .2s cubic-bezier(.75,0,0,.75);
    text-decoration: none;
}
ul:hover li:not(:hover) a,
ul:hover li:not(:hover) img {
    opacity: .5;
}
ul a {
    color: #0d060f;
    position: relative;
}
ul li a:before {
    content:'';
    left: 0;
    bottom: -4px;
    transform: scalex(0);
    position: absolute;
    width: 100%;
    height: 2px;
    background: black;
    display: block;
    transition: all .2s cubic-bezier(.95,.1,.1,.95);
    transform-origin: left bottom;
}
ul li:hover a:before {
    transform: scale(1.0);
}
span.copy, span.copied {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0;
    width: 20px;
    height: 20px;
    background: url(copy.svg) no-repeat center center / contain white;
    cursor: pointer;
    border-radius: 50px;
}
span.copied {
    background: url(paste.svg) no-repeat center center / contain white;
}
.info {
     display: block;
    color: orangered;
    font-weight: 400;
    line-height: 1.2;
    font-size: 13px;
    padding: .5em;
    background: #ffc10726;
    border-radius: 4px;
    margin-top: .5em;

}
span.normal {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-size: 14px;
    font-weight: 400;
    opacity: .7;
}
    /* Table responsive */
    .responsive-table {
      width: 100%;
      border-collapse: collapse;
      margin: 20px 0;
      font-size: 16px;
      text-align: left;
    }

    .responsive-table thead {
      background-color: #f2f2f2;
    }

    .responsive-table th,
    .responsive-table td {
      padding: 12px;
      border: 1px solid #ddd;
      line-height: 1.5;
      position: relative;
    }
    footer {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, .8);
    padding: 80px 24px;
    color: white;
    font-size: 15px;
    text-align: left !important;
}
footer p, footer a {
    font-size: 14px;
    color:white;
    line-height: 1.7;
    margin: 0;
}
footer a ~ img {
    display: none !important;
}
    footer > p:first-of-type {
    font-size: 16px !important;
    margin: 0;
    color: white;
    align-items: flex-end;
}
footer >  div{
    display: flex;
    flex-direction: row;
    max-width: 1080px;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}
footer >  div div {
    display: flex;
    flex-direction: column;
}
.examples {
    position: relative;
}
.examples > div{
    display: flex;
    justify-content: center;
    gap: .5em;
    align-items: center;    
}
.examples > div img{
    max-width: 350px;
    height: 450px;
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}
.usage {
    gap:0 !important;
    font-family: 'Inter', sans-serif;
    width: auto;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    background: none;
    border-radius: 8px;
        max-width: 590px;
    padding: 1.25em .75em 2em .75em;
    margin: 0 auto;
    border-radius: 5px;
    background: rgba(255,255,255,.79);
    backdrop-filter: blur(20px);
    margin-top: -1em;
    border:1px solid white;
}
.usage span {
    position: relative;

}
.usage > span {
    border-radius: 8px;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        cursor: default;
                text-align: center;

}
.usage > span span {
    padding: .25em;
    margin: 0 .1em;
    background: rgba(0,0,0,.05);
    border-radius: 8px;
    transition: all .2s;
    font-family: 'Ubuntu Mono', monospace;
}

.usage .optional.delay {
    color:blue;
}
.usage .optional.repeat {
    color:blue;
}
.usage *:after, .usage *:before {
    opacity: 0;
    transition: all .2s;
}
.usage *:hover:after,
usage *:hover:before {
    opacity: 1;
    background: white;
}
.usage *:after {
    padding: .25em .5em;
    background: white;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    position: absolute;
        text-align: center;
        font-family: "Inter", sans-serif;

}
.usage .required:after {
    content:'Required - animation name';
    left:50%;
    bottom: 0;
    transform: translate(-50%,calc(100% + 5px));
}
.usage .optional.delay:after {
    content:'Optional - delay in ms';
    left: 50%;
    bottom: 0;
    transform: translate(-50%,calc(100% + 5px));
}
.usage .optional.repeat:after {
    content:'Optional - repeat animation on scroll';
    left: 50%;
    bottom:0;
    transform: translate(-50%,calc(100% + 5px));
}
.usage > span:hover span:not(:hover) {
    opacity: .5;
}
.examples > div img:not(:nth-of-type(2)) {
    height: 350px;
}
    /* Responsive behavior */
    @media (max-width: 768px) {
        header h1 {
            flex-wrap: nowrap !important;
            font-size: 19px;
        }
        h2 {
            font-size: 56px;
        }
        h3 {
            font-size: 40px;
        }
        section.hero > section div .code {
    left: 0;
    transform: none;
    top: 0;
}
        section.hero > section > div {
            flex-direction: column;
            align-items: baseline;
        }
        .examples {
            overflow:visible !important;
        }
        .examples > div {
            flex-direction: column;
            overflow:visible !important;
        }
        .parentbloc.middle .bloc {
            border:0;
        }
        section.hero > section > div img {
            max-width: 90%;
            margin: 0 auto;
        }
        .cta {
            flex-direction: column;
        }
        .usage  {
                overflow-x: scroll;
    justify-content: flex-end;
    overflow-y: hidden;
    min-height: auto;
    padding: 1em;
    align-items: baseline !important;
        }
      .responsive-table thead {
        display: none;
      }
      footer * {
        display: block !important;
    text-align: left;
    width: 100%;
      }

      .responsive-table, 
      .responsive-table tbody, 
      .responsive-table tr, 
      .responsive-table td {
        display: block;
        width: 100%;
      }

      .responsive-table tr {
        margin-bottom: 15px;
      }

      .responsive-table td {
        text-align: left;
        padding-left: 50%;
        position: relative;
      }

      .responsive-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 15px;
        font-weight: bold;
        text-align: left;
      }
      p{
        line-height: 1.4;
      }
      div#how {
        padding-bottom: 0 !important;
      }
      .parentbloc, .blocwrap > .childbloc {
        flex-direction: column;
      }
      section.light:before {
        display: none;
      }
      section.hero p {
        font-size: 24px !important;
      }
      .parentbloc > .bloc {
        min-height: 290px;
      }
      .parentbloc.middle .divider {
        position: relative;
        display: flex;
        width: 100%;
        height: 1px;
        left: 0;
        transform: none;
        opacity: .25;
      }
      .parentbloc.middle .bloc > div:first-of-type {
        flex-direction: column;
        align-items: baseline;
      }
      .parentbloc.middle .bloc {
        padding: 0;
      }

      body > section {
        padding: 32px 24px;
      }
      button {
        font-size: 19px;
      }
      p {
        font-size: 24px;
      }
      ul {
    flex-wrap: nowrap;
    width: 100%;
    white-space: nowrap;
    padding: .25em 0 .25em .25em;
    overflow-x: scroll;
    gap: 16px;
      }
      ul li:last-of-type a {
        padding: 0 2em 0 0;
      }
      nav {
        position: relative;
        overflow: hidden;
    display: flex;
    width: 100%;
    padding: 0 0 0 .25em;
      }
      nav:after {
        content:'';
        position: absolute;
        right: 0;
        height: 100%;
        width: 40px;
        background: rgb(240,240,240);
background: linear-gradient(270deg, rgba(240,240,240,1) 0%, rgba(240,240,240,0) 100%);
      }
      body > section:first-of-type > section {
        padding: 0 !important;
      }
      header {
        padding: 12px 0 12px 24px;
      }
    }