:root {
    --ev-question-font: 'Roboto', sans-serif;
    --ev-question-comment-font: 'Roboto', sans-serif;
    --ev-body-font: 'Roboto', sans-serif;

    --ev-transition-fade: all 200ms ease-in-out;

    --ev-tile-radius: 5%;
    --ev-tile-height: 220px;
    --ev-tile-width: 260px;

    --ev-color-theme: #1f4041;
    --ev-color-light-green: #467171;
    --ev-color-dark-green: #306060;
    --ev-color-light-green-grey: #c9d3d6;
    --ev-color-light-grey: #f6f6f6;
    --ev-color-apple-nav-grey: #fafafccc;
    --ev-color-apple-tile-grey: #f5f5f7;
    --ev-color-border-grey: #d7d7d9;
}

/*
 * box-sizing : Permet de pvr emboîter correctement les éléments les uns dans
 * les autres sans débordement hors des limites.
*/

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

body {
    width: 100%;
    margin: 0px;
    background-color: #ffffff;
    font-family: var(--ev-body-font);
}

.ev_container {
    max-width: 880px;
    height: 100%;
    grid-area: main;
    display: flex;
    flex-direction: column;
    justify-self: center;
    overflow: visible;
}

.hide {
    opacity: 0;
    transform: translate(5%, 0);
}

.hide_prev {
    opacity: 0;
    transform: translate(-5%, 0);
}

.visible {
    opacity: 1;
    transform: translate(0, 0);
    transition: opacity .5s ease, transform .3s ease;
}

.ev_list {
   display: flex; 
   flex-direction: row;
   flex-wrap: wrap;
   justify-content: center;
   align-items: center;
   align-content: first baseline;
   padding: 10;
   margin-bottom: 8%;
}

.ev_list_type {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ev_list_type_text {
    text-transform: capitalize;
    font-size: 22px;
    font-weight: 300;
    color: black;
}
.ev_list_type_text:first-child {
    margin-top: 2%;
}

.ev_list_type .ev_list {
    margin-bottom: 2%;
}

.ev_list_type:last-child {
    margin-bottom: 8%;
}

/* Gère la tile; mais la partie la plus extérieure. */
.ev_tile {
    max-height: var(--ev-tile-height);
    height: var(--ev-tile-height);
    width: var(--ev-tile-width);
    max-width: var(--ev-tile-width);

    flex-grow: 0;
    flex-shrink: 0;

    border-style: solid;
    border-color: #fff;
    border-width: 2px;

    background: var(--ev-color-apple-tile-grey);
    /*background: linear-gradient(120deg, rgba(62,106,115,1) 10%, rgba(91,134,144,1) 85%);*/

    border-radius: var(--ev-tile-radius);
    margin: 6 6 6 6;
}

.ev_tile input {
    position: absolute;
    display: none;
}
.ev_tile:has(> input):before {
    content: "✓";

    width: 4px;
    height: 4px;

    position: relative;

    display: block;
    box-sizing: border-box;
    text-align: center;

    background: #00f572;
    color: #fff;

    font-size: 3px;

    border-radius: 50%;
    margin: 0;

    opacity: 0;
    transition: var(--ev-transition-fade);
}

.ev_tile:hover {
    transition: var(--ev-transition-fade);
}
.ev_tile:has(> input:checked)::before {
    opacity: 1;
    transform:scale(8);
    transition: var(--ev-transition-fade);
}

.ev_tile:has(> input:checked) {
    border-color: #00f572;
    transition: var(--ev-transition-fade);
}

.ev_question {
    font-family: var(--ev-question-font);
    text-align: center;

    font-size: 22px;
    font-weight: 400;
    font-style: normal;

    flex-basis: 2em;

}

.ev_question_comment {
    font-family: var(--ev-question-comment-font);
    text-align: center;

    font-size: 18px;
    font-weight: 150;

    flex-basis: 2em;

    padding: 1%;

}

/* Gère l'intérieur de la tile. */
.ev_tile_frame {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    border: 0;
    margin: 0;
    width: 100%;
    height: 100%;

    border-radius: var(--ev-tile-radius);

    cursor: pointer;
}

/* 
   Il contient l'image; ça permet de gérer la disposition sans toucher aux dimensions de l'image
   et sans devoir jouer avec les marges etc.
*/
.ev_tile_img_container {
    display: flex;
    flex-direction: row;
    /*flex: 1 1 0;*/
}
/* Les paramètres de l'image. */
.ev_tile_img {
    max-width:  80px;
    max-height: 80px;
    width: auto;
    height: auto;

    pointer-events: none;
    user-select: none;
}

/* Les paramètres du texte de l'image. */
.ev_tile_text {
    flex: 0 0 0;
    margin: 0;
    padding-top: 8%;
    padding-bottom: 6%;

    font-family: var(--ev-body-font);
    text-align: center;

    color: black;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
}

/*
 * =============  Button ===============
*/
.ev_button_container {
    align-items: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 1%;
    font-weight: 300;
    justify-self: center;
    z-index: 100;
}

#ev_button_next_id {
  background-color: #30e986;
  color: #fff;
}

