/* FONTS IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&display=swap');

@font-face {
    font-family: 'Menlo';
    src: url(fonts/Menlo-Regular.ttf);
}

/* BASIC SETTINGS */
:root {
    --base-color: #FFF;
    --base-variant: #9797978f;
    --text-color: #00040c;
    --second-text: #0a0a0ab6;

    --primary-color: #165ffc29;
    --accent-color: #165DFC;

    --lang-bg: #c8c8c8;
    --lang-color: #484848;

    --green-color: #54b802;
    --second-green: #54b802;
    --variant-green: #54b80234;
}
.dark-mode {
    --base-color: #00040c;
    --base-variant: #27272a;
    --text-color: #eaeaea;
    --second-text: #99a1af;

    --primary-color: #165ffc29;
    --accent-color: #165DFC;

    --lang-bg: #27272a;
    --lang-color: #717171;

    --green-color: #71fc00;
    --second-green: #71fc005e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

body {
    position: relative;
    font-family: 'Geist Mono', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background: var(--base-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

/* THEME SWITCH BUTTON */
#theme-switch svg {
    fill: var(--text-color);
}
.icon-sun {
  display: none;
}

.dark-mode .icon-moon {
  display: none;
}

.dark-mode .icon-sun {
  display: inline;
}

/* HEADER */
header {
    position: fixed;
    font-family: 'Inter', sans-serif;
    display: flex;
    width: 100%;
    height: 4rem;
    list-style: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--base-variant);
    padding: 0 1.5rem;
    /*border-bottom: 1px solid var(--accent-color);*/
    z-index: 10;
}
.grp-header {
    display: flex;
    gap: 15px;
    margin-right: auto;
}
nav {
    display: flex;
    height: 100%;
    width: 100%;
    max-width: 50rem;
    justify-content: end;
    gap: 15px;
}
nav a {
    margin-right: auto;
}
nav li {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: fit-content;
    height: 100%;
    transition: all 0.4s ease-out;
}
nav button.btnNav {
    font-family: 'Inter';
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: fit-content;
    height: 100%;
    transition: all 0.4s ease-out;
    background: none;
    color: var(--text-color);
    font-size: 1rem ;
}
a {
    text-decoration: none;
    color: var(--text-color);
}

/* SECTION MAIN */
section.main {
    display: flex;
    flex-direction: column; 
    display: flex;
    width: auto;
    border-top: 3px solid var(--accent-color);
    padding: 20px;
    margin: 8rem 1rem 2rem 1rem;
    max-width: 50rem;
    padding-top: 2rem;
    gap: 3.5rem;
}
section.main.certif {
    border-top: none;
    margin: 3rem 1rem 2rem 1rem;
}

.main span {
    color: var(--accent-color);
}
.main p {
    font-family: 'Inter';
    font-size: 1.2rem;
    font-weight: 500;
}
.core {
    display: flex;
    flex-direction: column;
}
.main img {
    width: 100%;
    border-radius: 5px;
}
.core h1 {
    font-size: 2rem;
}
.header {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    border-radius: 5px;
    align-items: center;
    margin-bottom: 1rem;
    width: 100%;
}
.cards {
    display: flex;
    gap: 5px;
}
.header .card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 5px;
}
.header svg {
    fill: var(--accent-color);
}
.core p {
    color: var(--second-text);
    font-size: 1.2rem;
}
.core ul {
    margin: 1rem 0;
    font-size: 1.2rem;
    margin-left: 1rem;
}
.buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
    height: 2rem;
}

.btnGit {
    font-family: 'Inter';
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: var(--accent-color);
    border-radius: 5px;
    color: var(--base-color);
    fill: var(--base-color);
    height: 100%;
    transition: 0.3s ease-out;
}
.btnGit:hover {
    transform: translateY(-2px);
    box-shadow: 0px 3px 5px #0000003a;
}

/*Button in progress*/
.in_prog {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 5px;
    background: rgb(232, 182, 0, 0.1);
    padding: 5px 10px;
    border: 1px solid rgb(232, 182, 0, 0.3);
    fill: rgb(232, 182, 0);
}
.in_prog p {
    font-family: 'Figtree';
    position: relative;
    top: -1px;
    color: rgb(232, 182, 0);
    font-size: 1rem;
}

/*Button archived*/
.archived {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgb(0, 196, 0, 0.1);
    padding: 5px 10px;
    border: 1px solid rgb(0, 196, 0, 0.3);
    border-radius: 5px;
    fill: rgb(0, 196, 0);
}
.archived p {
    font-family: 'Figtree';
    position: relative;
    top: -1px;
    color: rgb(0, 196, 0);
    font-size: 1rem;
}

/* SECTION INFO */
.info {
    border: 2px solid var(--base-variant);
    border-radius: 5px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
ul li {
    font-family: 'Inter';
    font-size: 1.2rem;
    margin-left: 20px;
    color: var(--second-text);
}
ul li::marker {
    color: var(--accent-color);
}

/* SECTION RESUME */
.resume {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.resume img {
    margin-top: 1rem;
    align-self: center;
    max-width: 35rem;
}
.resume h1 {
    display: flex;
    align-self: start;
    padding: 2px 5px;
    background: var(--primary-color);
    font-family: 'Menlo';
    font-size: 1.5rem;
}
.resume h1.green {
    background: var(--variant-green);
}
a.btnReport {
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-color);
    align-self: end;
    display: flex;
    align-items: center;
    gap: 5px;
    fill: var(--text-color);
}

.grp {
    display: flex;
    justify-content: space-between;
}

.time {
    display: flex;
    align-items: center;
    gap: 3px;
    fill: var(--second-text);
    background: #a1a1a11e;
    padding: 4px 8px;
}
.time span {
    color: var(--second-text);
}

p.second_text {
    display: flex;
    font-weight: 400;
    text-align: justify;
    color: var(--second-text);
    fill: var(--second-text);
    gap: 5px;
}

/*Certif pages*/
.card-certif {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 1rem;
    width: 100%;
    border: 2px solid var(--base-variant);
    border-radius: 5px;
}
.card-certif h2 {
    display: flex;
    font-size: 1.5rem;
    fill: var(--green-color);
}
span.span-head {
    font-family: 'Inter';
    color: var(--second-text);
    font-size: 0.95rem;
    font-style: italic;
}
.tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.tag {
    border-radius: 5px;
    padding: 3px 5px;
}
.tag.green {
    color: var(--green-color);
    background-color: var(--variant-green);
    opacity: 70%;
}
.tag.grey {
    color: var(--second-text);
    background-color: #a1a1a11e;
}
.tag.blue {
    color: var(--accent-color);
    background-color: var(--primary-color);
}

/*PARTIE RESPONSIVE*/

/*EN DESSOUS DE 1400px*/
@media (max-width: 1400px) {
}

/*EN DESSOUS DE 1024px*/
@media (max-width: 1024px) {
}

/*EN DESSOUS DE 576px*/
@media (max-width: 576px) {
    section.main,
    section.main.certif {margin: 4rem 0 2rem 0; padding-top: 1rem; border-top: none;}
    .header.large {flex-direction: column-reverse; gap: 1rem;}
    .info li {font-size: 1.1rem;}
    .resume p {font-size: 1.1rem;}
}
@media (max-width: 400px) {
    header {padding: 0 3rem;}
}