/* 
-- LAYOUT             
-- CONTENT            
-- FORMS
-- COMPONENTS    
-- UTILITIES                 
*/

:root {
    --bs-body-bg: #F8F8FB; 
    --bs-body-line-height: 1.7;
    --bs-heading-color: #1D1F21;

    --bs-body-font-family: "Outfit", var(--bs-font-sans-serif);

    --bs-primary: #83c921;
    --bs-secondary: var(--grass);
    --bs-secondary-rgb: 72, 129, 94;

    --bs-link-color: rgb(72 129 94);
    --bs-link-color-rgb: 72, 129, 94;
    --bs-link-hover-color: rgb(34 81 52);
    --bs-link-hover-color-rgb: 34, 81, 52;

    --cta-color-light: rgb(192,255,209); 
    --cta-color: rgb(146,255,175);
    --cta-color-hover: rgb(153,249,233);
    --cta-color-gradient: linear-gradient(56deg, rgb(230 242 126) 0%, rgb(132 242 142) 100%);
    --cta-color-gradient-hover: linear-gradient(56deg, rgba(122,233,151,1) 0%, rgba(125,229,211,1) 100%);

    --list-spacer-left: 2.5rem;
    --bullet-size: 1.75rem;

    --green: #1DAEA9;
    --light-green: #9BC412;
    --pink: #F65587;
    --blue: #4493B7;
    --brown: #C55551;
    --yellow-light: #f5f1e3;
    --green-light: #eaf5f0;
    --grass: #48815e;
    --danger:#a30015;
    --danger-light: #ffdee1;
    --warning: #6b4514;
    --warning-light: #ffefd4;
    --success: #095f37;
    --success-light: #ccfdd4;
    --info: #1c3e7f;
    --info-light: #ccf0fd;
    --light: #e1e9eb;
    --grey: #3e5459;
}  

/* LAYOUT */  

/* CONTENT */  

/* Typography */

.h1, h1 {
    font-weight: 200;
}

.h1 span, h1 span{
    font-weight: 600;
    color: var(--bs-secondary);
}

h2, .h2, h3, .h3 {
    font-weight: 600;
}

@media (min-width: 1200px) {
    .h1, h1 {
        font-size: 3.8rem;
    }
}

a:hover{
    text-decoration: none;
}

/* Adress-suggestions */

.address-suggestions{
    background-color: #fff;
}

/* Skills */

.skill-area-activation{
    display: block;
    height: 26px;
    width: 26px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.075);
}

.skill-area button[aria-expanded="true"]{
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 1px solid #fff;
}

button[aria-expanded="true"] .skill-area-activation{
    background-color: var(--bs-secondary);
    position: relative;
    overflow: hidden;
}

button[aria-expanded="true"] .skill-area-activation:after{
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='m9.55 18l-5.7-5.7l1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4z'/%3E%3C/svg%3E");
    position: absolute;
    display: flex;
    height: 26px;
    width: 26px;
    top: 2px;
    align-items: center;
    justify-content: center;
}

/* FORMS */

/* Form Control */

.form-control,
.form-select,
.ts-wrapper .ts-control {
    --bs-border-color: #c0c7cd;
    background-color: #fff;
    padding: .65rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #60c765;
    box-shadow: 0 0 0 .25rem rgb(199 252 150 / 30%)
}

.col-auto .form-select{
    min-width: 200px;
}

/* Form Check */

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.form-check-input:focus {
    border-color: #8deeeb;
    outline: 0;
    box-shadow: 0 0 0 .2rem rgb(29 174 36 / 20%);
}

/* Form Switch */

.form-switch {
    padding-left: 3.5em;
}

.form-switch .form-check-input {
    width: 2.5em;
    margin-left: -3.5em;
    height: 1.5em;
}

.form-switch .form-check-input:focus {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23e0fffe'/%3e%3c/svg%3e");
}

