@import url(links.css);

/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/** end reset css**/

/* Personnalisation des éléments général à chaque pages */
:root {
  --color-text: black;
  --color-primary: white;
  --color-secondary: #FF9F59;
  --color-tertiary: #0060a6;
}

h1 {
  font-weight: bold;
	font-size: 28px;
  margin-bottom: 40px;
  border-top: 4px solid var(--color-text);
  padding-top: 10px;
}

h2 {
  font-style: italic;
  font-weight: bold;
	font-size: 24px;
  margin-bottom: 20px;
}

h3 {
  font-weight: bold;
	font-size: 22px;
}

p {
  font-size: 20px;
}

html {
  scroll-behavior: smooth;
  cursor: default;
}

body {
  margin: auto;
  font-family: 'Consolas';
}

header {
  display: flex;
  height: 50px;
}

nav {
  position: fixed;
  top: 0px;
  height: 50px;
  width: calc(100% - 50px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 50px;
  border-bottom: solid 2px;
  background-image: url("/frontend/assets/images/banner/navbar.webp");
  z-index: 9999;
}

nav.static {
  position: relative;
}

#home_icone {
  position: fixed;
  cursor: pointer;
  left: 0px;
  top: 0px;
}

#home_icone.dark {
  fill: var(--color-text);
}

#home_icone.light {
  fill: var(--color-primary);
}

#menu_icone {
  position: fixed;
  cursor: pointer;
  width: 30px;
  height: 30px;
  right: 10px;
  top: 10px;
}

#menu_color_icone {
  position: absolute;
  cursor: pointer;
  width: 30px;
  height: 30px;
  right: 60px;
  top: 10px;
}

#menu_icone.dark {
  fill: var(--color-text);
}

#menu_icone.light {
  fill: var(--color-primary);
}

nav ul {
	display: flex;
	list-style-type: none;
}

nav ul a {
	cursor: pointer;
  text-decoration: none;
  color: var(--color-primary);
	padding: 0 10px;
	font-size: 24px;
  border-right: solid 2px;
}

nav ul a:hover {
  font-weight: bold;
}

main {
  width: calc(100% - 100px);
	max-width: 1200px;
	margin: auto;
  margin-top: 40px;
  border-right: solid 2px;
  border-left: solid 2px;
}

section {
	margin: 0px 40px 40px 40px;
}

#section_profile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: calc(100% - 80px);
  padding-top: 40px;
  background-size: cover;
  background-image: url("/frontend/assets/images/profile/profile_picture_saturated.jpg");
  border-radius: 25px;
  aspect-ratio: 16 / 9;
  color: var(--color-primary);
}

#profile {
  margin-left: 40px;
}

#profile h1 {
  font-size: 48px;
  border-top: none;
  padding-top: 0px;
  -webkit-animation: text-shadow-pop-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	animation: text-shadow-pop-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.text-container {
  display: inline-block;
}

#profile h2 {
  width: calc(100% - 5px);
  font-size: 40px;
  text-align: start;
  border-right: 5px solid var(--color-text);
  white-space: nowrap;
  overflow: hidden;
}

#profile p {
  font-size: 32px;
  max-width: 40%;
  -webkit-animation: tracking-in-expand 0.7s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
	animation: tracking-in-expand 0.7s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

#download_cv {
  display: block;
  width: fit-content;
  background: -moz-linear-gradient(45deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%);
  background: -webkit-linear-gradient(45deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%);
  background: linear-gradient(45deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  border-radius: 50px;
  border: 3px solid var(--color-primary);
  padding: 15px;
  margin-top: 20px;
  margin-bottom: 20px;
  margin-left: calc(50% - 97px);
  transition: all 0.2s ease-in-out;
}

#download_cv:hover {
  scale: 1.05;
  -webkit-animation: vibrate-1 5s linear infinite both;
	animation: vibrate-1 5s linear infinite both;
}

#services {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 40px;
}

.service {
  border-right: 2px solid var(--color-text);
  border-bottom: 2px solid var(--color-text);
}