.ev_button_disabled {
    background-color: #a7abb1;
    cursor: default;
}
.ev_button_disabled:hover {
    background-color: #a7abb1;
    cursor: default;
}

.ev_arrow_button {
    display: flex;
    color: #ffffff;
    padding: 14px 18px;
    transition: all .3s ease;
    /*font-weight: bold;*/
    font-family: "Roboto", sans-serif;
    cursor: pointer;
    align-items: center;
    font-size: 15px;
    justify-content: center;
    margin-right: 1%;
    margin-left: 1%;

    height: 50px;
    width: 160px;

    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.1) 0 2px 4px;
    pointer-events: auto;
    position: relative;
    text-align: center;
    touch-action: manipulation;
    border: 0;
}
.ev_arrow_button_right {
    /*background-image: linear-gradient(-180deg, #00D775, #00BD68);*/
    /*background-color: var(--ev-color-light-green);*/
}

.ev_arrow_button_right > .arrow {
    width: 6px;
    height: 6px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    position: relative;
    transform: rotate(-45deg);
    margin: 0 6px;
    transition: all .3s ease;
}
.ev_arrow_button_right > .arrow::before {
    display: block;
    background-color: currentColor;
    width: 3px;
    transform-origin: bottom right;
    height: 2px;
    position: absolute;
    opacity: 0;
    bottom: calc(-2px / 2);
    transform: rotate(45deg);
    transition: all .3s ease;
    content: "";
    right: 0;
}
.ev_arrow_button_right:hover > .arrow {
    transform: rotate(-45deg) translate(4px, 4px);
    border-color: text-hover-color;
}
.ev_arrow_button_right:hover > .arrow::before {
    opacity: 1;
    width: 8px;
}
.ev_arrow_button_right:hover {
    color: #fff;
    transform: scale(1.02);
}


.ev_arrow_button_left {
    background-color: #1e293b;
}

.ev_arrow_button_left > .arrow {
    width: 6px;
    height: 6px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    position: relative;
    transform: rotate(135deg);
    margin: 0 6px;
    transition: all .3s ease;
}

.ev_arrow_button_left > .arrow::before {
    display: block;
    background-color: currentColor;
    width: 3px;
    transform-origin: bottom right;
    height: 2px;
    position: absolute;
    opacity: 0;
    bottom: calc(-2px / 2);
    transform: rotate(45deg);
    transition: all .3s ease;
    content: "";
    right: 0;
}

.ev_arrow_button_left:hover > .arrow {
    transform: rotate(135deg) translate(4px, 4px);
    border-color: text-hover-color;
}

.ev_arrow_button_left:hover > .arrow::before {
    opacity: 1;
    width: 8px;
}

.ev_arrow_button_left:hover {
    /*background-color: #1e293b;*/
    color: #fff;
    transform: scale(1.02);
}

/*
 * ============= Input ===============
*/

.dropdown_item {
    width: 100%;
    padding: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.069);
}
.dropdown_item:hover {
    background: rgb(235, 235, 235);
}
.ev_input_field {
    color: rgba(0,0,0,1);
    border-bottom-color: rgba(0,0,0,.42);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: .009375em;
    text-decoration: inherit;
    text-transform: inherit;
    align-self: flex-end;
    box-sizing: border-box;
    width: 100%;
    padding: 20px 16px 6px;
    transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-bottom: 1px solid;
    border-radius: 4px 4px 4px 4px;
    background: rgb(245, 245, 245);
    height: 56px;
    z-index: 100;
    position: relative;
    border-width: 1px;
    border-style: solid;
    border-color:rgb(235, 235, 235);
}
.ev_input_field:hover {
    /*border-bottom-color: rgba(0,0,0,.87);*/
    background: #ececec;
}
.ev_input_field:focus{
    border-color: #96c8da;
}

