
/* MAIN PAGE */
html {
    margin: 0;
    padding: 0;
    --primary-bg: #4B8DA6;
    --primary-text: #4B8DA6;
    --secondary-text: #607780;
    --tertiary-text: #376479;
}

#action-row {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 50px;
    background-color: #333;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 50;
}

#action-row .btn {
    height: 50px;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 0 1em;
    font-size: 14pt;
    transition-property: background-color;
    transition-duration: .2s;
}

* {
    box-sizing: border-box;
}

body {
    padding: 5em;
    background: #222;
    font-family: 'Roboto', sans-serif;
    font-size: 11pt;
}

#cv-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

#cv {
    width: 21cm;
    background-color: #fff;
    overflow: hidden;
    padding: 1em;
}

#cv.single-page {
    height: 29.7cm;
    display: grid;
    grid-template-areas:
        "heading heading"
        "work-experience work-experience"
        "skills school"
        "skills projects";
    grid-template-rows: repeat(4, auto);
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 1em;
}

#cv.multi-page {
    display: grid;
    grid-template-areas:
        "heading"
        "work-experience"
        "school"
        "projects"
        "skills";
    grid-template-rows: repeat(5, auto);
    grid-template-columns: 1fr;
    grid-column-gap: 1em;
    line-height: 1.5em;
}

#experiences {
    grid-area: work-experience;
}

#competences {
    grid-area: skills;
}

#last-projects {
    grid-area: projects;
}

#last-projects>.ctn {
    padding-inline: 1cm;
}
#last-projects .card {
    width: 100%;
}

#formation {
    grid-area: school;
}

.monospace {
    font-family: 'Fira Code', monospace;
}

/* HEADING */
#admin-section {
    grid-area: heading;
    background-color: #BFEEFF;
    display: flex;
    padding: 0 1em;
}

#admin-section-contact-informations {
    flex-grow: 2;
}

#admin-section-me {
    display: flex;
    max-height: 100%;
    height: 100%;
    flex-grow: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#admin-section-me>img {
    margin: 1em 0;
    height: 4.5cm;
}

.section-title {
    background-color: var(--primary-bg);
    color: #fff;
    padding: .2em 1em;
    margin: 1em 0 .1em 0;
}

.multi-page .section-title{
    margin: 1.5em 0 1em 0;
}

.tag-like::after {
    content: '/>';
}

.tag-like::before {
    content: '<';
}

a,
a:visited,
a:hover,
a:active {
    color: var(--primary-text);
    text-decoration: underline;
}

.no-style-list li {
    list-style-type: none;
    margin: 0;
}

.no-style-list li:not(:last-child) {
    padding-bottom: .5em;
}

.admin-section-lists {
    display: flex;
}

.admin-section-lists ul:nth-child(1) {
    flex-grow: 1;
}

.admin-panel-icon {
    height: 3rem;
}

ul.no-style-list {
    padding: 0;
    display: inline-block;
}

.timeline-card {
    margin-left: 40px;
    position: relative;
}

.ctn {
    overflow: hidden;
}

.timeline-card:not(:nth-child(1)):before {
    content: '';
    position: absolute;
    left: -25px;
    width: 14px;
    height: 14px;
    background: #D1D6E6;
    border-radius: 7px;
}

.timeline-card:nth-child(1)::before {
    content: '';
    position: absolute;
    left: -26px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 14px solid #D1D6E6;
}

.timeline-card::after {
    content: '';
    position: absolute;
    left: -25px;
    top: 1em;
    height: 100%;
    width: 2px;
    background: #D1D6E6;
    margin-left: 5.3px;
}

.card * {
    margin: 0;
}

.card {
    padding-top: 1em;
}

.card:nth-child(1) {
    padding-top: .5em;
}

em {
    color: var(--primary-text);
    font-weight: bold;
    text-transform: capitalize;
}

h4>em {
    color: var(--tertiary-text);
}

em.company-name {
    text-decoration: underline;
}

.card li {
    list-style-type: '- ';
}

.card li::first-letter {
    text-transform: uppercase;
}

p.target::before {
    content: '⇒ ';
}

.target {
    padding: .3em 0;
}

@media print {
    * {
        -webkit-print-color-adjust: exact;
    }
    body {
        padding: 0;
        overflow: hidden;
        display: block;
    }
}

@page {
    size: auto;
    margin: 0mm;
}

.card ul {
    padding-left: 1.2em;
    padding-top: .2em;
}

#main-title {
    margin: .5em 0;
}

#name {
    margin: .5em 0;
}

.skills-grid {
    display: grid;
    padding-inline: 1cm;
    grid-template-columns: 1fr 1fr 1fr;
    gap: .5em 0;
}

.skills-grid>span {
    text-align: center;
}

.horizontal-separator {
    width: 100%;
    height: .8em;
}

.date {
    color: var(--secondary-text);
}

.date::after {
    color: #000;
    content: " - ";
}

.skill-title {
    color: var(--secondary-text);
    margin: 0;
    font-size: 11pt;
}



#action-row .btn:hover {
    background-color: #444;
}

.ctn.center {
    align-items: center;
    display: flex;
    flex-direction: column;
    width: 100%;
}

#hobbies {
    margin: 1em 0;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

#hobbies>* {
    flex: 1 0 50%;
}

.img-icon-container {
    height: 1.5cm;
    width: 1.5cm;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.img-icon-container>img {
    max-width: 100%;
    max-height: 100%;
}


.single-page .skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.mult-page .skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

h4>.fas {
    margin-right: .5em;
    color: var(--secondary-text);
}