/****** FONTS ****/

@import url("https://fonts.googleapis.com/css2?family=Arizonia&family=Russo+One&display=swap");

/* Full width propre */
.agv-hero-video.alignfull {
  width: 100vw;
  min-height: 120vh;
  height: fit-content;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.agv-hero-video {
  position: relative;
  min-height: 720px;
  overflow: hidden;
}

/* Background vidéo */
.agv-hero-video__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 100%;
}

.agv-hero-video__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.agv-hero-video__poster,
.agv-hero-video__poster-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* NAV en haut sur la vidéo */
.agv-hero-video__nav {
  position: relative;
  z-index: 3;
}

/* Contenu */
.agv-hero-video__content {
  position: relative;
  z-index: 3; /* au-dessus du nuage */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 38px;
  text-align: right;
  height: 90%;
  margin: 0 auto;
  padding: 110px 12px 70px 12px;
}

/* TOP : titre + bulle */
.agv-hero-video__top {
  width: min(1100px, 100%);
  height: fit-content;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}
.agv-hero-video__h1-wrap {
  display: inline-block;
  width: auto;
  margin: 0 auto;
}

.agv-hero-video__title.elt-title--h1 {
  font-size: 28px;
  line-height: 1;
  position: relative;
  display: inline-block;
  width: 100%;
  text-align: right;
  width: auto;
}
.agv-hero-video__title-highlight.title__highlight {
  font-size: 76px !important;
}

.agv-hero-video__top-title {
  width: 100%;
  position: relative;
  z-index: 3;
}

.agv-hero-video__title {
  margin: 0;
  font-size: clamp(44px, 6vw, 92px);
  color: #2ea7d8;
  font-weight: 800;
  text-transform: none;
  white-space: pre-line;
  text-shadow: 0px 3px 6px rgba(0, 0, 0, 0.78);
  /*text-align: end;*/
}

/* Bulle + flèche */
.agv-hero-video__top-bubble {
  transform: scale(0.5) rotate(-3deg);
  z-index: 3;
  display: flex;
  align-items: flex-start;
  flex-direction: column-reverse;
  pointer-events: none;
  margin-top: -96px;
  position: relative;
  left: -40px;
}

.agv-hero-video__bubble {
  display: flex;
  width: 180px !important;
  height: 180px !important;
  border-radius: 999px;
  background: #069ddc;
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 700;
  font-size: 30px !important;
  line-height: 1.1;
  padding: 14px;
  white-space: pre-line;
  transform: rotate(350deg);
}

.agv-hero-video__bubble-arrow {
  width: 70px;
  height: auto;
  display: block;
  position: relative;
  right: -190px;
  top: 43px;
}

/* MIDDLE : texte + search */
.agv-hero-video__middle {
  width: min(520px, 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin: 0 !important;
  margin-top: -72px !important;
}

.agv-hero-video__search-label {
  display: inline-block;
  margin-bottom: 12px !important;
  /*font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  font-size: 16px;*/
}

.agv-hero-video__search-row {
  width: 100%;
  display: inline-flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  background-color: #fff;
  border-radius: 8px;
  padding: 8px 8px 8px 26px;
}

.agv-hero-video__search-row::before {
  content: "";
  display: flex;
  position: absolute;
  width: 26px;
  height: 26px;
  margin-right: 0.5rem;
  background: url("./img/local-pointer.svg");
  background-repeat: no-repeat;
  background-size: contain;
  align-items: center;
  justify-content: center;
}

.agv-hero-video__search-input {
  height: 44px;
  border-radius: 8px;
  border: 0 !important;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.95);
  outline: none;
  color: #3b3b3b !important;
  width: 100% !important;
  position: relative;
  padding-left: 36px !important;
}

.agv-hero-video__search-btn {
  height: 44px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  background: #2ea7d8;
  color: #fff;
  font-weight: 400 !important;
  font-size: 16px;
  padding: 0 20px;
  position: relative;

  text-indent: -500px;
  overflow: hidden;
  width: fit-content !important;
}

.agv-hero-video__search-btn::before {
  content: "";
  background: url("./img/search-icone.svg");
  background-repeat: no-repeat;
  background-size: contain;
  display: block;
  position: absolute;
  height: 49px;
  width: 33px;
  background-position: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Buttons : 3 carrés */
/*.agv-hero-video__buttons {
  width: min(40vw, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: center;
}*/

.agv-hero-video__buttons {
  display: flex;
  flex-direction: column;
  row-gap: 18px;
}

.agv-hero-video__btn {
  text-decoration: none;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: #739b3e;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;

  border-radius: 10px;
  height: auto;
  padding: 20px 26px;
  max-width: 340px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.33);
}

