﻿
@import 'couleurs.css';
/*custom font*/
@import url(https://fonts.googleapis.com/css?family=Montserrat);

/*basic reset*/
* {
    margin: 0;
    padding: 0;
}

:root {
    --primary-color-modal: hsl(213deg 85% 97%);
    --secondary-color-modal: hsl(233deg 36% 38%);
}

.modal-content {
    background-color: var(--primary-color-modal);
    box-shadow: 0 0 2em hsl(231deg 62% 94%);
}
body {
    font-family: montserrat, arial, verdana;
}
body.Statistiques{
    width:fit-content;
}
/*form styles*/
#msform {
    width: 100%;
    margin: 50px auto;
    text-align: center;
    position: relative;
   
}

    #msform fieldset {
        
        width: 80%;
        margin: 0 10%;
        /*stacking fieldsets above each other*/
        position: relative;
    }
        /*Hide all except first fieldset*/
        #msform fieldset:not(:first-of-type) {
            display: none;
        }
    /*inputs*/
    #msform input, #msform textarea {
        padding: 15px;
        border: 1px solid #ccc;
        border-radius: 3px;
        margin-bottom: 10px;
        width: 100%;
        box-sizing: border-box;
        font-family: montserrat;
        color: var(--tertiary-color);
        font-size: 13px;
    }
    /*buttons*/
    #msform .action-button {
        width: 100px;
        background: var(--primary-color);
        font-weight: bold;
        color: white;
        border: 0 none;
        border-radius: 1px;
        cursor: pointer;
        padding: 10px;
        margin: 10px 5px;
        text-decoration: none;
        font-size: 14px;
    }

        #msform .action-button:hover, #msform .action-button:focus {
            box-shadow: 0 0 0 2px white, 0 0 0 3px var(--primary-color);
        }
/*headings*/
.fs-title {
    font-size: 15px;
    text-transform: uppercase;
    color: var(--tertiary-color);
    margin-bottom: 10px;
}

.fs-subtitle {
    font-weight: normal;
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}
.field {
    background: hsl(0deg 0% 100%);
    box-shadow: 0 0 2em hsl(231deg 62% 94%);
    padding: 1em;
    border-radius: 20px;
    color: hsl(0deg 0% 30%);
}
/*progressbar*/
#progressbar {
    margin-bottom: 30px;
    overflow: hidden;
    /*CSS counters to number the steps*/
    counter-reset: step;
}

.invalid {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}

.field.invalid {
    border: 2px solid red !important;
}

    #progressbar li {
        list-style-type: none;
        color: var(--tertiary-color);
        text-transform: uppercase;
        font-size: 9px;
        float: left;
        position: relative;
    }
#addServiceModal #progressbar li, #productModal #progressbar li, #newsModal #progressbar li, #profileModal #progressbar li, #fileSharingModal #progressbar li {
    width: 31%;
}
#subModal #progressbar li {
    width: 23%;
}

.left{
    text-align:left;
}

        #progressbar li:before {
            content: counter(step);
            counter-increment: step;
            width: 20px;
            line-height: 20px;
            display: block;
            font-size: 10px;
            color: #333;
            background: white;
            border-radius: 3px;
            margin: 0 auto 5px auto;
            z-index:1;
        }
        /*progressbar connectors*/
        #progressbar li:after {
            content: '';
            width: calc(100% - 10px);
            margin-left:10px;
            height: 2px;
            background: white;
            position: absolute;
            left: -50%;
            top: 9px;
            z-index: 0; /*put it behind the numbers*/
        }

        #progressbar li:first-child:after {
            /*connector not needed before the first step*/
            content: none;
        }
        /*marking active/completed steps green*/
        /*The number of the step and the connector before it = green*/
        #progressbar li.active:before, #progressbar li.active:after {
            background: var(--primary-color);
            color: white;
        }


.close-modals{
    text-align:right;
    position:relative;
    right:10px;
    top:10px;
    font-size:x-large;
}

.drag-area {
    height: 200px;
    border: 3px dashed var(--tertiary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 10px auto;
}


.drag-area .icon {
    font-size: 50px;
    color: var(--primary-color);
}

.drag-area .header {
    font-size: 20px;
    font-weight: 500;
    color: var(--tertiary-color);
    background-color:transparent;
}

.drag-area .support {
    font-size: 12px;
    color: var(--tertiary-color);
    margin: 10px 0 15px 0;
}

.drag-area .button {
    font-size: 20px;
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
}

.drag-area.active {
    border: 2px solid var(--tertiary-color);
}

.drag-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download {
    background-color: var(--primary-color);
    border: none;
    color: var(--secondary-color);
    padding: 6px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 3px 1px;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
}
.file-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 5px;
    border-top: 1px solid var(--tertiary-color);
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    flex-direction: column;
    text-align: left;
}

.file-name {
    font-size: 14px;
    color: var(--tertiary-color);
    width: 100%;
    margin-bottom: 5px;
    white-space: pre-wrap; /* To handle long filenames */
}

.delete-file {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

    .delete-file i {
        font-size: 18px;
    }

#addServiceModal textarea, #productModal textarea, #newsModal textarea, #questionModal textarea {
    height: 200px;
}