.service p {
  margin: 0px 10px 15px 0px;
  -webkit-animation: tracking-in-expand 0.7s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
	animation: tracking-in-expand 0.7s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

.tri-btn {
  display: flex;
  justify-content: center;
  overflow-wrap: break-word;
  flex-wrap: wrap;
  height: auto;
  margin-bottom: 30px;
}

.tri-btn button {
  min-width: 110px;
  font-size: 16px;
  font-weight: bold;
  color: var(--color-primary);
  background: linear-gradient(45deg, rgba(9,9,121,1) 0%, rgba(0,212,255,1) 100%);
  transition: background-color 1s;
  border: 2px solid var(--color-text);
  border-radius: 20px;
  margin: 5px;
  padding: 7.5px 10px;
}

.tri-btn button:hover {
  scale: 1.1;
  color: var(--color-text);
}

.btn_active {
  color: var(--color-text) !important;
}

/* Start Box Modal Project */

.modal {
  display: none;
  position: fixed;
  z-index: 9999; /* Assure que la modal est au-dessus des autres éléments */
  left: 50%;
  top: 40%;
  width: 300px;
  transform: translate(-50%, -50%);
  background-color: var(--color-primary);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#modal_header {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
}

#icone_group {
  display: flex;
  flex-direction: row-reverse;
}

.link_icone {
  width: 20px;
  height: 20px;
  padding: 5px;
}

.link_icone:hover {
  background-color: cyan;
  border-radius: 5px;
}

.link_icone img {
  width: 100%;
}

.modal_close {
  width: 20px;
  height: 20px;
  padding: 5px;
  transition: all 0.2s ease-in-out;
}

.modal_close:hover {
  filter: invert(100%);
  background-color: cyan;
  border-radius: 5px;
}

#modal_name {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  margin-right: 20px;
  color: var(--color-secondary);
}

#modal_environment {
  display: flex;
  justify-content: space-evenly;
  color: var(--color-tertiary);
}

#modal_mid_content {
  display: flex;
  margin-bottom: 20px;
  gap: 10px;
}

#modal_info {
  width: calc(100% - 120px);
}

#modal_link {
  width: 100px;
  height: 100px;
  font-size: 0px;
  border: thick double var(--color-text);
  transition: all 0.2s ease-in-out;
}

#modal_link:hover {
  border-color: var(--color-secondary);
}

#modal_img {
  width: 100%;
}

#modal_sub_content h2 {
  color: var(--color-secondary);
}

#modal_difficulty p {
  border-left: 3px solid var(--color-text);
  padding-left: 10px;
  margin-bottom: 10px;
}

#modal_difficulty p:hover {
  border-left: 3px solid var(--color-secondary);
}

#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Couleur d'arrière-plan semi-transparente */
}

#modal_themes {
  display: flex;
  justify-content: center;
  overflow-wrap: break-word;
  flex-wrap: wrap;
  height: auto;
  gap: 12.5px;
}

#theme {
  width: 46px;
  height: 46px;
  border: 2px solid black;
}

/* End Box Modal Project */

#projects {
  display: grid;
  justify-items: center;
  align-items: start;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 40px;
}

.overlay {
  display: block;
  width: calc(100% - 40px);
  height: calc(100% - 12px);
  border: 2px solid var(--color-text);
}

.overlay_second {
  display: block;
  width: calc(100%);
  height: calc(100%);
  border: 2px solid var(--color-text);
  -webkit-transform: translate(6px,6px);
  transform: translate(6px,6px);
}

.project {
  display: flex;
  width: calc(100%);
  height: calc(100%);
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  background-color: var(--color-primary);
  transform-origin: top left;
  transition: transform 0.1s ease-in-out;
  margin-bottom: 4px;
}

.project:hover {
  -webkit-transform: translate(6px,6px);
  transform: translate(6px,6px);
  border: 2px solid var(--color-text);
  margin-bottom: 0px;
}

.project h2 {
  width: 100%;
  text-align: center;
  padding: 10px 0px;
  margin-bottom: 0px;
  color: var(--color-primary);
  background: -moz-linear-gradient(45deg, rgba(131,58,180,1) 0%, rgba(253,29,29,1) 50%, rgba(252,176,69,1) 100%);
  background: -webkit-linear-gradient(45deg, rgba(131,58,180,1) 0%, rgba(253,29,29,1) 50%, rgba(252,176,69,1) 100%);
  background: linear-gradient(45deg, rgba(131,58,180,1) 0%, rgba(253,29,29,1) 50%, rgba(252,176,69,1) 100%);
  border-bottom: 2px solid var(--color-text);
}

.project img {
  width: calc(100%);
  height: calc(100%);
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

#skills h2 {
  text-align: center;
}