/* COMPONENTS */  

/* Badges */

.badge{
    --bs-badge-font-size: 0.85em;
    font-weight: 500;
}

.badge-success{
    background-color: var(--success-light);
    color: var(--success);
}

.badge-info{
    background-color: var(--info-light);
    color: var(--info);
}

.badge-light{
    background-color: var(--light);
    color: var(--grey);
}

.badge-warning{
    background-color: var(--warning-light);
    color: var(--warning);
}

.badge-danger{
    background-color: var(--danger-light);
    color: var(--danger);
}


/* Buttons */

.btn {
    --bs-btn-padding-x: 1.2rem;
    --bs-btn-padding-y: .65rem;
}

.btn-group-lg>.btn, 
.btn-lg {
    --bs-btn-padding-y: .75rem;
    --bs-btn-padding-x: 1.25rem;
    --bs-btn-font-size: 1.1rem;
    --bs-btn-border-radius: var(--bs-border-radius);
}

.btn-primary {
    --bs-btn-color: #262B30;
    --bs-btn-bg: var(--cta-color);
    --bs-btn-border-color: none;
    --bs-btn-hover-color: #262B30;
    --bs-btn-hover-bg: var(--cta-color-hover);
    --bs-btn-hover-border-color: none;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #262B30;
    --bs-btn-active-bg: var(--cta-color);
    --bs-btn-active-border-color: none;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #676c71;
    --bs-btn-disabled-bg: var(--cta-color-light);
    --bs-btn-disabled-border-color: none;
    --bs-btn-font-weight: 500;
    background: var(--cta-color-gradient);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease-in-out;
}

.btn-primary:not(.btn-offset):hover {
    padding-left: calc(var(--bs-btn-padding-x) + .5rem);
    padding-right: calc(var(--bs-btn-padding-x) + .5rem);
}

/* btn-secondary */

.btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #37653c;
    --bs-btn-border-color: #37653c;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1d3f20;
    --bs-btn-hover-border-color: #1d3f20;
    --bs-btn-focus-shadow-rgb: 130, 138, 145;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1d3f20;
    --bs-btn-active-border-color: #1d3f20;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #37653c;
    --bs-btn-disabled-border-color: #37653c;
}

/* btn-light */

.btn-light {
    --bs-btn-bg: #f1f1f7;
    --bs-btn-border-color: #f1f1f7;
}

/* btn-link */

.btn-link:hover{
    text-decoration: none;
}

/**/

.btn-offset svg{
    width: 0;
    overflow: hidden;
    transition: all .15s ease-in-out; 
}

.btn-offset:hover svg{
    width: 20px;
    margin-right: .5rem;
}

/* Btn-circle */

.btn-circle{
    padding: .75rem !important;
    border-radius: 2rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;  
}

/* Card */

.card{
    --bs-card-spacer-y: 1.5rem;
    --bs-card-spacer-x: 1.5rem;
    --bs-card-bg: rgba(255,255,255,1);
    --bs-card-border-width: 0;
    --bs-card-border-radius: var(--bs-border-radius-xl);
    --bs-card-box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);;
    box-shadow: var(--bs-card-box-shadow);
}

.card-hover h2{
    transition: all .15s ease-in-out;
}

.card-hover img{
    transition: all .15s ease-in-out;
}

.card-hover:hover img{
    transform: scale(1.1);  
}

@media screen and (min-width: 992px) {
    .card{
        --bs-card-spacer-y: 2.5rem;
        --bs-card-spacer-x: 2.5rem;
    } 
}

/* Offer card */

.offer-card {
    --bs-card-color: #3a3b41;
}

.offer-card .card-body{
    display: flex;
    flex-direction: column;
}

.offer-card h2{
    font-size: 1.5rem;
    font-weight: 500;
}

.offer-card strong{
    color: var(--bs-heading-color);
    font-weight: 500;
}

