@import url('../fonts/satoshi.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* background: #bce4fa url('../background.jpg'); */
    background-color: #d6edf7;
    font-family: 'satoshi',arial,sans-serif;
    background-size: cover;
    background-attachment: fixed;
}

main {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

a {
    color: #25325d;
}

.logo-accoord {
    width: 150px;
}

.numero {
    padding: .5em 1em;
    background: #dbdbdb;
    border-radius: 50%;
    margin-right: 1em;
    color: white;
}

.complete span.numero {
    background: white;
    color: #25325d;
}

.notice {
    clear: both;
    padding: 0 0.5rem;
    font-size: 0.8rem;
    color: grey;
    text-align: left;
}

.notice2 {
    clear: both;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: grey;
    text-align: center;
}

.center, #zero .center {
    text-align: center;
}

.clear {
    clear: both;
}

.lstart {
    clear: left;
}

.tooltip {
    border-bottom: 1px dashed black;
}

.capital {
    text-transform: capitalize;
    display: inline-block;
}

.step-active span.numero {
    background: white;
    color: #ffcc00;
}

#stepper {
    display: none; /* when visible: flex */
    padding: 0;
    list-style: none;
    margin-top: 2rem;
    margin-bottom: 2rem;
    /* box-shadow: 0.2rem 0.2rem 0.5rem rgba(51, 51, 51, 0.2); */
}

.stepper__item {
    padding: 20px 20px 20px 40px;
    background: repeating-linear-gradient(
            -65deg,
            #fff,
            #fff 20px,
            #fcfcfc 20px,
            #fcfcfc 40px
    );
    margin: 0 0 0 -19px;
    -webkit-clip-path: polygon(20px 50%, 0% 0%, calc(100% - 20px) 0%, 100% 50%, calc(100% - 20px) 100%, 0% 100%);
    clip-path: polygon(20px 50%, 0% 0%, calc(100% - 20px) 0%, 100% 50%, calc(100% - 20px) 100%, 0% 100%);
}

.stepper__item.step-active {
    background: #ffcc00;
    font-weight: bold;
    color: white;
}

.stepper__item.complete {
    background: #25325d;
    color: white;
}

.stepper__item:first-child {
    padding: 20px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    -webkit-clip-path: polygon(0% 0%, calc(100% - 20px) 0%, 100% 50%, calc(100% - 20px) 100%, 0% 100%);
    clip-path: polygon(0% 0%, calc(100% - 20px) 0%, 100% 50%, calc(100% - 20px) 100%, 0% 100%);
}

.stepper__item:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    -webkit-clip-path: polygon(20px 50%, 0% 0%, 100% 0%, 100% 100%, 0% 100%);
    clip-path: polygon(20px 50%, 0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.step--1 {
    margin: 0;
}

#forms-container {
    position: relative;
    width: 100vw;
    max-width: 1000px;
}

.form {
    margin: 0 1rem 1rem 1rem;
    border-radius: 15px;
    background: #fff;
    text-align: center;
    box-shadow: 0.2rem 0.2rem 0.5rem rgba(51, 51, 51, 0.2);
    display: none;
    position: absolute;
    width: calc(100% - 2rem)
}

.form--header-container {
    background: #25325d;
    color: #fff;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.form--header-title {
    font-size: 1.4rem;
}

.form--header-text {
    padding: 0.5rem;
}

#zero {
    margin-top: 2rem;
    padding: 1rem;
}

#zero h1 {
    font-size: 1.5rem;
    margin: 1rem;
    margin-top: 0;
}

#zero h2 {
    font-size: 1.3rem;
    margin-top: 1rem;
    text-align: left;
}

#zero p {
    margin: 5px 0;
    text-align: left;
}

#zero #loading {
    font-size: 2rem;
    margin: 1.5rem;
}

#zero #error, #souhaits-error, #inscription-error {
    color: #a01111;
}

#zero #too-late {
    display: none;
}

#zero #too-soon {
    display: none;
}

#zero #countdown {
    color: #25325d;
    font-size: 2rem;
    margin: 1.5rem;
}

#zero ul {
  text-align: left;
  margin: 0 1rem;
  display: inline-block;
}

#zero footer {
    margin: 1rem;
    font-size: 0.7rem;
}

#start-button {
    display: none;
}

#parents h2, #enfants h2 {
    margin: 1rem;
    margin-bottom: 0;
    font-size: 1rem;
}

#date_naissance_err, #date_naissance_copain_err {
  color: #a01111;
  padding: 1rem;
  display: none;
}