.skills_tools {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.skills_tool {
  width: 110px;
  text-align: center;
  margin-bottom: 20px;
  overflow-wrap: break-word;
}

.skills_tool img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 15%;
  border: solid 2px;
}

.skills_tool img:hover {
  -webkit-animation: shadow-pop-tr 0.2s ease-in-out forwards;
	animation: shadow-pop-tr 0.2s ease-in-out forwards;
}

#section_links {
  margin: 0px 40px 50px 40px;
}

#section_links h1 {
  margin-bottom: 10px;
}

#links {
  align-items: center;
}

footer {
	position: relative;
	width: 100%;
  height: 50px;
  background: -moz-linear-gradient(45deg, rgba(131,58,180,1) 0%, rgba(253,29,29,1) 50%, rgba(252,176,69,1) 100%);
  background: -webkit-linear-gradient(45deg, rgba(131,58,180,1) 0%, rgba(253,29,29,1) 50%, rgba(252,176,69,1) 100%);
  background: linear-gradient(45deg, rgba(131,58,180,1) 0%, rgba(253,29,29,1) 50%, rgba(252,176,69,1) 100%);
}

/* Start Media Queries */

@media (max-width: 1350px) {
}

@media (max-width: 1050px) {
  #section_profile {
    padding-top: 30px;
  }
  #projects {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 1000px) {
  #profile h1 {
    font-size: 30px;
    margin-bottom: 15px;
  }
  #profile h2 {
    font-size: 26px;
    margin-bottom: 10px;
  }
  #profile p {
    font-size: 22px;
  }
}

@media (max-width: 900px) {
  #services {
    grid-template-columns: 1fr;
  }
  #projects {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  #section_profile {
    padding-top: 20px;
  }
  #profile {
    margin-left: 20px;
  }
  #mindmap_skills {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 700px) {
  #profile h1 {
    font-size: 24px;
  }
  #profile h2 {
    font-size: 20px;
  }
  #profile p {
    font-size: 16px;
    max-width: 50%;
  }
}

@media (max-width: 600px) {
  #profile h1 {
    font-size: 22px;
  }
  #profile h2 {
    font-size: 18px;
  }
  #profile p {
    font-size: 14px;
    max-width: 75%;
  }
  #projects {
    grid-template-columns: 1fr;
  }
}

/* End Media Queries */

/* Start KeyFrames CSS */

/* Cursor blinking */
@keyframes cursor {
  50% { border-color: transparent }
}

/* Typing effect */
@keyframes typing {
  from {
    width: 0%
  }
  to {
    width: calc(100% - 5px)
  }
}

