/* 
attention...........css extrêmement chaotique
*/

:root {
    /* couleurs */
    --white: #ffffff;
    --black: #000000;
    --beige: #e5e8e2;
    --grey: #a8a9ad;
    --hover-grey: #c0c6cd;
    --rvb-blue: #0000ff;
    --dark-blue: #000756;
    --light-black: #1a1b1c;
    --green: #4bff8f;
    --dark-white: #f1eff1;
    /* polices */
    --AlteHaas: 'AlteHaas';
    --Redaction: 'Redaction';
    --Redaction50: 'Redaction50';
    --Redaction70: 'Redaction70';
    /* font sizes */
    --small: 10pt;
    --medium: 14pt;
    --big: 18pt;
}

body {
    background-color: var(--beige);
    font-family: var(--AlteHaas);
    width: 100vw;
    font-size: var(--medium);
}

::selection {
    background: var(--green);
    color: var(--white);
    text-shadow: none;
}

::-moz-selection {
    background: var(--green);
    color: var(--white);
    text-shadow: none;
}

a {
    color: var(--dark-blue);
    text-decoration: none;
    background-color: var(--white);
    border-radius: 50px;
    padding: 0 15px 0 5px;
    font-family: var(--Redaction70);
    letter-spacing: 0.03em;

}

a:hover {
    background-color: var(--green);
    color: var(--white);
}

#title-buttons {
    display: flex;
    flex-direction: row;
    font-size: var(--big);
    flex-wrap: wrap;

    margin-bottom: 18px;
}

h1 {
    width: fit-content;
    color: var(--rvb-blue);
    font-family: var(--Redaction70);
    border-radius: 50px;
    margin: 3px 12px 5px 0;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

h1 a {
    color: var(--rvb-blue);
}

#accessible {
    font-family: var(--Redaction);
    background-color: var(--white);
    color: var(--light-black);
    border: 1px solid var(--light-black);
    border-radius: 50px;
    padding: 0 15px 0 5px;
    cursor: pointer;
    font-size: inherit;
    white-space: nowrap;
}

#accessible:hover {
    background-color: var(--dark-white);
}

main {
    display: grid;
    grid-template-columns: 25vw repeat(2, 1fr);
    grid-template-rows: auto 1fr;
    grid-row-gap: 0px;
    height: 100vh;
    box-sizing: border-box;
}

#div2 {
    overflow-y: auto;
}

#div1 {
    grid-area: 1 / 1 / 2 / 2;
    display: flex;
    flex-direction: column;
    align-content: space-between;
    justify-content: space-between;
    margin: 5px 5px 0 5px;
}

#div2 {
    grid-area: 1 / 2 / 3 / 4;
    background-color: var(--grey);
    height: 100%;
    overflow-x: hidden;
}

#div3 {
    grid-area: 2 / 1 / 3 / 2;
}

h2 {
    margin-bottom: 6px;
    letter-spacing: -3%;
}

.text3 p {
    margin: 0 5px;
}

.text3 p:first-child {
    background-color: var(--white);
    margin: 5px 0 10px 0;
    padding: 8px 5px 13px 5px;
    font-weight: bold;
    letter-spacing: -3%;
}

.text3 p:first-child a {
    background-color: var(--green);
}

.text3 p:first-child a:hover {
    color: var(--white);
}


.tableau {
    box-sizing: border-box;
    overflow-x: hidden;
}

.tableau table {
    width: 100%;
    background-color: var(--grey);
    box-sizing: border-box;
    overflow-x: hidden;
}

#type-table {
    table-layout: fixed;
    width: 100%;
}

#type-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* LARGEURS DES COLONNES */
#type-table th:nth-child(1),
#type-table td:nth-child(1) {
    width: 25%;
}

#type-table th:nth-child(2),
#type-table td:nth-child(2) {
    width: 20%;
}

#type-table th:nth-child(3),
#type-table td:nth-child(3) {
    width: 25%;
}

#type-table th:nth-child(4),
#type-table td:nth-child(4) {
    width: 20%;
}

#type-table th:nth-child(5),
#type-table td:nth-child(5) {
    width: 12%;
}


thead {
    background-color: var(--dark-blue);
    color: var(--green);
    text-align: left;
    font-family: var(--Redaction50);
    letter-spacing: 0.1em;
    font-size: var(--small);
}

th {
    padding: 5px;
    position: relative;
}

th.sortable {
    padding-left: 25px;
    cursor: pointer;
    transition: color 0.3s;
}

th.sortable:hover {
    color: var(--dark-white);
}

.sorting-letter {
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    font-family: 'arrows';
    font-size: var(--medium);
}

tbody tr:hover {
    color: var(--white);
}

#tag-head {
    padding-left: 25px;
}

#delete-filter {
    position: absolute;
    left: 0;
    top: 60%;
    transform: translateY(-50%);
    margin-left: 3px;
    cursor: pointer;
    font-family: 'arrows';
    font-size: var(--big);
    line-height: 0%;
    transition: color 0.3s;
}

#delete-filter:hover {
    color: var(--white);
}


td.name {
    font-weight: bold;
}