.input_choice_pane {
    z-index: 99;
    color: rgba(0,0,0,1);
    border-color: #96c8da;
    border-style: solid;
    border-width: 1px;
    border-radius: 0px 0px 4px 4px;
    border-top: none;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: .009375em;
    text-decoration: inherit;
    text-transform: inherit;
    align-self: flex-end;
    box-sizing: border-box;
    width: 100%;
    /*transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);*/
    /*border: none;*/
    /*border-bottom: 1px solid;*/
    /*border-radius: 4px 4px 0 0;*/
    background: rgb(245, 245, 245);
    /*height: 56px;*/

    position: relative;
    /*top: -56px;*/
    opacity: 0;

    height:fit-content;
    max-height: 180px;
    overflow: auto;
}

.input_dropped {
    border-top: solid;
    border-left: solid;
    border-right: solid;
    border-bottom: none;
    border-width: 1px;
    border-color: #6200ee;

    border-radius: 4px 4px 0 0;
}

.input_choice_dropped {
    transition: height .1s ease-in, opacity .1s ease-in;
    opacity: 1;
    /*padding-top: 60px;*/
}

input:focus{
    outline: none;
}

/****/

.ev_main_container {
    display: grid;
    grid-template-rows: 14% 1fr 8fr 6%;

    grid-template-areas: 
      "header"
      "top"
      "main"
      "button";

    width: 100%;
    height: 100%;

    align-items: center;
    overflow: auto;;
}

.ev_top {
    grid-area: top;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2%;
}
.ev_top_highlight {
    text-align: center;
    font-family: var(--ev-body-font);
    font-weight: 300;
    font-size: 28px;
    padding: 10px;
}
.ev_top_highlight span {
    font-weight: 500;
}

.ev_top .aides_count {
    font-weight: 500;
}

.ev_top .aides_subtitle {
    font-weight: 300;
    font-size: 20px;
    display: block;
    margin-top: 1%;
}

.contact_form_container input {
    font-family: var(--ev-body-font);
    font-weight: 100;
    margin-bottom: 50px;
}

input {
    font-family: var(--ev-body-font);
    font-weight: 300;
    font-size: 1em;
}

.alert {
    position: fixed;
    bottom: 10%;

    padding: 20px;
    background-color: #f44336;
    color: white;
    justify-self: center;
    opacity: 0;

    border-radius: 10px;

    transition: opacity .1s ease-in, transform .1s ease-in;

    z-index: 99;
    left: 50%;
    transform: translate(-50%, 130%);

    display: flex;
    align-items: center;
    text-align: center;
}

.alert.alert-is-shown {

    transition: opacity .2s ease-out, transform .1s ease-out;
    
    transform: translate(-50%, 0);
    opacity: 1;
    left: 50%;
  }

.closebtn {
  margin-left: 15px;
  color: white;
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.closebtn:hover {
  color: black;
}

.ev_contact_pane {
    display: flex;
    flex-direction: column;
    color: #000;

    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    align-items: center;

    border: 1px solid #e7e5e5;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    margin-bottom: 5px;
}

.ev_contact_pane span {
    /*padding: 15px;
    padding-top: 10px;*/
    font-weight: 400;
    margin-top: 5px;
    margin-bottom: 5px;
}

a:has( > #ev_button_contact) {
    text-decoration: none;
}

#ev_button_contact {
  /*background-image: linear-gradient(-180deg, #03A9F4, #3F51B5);*/
  /*background-color: #4d5caf;*/
  background-color: rgb(77, 112, 182);
  color: #fff;
  width: 200px;
  height: 60px;
  margin-top: 10px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

#ev_button_contact .arrow {
    width: 8.5px;
    height: 7.5px;
}

#ev_button_contact:hover {
  /*background-color: #1f4041;
  color: #fff;*/
}

.ev_input_container {
    margin-top: 3%;
    margin-left: auto;
    margin-right: auto;
    width: 98%;
}

.progressbar-container {
    margin-top: 2%;
    margin-bottom: 2%;
    width: 70%;
}

