/*
* variables
*/
:root {
    /* margin / padding */
    --padding: 0.5em;
    --margin: 0.5em;
    --border_radius: 0.4em;
    --style_site_width: 100%;
}


/*
 * fonts
 */
@font-face {
    font-family: Quicksand;
    src: url("/pages/fonts/Quicksand-Regular.ttf") format('truetype');
}

@font-face {
    font-family: 'Material Symbols Outlined';
    src: url("/pages/fonts/MaterialSymbolsOutlined.woff2") format('woff');
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined', sans-serif;
}


/*
 * main
 */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-size: var(--font_size);
    font-family: var(--font_family), serif;
    background-color: var(--color_10);
}

#content {
    position: relative;
    width: var(--style_site_width);
    min-height: 100vh;
    margin: 0 auto;
    color: var(--color_11_f);
    box-sizing: border-box;
}

#content:not(.computer) .computerOnly {
    display: none;
}

#content:not(.mobile) .mobileOnly {
    display: none;
}

#headers, #menus, #body, #footers {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0 20px;
}

#BODY_ERROR_DISPLAY {
    background-color: var(--color_12);
    color: var(--color_12_f);
}


/*
* HTML tags
*/

h1, h2, h3, h4, h5 {
    font-size: calc(1.5 * var(--font_size));
    margin: 0;
    width: 100%;
    font-weight: normal;
    padding: 1em 0 0 0;
}

h1 {
    font-weight: bold;
    padding: 0.66em 0 0 0;
}

hr {
    margin: 2em 0 1em 0;
}

p {
    margin: 0;
    margin-inline: 0;
    margin-block: 0;
}

/*
*
* Buttons
*
*/
a, a:visited {
    display: inline-block;
    border-radius: 0.5em;
    border-color: transparent;
    padding: 0 5px;
    color: inherit;
    text-decoration: none;
}

button, .styleButton, .styleButtonSuccess, .styleButtonNeutral, .styleButtonFailure {
    display: inline-block;

    height: 2.2em;
    line-height: 2.2em;
    padding: 0 1em;
    margin: 0.5em 0;
    border: none;
    border-radius: var(--border_radius);
    cursor: pointer;

    text-align: center;
    text-decoration: none;

    font-size: var(--font_size);


    /* forcer une apparence semblable entre les boutons et les liens */
    font-family: var(--font_family), serif;
    font-weight: normal;
    font-style: normal;
    appearance: auto;
    writing-mode: horizontal-tb !important;
    letter-spacing: normal;
    word-spacing: normal;
    text-transform: none;
    text-indent: 0;
    text-shadow: none;
    box-sizing: border-box;
    text-rendering: auto;
}

button, button:visited, .styleButton, .styleButton:visited {
    background-color: var(--color_11);
    color: var(--color_11_f);
    box-shadow: var(--box_shadow);
}

button:hover, .styleButton:hover, a:hover {
    background-color: var(--color_20);
    color: var(--color_20_f);
    box-shadow: var(--box_shadow);
}

.styleButtonSuccess, .styleButtonSuccess:visited {
    background-color: var(--color_success);
    color: var(--color_font_success);
}

.styleButtonNeutral, .styleButtonNeutral:visited {
    background-color: var(--color_neutral);
    color: var(--color_font_neutral);
}

.styleButtonFailure, .styleButtonFailure:visited {
    background-color: var(--color_failure);
    color: var(--color_font_failure);
}


/**
 * MESSAGE
 */
.messages {
    width: 90%;
    line-height: 2em;
    padding: calc(2 * var(--padding));
    margin: var(--margin) auto;
    border-radius: var(--border_radius);
    background-color: var(--color_failure);
    color: var(--color_font_failure);
}

.messagesSuccess {
    background-color: var(--color_success);
    color: var(--color_font_success);
}


/**
 * class table
 */
.roundTable {
    border-radius: var(--border_radius);
    width: 100%;
    margin: 0.5em 0;
    background-color: var(--color_10);
    border: var(--border_subtle);
}

.roundTable table {
    width: 100%;
    border-collapse: collapse;
}

.roundTable table .label {
    font-weight: bold;
}

.roundTable td, .roundTable th {
    border: var(--border_subtle);
    padding: 0.5em;
    height: 1em;
}

.roundTable th {
    text-align: center;
    font-weight: bold;
}

.roundTable td.textAlignLeft, .roundTable th.textAlignLeft {
    text-align: left;
}

.roundTable td.textAlignCenter, .roundTable th.textAlignCenter {
    text-align: center;
}

.roundTable td.textAlignRight, .roundTable th.textAlignRight {
    text-align: right;
}

.roundTable td:first-child, .roundTable th:first-child {
    border-left: none;
}

.roundTable td:last-child, .roundTable th:last-child {
    border-right: none;
}

.roundTable tr:first-child td, .roundTable tr:first-child th {
    border-top: none;
}

.roundTable tr:last-child td /*, .roundTable tr:last-child th*/
{
    border-bottom: none;
}

/**
 * dataTables
 */
table.dataTable.dataTables.compact thead th {
    padding-top: 15px;
    padding-bottom: 15px;

    background-color: var(--color_11);
    color: var(--color_11_f);

    font-weight: bold;
}

table.dataTable.no-footer.compact {
    border-radius: 1em;
    border: var(--border_subtle);
}

table.dataTable th:first-child {
    border-radius: 1em 0 0 0;
}

table.dataTable th:last-child {
    border-radius: 0 1em 0 0;
}

table.dataTable tr:last-child td:first-child {
    border-radius: 0 0 0 1em;

}

table.dataTable tr:last-child td:last-child {
    border-radius: 0 0 1em 0;
}

.dataTable th.datatableFilter input {
    width: 100%;
    background-color: var(--color_10);
    font-weight: normal;
    font-size: var(--font_size);
    font-family: var(--font_family), serif;
    box-shadow: var(--box_shadow);
    border: var(--border_subtle);
    border-radius: 0.5em;
    line-height: 2em;
    box-sizing: border-box;
    padding: 0 3px 0 3px;
    margin: 0 3px 0 0;
}


.dataTable th.datatableFilter input::placeholder {
    color: var(--color_10_f);
    opacity: unset;
}


.dataTable a.material-symbols-outlined {
    display: inline-block;
    font-size: calc(1.25 * var(--font_size));
    padding: 0 3px;
}


div.dt-buttons.ui-buttonset {
    float: right !important;
}


.dt-button {
    font-size: var(--font_size);
    font-family: var(--font_family), serif;
    border-radius: 3px;
    line-height: 2em;
    box-sizing: border-box;
    margin-left: 0.5em;
    /*
    border: var(--border_subtle);
    padding: 0 var(--padding);
     */
}