button#enfant-new {
    border: 1px solid #ffcc00;
    background-color: #ffcc00;
    border-radius: 20px;
    color: #2b2d42;
    outline: none;
    padding: 0.8rem 1rem;
    margin: 1rem auto;
    font-weight: 700;
    padding-left: 45px;
    position: relative;
}

button#enfant-new::before {
    left: 0.7rem;
    top: 8px;
    position: absolute;
    display: block;
    content: '';
    width: 24px;
    height: 21px;
    background-image: url(data:image/gif;base64,R0lGODlhGAAVAMZUACstQjIxQkQ9QU9EQFFFQFJHQFZJQFhKP1tNP15PP2VUPmhXPmpYPmtYPnVgPXdiPH1mO4JqO41yOY5zOY90OZJ2OJN3OJR4OJZ5OJh7N5l8N6CBNqOENaeGNKeHNKyLM62LMq6MMrOQMbWSMLmUL7qVL7uWL8CaLcWeK8igK8ihKsuiKc2lKM+mKNGnJ9GoJ9KpJtOpJtSqJtarJdesJNetJNmuI9quI9uvI9ywIt6yIeCzIOK1HuW3Hea4HOm7Guq7Gey9GO2+F++/Fe/AFfHBE/HBFPLBE/LCEvfGDPjHC/nICfrICPvJBvzJBvzKBP3KBP3LA/7LAv/MAP///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////yH+EUNyZWF0ZWQgd2l0aCBHSU1QACH5BAEKAH8ALAAAAAAYABUAAAe9gFOCg4I9IxseKEmEjI1TTRwAkpIDNo6XGpOaATqXjDOaoQpRnoMYoaE5pYINqJoqgwAtjguukymxs40VtpI3QxkZABAZK4wuvQhORR8gABIfMo0UtjWEso1JREwWoQItUEBSggYxhEUXkiFLOB0REyZHPg8ABSeNSgyaByQ8RkE0MmkiwUhEL1sBhAx6MuCgrRGDdji05WAQi4m2BsHAiIrAICQcQ2kgVCKkpAQ/GP1AMaKly5cuSbxQQigQADs=);
}

button#enfant-new:focus {
    border: 1px solid #04083e;
}

button#enfant-new:hover {
    box-shadow: 0 0 10px rgb(0 0 0 / 50%);
    transform: scale(1.05);
}


#enfants-list ul {
    list-style: none;
}

#enfants-list li {
    width: 35%; /* see @media below */
    margin: 0.5em;
    margin-left: auto;
    margin-right: auto;
    border-radius: 15px;
    background-color: #e3f0f5;
    padding: 0.5em 0.75em;
    text-align: left;
}

#enfants-list li.confirmed {
    background-color: #dcffdd;
}

#enfants-list li.possible {
    background-color: #a0c6ff;
}

#enfants-list .content > * {
    display: block;
}

#enfants-list .naissance, #souhaits-enfants .naissance {
    color: gray;
}


#enfants-list ul button {
    margin-left: 0.5em;
    margin-bottom: 1em;
    float: right;
    border: 0;
    background-color: transparent;
    color: gray;
    font-size: 1.2rem;
}

#enfants-list ul button:hover {
    color: black;
}

#souhaits-enfants .enfant {
    background-color: #e3f0f5;
    border-radius: 15px;
    padding: 0.5em 0.7em;
    text-align: left;
    overflow: auto;
    margin: 1rem;
}

#souhaits-enfants .souhait > select {
    width: calc(50% - 1rem);
}

#souhaits-enfants .ident {
    width: 30%;
    float: left;
}

#souhaits-enfants .souhait {
    width: 70%;
    float: left;
}

#souhaits-enfants .message {
    clear: both;
    text-align: center;
    border-radius: 10px;
    padding: 0.25rem 0.5rem;
}

#souhaits-enfants .message::before {
    margin-right: 0.2em;
}

#souhaits-enfants .message.ok {
    background-color: #dcffdd;
}

#souhaits-enfants .message.ok::before {
    content: '✓ ';
    color: darkgreen;
}

#souhaits-enfants .message.ko {
    background-color: #ffdcdc;
}

#souhaits-enfants .message.ko::before {
    content: '✖ ';
    color: darkred;
}

#souhaits-enfants .message.ko a {
    color: darkred;
}

#souhaits-enfants .message.possible {
    background-color: #a0c6ff;
}

#souhaits-enfants .message.possible::before {
    content: '✓ ';
    color: darkblue;
}

#souhaits-info {
    display: none;
    padding: 1rem;
}

#souhaits-info hr {
    margin: 1em 0;
    color: lightgrey;
}

form .footer-ctrls {
    padding: 0 0.5rem;
    margin-top: 1rem;
}

