/* ------------------- */
/* Custom properties   */
/* ------------------- */

:root {
    /* colors */
    --clr-orange: 22 65% 57%;
    --clr-blackLight: 0 0% 6%;
    --clr-black: 0 0% 0%;
    --clr-grey: 0 0% 90%;
    --clr-darkGray: 0 0% 60%;
    --clr-lightWhite: 0 0% 98%;
    --clr-orangeLight: 30 85% 75%;
    --clr-white: 0 0% 100%;
    
    /* font-sizes */
    --fs-900: 1.5rem;
    --fs-800: 1.25rem;
    --fs-700: 1.125rem;
    --fs-600: .95rem;
    --fs-500: 0.6rem;
}

@media (min-width: 35em) {
    :root {
        --fs-900: 2rem;
        --fs-800: 1.5rem;
        --fs-700: 1.25rem;
        --fs-600: 1.1rem;
        --fs-500: 0.7rem;
    }
}

@media (min-width: 45em) {
    :root {
        /* font-sizes */
        --fs-900: 3rem;
        --fs-800: 1.75rem;
        --fs-700: 1.5rem;
        --fs-600: 1.3rem;
        --fs-500: 0.9rem;
    }
}

/* ------------------- */
/* Reset               */
/* ------------------- */

/* Box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Reset margins */
body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
picture {
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    font-weight: 400;
}

/* set up the body */
body {
    font-family: 'Manrope', sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    display: grid;
    grid-template-rows: min-content min-content 1fr;
    overflow-x: hidden;
    background: rgb(11, 11, 11);
    margin: 0;
}

/* make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* make form elements easier to work with */
input,
button,
textarea,
select {
    font: inherit;
}

/* remove animations for people who've turned them off */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ------------------- */
/* Utility classes     */
/* ------------------- */

/* general */

.flex {
    display: flex;
    gap: var(--gap, 1rem);
}

.grid {
    display: grid;
    gap: var(--gap, 1rem);
}

.flow > *:where(:not(:first-child)) {
    margin-top: var(--flow-space, 1rem);
}

.container {
    padding-inline: 2em;
    margin-inline: auto;
    max-width: 80rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; /* added line */
  border: 0;
}

/* colors */

.text-black { color: hsl( var(--clr-black) );}
.text-gray { color: hsl( var(--clr-darkGray) );}
.text-cyan { color: hsl( var(--clr-cyan) );}

/* typography */

.uppercase { text-transform: uppercase; }

.fs-900 { font-size: var(--fs-900); }
.fs-800 { font-size: var(--fs-800); }
.fs-700 { font-size: var(--fs-700); }
.fs-600 { font-size: var(--fs-600); }
.fs-500 { font-size: var(--fs-500); }



/*    Layout    */


/* primary header */

.primary-header {
    justify-content: center;
    padding-top: 2rem;
    padding-inline: 1.5rem;
    height: 5rem;
    background: hsl( var(--clr-black) );
}

.linkTitle {
    position: absolute;
    padding-left: 1.7rem;
}

.primary-header a {
    color: hsl( var(--clr-white) );
    text-decoration: none;
    top: 1rem;
    left: 2rem;
    font-weight: bold;
    letter-spacing: 1.3px;
}

@media (min-width:786px) {
    .primary-header {
        justify-content: space-between;
        padding-inline: 10.375rem;
        padding-top: 0;
        align-items: center;
    }
}

.logo {
    position: absolute;
    top: 1.5rem;
    left: 1rem;
    width: 38px;
}

.mobile-nav-toggle {
    background: url(./assets/icon-hamburger.svg);
    background-repeat: no-repeat;
    width: 1rem;
    aspect-ratio: 1;
    border: none;
    position: absolute;
    top: 2.2rem;
    right: 1.5rem;
}

nav {
    margin-top: 1.25rem;
    z-index: 10000;
}

@media (min-width: 786px) {
    nav {
        margin-top: 0;
        
    }
}

.primary-navigation {
    flex-direction: column;
    list-style: none;
    transform: translateY(-300%);
    transition: transform 500ms ease-in-out;
    padding-inline-start: 0;
}

.primary-navigation-toggle {
    transform: translateY(0%);
    transition: transform 500ms ease-in-out;
    background: rgb(248, 246, 246);
    width: 225px;
    height: 255px;
    border: 1px solid rgba(0, 0, 0, 0.0497193);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    padding-top: .5rem;
}

