@import url(//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css);

@import url(https://fonts.googleapis.com/css?family=Titillium+Web:300);

:root {
    --red: #e1001a;
    --dark-red: rgb(154, 20, 27);
    --dark-gray-lightest: rgba(71, 71, 71, 1);
    --dark-gray-lighter: rgba(61, 61, 61, 1);
    --dark-gray: rgba(51, 51, 51, 1);
    --light-gray: rgba(230, 230, 230, 1);
    --light-half-gray: rgb(195, 195, 195);
    --gray: rgba(128, 128, 128, 1);
    --gray-hover-light: #999999;
    --gray-hover-dark: #666666;
    --gray-disabled: rgba(110, 110, 110, 0.8);
    --white: #FFFFFF;
    --black: #000000;
    --table-gray: #47474733;
    --table-header-gray: rgba(71, 71, 71, 0.41);
    /*--blackMenu: rgba(0, 0, 0, 0.8);*/
    --blackMenu: #2C2E3A;
    --green: #3b9a14b3;

    --table-header: #2C2E3A;
    --table-body: #C4C6D4;
    --table-body-second: #DCDDE5;
    --table-body-special: #9698a5;

    --text-dark: #000000;
    --text-light: #FFFFFF;
    --dark-gray-translucide: #343a408c;
    --font: Roboto;
    --background: #ecedef;
}

/* ------------------------------------- Bases --------------------------------------------------- */

body {
    margin: 57px 0 0 0;
    font-family: var(--font);
    background-color: var(--background);
    line-height: 1.5;
    width: 100%;
}

p {
    margin: 0;
}

h1 {
    font-size: 3rem;
    text-align: center;
}


.container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 75px;
}

.fa-2x {
    font-size: 2em;
}

.fa {
    position: relative;
    display: table-cell;
    width: 50px;
    height: 36px;
    text-align: center;
    vertical-align: middle;
    font-size: 20px;
}

body section:nth-child(2n-1) {
    background-color: rgba(0, 0, 0, 0.05);
}

section {
    padding: 50px 0;
}

a {
    text-decoration: underline var(--dark-red);
    color: var(--text-dark);
    -webkit-text-decoration-color: var(--dark-red);
}

.no-style-li {
    list-style: none;
}

a:hover {
    color: var(--gray-hover-dark);
}

.grid {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: auto auto auto;
    grid-gap: 0.5rem;
}

.grid-carte {
    justify-content: center;
}


.gris {
    position: relative;
    width: 340px;
    margin-bottom: 20px;
    border-style: solid;
    border-color: var(--black);
    border-width: 1px;
    webkit-box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.75);
    box-shadow: 2px 2px 5px 0px var(--black);
    border-radius: 10px;
    background-color: var(--light-gray);
}

.column {
    position: relative;
    border-style: solid;
    border-width: 1px;
    color: var(--dark-gray);
    text-align: center;
    padding: 0.5rem;
}

.column a {
    color: var(--dark-gray);
    font-size: 1rem;
    text-decoration: none;
    font-weight: bold;
    /*display: inline-grid;*/
}

.svg svg {
    width: 32px;
    height: 32px;
    color: #212529;
    display: block;
    margin: 0 auto;
}

.svg-16 {
    display: inline-block;
}

.padding-0 {
    padding: 0;
}

.svg-16 svg {
    width: 16px;
    height: 16px;
    color: #0d559fcf;
    display: inline-block;
}

.special-svg {
    width: 40px;
    text-align: center;
}

.i-details svg {
    max-width: 24px;
    color: #212529;
    top: 10px;
    right: 10px;
    position: absolute;
}

img {
    padding: 20px 20px 0 20px;
    border-radius: 10px;
    max-width: 243px;
    display: block;
    margin: 0 auto 20px;
}

.popup {
    position: relative;
    display: inline-block;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow: visible !important;
}

/* The actual popup */
.popup .popuptext {
    visibility: hidden;
    width: 160px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 0;
    position: absolute;
    z-index: 1;
    bottom: 115%;
    left: 50%;
    margin-left: -80px;
    font-size: 14px;
}

.popup .popuptext-left {
    margin-left: -20px;
}


.popup .popuptext-petit {
    width: 60px;
    bottom: 115%;
    margin-left: -31px;
}