@-webkit-keyframes tracking-in-expand {
  0% {
    letter-spacing: -0.5em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}
@keyframes tracking-in-expand {
  0% {
    letter-spacing: -0.5em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

@-webkit-keyframes text-shadow-pop-top {
  0% {
    text-shadow: 0 0 #555555, 0 0 #555555, 0 0 #555555, 0 0 #555555, 0 0 #555555, 0 0 #555555, 0 0 #555555, 0 0 #555555;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  100% {
    text-shadow: 0 -1px #555555, 0 -2px #555555, 0 -3px #555555, 0 -4px #555555, 0 -5px #555555, 0 -6px #555555, 0 -7px #555555, 0 -8px #555555;
    -webkit-transform: translateY(8px);
            transform: translateY(8px);
  }
}
@keyframes text-shadow-pop-top {
  0% {
    text-shadow: 0 0 #555555, 0 0 #555555, 0 0 #555555, 0 0 #555555, 0 0 #555555, 0 0 #555555, 0 0 #555555, 0 0 #555555;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  100% {
    text-shadow: 0 -1px #555555, 0 -2px #555555, 0 -3px #555555, 0 -4px #555555, 0 -5px #555555, 0 -6px #555555, 0 -7px #555555, 0 -8px #555555;
    -webkit-transform: translateY(8px);
            transform: translateY(8px);
  }
}

@-webkit-keyframes shadow-pop-tr {
  0% {
    -webkit-box-shadow: 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e;
    box-shadow: 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e;
    -webkit-transform: translateX(0) translateY(0);
    transform: translateX(0) translateY(0);
  }
  100% {
    -webkit-box-shadow: 0.5px -0.5px #3e3e3e, 1px -1px #3e3e3e, 1.5px -1.5px #3e3e3e, 2px -2px #3e3e3e, 2.5px -2.5px #3e3e3e, 3px -3px #3e3e3e, 3.5px -3.5px #3e3e3e, 4px -4px #3e3e3e;
    box-shadow: 0.5px -0.5px #3e3e3e, 1px -1px #3e3e3e, 1.5px -1.5px #3e3e3e, 2px -2px #3e3e3e, 2.5px -2.5px #3e3e3e, 3px -3px #3e3e3e, 3.5px -3.5px #3e3e3e, 4px -4px #3e3e3e;
    -webkit-transform: translateX(-4px) translateY(4px);
    transform: translateX(-4px) translateY(4px);
  }
}

@keyframes shadow-pop-tr {
  0% {
    -webkit-box-shadow: 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e;
    box-shadow: 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e, 0 0 #3e3e3e;
    -webkit-transform: translateX(0) translateY(0);
    transform: translateX(0) translateY(0);
  }
  100% {
    -webkit-box-shadow: 0.5px -0.5px #3e3e3e, 1px -1px #3e3e3e, 1.5px -1.5px #3e3e3e, 2px -2px #3e3e3e, 2.5px -2.5px #3e3e3e, 3px -3px #3e3e3e, 3.5px -3.5px #3e3e3e, 4px -4px #3e3e3e;
    box-shadow: 0.5px -0.5px #3e3e3e, 1px -1px #3e3e3e, 1.5px -1.5px #3e3e3e, 2px -2px #3e3e3e, 2.5px -2.5px #3e3e3e, 3px -3px #3e3e3e, 3.5px -3.5px #3e3e3e, 4px -4px #3e3e3e;
    -webkit-transform: translateX(-4px) translateY(4px);
    transform: translateX(-4px) translateY(4px);
  }
}

@-webkit-keyframes vibrate-1 {
  0% {
    -webkit-transform: translate(0);
            transform: translate(0);
  }
  20% {
    -webkit-transform: translate(-2px, 2px);
            transform: translate(-2px, 2px);
  }
  40% {
    -webkit-transform: translate(-2px, -2px);
            transform: translate(-2px, -2px);
  }
  60% {
    -webkit-transform: translate(2px, 2px);
            transform: translate(2px, 2px);
  }
  80% {
    -webkit-transform: translate(2px, -2px);
            transform: translate(2px, -2px);
  }
  100% {
    -webkit-transform: translate(0);
            transform: translate(0);
  }
}
@keyframes vibrate-1 {
  0% {
    -webkit-transform: translate(0);
            transform: translate(0);
  }
  20% {
    -webkit-transform: translate(-2px, 2px);
            transform: translate(-2px, 2px);
  }
  40% {
    -webkit-transform: translate(-2px, -2px);
            transform: translate(-2px, -2px);
  }
  60% {
    -webkit-transform: translate(2px, 2px);
            transform: translate(2px, 2px);
  }
  80% {
    -webkit-transform: translate(2px, -2px);
            transform: translate(2px, -2px);
  }
  100% {
    -webkit-transform: translate(0);
            transform: translate(0);
  }
}

.magictime {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.puffIn {
  animation-name: puffIn;
}

@-webkit-keyframes puffIn {
  0% {
    opacity: 0;
    transform-origin: 50% 50%;
    transform: scale(1.5, 1.5);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform-origin: 50% 50%;
    transform: scale(1, 1);
    filter: blur(0px);
  }
}

@keyframes puffIn {
  0% {
    transform-origin: 50% 50%;
    transform: scale(1.1, 1.1);
  }
  100% {
    transform-origin: 50% 50%;
    transform: scale(1, 1);
  }
}

.puffOut {
  animation-name: puffOut;
}

@-webkit-keyframes puffOut {
  0% {
    opacity: 1;
    transform-origin: 50% 50%;
    transform: scale(1, 1);
    filter: blur(0px);
  }
  100% {
    opacity: 0;
    transform-origin: 50% 50%;
    transform: scale(1.5, 1.5);
    filter: blur(2px);
  }
}

@keyframes puffOut {
  0% {
    opacity: 1;
    transform-origin: 50% 50%;
    transform: scale(1, 1);
    filter: blur(0px);
  }
  100% {
    opacity: 0;
    transform-origin: 50% 50%;
    transform: scale(1.5, 1.5);
    filter: blur(2px);
  }
}

/* End KeyFrames CSS */