.offer-card .card-body > *:last-child{
    margin-bottom: 0;
}

/* List */

ul.styled,
ol.styled {
    padding: .25rem 0 .25rem var(--list-spacer-left);
}

ul.styled > li,
ol.styled > li {
    position: relative;
    min-height: 2rem;
    padding-top: .25rem;
    list-style-type: none;
}

ul.styled > li:not(:last-child),
ol.styled > li:not(:last-child) {
    margin-bottom: 1rem;
}

ol.styled > li {
    counter-increment: step-counter;
}

ul.styled > li:before{
    content: '';
    position: absolute;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="%23680928" d="M8.59 16.59L13.17 12L8.59 7.41L10 6l6 6l-6 6z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    background-color: rgb(255 182 71);
    border-radius: 50%;
    left: calc( 0px - var(--list-spacer-left) );
    /* margin-top: .25rem; */
    height: var(--bullet-size);
    width: var(--bullet-size);
    font-size: 1rem;
    line-height: 1rem;
}

ol.styled > li:before {
    --ol-bullets-bg-color: rgb(255 182 71);
    --ol-bullets-color: rgb(104 9 40);
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    left: -2.75rem;
    content: counter(step-counter);
    font-size: 80%;
    background-color: var(--ol-bullets-bg-color);
    color: var(--ol-bullets-color);
    font-weight: 700;
    padding: 3px 8px;
    border-radius: .25rem;
    height: var(--bullet-size);
    width: var(--bullet-size);
    left: calc( 0px - var(--list-spacer-left) );
}

ul.styled > li:after,
ol.styled > li:after {
    content:'';
    position: absolute;
    display: flex;
    left: calc( -1px - var(--list-spacer-left) + var(--bullet-size) / 2 );
    bottom: 0;
    height: calc(100% - 2.5rem);
    border-left: 1px solid currentcolor;
    opacity: .5;
}

@media (max-width: 991px) {
    :root {
        --list-spacer-left: 1.5rem;
        --bullet-size: 1rem;
    }
}

/* Modal */

.modal {
    --bs-modal-header-bg: #fff;
    --bs-modal-header-border-width: 0;
    --bs-modal-footer-bg: #fff;
    --bs-modal-footer-border-width: 0;
}

.modal-header {
    background-color: var(--bs-modal-header-bg);
}

.modal-footer {
    justify-content: space-between;
}

/* action-list */

ul.action-list{
    padding-left: .5rem;
}

ul.action-list > li:first-child{
    margin-top: 1rem;
}

ul.action-list > li:not(:last-child){
    margin-bottom: .5rem;
}

ul.action-list > li{
    display: inline-flex;
    width: 100%;
    align-items: center;
}

ul.action-list > li .btn,
ul.action-list > li form{
    margin-left: auto;
}

/* UTILITIES */

label.required:after {
    content: "*";
    margin-left: 0.25em;
}

/* Colors */

.bg-yellow-light {
    background-color: var(--yellow-light) !important;
}
.bg-green-light {
    background-color: var(--green-light) !important;
}

.bg-img-yellow-light {
    background: url("../images/bg-yellow-light-KLYXe7v.svg"), #fff;
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
}

.bg-grass{
    background-color: var(--grass) !important;
}

