@import url(view_contact.css); /* TODO: fusionner ce fichier avec view_contact.css si cette version est retenue */


.map-wrapper {
    margin-top: 80px;
    border: #11baec solid 3px;
    border-radius: 20px;
    overflow: hidden;
}


form {
    scroll-margin-top: 140px; /* sinon le titre h3 est caché par le menu après le scroll */
}
@media (min-width: 1280px) {
    form {
        scroll-margin-top: 100px;
    }
}


/**
 * Button nav to contact form
 */

.scroll-button {
    --right-hidden-px: -200px;

    opacity: 0;
    animation: btnSlideIn 600ms ease forwards 400ms;
    position: fixed;
    z-index: 100;
    top: 165px; /* `top` est modifié en JS quand l'utilisateur est après le formulaire */
    right: var(--right-hidden-px);
    display: flex;
    align-items: center;
    margin-right: -5px;
    padding: 10px 25px 10px 30px;
    width: 195px;
    height: 100px;
    font-size: 0.9em;
    font-weight: 600;
    color: white;
    background-color: #11baec;
    border-radius: 50px 0 0 50px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: margin-right 150ms ease, top 500ms ease;
}

@media (min-width: 1280px) {
    .scroll-button {
        top: 250px; /* `top` est modifié en JS quand l'utilisateur est après le formulaire */
    }
}


.scroll-button i.fa {
    font-size: 2.2em;
    transform: translateY(0);
    transition: transform 250ms normal;
}

.scroll-button:hover {
    margin-right: 0;
}

.scroll-button:hover  i.fa {
    transform: translateY(-5px);
    animation: arrowUpAndDown 400ms ease-in-out 150ms infinite alternate;
}

/** Inutile de sortir de la vue le bouton au delà de 1700px car il ne cache plus le contenu */
@media (max-width: 1700px) {
    .scroll-button--scrollToAnchorBtn-slide {
        opacity: 1;
        right: 0;
        animation: btnSlideOut 400ms ease forwards;
    }
}

@keyframes arrowUpAndDown {
  0% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(5px);
  }
}

@keyframes btnSlideIn {
    to {
        opacity: 1;
        right: 0;
    }
}

@keyframes btnSlideOut {
    to {
        opacity: 0;
        right: var(--right-hidden-px);
    }
}