@import url("scroll4more.css");
@import url("website.css");

:root {
    --color-text: white;
    --color-titre: #dbdbdb;
    --mobile-diploma: #373737;
    --maxscroll: 200;
}

body {
    background: linear-gradient(#0d0d0d 0%, black 100%);
    color: var(--color-text);
}

#entete {
    height: 100vh;
    color: var(--color-text);
}

.blinking-cursor {
    user-select: none;
    animation: blink 1s steps(2, start) infinite;
  }
  @keyframes blink {
    to {
      visibility: hidden;
    }
  }

#entete img {
    margin-top: 25vh;
    width: 200px;
    height: 200px;
    max-width: 30vh;
    max-height: 30vh;
    border-radius: 125px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.329);
}

#textEnTete h2 {
    margin-top: 0;
    font-family: 'Comfortaa Light';
    font-size: 25px;
}
#textEnTete h1 {
    margin-top: 50px;
    font-family: 'Comfortaa';
    font-weight: bold;
    font-size: 40px;
}

#textEnTete {
    margin: 0 25px;
    text-align: center;
}

#entete, #textEnTete {
    display: flex;
    flex-direction: column;
    align-items: center;
}

main {
  margin-bottom: 30px;
}

.section {
    display: flex;
    margin: auto;
    margin-top: 100px;
    flex-direction: column;
    gap: 20px;
    max-width: var(--max-width);
    padding: 0 30px;
    scroll-margin-top: 100px;
}

.section h2:first-child {
    margin-top: 0;
}

.section h2 {
    font-family: 'Comfortaa SemiBold';
    margin-top: 40px;
}

.section p {
    font-family: 'Comfortaa Light';
    text-align: justify;
    line-height: 1.25em;
    font-size: 15px;
    margin: 10px 0;
}

.titleDecoration {
    width: 75px;
    border: solid var(--color-titre) 1px;
}

.titleSection {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: auto;
    gap: 40px;
    text-align: center;
    font-family: 'Cera Pro';
    color: var(--color-titre);
}

/* ========== À PROPOS DE MOI ========== */
#illustrationPlusText {
    flex-direction: column;
    gap: 40px;
    display: flex;
    align-items: center;
}


.terminal {
    background-color: #1d1e22;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 8px;
    letter-spacing: 1.15px;
    display: flex;
    flex-direction: column;
    animation: floating-windows 5s linear infinite both;
}

.terminal:hover {
  animation-play-state: paused;
}

.termWindowActions > span {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background-color: #e0d976;
    display: inline-block;
}

.termWindowActions {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.termWindowActions > span:first-child {
    background-color: #ebab29;
}
.termWindowActions > span:nth-child(2) {
    background-color: #25c73b;
}
.termWindowActions > span:last-child {
    background-color: #f65853;
}

.viewMoreTerm {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.viewMoreTerm h3 {
  font-family: 'Google Sans';
  font-size: 20px;
}

.viewMoreTerm .projectViewMore {
  width: 150px;
  font-size: 15px;
  margin: 0;
}

.winTitle {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
}

.winTitle img {
  width: 20px;
  height: 20px;
}

.winTitle h2 {
    margin: 0;
    font-size: 20px;
}

.termEntete {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 5px 5px;
}
.termEntete > * {
    margin: 0;
}

#aboutContent {
    display: flex;
    flex-direction: row;
    width: 100%;
}
#aboutContent .aboutPane {
    display: block;
    position: relative;
    flex: 1;
    max-width: var(--max-width);
}

#aboutTerm, #competencesTerm {
    padding-bottom: 40px;
}

#projectTerm, #statsTerm {
    margin-top: -25px;
}

#personaliTerm {
  margin-top: 20px;
  margin-left: 15%;
  background-image: url("../img/svg/personality.svg");
  background-repeat: no-repeat;
  background-size: 40%;
  background-position: 20px 25px;
}

#aboutTerm {
    margin-left: auto;
    margin-right: 0;
    width: 85%;
}

#projectTerm {
    margin-left: auto;
    margin-right: 5%;
    width: 85%;
}

#competencesTerm {
    width: 70%;
}

#statsTerm {
    width: 500px;
    margin-left: 15%;
}

@media screen and (max-width: 1100px) {

  .termWindowActions {
    display: none;
  }

  .terminal {
    animation: none;
  }

  .termEntete {
    justify-content: space-around;
  }

  #aboutContent .aboutPane {
    display: flex;
    flex-direction: column;
  }

  #aboutContent {
    flex-direction: column-reverse;
  }
  
  #aboutTerm, #projectTerm {
    margin-right: auto;
  }
  
  #projectTerm {
    margin-top: auto;
  }

  #personaliTerm {
    margin-left: auto;
    margin-top: auto;
  }
  
  #competencesTerm, #projectTerm, #aboutTerm, #personaliTerm {
    width: auto;
  }
  
  #statsTerm {
    display: none;
  }
  
  #aboutContent, #aboutContent .aboutPane {
    gap: 20px;
  }
  
}

