/*Root*/
:root {
    --background: #F7F7F8;
    --blue: rgb(123, 211, 234);
    --transparent-blue: rgb(123, 211, 234, 0.5);
    --yellow: rgb(249, 250, 171);
    --green: rgb(161, 238, 189);
}

html {
    scroll-behavior: smooth;
}

/*Body*/
body {
    font-family: Arial, sans-serif;
    align-items: center;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--background);
}

/*Common*/
h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.8em;
}
#me p {
    text-align: justify;
}
/*Page wrapper*/
#pageWrapper {
    max-width: 90vw;
    min-width: 80vw;
    height: 100%;
}

/*Header*/
header {
    height: 100px;
    margin-top: 30px;
}

/*Navigation*/
nav {
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    width: 100%;
    border-radius: 100px;
    background-color: white;
    box-shadow: 0 4px 2px -4px gray;
    z-index: 100;
    transition: 0.3s;
}

.scrolled {
    position: fixed;
    top: 0;
    width: 100%;
    border-radius: 0 0 25px 25px;
    transition: 0.3s;
}

nav div>a {
    margin-left: 10px;
}

nav>a {
    margin-right: 10px;
}

nav ul {
    gap: 50px;
}

nav a {
    position: relative;
    text-decoration: none;
    color: black;
    font-size: 1.2em;
    font-weight: bold;
}
nav div:last-child {
    margin-right: 10px;
    gap: 10px;
}
nav img {
    border-radius: 50%;
    width: 30px;
    height: 30px;

}

nav ul a:before {
    content: "●";
    display: flex;
    justify-content: center;
    position: absolute;
    visibility: hidden;
    width: 100%;
    top: 25px;
    opacity: 0;
}

nav ul a:hover:before {
    opacity: 1;
    visibility: visible;
    transition: 0.5s;
}

/*Hero*/
#hero {
    height: 90vh;
}

#hero article {
    justify-content: center;
    align-items: start;
    width: 560px;
}

#hero h1 {
    position: relative;
    margin: 0;
    padding: 10px 20px;
    border-radius: 25px;
    background-color: var(--blue);
    animation: jiggle 5s infinite reverse;
    transition: 0.5s;
}

@keyframes jiggle {
    0% {
        transform: translateX(0);
    }

    5% {
        transform: translateX(-5px);
    }

    10% {
        transform: translateX(5px);
    }

    15% {
        transform: translateX(-5px);
    }

    20% {
        transform: translateX(5px);
    }

    25% {
        transform: translateX(0);
    }
}

#hero h1:hover {
    padding-left: 280px;
    background-color: var(--transparent-blue);
    animation: none;
    transition: 0.5s;
}

#hero h1:before {
    font-family: "Noto Color Emoji", Arial, sans-serif;
    position: absolute;
    visibility: hidden;
    content: "\1F44B Salut, c'est ";
    left: -150px;
    opacity: 0;
    width: 280px;
    transition: 0.5s;
}

#hero h1:hover:before {
    left: 10px;
    opacity: 1;
    visibility: visible;
    transition: 0.5s;
}

#carousel-complements {
    justify-content: center;
}

#carousel-complements ul {
    position: relative;
    width: 400px;
    margin: 0;
    padding-left: 7px;
}

#carousel-complements li {
    white-space: nowrap;
}
#carousel-complements h3 {
    line-height: 1;
}
.complement {
    position: absolute;
    transition: 0.5s;
    opacity: 0;
    z-index: -1;
    top: 2px;
}

.complementActive {
    opacity: 1;
    z-index: 1;
}

/*Projects*/
#projects {
    min-height: 90vh;
    padding-top: 100px;
    /*align-items: center;*/
}

#projects article:last-child {
	padding: 20px;
    border-radius: 25px;
    background-color: white;
    box-shadow: 0 4px 2px -4px gray;
    height: min-content;
    max-width: 800px;
}
#projects article:last-child h2{
    margin: 0;
}
#projects article:last-child iframe {
	width: 100%;
	height: 400px;
	border: none;
	border-radius: 25px;
}
#carousel-projects {
    justify-content: center;
    height: min-content;
}

#carousel-projects aside button {
    height: 40px;
    width: 40px;
    border: none;
    cursor: pointer;
    z-index: 2;
    color: black;
}

#carousel-projects>ul {
    position: relative;
    width: 700px;
    height: 700px;
    margin: 0;
    padding: 0 20px;
}

.project {
    position: absolute;
    align-items: center;
    justify-content: start;
    width: 700px;
    max-height: 800px;
    background-color: white;
    border-radius: 25px;
    box-shadow: 0 4px 2px -4px gray;
    transition: 0.5s;
    opacity: 0;
    z-index: -1;
}
.project .button {
    height: 20px;
    width: 100px;
    margin: 10px 0;
}