.progressbar {
    /*margin: 50px 0 50px 0;*/
    counter-reset: step;

    grid-row-start: 2;
    grid-column-end: 2;

    width: 100%;
}
.progressbar li {
    list-style-type: none;
    width: 20%;
    float: left;
    font-size: 12px;
    font-weight: 300;
    position: relative;
    text-align: center;
    text-transform: uppercase;
    color: #a7abb1;
}
.progressbar li:before {
    width: 25px;
    height: 25px;
    content: '';
    line-height: 27px;
    border: 2px solid var(--ev-color-apple-tile-grey);
    background-color: var(--ev-color-apple-tile-grey);
    display: block;
    text-align: center;
    margin: 0 auto 10px auto;
    border-radius: 50%;
    transition: all .8s;
    color: white;
}
.progressbar li:after {
    width: 100%;
    height: 10px;
    content: '';
    position: absolute;
    background-color: var(--ev-color-apple-tile-grey);
    top: 10px;
    left: -50%;
    z-index: -1;
    transition: all .8s;
}
.progressbar li:first-child:after {
    content: none;
}

.progressbar li.active + li:after {
    background-color: #00f572;
}

.progressbar li.active + li:before {
    border-color: #00f572;
}

.progressbar li.active:before {
    border-color: #00f572;
    background-color: #00f572;
    transition: all .8s;
    content: "✓";
    position: relative;
    font-size: 20px;
    line-height: 26px;
    /*top: -26px;
    left: -21px;*/
}
.progressbar li.active:after {
    background-color: #00f572;
    transition: all .8s;
}

.progressbar li.active {
    color: #03c95f;
}

.banner-container {
    grid-area: header;
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 999;
    align-items: center;
    box-shadow: rgba(17, 17, 26, 0.1) 0px 1px 0px;
    justify-content: space-between;
}

.logo img {
    width: 200px;
    height: auto;
    z-index: 1000;
    margin-bottom: 2%;
    margin-left: 40px;
    padding: 10px;
    transition: width .1s ease-in;
}

.home_button img {
    width: 60px;
    height: auto;
    z-index: 1000;
    margin-bottom: 2%;
    margin-right: 40px;
    padding: 10px;
    transition: width .1s ease-in;
}



@media (min-width:1281px) { /* hi-res laptops and desktops */}

@media (max-width:1025px) { /* big landscape tablets, laptops, and desktops */ }

@media (max-width:801px)  { /* tablet, landscape iPad, lo-res laptops ands desktops */
    .progressbar li {
        font-size: 0.7em;
    }

    .progressbar-container {
        width: 100%;
        margin-bottom: 3%;
    }
}

@media (max-width:600px)  { /* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */
    .progressbar li p {
        display: none;
    }

    .ev_list {
        margin-bottom: 70px;
    }
}

@media (max-width:480px)  { /* smartphones, Android phones, landscape iPhone */

    .ev_top {
        font-weight: 300;
        font-size: 2em;
    }

    .ev_tile {
        /*width: 80%;*/
        height: 120px;
        border-radius: 20px;
    }
    .ev_tile_frame {
        border-radius: 20px;
    }

    .ev_tile_text {
        font-size: 0.9em;
        padding-top: 4%;
        padding-bottom: 1%;
    }
    .ev_list {
        margin-bottom: 100px;
    }

    .ev_container {
        height: fit-content;
        padding: 4%;
    }

    .ev_button_container {
        bottom: 30px;
        justify-self: center;
        left: 1vw;
        width: 100%;
    }

    .ev_arrow_button {
        min-width: 115px;
        min-height: 50px;
    }

    .ev_tile_img {
        max-width: 50px;
        max-height: 50px;
    }

    .ev_main_container {
        align-items:flex-start;
    }

    .contact_form_container {
        margin-bottom: 100px;
    }

    .ev_input_field {
        font-size: 0.9em;
    }

    .ev_contact_pane {
        text-align: center;
        flex-direction: column;
        width: 80%;
        min-width: 225px;
        visibility: hidden;
    }

    .ev_contact_pane a {
        visibility: visible;
    }
  
    .ev_contact_pane span {
    }

    .ev_top .aides_subtitle {
        font-size: 18px;
        margin-top: 2%;
    }

    .alert {
        bottom: 13%;
        width: 200px;
        font-size: 15px;
        display: flex;
        align-items: center;
        text-align: center;
    }

    .ev_list_type:last-child {
        margin-bottom: 100px;
    }

    .input_choice_pane {
        height: 120px;
    }
    .dropdown_item {
        font-size: 14px;
    }

    .logo img {
        width: 160px;
    }
}

@media (max-width:320px)  {
    /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */
}