a { 
    padding-top: 1rem;
}

.primary-navigation a {
    color: hsl( var(--clr-black) );
    text-decoration: none;
    font-weight: bold;
    font-size: .6rem;
    line-height: 22px;
    padding-left: 2.5rem;
    letter-spacing: .2rem;
}

.separator {
    width: 100%;
    background: #2F2F2F;;
    opacity: .1;
}

@media (min-width: 786px) {
    .mobile-nav-toggle {
        display: none;
    }

    .primary-navigation {
        flex-direction: row;
        transform: translateY(-60%);
    }

    .primary-navigation a {
        position: relative;
        color: white;
        font-size: .5rem;
        padding-left: 0;
        margin-left: 1.5rem;
    }
    
    .primary-navigation a::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: hsl(var(--clr-orange));
        bottom: -3px;
        left: -0.5%;
        transform: scaleX(0);
        transform-origin: bottom left;
        transition: transform 0.5s ease-out;
    }
    
    .primary-navigation a:hover::after {
        transform: scaleX(1);
        transform-origin: bottom left;
    }

    .separator {
        display: none;
    }
}

@media (min-width: 936px) {
    .primary-navigation a {
        font-size: .8rem;
    }
}

.current-page a{
    text-decoration: underline;
    text-underline-offset: 0.3rem;
    text-decoration-thickness: 0.1rem;
    color: hsl( var(--clr-orange) );
}

.main {
    margin-inline: auto;
}

.sep {
    background-color: hsl( var(--clr-black) );
    margin:0px;
    justify-self: center;
}

.hero {
    background-color: hsl( var(--clr-black) );
    color: hsl( var(--clr-grey) );
    padding-inline: 1.5rem;
    gap: 2rem;
    justify-content: space-around;
    padding-top: 2rem;
}


.overlay {
    align-self: center;
}

.hero-title {
    font-size: var(--fs-900);
    letter-spacing: 2px;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: var(--fs-500);
    color: hsl( var(--clr-darkGray) );
    letter-spacing: 1.5px;
    margin-bottom: .4rem;
}

.hero-image {
    width: 10rem;
    height: 13rem;
    object-fit: cover;
    object-position: center;
    border-radius: 30px;
    box-shadow: -20px 0 -70px 30px rgba(9, 9, 9, 0.95);
    filter: brightness(0.9);
    position: relative;
}

@media (min-width: 786px) {

    nav {
        margin-top: 0;
    }

    .hero-image{
        width: 14rem;
        height: 14rem;
    }
}

@media (min-width: 859px) {
    .hero-image{
        width: 20rem;
        height: 22rem;
    }
}

.about {
    background-color: rgb(236, 235, 235);
    color: hsl( var(--clr-blackLight) );
    padding-inline: 4.5rem;
    gap: 2rem;
    justify-content: space-around;
    padding-top: 2rem;
    padding-bottom: 3rem;
    font-size: var(--fs-500);
    min-height: 20rem;
}

.about-description {
    padding-top: 1rem;
}

@media (min-width: 859px) {
    .about {
        padding-inline: 15%;
        padding-top: 6rem;

    }

    .about-description{
        width: 35rem;
        font-size: var(--fs-600);
        padding-top: 2rem;
    }
}

.highlight {
    color: hsl( var(--clr-orange) );
}

@media (max-width:35rem) {
    .graphs{
        flex-direction: column;
    }
    .graph {
        width: 20rem;
        height: auto;
    }
    .language {
        width: 20rem;
        height: auto;
    }
}

.link-bio {
    color: hsl( var(--clr-orange) );
    text-decoration: none;
    margin: 0;
    padding: 0;
}


/* Projets */

.infra-container {
    display: flex;
    flex-direction: column;
    padding-inline: 4.5rem;
    gap: 3rem;
    padding-top: 2rem;
    padding-bottom: 5rem;
    justify-content: space-around;
}

.infra {
    height: auto;
    max-width: 100%;
    border: #2F2F2F 1px solid;
    max-height: 25rem;
}

@media (min-width: 786px) {
    .infra-container {
        flex-direction: row;
        padding-inline: 1.5rem;

    }
    
}

.thm {
    display: flex;
    border-radius: 2rem;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
 }

.thm p {
    font-size: var(--fs-600);
    color: hsl( var(--clr-cyan) );
 }