.bg-leaf{
    background-image: url("../images/bg-leaf-pl6j1QJ.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 90%;
}

/* Hover */

.transition-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.transition-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

/* Spacing */

.my-lg{
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;   
}

.mt-lg{
    margin-top: 2rem !important;
}

.mb-lg{
    margin-bottom: 2rem !important;
}

.py-lg{
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;   
}

.pt-lg{
    padding-top: 2rem !important;
}

.pb-lg{
    padding-bottom: 2rem !important;
}

.my-xl{
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;   
}

.mt-xl{
    margin-top: 3rem !important;
}

.mb-xl{
    margin-bottom: 3rem !important;
}

.py-xl{
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;   
}

.pt-xl{
    padding-top: 3rem !important;
}

.pb-xl{
    padding-bottom: 3rem !important;
}

@media screen and (min-width: 992px) {

    .my-lg{
        margin-top: 5rem !important;
        margin-bottom: 5rem !important;   
    }

    .mt-lg{
        margin-top: 5rem !important;
    }
    
    .mb-lg{
        margin-bottom: 5rem !important;
    }

    .py-lg{
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;   
    }

    .pt-lg{
        padding-top: 5rem !important;
    }
    
    .pb-lg{
        padding-bottom: 5rem !important;
    }

    .my-xl{
        margin-top: 8rem !important;
        margin-bottom: 8rem !important;   
    }

    .mt-xl{
        margin-top: 8rem !important;
    }
    
    .mb-xl{
        margin-bottom: 8rem !important;
    }

    .py-xl{
        padding-top: 8rem !important;
        padding-bottom: 8rem !important;   
    }

    .pt-xl{
        padding-top: 8rem !important;
    }
    
    .pb-xl{
        padding-bottom: 8rem !important;
    }
    
}


/* Step */

.stepper {
    display: flex;
    align-items: center;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e0e0e0;
    border: 2px solid #e0e0e0;
}

.step.active {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
    color: white;
}

.icon {
    font-size: 18px;
}

.line {
    width: 100px;
    height: 2px;
    background-color: #e0e0e0;
    margin: 10px;
}

.step.active + .line {
    background-color: var(--bs-secondary);
}

/* Google Auth */

.gsi-material-button {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-appearance: none;
    background-color: WHITE;
    background-image: none;
    border: 1px solid #747775;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #1f1f1f;
    cursor: pointer;
    font-family: 'Roboto', arial, sans-serif;
    font-size: 14px;
    height: 40px;
    letter-spacing: 0.25px;
    outline: none;
    overflow: hidden;
    padding: 0 12px;
    position: relative;
    text-align: center;
    -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
    transition: background-color .218s, border-color .218s, box-shadow .218s;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
    max-width: 400px;
    min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
    height: 20px;
    margin-right: 12px;
    min-width: 20px;
    width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
    -webkit-align-items: center;
    align-items: center;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    height: 100%;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
    -webkit-flex-grow: 1;
    flex-grow: 1;
    font-family: 'Roboto', arial, sans-serif;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
    -webkit-transition: opacity .218s;
    transition: opacity .218s;
    bottom: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.gsi-material-button:disabled {
    cursor: default;
    background-color: #ffffff61;
    border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
    opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
    opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
    background-color: #303030;
    opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
    -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
    background-color: #303030;
    opacity: 8%;
}

.facebook-material-button {
    background-color: #1877f2;
    border: none;
    border-radius: 4px;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: 'Roboto', arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    height: 40px;
    letter-spacing: 0.25px;
    padding: 0 12px;
    position: relative;
    text-align: center;
    transition: background-color .218s, box-shadow .218s;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
    max-width: 400px;
    min-width: min-content;
    text-decoration: none;
}

.facebook-material-button:hover {
    background-color: #145dbf;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.facebook-material-button:focus .facebook-button-state,
.facebook-material-button:active .facebook-button-state {
    background-color: #000;
    opacity: 12%;
}

.facebook-material-button:disabled {
    cursor: default;
    background-color: #ffffff61;
    opacity: 0.6;
}

.facebook-button-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    position: relative;
}

.facebook-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    min-width: 20px;
}

.facebook-button-contents {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.facebook-button-state {
    transition: opacity .218s;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
}

.auth-button {
    width: 100%;
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
}

.promo-bar {
    top: 0;
    width: 100%;
    text-align: center;
    font-size: .9rem;
    z-index: 1050; /* au-dessus de la navbar */
    border-radius: 0;
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .login-card {
        height: auto !important;
        min-height: auto;
    }
}
