html,
body {
  width: 100%;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  -webkit-font-smoothing: antialiased;
  font-family: 'Gambarino', serif;
  color: var(--black);
  line-height: 1.4;
  background-color: var(--white);
  font-size: 1rem;
}




/* header */

.header {
  height: var(--header-height);
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  font-size: 1rem;
  transition: .3s ease-in-out;
}

.scroll:not(.open-nav) .header {
  background-color: var(--white);
  --header-height: 7vh;
}

.scroll:not(.open-nav) .header .logo {
  color: var(--black);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: block;
  text-align: center;
  font-size: 1.1rem;
}

.logo strong {
  display: block;
  font-family: "OverusedGrotesk", 'sans-serif';
  font-weight: 700;
  letter-spacing: -.03em;
}

.logo small {
  display: block;
  margin-top: -.3rem;
  color: var(--lilas);
  font-size: .8em;
}

.main {
  padding-top: calc(var(--header-height) + 15vh);
}

/* navbar */

.nav {
  transition: var(--animation-nav);
  font-family: "OverusedGrotesk", 'sans-serif';
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
}

.nav-link {
  overflow: hidden;
  margin: 0 .75rem;
}

.nav-link svg {
  --fill: rgba(var(--white-rgb), .7);
  width: 25px;
  height: 25px;
}

.nav-link [aria-current="page"] {
  color: var(--lilas);
}


.nav-rdv {
  font-family: "OverusedGrotesk", 'sans-serif';
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--lilas);
}


.bn-nav {
  display: none;
  font-family: "OverusedGrotesk", 'sans-serif';
  font-size: .9rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--lilas);
  align-items: center;
  z-index: 999;
}

.nav-add {
  display: none;
}

/* footer */

footer {
  margin-top: var(--section-pad);
  margin-bottom: var(--gutter);
}

.footer-content {
  font-size: .8rem;
  line-height: 1.5;
  padding-top: var(--gutter);
  border-top: var(--border);
  display: flex;
  justify-content: space-between;
}


.rs a {
  display: block;
  font-family: "OverusedGrotesk", 'sans-serif';
  text-transform: uppercase;
  font-size: .7rem;
  text-align: right;
  font-weight: 500;
}

.to-top {
  display: block;
  font-family: "OverusedGrotesk", 'sans-serif';
  text-transform: uppercase;
  font-size: .7rem;
  color: rgba(var(--lilas-rgb), .5);
  margin-left: auto;
  margin-bottom: var(--gutter);
  transition: .3s;
}

.to-top:hover {
  color: rgba(var(--lilas-rgb), 1);
}

@media screen and (max-width: 800px) {
  .nav-rdv {
    display: none;
  }

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

  .nav-link:last-child {
    margin-right: 0
  }
}

@media screen and (max-width: 600px) {

  .bn-nav {
    display: flex;
    transition: .3s;
  }

  .open-nav .bn-nav {
    color: var(--white);
  }

  .nav {
    position: fixed;
    height: 100svh;
    width: 100vw;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 888;
  }

  .nav-bg {
    z-index: 1;
    background-color: var(--lilas);
    border-radius: 5px;
    height: 0;
    display: block;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: height 1s, width 1s;
    transition-delay: calc((var(--nav-count) - 1) * 0.1s);
  }

  .open-nav .nav-bg {
    height: 500vw;
    width: 500vw;
    transition-delay: 0s;
  }

  .nav-links {
    z-index: 2;
    padding: var(--gap-pad);
    flex-direction: column;
    justify-content: flex-end;
    font-size: 3.5rem;
    width: 100%;
  }

  .nav-link {
    font-family: "Instrument Serif", sans-serif;
    text-transform: none;
    font-weight: 500;
    width: fit-content;
    display: inline-block; /* nécessaire pour que le déplacement vertical fonctionne */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10%);
    transition: opacity 0.5s calc(var(--i) * 0.1s),
    transform 0.5s calc(var(--i) * 0.1s),
    visibility 0s linear calc(1s + (var(--nav-count) - 1) * 0.1s);
  }

  .open-nav .nav-link {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.5s calc(0.5s + var(--i) * 0.1s),
    transform 0.5s calc(0.5s + var(--i) * 0.1s),
    visibility 0s;
  }

  .nav-link + li:not(.nav-link) {
    display: none;
  }

  .nav-link a:hover,
  .nav-link [aria-current="page"] {
    color: rgba(var(--white-rgb), .7);
    text-align: left;
  }

  .nav-link :not([aria-current="page"]) {
    color: var(--white);
    text-align: left;
  }

  .nav-link + .nav-link {
    margin-top: var(--gutter);
    color: rgba(var(--white-rgb), .7);
  }

  .open-nav .nav {
    pointer-events: auto;
  }

  .open-nav .bn-nav,
  .open-nav .header-logo {
    --black: var(--white);
  }


  /*footer ok*/
  .footer-content {
    flex-direction: column;
  }

  .footer-left {
    order: 2;
    text-align: center;
    margin: var(--gutter) 0;
  }

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

  .footer-right {
    order: 3;
  }

  .footer-right .rs {
    display: flex;
    justify-content: center;
    opacity: .8;
    font-weight: 500;
  }

  .rs .link + .link {
    margin-left: 1em;
  }

}

@media screen and (max-width: 500px) {

  .header-logo div {
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
  }

  .header-logo span {
    font-size: .8rem;
  }

  .footer-title {
    font-size: 2rem;
    line-height: .8;
  }
}

@media screen and (max-width: 400px) {

  .footer-bottom {
    --gutter: 10px;
  }

  .footer-block,
  .footer nav {
    flex: 0 1 calc(100% - (var(--gutter) * 2));
  }
}
