@font-face {
    font-family: 'Readex';
    font-style: normal;
    font-weight: 400;
    font-display: swap; /* Read next point */
    unicode-range: U+000-5FF; /* Download only latin glyphs */
    src: local('Readex'),
    url('fonts/Readexpro_var.woff2') format('woff2');
}

@font-face {
    font-size: 16px;
    line-height: 1.6;
    visibility: visible;
    font-family: sans-serif;
    font-weight: 500;
    word-spacing: -0.15px;
    letter-spacing: 0.65px;
    src: local('sans-serif');
}

:root {
    --primary: rgb(0, 126, 143);
    --secondary: rgb(159, 241, 252);
    --background: rgb(241, 255, 255);

    --font: "Readex";

    font-family: var(--font), sans-serif;
    font-size: 100%;
    color: var(--primary);
}

[data-theme="dark"] {
    --primary: rgb(241, 255, 255);
    --secondary: rgb(159, 241, 252);
    --background: rgb(0, 126, 143);
}

html {
    background-color: var(--background);
}

body {
    margin: 0 auto;
    /*width: 100%;*/
    max-width: 90%;
    line-height: 1.5;
    padding: 0 15px;
}

a {
    color: inherit;
}

h1 {
    text-align: center;
}

h2 {
    border-bottom: dotted;
}

.comp h3 {
    margin: 0.5rem 0;
}

.comp ul {
    margin-top: 0.5rem;
}

.comp>.sub h3 {
    border-bottom: dashed thin;
}

.sub-right {
    display: flex;
    justify-content: right;
}

.sub-middle {
    display: flex;
    align-self: center;
    justify-content: center;
    flex-grow: 1;
}

.sub-left {
    display: flex;
    justify-content: left;
}

li>.sub>.sub-middle {
    border-bottom: dashed thin;
    margin-top: auto;
    margin-bottom: 6px;
}

li>.sub h3 {
    margin-bottom: auto;
}

li>.sub h4 {
    margin: auto 0;
}

li>.sub {
    margin-top: 1rem;
}

h4:has(+ ul) {
    margin: 0.5rem 0;
}

h4 + ul {
    margin-top: 0.5rem;
}

header {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

header .sub-middle {
    height: 0.5rem;
}

header a {
    color: var(--primary);
}

.contact p {
    margin: 0.5rem;
}

.head-l {
    display: flex;
    align-self: center;
}

.head-l a {
    padding: 0.5rem;
    text-decoration: none;
    background-color: var(--primary);
    color: var(--background);
    border-radius: 4px;
}

.head-l a:hover {
    text-decoration: underline;
    cursor: pointer;
}

.head-l a:focus {
    text-decoration: underline;
    background-color: var(--background);
    color: var(--primary);
    border: solid 1px;
    border-color: var(--primary);
}

.head-r {
    display: flex;
    align-self: center;
}



.bfoot {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

footer p {
    display: flex;
    justify-content: center;
    margin: 0;
}

.bfoot p {
    margin: revert;
}

footer a {
    color: var(--primary);
}

footer svg {
    margin-left: 5px;
    margin-right: 5px;
}

footer img {
    margin: 12px 0;
    width: 32px;
    height: 32px;
}

.social-icons {
    top: 12px;
    left: 15px;
    fill: var(--primary);
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    align-self: center;
}

.no-strok {
    stroke: none;
}

.social-links {
    display: flex;
    justify-content: center;
    align-content: center;
    gap: 1rem;
}

.social-links a {
    display: flex;
}

blockquote {
    border-left-style: dashed;
    padding-left: 10px;
    border-width: thin;
    margin-left: 1rem;
}

ul {
    padding-left: 1rem;
}

.attrib a {
    color: var(--primary);
}

.hob-unit {
    display: flex;
    flex-direction: column;
    align-content: center;
    text-align: center;
    margin: 1rem;
}

.hob-icon {
    fill: var(--primary);
    width: 32px;
    height: 32px;
    stroke: var(--primary);
    align-self: center;
    padding: 0.5rem;
    border: solid 2px;
    border-radius: 50%;
}

.Others a {
    color: var(--primary);
}

@media only screen and (min-width: 445px) {
    header {
        flex-direction: row;
    }

    .head-l {
        justify-content: left;
    }

    .head-r {
        justify-content: right;
    }

    .hob {
        display: flex;
        justify-content: center;
        align-content: center;
        margin: revert;
    }

    footer {
        display: flex;
        gap: 1rem;
        margin-top: 2rem;
        justify-content: center;
    }

    footer p {
        margin: revert;
    }
}


@media only screen and (min-width: 750px) {
    body {
        max-width: 80%;
    }

    .blocks {
        display: flex;
    }

    .sub {
        display: flex;
    }

    .expe>.sub h4 {
        margin-bottom: auto;
        margin-top: revert;
    }
    
    .expe>.sub>.sub-middle {
        margin-bottom: 6.5px;
    }

    .competences {
        width: 70%;
        padding: 0 1rem;
    }
    
    .outils {
        width: 30%;
        padding: 0 1rem;
    }

    .sub-left {
        align-self: center;
        margin-right: 0.5rem;
    }
    
    .sub-right {
        align-self: center;
        margin-left: 0.5rem;
    }

    .translink a, .head-l a {
        transition: transform .2s;
    }

    .translink a:hover, .head-l a:hover {
        transform: scale(1.1);
    }

    ul {
        padding-left: revert;
    }

    blockquote {
        margin-left: revert;
    }

    .hob {
        gap: 3rem;
    }

    .hob-unit {
        width: 105px;
    }
}

@media only screen and (min-width: 1050px) {
    body {
        max-width: 70%;
    }
}