p.warning {
    padding: 0 0.5rem;
    margin-top: 1rem;
    color: darkred;
}

#end {
    margin-top: 2rem;
    padding: 1rem;
}

#end .end-state {
    display: none;
}

#end p {
    margin: 5px 0;
}

#end .logo-accoord-container {
    margin-top: 1rem;
}

#pay-container {
    background-color: #e3f0f5;
    border-radius: 15px;
    padding: 0.5em 0.7em;
    margin: 1rem;
}

#pay-container p {
    font-weight: bold;
}

.input-check {
    display: inline-block;
    font-size: 14px;
}

.input-check input {
    vertical-align: middle;
    margin-left: 5px;
}

.input-check,
input[type='text'],
input[type='tel'],
input[type='email'],
input[type='date'],
select,
.textarea {
    padding: .8rem;
    margin: .5em;
    outline: none;
    border: 1px solid #bdbdbb;
    border-radius: 20px;
    width: calc(100% - 1rem);
    background: white;
}

input[type='text']:focus,
input[type='tel']:focus,
input[type='email']:focus,
input[type='date']:focus,
select:focus,
.textarea:focus {
    border: 1px solid #04083e;
}


input[type='text']:disabled,
input[type='tel']:disabled,
input[type='email']:disabled,
input[type='date']:disabled,
select:disabled,
.textarea.disabled {
    background-color: #eee;
}

.textarea {
    font-family: Arial;
    font-size: 13.333px;
    min-height: 3em;
}

label.lbl {
    float: left;
    padding: .8rem .8rem 0 .8rem;
    margin: 0 calc(.5em + 1px);
    font: 400 13.3333px Arial;
    color: #757575;
}


.form__btn {
    background-color: #04083e;
    border: 1px solid #04083e;
    border-radius: 30px;

    color: white;
    outline: none;
    padding: 0.8rem 1rem;
    width: 7rem;
    margin: 1rem 0.25rem;
    font-weight: 700;
    cursor: pointer;
}

.form__btn.secondary {
    background-color: white;
    color: black;
}

.form__btn:focus {
    border: 1px solid #ffcc00;
}

.form__btn:hover {
    box-shadow: 0 0 10px rgb(0 0 0 / 50%);
    transform: scale(1.05);
}

.btn__large {
    font-size: 1rem;
    width: auto;
}

.btn__wide {
    width: auto;
}

.form__btn:disabled {
    border: 1px solid lightgrey;
    background-color: lightgrey;
    cursor: default;
}

.form-active {
    z-index: 1000;
    display: block;
}

.form-active-animate {
    animation: moveRight 0.5s;
}

.form-inactive {
    display: block;
    animation: moveLeft 1s;
}

@keyframes moveRight {
    0% {
        transform: translateX(27rem) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateX(0rem) scale(1);
        opacity: 1;
    }
}

@keyframes moveLeft {
    0% {
        transform: translateX(0rem) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-27rem) scale(0.9);
        opacity: 0;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.pad-left {
    padding-left: 0.5rem;
}

/* GRILLE */
.w0 {
    width: auto; /* pratique pour certains inputs */
}

.w25 {
    width: 25%;
    float: left;
}

.w33 {
    width: 33%;
    float: left;
}

.w50 {
    width: 50%;
    float: left;
}

.w75 {
    width: 75%;
    float: left;
}

.w100 {
    width: 100%;
    float: left;
}

/* BREAKPOINTS */
@media only screen and (max-width: 767px) {
    .w25 {
        width: 50%;
        float: left;
    }

    .w33 {
        width: 50%;
        float: left;
    }

    .w50 {
        width: 100%;
        float: left;
    }

    .w75 {
        width: 100%;
        float: left;
    }

    body {
        background-size: auto;
    }

    .label {
        display: none;
    }

    .numero {
        margin-right: 0;
    }

    #stepper {
        border-radius: 10px;
        background-color: #738a98;
        padding: 1px;
        margin-top: 0;
        margin-bottom: 5px;
        width: calc(100% - 2rem);
    }

    .stepper__item {
        flex: 100%;
    }

    .stepper__item:first-child {
        padding: 20px 20px 20px 15px;
    }

    .stepper__item {
        padding: 20px 20px 20px 27px;
        text-align: center;
    }

    .stepper__item:last-child {
        padding: 20px 15px 20px 27px;
    }

    #enfants-list li {
        width: 90%;
    }

    #souhaits-enfants .souhait > select {
        width: calc(100% - 1rem);
    }

    #souhaits-enfants .ident {
        width: 100%;
    }

    #souhaits-enfants .souhait {
        width: 100%;
    }

}