td.name p {
    margin-bottom: 8px;
}

tr {
    border-bottom: 1px solid var(--rvb-blue);
}

tr:last-child {
    border-bottom: none;
}

td.type p {
    margin-bottom: 7px;
}

td.tag-cell {
    padding-bottom: 10px;
}

.license-cell {
    padding-bottom: 10px;
}

/* Style for the circle before each tag */
.tag {
    position: relative;
    padding-left: 18px;
    cursor: pointer;
}

.tag::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border: 1px solid var(--green);
    border-radius: 50%;
    background-color: transparent;
    transition: background-color 0.3s, border-color 0.3s;
}

.tag:hover::before {
    background-color: var(--green);
    border-color: var(--green);
}

.tag.ticked::before {
    background-color: var(--green);
    border-color: var(--green);
}

p.tag:hover {
    color: var(--green);
}

tbody tr td:first-child {
    padding-left: 5px;
}

tbody tr td:last-child {
    padding-right: 5px;
}

tr td p.link-cell:last-child {
    padding-bottom: 4px;
}

.link-cell {
    margin: 4px 0 2px 0;
}

.table-link {
    background-color: var(--white);
    border-radius: 50px;
    padding: 0 15px 0 5px;
    font-family: var(--Redaction70);
    color: var(--dark-blue);
    text-decoration: none;
    width: 100%;
    white-space: nowrap;
}

.paragraphe p {
    text-indent: 24px;
    margin-bottom: 6px;
    letter-spacing: -3%;
}

.special {
    font-family: var(--Redaction50);
    color: var(--dark-blue);
    letter-spacing: normal;
}

@media (max-width: 800px) {

    .mobile-hidden {
        display: none;
    }

    main {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        height: auto;
    }

    #title-buttons {
        width: 100%;
        box-sizing: border-box;
        justify-content: space-between;
        align-items: center;
    }

    h1 {
        margin-top: 0;
        margin-right: 0;
        margin-bottom: 0;
    }

    .paragraphe {
        max-width: 520px;
    }


    #div1 {
        margin-bottom: 30px;
    }

    #div2,
    #div3 {
        margin-bottom: 36px;
    }

    #div2 {
        overflow-y: initial;
        height: auto;
        overflow-x: initial;
        margin-bottom: 0;
    }

    .tableau {
        box-sizing: unset;
        overflow-x: initial;
    }

    #type-table th:nth-child(1),
    #type-table td:nth-child(1) {
        width: 35%;
    }

    thead tr th:last-child {
        padding-right: 10px;
    }

    td:nth-child(3),
    th:nth-child(3),
    td:nth-child(4),
    th:nth-child(4) {
        display: none;
    }

    td.type p {
        margin-left: 8px;
    }

    #type-table th:nth-child(5),
    #type-table td:nth-child(5) {
        width: 18%;
    }

    #type-table th:nth-child(5),
    #type-table td:nth-child(5) {
        text-align: right;
    }

    thead {
        font-size: var(--medium);
    }

    .sorting-letter {
        left: 6px;
        top: 53%;
    }


    .text3 p:first-child {
        text-indent: 0px;
        margin-top: 0;
        width: 100vw;
        box-sizing: border-box;
    }
}


/***
 *          .
 *      .x88888x.                      ..
 *     :8**888888X.  :>        u.     888>         u.
 *     f    `888888x./   ...ue888b    "8P    ...ue888b
 *    '       `*88888~   888R Y888r    .     888R Y888r
 *     \.    .  `?)X.    888R I888>  u888u.  888R I888>
 *      `~=-^   X88> ~   888R I888> `'888E   888R I888>
 *             X8888  ~  888R I888>   888E   888R I888>
 *             488888   u8888cJ888    888E  u8888cJ888     .
 *     .xx.     88888X   "*888*P"     888E   "*888*P"    .@8c
 *    '*8888.   '88888>    'Y"        888E     'Y"      '%888"
 *      88888    '8888>               888E                ^*
 *      `8888>    `888                888E
 *       "8888     8%                 888P
 *        `"888x:-"                 .J88" "
 *         ...     ..                                  ..
 *      .=*8888x <"?88h.                             dF
 *     X>  '8888H> '8888                 u.    u.   '88bu.             u.
 *    '88h. `8888   8888        .u     x@88k u@88c. '*88888bu    ...ue888b
 *    '8888 '8888    "88>    ud8888.  ^"8888""8888"   ^"*8888N   888R Y888r
 *     `888 '8888.xH888x.  :888'8888.   8888  888R   beWE "888L  888R I888>
 *       X" :88*~  `*8888> d888 '88%"   8888  888R   888E  888E  888R I888>
 *     ~"   !"`      "888> 8888.+"      8888  888R   888E  888E  888R I888>
 *      .H8888h.      ?88  8888L        8888  888R   888E  888F u8888cJ888
 *     :"^"88888h.    '!   '8888c. .+  "*88*" 8888" .888N..888   "*888*P"
 *     ^    "88888hx.+"     "88888%      ""   'Y"    `"888*""      'Y"
 *            ^"**""          "YP'                      ""
 *
 */