/* =============== DIPLÔME ================ */
.diploma {
    position: relative;
    width: 315px;
    height: 450px;
    margin: 30px auto;
    box-shadow: 0 0 100px rgba(0,0,0, .3);
    border-radius: 10px;
  }
  
  .diploma-header {
    position: relative;
    height: 220px;
    background-size: cover;
    background-position: top;
  }
  
  .diploma-header:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgb(5,85,134), rgba(181,181,181, -0.20));
    border-radius: 10px;
  }
  
  .diploma-image {
    position: absolute;
    margin-top: 100px;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #222;
    font-size: 20px;
    font-weight: 400;
  }
  
  .diploma-header-bar {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
    width: 100%;
  }
  
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0,0,0,0);
    border: none;
    overflow: hidden;
  }
  
  .btn-message {
    display: inline-block;
    width: 19.37px;
    height: 16.99px;
    margin-right: 10px;
    margin-top: 10px;
    float: right;
  }
  
  .btn-menu {
    display: inline-block;
    width: 19px;
    height: 12.16px;
    margin-left: 10px;
    margin-top: 10px;
    float: left;
  }
  
  .diploma-header-slanted-edge {
    position: absolute;
    bottom: -3px;
    z-index: 1;
    width: 100%;
    right: 0;
    left: 0;
  }
  
  .diploma-body {
    text-align: center;
    padding-left: 10px;
  }
  
  .diploma-name {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 auto;
  }
  
  .diploma-title {
    font-size: 14px;
    font-weight: 300;
    margin-top: 15px;
    color: #919191;
  }
  
  .diploma-bio {
    font-size: 14px;
    color: #7B7B7B;
    font-weight: 300;
    margin: 10px auto;
    line-height: 20px;
  }
  
  .diploma-footer {
    position: absolute;
    left: 0;
    width: 100%;
    bottom: 20px;
  }
  
  .stat {
    box-sizing: border-box;
    width: calc(100% / 2);
    float: left;
    text-align: center;
  }
  
  .stat:last-child {
    border-left: 1px solid grey;
  }
  
  .stat .label {
    display: block;
    text-transform: uppercase;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 1px;
    color: #95989A;
  }
  
  .stat .value {
    display: block;
    font-weight: 700;
    font-size: 20px;
    margin-top: 5px;
  }

/* ========== BOUTON TÉLÉCHARGER ========== */
#fancyButton {
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none;
    border: 0;
    vertical-align: middle;
    text-decoration: none;
    background: transparent;
    padding: 0;
    font-size: inherit;
    font-family: 'Comfortaa';
    transition: transform 0.1s;
    margin: auto;
    width: 10.5rem;
    height: auto;
    margin-top: 30px;
}

#fancyButton .circle {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: relative;
    display: block;
    margin: 0;
    width: 3rem;
    height: 3rem;
    background: white;
    border-radius: 1.625rem;
    box-shadow: 0 0 20px 10px #ffffff5e;
    animation: shadowping 1s ease-in-out infinite both;
}

@keyframes shadowping {
    0% {box-shadow: 0 0 0 0 #ffffff5e;}
    50% {box-shadow: 0 0 20px 10px #ffffff5e;}
    100% {box-shadow: 0 0 20px 10px transparent;}
}

#fancyButton .circle .icon {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    background: #fff;
}

#fancyButton .circle .icon.arrow {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    left: 1.5rem;
    /*left: 2.25rem;*/
    height: 1.125rem;
    width: 0.1rem;
    bottom: 0.65rem;
    background: none;
}

#fancyButton .circle .icon.arrow::before {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    content: "";
    bottom: 0;
    left: -0.315rem;
    width: 0.625rem;
    height: 0.625rem;
    border-top: 0.125rem solid #282936;
    border-right: 0.125rem solid #282936;
    transform: rotate(135deg);
}

#fancyButton .button-text {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 0;
    margin: 0 0 0 2.2rem;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.65;
    text-align: center;
    text-transform: uppercase;
}

#fancyButton:hover .circle, #fancyButton.touchfocus .circle {
    width: 100%;
}

#fancyButton:hover .circle {
    background: #282936;
}

#fancyButton:hover .circle .icon.arrow, #fancyButton.touchfocus .circle .icon.arrow {
    transform: translate(0.75rem, 0.25rem);
}

