@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,SOFT@9..144,50&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant&display=swap');

html {
  scroll-behavior: smooth;
}

.fraunces {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

.cormorant {
  font-family: 'Cormorant', serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

section {
  width: 100vw;
  height: 100vh;

  &.proverb {
    height: 600px;
  }

  &.countdown-wrapper {
    height: 300px;
  }

  &.rsvp {
    height: 100%;
  }

  &.timeline {
    background-image: url("../img/pattern_timeline2.jpg");
  }

  &.address {
    height: 100%;
  }
}

.welcome {
  overflow: hidden;
  position: relative;

  #video {
    /*height: 100vh;*/
    /*min-height: 100vw;*/
    /*max-width: unset;*/
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100vw;
    min-height: 100vh;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;      /* Maintient le ratio et recadre la vidéo */
    pointer-events: none;   /* Empêche la vidéo d’interférer avec les clics */
    background: #000;
  }
}

.countdown-container {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 3em;
}

.time-unit {
  display: flex;
  align-items: center;
}

.rolling-container {
  display: inline-block;
  overflow: hidden;
  height: 1.2em;
  width: 0.7em;
  position: relative;
}

.rolling-track {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.rolling-item {
  height: 1.206em;
  line-height: 1.2em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.label {
  font-size: 0.4em;
  margin-left: 5px;
  opacity: 0.8;
  letter-spacing: 1px;
}

.separator {
  opacity: 0.6;
  margin: 0 15px;
}

.spakls {
  img {
    width: 50px;
    height: auto;
  }
}

.bg-orient {
  background: url(../img/orient.jpg) no-repeat;
  background-size: cover;
}

@media (max-width: 600px) {
  #video {
    min-width: 100vw;
    min-height: 100vw;
    object-fit: cover;
  }
}


@media (height <= 720px) {
  section.timeline {
    height: auto;
    .timeline-container {
      height: auto;
      padding-bottom: 20px;
    }
  }

  section.proverb, section.rsvp, .address  {
    height: auto;
  }

  .rsvp > div {
    > div {
      height: auto;
      width: inherit;
      padding: 40px 0;
      overflow: hidden;
      > div {
        overflow:hidden;
      }
    }
    .ladies, .gentlemen {
      min-width: 200px;
      padding: 20px;
    }
    img {
      margin: 10px auto ;
    }
  }


  iframe {
    min-height: 600px;
  }
}


@media (width <= 64rem) {
  .countdown-container {
    gap: 5px;
    font-size: 7vw;
  }

  section.countdown-wrapper {
    height: 10em;
  }

  section.proverb, section.rsvp, .timeline, .address  {
    height: auto;
  }

  iframe {
    min-height: 1070px;
  }
}