/* Popup arrow */
.popup .popuptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.popup .popuptext-left::after {
    left: 13%;
}

/* Toggle this class - hide and show the popup */
.popup .show {
    visibility: visible;
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s;
    overflow: visible !important;
}

.big-card {
    max-width: 600px;
    border: solid 2px var(--dark-gray);
    margin: 100px auto 0 auto;
    border-radius: 15px;
    min-height: 80vh;
    padding: 10px;
    position: relative;
}

.update {
    color: var(--dark-red);
    position: relative;
    right: 15px;
    padding: 0px;
    top: 12px;
    text-decoration: none;
}

.fraction {
    display: inline-block;
    vertical-align: middle;
    margin: 0 0.2em 0.4ex;
    text-align: center;
}

.fraction > span {
    display: block;
    padding-top: 0.15em;
}

.fraction span.fdn {
    border-top: thin solid black;
}

.fraction span.bar {
    display: none;
}

.grid-4 {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: auto auto auto auto;
    /*justify-content: center;*/
    grid-gap: 1.5rem;
}

.grid-3 {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: auto auto auto;
    /*justify-content: center;*/
    grid-gap: 1.5rem;
}

.grid-2 {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: auto auto;
    /*justify-content: center;*/
    grid-gap: 1.5rem;
}


/* ------------------------------------- Creation -------------------------------------------------*/


#htmlBase .grid-4:nth-child(1n) {
    margin-top: 50px;
}

.inputs select {
    display: block;
    padding: 10px;
    font-size: 16px;
    border-radius: 7px;
    border: 1px solid #464277;
    background-color: #f4f8fb;
    outline: none;
}

p.note-table {
    font-size: 0.8rem;
    font-style: italic;
}

.note {
    background-color: var(--light-half-gray);
    /*border-radius: 10px;
    */width: fit-content;
}

.note p {
    /*padding: 10px;
    */font-style: italic;

}

/* ------------------------------------- Table --------------------------------------------------- */

table {
    border-spacing: 0;
    table-layout: fixed;
    width: 100%;
}

.table-full {
    width: 100%;
}

thead tr {
    background-color: var(--table-header);
}

thead tr th {
    padding: 10px 5px;
    font-size: 0.9em;
    color: var(--text-light);
}

tbody tr td {
    padding: 5px 5px;
    font-size: 0.8em;
    color: var(--text-dark);
}

tbody tr {
    padding: 15px 5px;
    color: var(--text-dark);
    background-color: var(--table-body);
}

tbody tr:nth-child(2n) {
    background-color: var(--table-body-second);
}

tr {
    text-align: center;
}

table th a {
    color: var(--text-light);
}

table th a:hover {
    color: var(--gray-hover-light);
}

table .tb-special {
    background-color: rgba(0, 0, 0, 0.1);
}

table tr th:first-child {
    border-radius: 10px 0 0 0;
}

table tr th:last-child {
    border-radius: 0 10px 0 0;
}

table tr:last-child td:first-child {
    border-radius: 0 0 0 10px;
}

table tr:last-child td:last-child {
    border-radius: 0 0 10px 0;
}

.tb-check {
    display: inline-block;
    transform: rotate(45deg);
    height: 20px;
    width: 10px;
    border-bottom: 6px solid #78b13f;
    border-right: 6px solid #78b13f;
}

.td-same-height {
    height: fit-content;
}

.td-same-height td {
    height: 70px;
}

/* ------------------------------------- Beta --------------------------------------------------- */

.span-beta {
    color: red;
    font-size: 14px;
}

h1 .span-beta {
    font-size: 24px;
}

/* Media Query */

@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }

    .grid {
        grid-template-columns: auto auto;
    }
}

@media (max-width: 1000px) {
    .container {
        max-width: 800px;
    }
}

@media (max-width: 700px) {
    .grid {
        grid-template-columns: auto;
    }

    .container {
        margin: 0 20px;
    }
}


/* -------------------------------------------- On Off Button --------------------------------------------------- */

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--dark-red);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--dark-red);
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.sliderBottomText {
    width: 100px;
    padding-top: 30px;
    text-align: center;
    right: -20px;
    position: absolute;
}