.thm-desc {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding-left: .5rem;
}

.thm-desc img {
    margin-right: -.8rem;
}

/* Sites */

.sites {
    background-color: hsl( var(--clr-grey) );
    color: hsl( var(--clr-blackLight) );
    padding-inline: 4.5rem;
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 5rem;
    font-size: var(--fs-600);
}

.sites h2 {
    font-size: var(--fs-900);
    font-weight: bold;
    margin-bottom: 2rem;
}

.sites p {
    font-size: var(--fs-600);
    margin-bottom: 1rem;
}

.sites a {
    color: hsl( var(--clr-orange) );
    text-decoration: none;
    font-weight: bold;
}

.portfolio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(247, 237, 224, 0.911);
    color: hsl(var(--clr-orange));
    padding: 2rem;
    padding-top: 5rem;
}

.portfolio a {
    text-decoration: none;
    color: hsl( var(--clr-blackLight) );
}

.portfolio h2 {
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    text-align: center;
}

.list-projects {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    justify-content: center;
    align-items: center;
}

.box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 18rem;
    border: solid 2px rgba(190, 188, 185, 0.511);
    border-radius: 25px;
    background-color: hsl( var(--clr-grey) );
    align-items: center;
    box-shadow: 2px 2px 2px #a6a5a5, -1px -1px 1px #a9a9a6;
    justify-content: center;
    text-align: center;
}

.box img {
    max-width: 15rem;
    padding-top: 1.5rem;
}

.box a {
    font-weight: bold;
    color: rgb(53, 53, 53);
}

.details {
    color: hsl(var(--clr-blackLight));
    padding-bottom: 1.5rem;
    text-align: center;
}

.details summary {
    text-decoration: underline;
    cursor: pointer;
}

.description {
    padding-top: 1rem;
    padding-inline: 1rem;
    text-decoration: none;
    text-align: center;
}