#fancyButton:hover .circle .icon.arrow {
  background: #fff;
}

#fancyButton.touchfocus .circle .icon.arrow {
  background: #282936;
}

#fancyButton:hover .circle .icon.arrow::before {
    border-color: #fff;
}

#fancyButton:hover .button-text {
    color: #fff;
}

#fancyButton.touchfocus .button-text {
  color: #282936;
}

#fancyButton:active {
    transform: scale(0.95);
}

/* ============== COMPÉTENCES ============== */
.skill-global-wrap {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.skill-main {
    width: 95%;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 30px auto 10px auto;
  }

  .skill-global-wrap img {
    flex: 25px;
  }

  .skill-main .skill-wrrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .skill-main .skill-wrrap .skill-name {
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Comfortaa Light';
  }
  .skill-main .skill-wrrap .skill-bar {
    height: 5px;
    background-color: #233e4e;
    border-radius: 8px;
  }
  .skill-main .skill-wrrap .skill-per {
    height: 5px;
    background: #3cbfff;
    border-radius: 5px;
    width: 0;
    transition: 1s linear;
    position: relative;
  }
  .skill-main .skill-wrrap .skill-per:before {
    content: attr(per);
    position: absolute;
    padding: 5px 6px;
    background-color: #3cbfff;
    color: #000;
    font-size: 10px;
    font-family: 'Cera Pro';
    border-radius: 15px;
    top: -165%;
    right: 0;
    transform: translateX(50%);
  }

/* ========== PARCOURS ACADÉMIQUE ========== */
#certificationsGrid {
    display: flex;
    gap: 50px 100px;
    flex-flow: wrap;
    padding: 20px;
    margin: 50px auto;
    justify-content: center;
}

#projectsIntro > *, #diploma-Intro > * {
    text-align: center;
}
#projectsIntro {
    margin-bottom: 75px;
}

.cert-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    transition: transform 0.25s;
    position: relative;
}

.cert-desc {
  display: flex;
  gap: 5px;
  flex-direction: column;
}
.cert-desc * {
  margin: 3px 15px;
}
.cert-desc h3 {
  font-family: 'Cera Pro';
  font-size: 25px;
  width: 300px;
}
.cert-desc h4 {
  font-family: 'Cera Pro';
  font-weight: normal;
  font-size: 18px;
}
.cert-desc h5 {
  font-family: 'Comfortaa Light';
  font-size: 12px;
}


.cert-line {
    width: 100%;
    display: flex;
    flex-direction: row;
    margin: 10px 0 0 0;
    align-items: center;
}

.cert-separator {
    width: 90%;
    height: 0;
    margin: 0;
    border-top: solid white 0.1px;
    transition: width 0.25s;
}

.cert-container:hover .cert-separator {
    width: 100%;
}

.cert-container:hover {
    transform: scale(1.05);
}

.cert-circle {
    background-color: white;
    width: 10px;
    height: 10px;
    margin: 0;
    border-radius: 50%;
}

.cert-data {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-around;
}

.cert-data h6 {
    font-family: 'Cera Pro';
    font-size: 13px;
    font-weight: bold;
}

.cert-data > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobileseal {
  display: none;
  position: absolute;
  bottom: 0;
  z-index: -1;
  right: 10%;
  transform: translateY(40%);
}

@media screen and (max-width: 630px) {

  #certificationsGrid {
    padding: 0;
    margin: 20px auto;
  }

  .titleDecoration {
    width: auto;
    flex: 1;
  }

  .titleSection {
    width: 100%;
  }

  .cert-desc {
    align-items: center;
  }

  .cert-desc h3 {
    text-align: center;
  }

  .cert-circle, .cert-container .diplomaImg {
    display: none;
  }

  .cert-container .mobileseal {
    display: block;
  }

  .cert-separator {
    border-top-color: var(--mobile-diploma);
  }
  
  .cert-container {
    border: solid var(--mobile-diploma) 0.5px;
    padding: 20px;
    border-radius: 10px;
  }
  
  .cert-line {
    flex-direction: column;
  }  
}

@media screen and (max-width: 435px) {
  .cert-desc h3 {
    width: auto;
  }
}

@media screen and (max-width: 475px) {
  #mobileLogo {
    display: none;
  }
}

.saeDef {
  font-family: 'Comfortaa SemiBold';
  /*font-size: 20px;*/
  color: #3CBFFF;
  font-weight: bold;
}

@keyframes floating-windows {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(2px, -2px);
  }
  40% {
    transform: translate(2px, 2px);
  }
  60% {
    transform: translate(-2px, 2px);
  }
  80% {
    transform: translate(-2px, -2px);
  }
  100% {
    transform: translate(0);
  }
}