.project h3 {
    margin: 0;
    padding: 10px 20px;
    text-align: center;
}

.project img {
    display: block;
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    border-radius: 25px 25px 0 0;
}

.project ul {
    padding: 0;
}
.hide{
    display: none;
}
.details {
    gap: 10px;
}

.details li {
    font-size: 1.3em;
}

.details li span {
    font-weight: bold;
    font-family: Arial, sans-serif;
}

.project p {
    max-width: 600px;
}

.project-active {
    opacity: 1;
    z-index: 1;
}

#popup-container {
    position: relative;
}

#popup {
    visibility: hidden;
    position: absolute;
    opacity: 0;
    background-color: var(--green);
    width: 300px;
    border-radius: 25px;
    padding: 10px;
    z-index: 100;
    transition: 0.5s;
}

#popup ul {
    padding: 0;
}

#popup li {
    justify-content: start;
    align-items: center;
}

/* Resume */
#resume {
    padding-bottom: 100px;
}
#resume>div {
    justify-content: space-around;
    gap: 20px;
}

.resume-element, .first-resume-element {
    justify-content: space-between;
    width: 410px;
    padding: 0 0 20px 20px;
    border-left: 2px solid var(--blue);
    position: relative;
    background-color: white;
    border-radius: 0 25px 25px 0;
    transition: 0.5s;
}
.resume-element:hover {
    width: 450px;
}
#resume article {
    width: 500px;
}
.resume-element:hover::before {
    transform: scale(1.5);
    transition: 0.5s;
}
.resume-element::before{
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50px;
    left: -11px;
    top: 0;
    background: var(--background);
    border: 2px solid var(--blue);
    transition: 0.5s;
}
.completed-resume-element::before {
    background: var(--green);
}
.first-resume-element::after {
    content: '\1F680';
    font-family: 'Noto Color Emoji ', serif;
    font-size: 24px;
    margin-right: 8px;
    position: absolute;
    top: 95%;
    left: -11px;
}
.resume-element img {
    object-fit: contain;
    max-width: 100%;
    max-height: 100px;
    margin: 10px;
    opacity: 0;
    transition: 0.5s;
}
.resume-element:hover img {
    opacity: 1;
    transition: 0.5s;
}

/*Me*/
#me {
    padding-top: 100px;
}
#me > div {
    gap: 20px;
    justify-content: space-evenly;
}
#me  article {
    padding: 20px;
    border-radius: 25px;
    background-color: white;
    box-shadow: 0 4px 2px -4px gray;
    height: min-content;
    max-width: 800px;
}
#me h3 {
    margin: 0;
}
#me > div > article ul {
    padding: 0;
    gap: 10px;
}
#me > div > div {
    max-width: 600px;
    gap: 20px;
}
#me > div > article:last-child li {
    margin: 10px 0;
}
#me > div > article:last-child ul {
    padding-left: 8px;
}
.progress-bar {
    width: 100%;
    height: 20px;
    background-color: var(--background);
    border-radius: 100px;
    overflow: hidden;
    box-shadow: 0 4px 2px -4px gray;
    margin: 10px 0;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 100px;
    background-color: var(--green);
}
.skill-90 { width: 90%; }
.skill-80 { width: 80%; }
.skill-70 { width: 70%; }
.skill-60 { width: 60%; }
.skill-50 { width: 50%; }
.skill-40 { width: 40%; }
.skill-30 { width: 30%; }
.skill-20 { width: 20%; }

.card-passion, .card-tech {
    width: 100px;
    height: 100px;
    position: relative;
    cursor: pointer;
    perspective: 1000px;
}

.card-passion .card-side, .card-tech .card-side {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 25px;
    transition: 0.5s;
}

.card-passion .card-front, .card-tech .card-front {
    /*background-color: #f0f0f0;*/
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1;
    font-size: 3em;
    perspective: 1000px;
}

.card-passion .card-back, .card-tech .card-back {
    /*background-color: #f0f0f0;*/
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1;
    transform: rotateY(180deg);
    perspective: 1000px;
}

.card-passion:hover .card-front, .card-hovered .card-front, .card-tech:hover .card-front, .card-tech-hovered .card-front {
    transform: rotateY(-180deg);
}

.card-passion:hover .card-back, .card-back-hovered .card-back, .card-tech:hover .card-back, .card-tech-hovered .card-back {
    transform: rotateY(0);
}

.soft-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0;
}

.skill-badge {
  background-color: #f5f5f5;
  border-radius: 30px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
}

.skill-badge:hover {
  background-color: #e0f7fa;
  transform: scale(1.05);
  cursor: default;
}
footer p {
    margin: 0;
    padding: 10px;
    text-align: center;
    background-color: white;
    border-radius: 25px;
    box-shadow: 0 4px 2px -4px gray;
}