@media (min-width: 786px) {
    .box {
        gap: 1rem;
        width: 20rem;
        min-height: 17rem;
    }
    
    .box img {
        max-width: 15rem;
        padding-top: 1.5rem;
    }

    .list-projects {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1550px) {
    .box {
        gap: 1rem;
        width: 28rem;
        min-height: 21rem;
    }
    
    .box img {
        max-width: 25rem;
        padding-top: 1.5rem;
    }

    .list-projects {
        grid-template-columns: 1fr 1fr 1fr; 
        
    }
}

/* Projets */

.projects-section {
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.projects-section h1 {
    color: hsl( var(--clr-orange) );
    text-align: center;
    margin-bottom: 3rem;
    font-size: var(--fs-800);
}

.project-card {
    background: rgb(236, 235, 235);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-card h2 {
    color: hsl( var(--clr-orange) );
    margin-bottom: 1rem;
    font-size: var(--fs-600);
    font-weight: bold;
}

.project-card ul {
    list-style-type: none;
    padding-left: 1rem;
    margin: 1rem 0;
}

.project-card li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.project-card li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: hsl( var(--clr-orange) );
    font-size: 1.6rem;
    top: -0.6rem;
    left: -0.5rem;
}

.progress {
    color: hsl( var(--clr-orange) );
    font-weight: bold;
}

.timeline {
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px solid hsl( var(--clr-orange) );
}

.timeline-item {
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: hsl( var(--clr-orange) );
    border-radius: 50%;
}

@media (min-width: 768px) {
    .projects-section {
        padding: 4rem;
    }
}

/* CV */

.cv-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    max-width: 1200px;
    background-color: rgb(236, 235, 235);
    color: hsl( var(--clr-blackLight) );
}

.cv-section h1 {
    color: hsl( var(--clr-orange) );
    text-align: center;
    margin-bottom: 3rem;
    font-size: var(--fs-800);
}

.cv-card {
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cv-card h2 {
    color: hsl( var(--clr-orange) );
    margin-bottom: 1.5rem;
    font-size: var(--fs-700);
    border-bottom: 2px solid hsl( var(--clr-orange) );
    padding-bottom: 0.5rem;
}


.cv-item {
    position: relative;
    margin-bottom: 2rem;
    border-left: 2px solid hsl( var(--clr-orange) );
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: .3rem .3rem .1rem .6rem;
}

.cv-item h3 {
    font-size: var(--fs-700);
    color: hsl( var(--clr-orange) );
    margin-bottom: 0.5rem;
}

.cv-item h4 {
    font-size: var(--fs-600);
    margin-bottom: 0.5rem;
}
.cv-timeline h3,h4 .cv-item h3,h4 {
    font-weight: bold;
}

.cv-content {
    margin-left: 1rem;
}

.cv-content ul {
    list-style-type: none;
    padding-left: 1rem;
}

.cv-content li {
    margin-bottom: 0.3rem;
    position: relative;
    padding-left: 1.5rem;
}

.cv-content li::before {
    content: "→";
    position: absolute;
    left: -1rem;
    color: hsl( var(--clr-orange) );
    font-size: 1.6rem;
    top: -0.6rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.skill-category {
    border-left: 2px solid hsl( var(--clr-orange) );
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding-left: 1rem;
    padding-top: .3rem;
}

.skill-category h3 {
    color: hsl( var(--clr-orange) );
    margin-bottom: 1rem;
    font-size: var(--fs-600);
}

.skill-category ul {
    list-style-type: none;
    padding-left: 1rem;
}

.skill-category li {
    padding-bottom: .1rem;
}

@media (max-width: 768px) {
    .cv-section {
        padding: 1rem;
    }
    
    .cv-card {
        padding: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact */

.contact-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-section h1 {
    color: hsl( var(--clr-orange) );
    text-align: center;
    margin-bottom: 3rem;
    font-size: var(--fs-800);
}

.contact-card {
    background: hsl( var(--clr-white) );
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-card h2 {
    color: hsl( var(--clr-orange) );
    margin-bottom: 1.5rem;
    font-size: var(--fs-700);
    text-align: center;
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
    border: #f3ad4b 1px solid;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    color: inherit;
    display: block;
}

.contact-item:hover {
    transform: translateY(-4px);
    background-color: hsl( var(--clr-lightGray) );
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
}

.contact-item h3 {
    color: hsl( var(--clr-orange) );
    margin-bottom: 1rem;
    font-size: var(--fs-600);
}

.contact-link {
    display: inline-block;
    color: hsl( var(--clr-orange) );
    margin-top: 0.5rem;
    font-weight: bold;
}

.contact-item:hover {
    transform: translateY(-5px);
    background-color: hsl( var(--clr-lightGray) );
}

.contact-link {
    display: inline-block;
    color: hsl( var(--clr-orange) );
    margin-top: 0.5rem;
    font-weight: bold;
}

.contact-item:hover .contact-link {
    color: hsl( var(--clr-blackLight) );
}

@media (max-width: 768px) {
    .contact-section {
        padding: 1rem;
    }
    
    .contact-card {
        padding: 1rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
}

/* footer */

.footer {
    height: 4rem;
    background-color: hsl( var(--clr-black) );
    justify-content: flex-end;
    padding-right: 3rem;
    padding-top: 1rem;
    color: hsl( var(--clr-darkGray) );
    bottom:0;
    margin-top: auto;
}

.footer a {
    text-decoration: none;
    width: 24px;    
    align-self: center;
    padding-top: 0;
    padding-bottom: 1rem;
}

.footer img {
    filter: invert(50%);
    height: 36px;
    width:36px;
    }

.footer img:hover {
    cursor: pointer;
    filter: invert(67%) sepia(16%) saturate(3861%) hue-rotate(329deg) brightness(93%) contrast(82%);
}

.footer a:hover {
    cursor: pointer;
    color: hsl(var(--clr-orange));
}

.social-img {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-left: 2rem;
}

.social-img img {
    max-width: fit-content;}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: hsl(var(--clr-black));
    transform: translateY(100%);
    transition: transform 1000ms ease-in-out;
    color: hsl(var(--clr-white));
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .2rem;
    z-index: 1000;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    margin: 0;
    font-size: var(--fs-500);
    padding: 1rem;
}

.cookie-banner button {
    background-color: hsl(var(--clr-orange));
    color: hsl(var(--clr-white));
    border: none;
    padding: .3rem;
    cursor: pointer;
    font-size: var(--fs-500);
    border-radius: 10px;
}

@media (min-width: 859px) {
    .btn-cookies{
        padding-right: 3rem;
    }
}

.cookie-banner button:hover {
    background-color: hsl(var(--clr-orangeLight));
}

.copyright {
    font-size: var(--fs-500);
}