/* Animations pour affichage/masquage des vues principales */

:root {
    --wcs-primitive-color-primary: #065654;
    --wcs-primitive-color-neutral-0: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

html {
    background-color: var(--wcs-primitive-color-neutral-0);
    color: var(--wcs-primitive-color-primary);
}


@font-face {
    font-family: Avenir;
    font-weight: 200;
    src: url(../fonts/avenir-lighter.woff) format("woff");
    font-display: swap
}

@font-face {
    font-family: Avenir;
    font-weight: 400;
    src: url(../fonts/avenir-book.woff) format("woff");
    font-display: swap
}

@font-face {
    font-family: Avenir;
    font-weight: 500;
    src: url(../fonts/avenir-medium.woff) format("woff");
    font-display: swap
}

@font-face {
    font-family: Avenir;
    font-weight: 700;
    src: url(../fonts/avenir-bold-black.woff) format("woff");
    font-display: swap
}

@font-face {
    font-family: Avenir;
    font-weight: 600;
    src: url(../fonts/avenir-heavy.woff) format("woff");
    font-display: swap
}

html,
body {
    width: 100%;
    height: 100%;
    font-family: Avenir, Arial, sans-serif;
    margin: auto;
    padding: 0;
}

header {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 16px auto;
    width: 100%;
    gap: 16px;
}

.header-title {
    font-weight: bold;
    font-size: 20px;
    flex: 1;
    text-transform: uppercase;
    padding-left: 16px;
}

.header-logos {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.header-logos>img {
    height: 40px;
}

.header-branding-ef {
    margin-right: 16px;
    padding-right: 16px;
    border-right: #065654 1px solid;
}

.header-branding-ao {
    margin-right: 16px;
}

main,
footer {
    padding: 16px;
    align-items: center;
}


main {
    max-width: 640px;
    margin: 40px auto 0 auto;
    flex: 1;
}

footer {
    flex-shrink: 0;
    width: 100%;
    text-align: center;
    padding: 16px 0 8px 0;
    background: #f7fdf6;
    color: #747678;
    font-size: 14px;
    border-top: 1px solid #e0e0e0;
}


footer>a {
    color: #065654;
    text-decoration: none;
    font-size: medium;
    font-weight: 600;
    text-transform: uppercase;
}

footer>a:hover {
    text-decoration: underline;
}

p,
h1 {
    width: 100%;
    display: block;
    text-align: center;
}

p {
    font-size: x-large;
}


.stops-choices,
.choice-loader,
.choice-error,
.choice-success {
    display: flex;
    flex-direction: column;
    padding: 16px;
    align-items: center;
    gap: 16px;
    font-size: x-large;
}


.choice-loader>svg {
    width: 64px;
    height: 64px;
    margin: auto
}

.stops-choices>button, .choice-error>button {
    margin: 0px 16px 0px;
    min-width: 88px;
    text-align: center;
    display: inline-block;
    padding: 16px;
    background: var(--wcs-primitive-color-primary);
    font-family: 'Avenir', sans-serif;
    font-size: x-large;
    color: var(--wcs-primitive-color-neutral-0);
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
    flex: 1;
    border: none;
    border-radius: 4px;
}

.stops-choices-usage {
    width: 100%;
    text-align: center;
    font-weight: normal;
    font-size: x-large;
    margin-bottom: 16px;
}

.fade-view {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    will-change: opacity;
    display: none;
}

.fade-view.visible {
    opacity: 1;
    pointer-events: auto;
    display: flex;
}

/* Style from wcs*/

svg .dash-rotating-circle {
    stroke: var(--wcs-primitive-color-primary);
    stroke-width: 8px;
    stroke-linecap: round;
    animation: wcs-spinner-dash 1500ms ease-in-out infinite;
}

.dashed-background-circle {
    stroke: #d7d7d7;
    stroke-width: 7px;
    stroke-dasharray: 3, 3;
    stroke-dashoffset: 1;
    stroke-linecap: butt;
}

svg .infinite-rotation-container {
    animation: wcs-spinner-rotate 1500ms linear infinite;
}

@keyframes wcs-spinner-rotate {
    0% {
        transform: rotate(0deg);
        transform-origin: center center;
    }

    100% {
        transform: rotate(360deg);
        transform-origin: center center;
    }
}

@keyframes wcs-spinner-dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -131;
    }
}