.agv-hero-video__btn:first-child {
  background-color: rgba(59, 105, 50, 37%);
  backdrop-filter: blur(32px);
}

.agv-hero-video__btn:last-child {
  background-color: rgba(59, 105, 50, 37%);
  backdrop-filter: blur(32px);
}

.agv-hero-video__btn.is-center {
  background: #2ea7d8;
  transform: scale(1.1);
  cursor: initial;
}

.agv-hero-video__btn:hover {
  transform: translateY(-2px);
  background: #2ea7d8;
}

.agv-hero-video__btn-icon {
  width: 18%;
  height: auto;
  object-fit: contain;
  display: block;
}

.agv-hero-video__btn-text {
  font-size: 22px;
  text-align: left;
  font-family: "Russo One", sans-serif;
  font-weight: 400;
  font-size: 18px;
  text-align: center;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 0.6;
}

.agv-hero-video__btn.is-center .agv-hero-video__btn-text {
  gap: 0;
}
.agv-hero-video__btn-text span {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 15px;
}
.agv-hero-video__cloud {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(-57.142857%);
}

/* Responsive */

@media (min-width: 400px) {
  .agv-hero-video__title.elt-title--h1 {
    font-size: 34px;
  }
  .agv-hero-video__title-highlight.title__highlight {
    font-size: 100px !important;
  }
  .agv-hero-video__search-btn {
    text-indent: 0;
    overflow: visible;
    width: auto;
  }
  .agv-hero-video__search-btn::before {
    display: none;
  }
}

@media (min-width: 480px) {
  .agv-hero-video__title.elt-title--h1 {
    line-height: 0.5;
    text-align: right;
  }
}
@media (min-width: 768px) {
  .agv-hero-video__title.elt-title--h1 {
    font-size: 44px;
  }
  h1 .title__highlight,
  h1.elt-title--h1 .title__highlight {
    font-size: 130px !important;
  }

  .agv-hero-video__top-bubble {
    transform: scale(0.7) rotate(-3deg);
    margin-top: -66px;
    left: -12px;
  }
}

@media (min-width: 980px) {
  .agv-hero-video__middle {
    margin-top: 0 !important;
  }

  .agv-hero-video__title.elt-title--h1 {
    font-size: 60px;
  }
  h1 .title__highlight,
  h1.elt-title--h1 .title__highlight {
    font-size: 180px !important;
  }

  .agv-hero-video__search-row {
    padding: 8px;
    padding-left: 26px;
  }
  .agv-hero-video__btn {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 244px;
  }
  .agv-hero-video__btn-text {
    text-align: center;
  }

  .agv-hero-video__buttons {
    flex-direction: row;
    gap: 54px;
    font-size: 80px;
    margin-top: 20px;
    margin-top: 72px;
  }
  .agv-hero-video__btn-icon {
    width: 33%;
  }
  .agv-hero-video__top-bubble {
    transform: scale(1);
    margin-top: -42px;
    left: 14px;
    position: relative;
  }
  .agv-hero-video__bubble {
    transform: scale(1) rotate(-14deg);
  }

  .agv-hero-video__title-highlight.title__highlight {
    font-size: 10px !important;
  }

  .agv-hero-video__btn.is-center {
    height: 180px;
    background: #2ea7d8;
    transform: scale(1.3);
  }
}

@media (min-width: 1280px) {
  .agv-hero-video__top-bubble {
    margin-top: -139px;
    left: -44px;
  }
  .agv-hero-video__content {
    max-width: 1116px;
    padding: 105px 12px 160px 12px;
  }
  .agv-hero-video__title.elt-title--h1 {
    font-size: 72px;
  }
  .agv-hero-video__title-after {
    margin-left: 42px;
  }
  h1 .title__highlight,
  h1.elt-title--h1 .title__highlight {
    font-size: 230px !important;
  }
}

/*@media (max-width: 800px) {
  .agv-hero-video {
    min-height: 640px;
  }

  .agv-hero-video__top-bubble {
    position: static;
    transform: none;
    margin-top: 6px;
    justify-content: center;
    pointer-events: none;
  }

  .agv-hero-video__bubble-arrow {
    display: none;
  }
}

@media (max-width: 520px) {
  .agv-hero-video__buttons {
    grid-template-columns: 1fr;
  }

  .agv-hero-video__btn,
  .agv-hero-video__btn.is-center {
    height: 90px;
  }
}*/
