* {
  margin: 0;
  padding: 0;
}

.red {
  color: rgb(158, 0, 0);
}

.blue {
  color: blue;
}

body {
  font-family: "Libre Baskerville", serif;
}

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

.upper {
  text-transform: uppercase;
}

img {
  max-width: 100%;
  height: auto;
  margin: 0 auto 2rem;
}

.heading h2 {
  margin-top: 1rem;
}

/********* NAV BAR ***********/
.navbar {
  border-bottom: solid 0.1rem black;
  background-color: #292e49d2;
}

.navbar-nav {
  margin: 0 auto;
  text-align: center;
}

.nav-link:hover {
  background-color: #bbd2c5cc;
  color: #292e49 !important;
  font-weight: bolder;
  text-shadow: none;
}

.navbar-nav a {
  padding: 0.5rem;
  font-size: 1.3rem;
  text-shadow: -0.2rem -0.2rem 0.5rem rgba(0, 0, 1, 0.479);
  text-transform: uppercase;
  letter-spacing: 0.12rem;
}

/******************* #header *******************/
#header {
  padding: 5rem 0 9rem 0;
  background-size: cover;
  background: linear-gradient(220deg, #bbd2c5cc, #5369764f, #292e49e7),
  url("./assets/chemin.jpg")no-repeat center/cover;
  clip-path: polygon(0 0, 100% 0%, 100% 69%, 0 100%);
}

.header_photo {
  text-align: center;
  opacity: 0.8;
}

.rounded-circle {
  width: 30rem;
}

section .heading {
  text-align: center;
  padding: 4rem;
}

.heading {
  margin-bottom: 1rem;
}

.heading h1 {
  text-transform: uppercase;
}

.heading h1,
.heading h3 {
  color: #fff;
  text-shadow: 0.4rem -0.2rem 0.5rem rgba(0, 0, 0, 0.637);
}

.CV {
  padding-left: 70%;
  margin-bottom: 2rem;
}

.CV a {
  color: #000 !important;
  font-weight: 600;
}

.CV #button-CV:hover {
  background-color: #292e49 !important;
  transition: .3s ease !important;
}

.CV #button-CV:hover>a {
  color: #fff !important;
  font-weight: bold;
}

/************* COMPETENCES *************/
#gradient {
  background-image: linear-gradient(340deg, #bbd2c5b6, #5369764f, #292e49be);
  width: 100%;
  padding-bottom: 3rem;
}

#gradient .container {
  height: auto;
}

#gradient .container .row {
  padding-bottom: 3rem;
}

.progress {
  margin: 1rem;
}

.progress-bar h5 {
  color: #fff;
  text-shadow: 0.5rem -0.3rem 0.5rem rgba(0, 0, 0, 0.609);
  margin-top: 0.4rem;
}

/*************** ANIMATION-LINE ***************/
.line:before,
#line-2:before,
#line-3:before,
#line-4:before,
#line-5:before {
  margin-top: 4rem;
  margin-left: 25%;
  background: #292e49e7;
  height: 0.2rem;
  width: 50%;
}

.line::after,
#line-2::after,
#line-3::after,
#line-4::after,
#line-5::after {
  content: " ";
  position: absolute;
  margin-top: 2rem;
  margin-left: 25%;
  background: #292e49e7;
  height: 0.2rem;
  width: 50%;
}

.line::after {
  transform: translateX(0) scaleX(0);
  animation-duration: 4s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
  animation-name: line;
}

@keyframes line {
  0% {
    transform: scaleX(0);
  }

  100% {
    transform: scaleX(1);
  }
}

/************* EXPERIENCES **************/
#experience {
  background: linear-gradient(340deg, #bbd2c5b2, #bbd2c5bb, #5369764f);
}

#line-2::after {
  transform: translateX(0) scaleX(0);
  animation-delay: 3s;
  animation-duration: 4s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
  animation-name: lineExp;
}

@keyframes lineExp {
  100% {
    transform: translateX(0) scaleX(1);
    /*transform-origin: to right;*/
  }
}

ul {
  list-style-type: none;
}

.timeline {
  position: relative;
  padding: 3rem 1rem;
  margin-left: 2rem;
  margin-right: 2rem;
}

.timeline:before {
  content: " ";
  position: absolute;
  width: 0.3rem;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 50%;
  margin-left: -0.25rem;
  background-color: #292e49be;
}

.timeline>li {
  margin-bottom: 2rem;
  position: relative;
}

.timeline>li:after {
  clear: both;
}

.timeline>li:before,
.timeline>li:after {
  content: " ";
  display: table;
}

.timeline li .timeline-badge {
  position: relative;
  width: 5rem;
  line-height: 5rem;
  font-size: 2rem;
  text-align: center;
  top: 6.5rem;
  left: 50%;
  margin-left: -2.5rem;
  background-color: #5369764f;
  color: white;
  text-shadow: 0.4rem -0.2rem 0.5rem rgba(0, 0, 0, 0.637);
  border-radius: 50%;
}

.timeline-panel-container {
  width: 50%;
  float: left;
}

.timeline-panel-container-inverted {
  width: 50%;
  float: right;
}

.timeline-panel {
  position: relative;
  width: 90%;
  float: right;
  margin-right: 3rem;
  border-radius: 0.5rem;
  border: 0.1rem solid #292e49be;
  padding: 1rem 1.5rem;
  background: #fff;
  box-shadow: 0 0.1rem 0.6rem #292e4986;
}

.timeline-panel-container-inverted .timeline-panel {
  float: left;
  margin-left: 3rem;
}

.timeline-panel::after {
  content: " ";
  display: inline-block;
  position: absolute;
  top: 2.5rem;
  right: -1.3rem;
  border-top: 1.4rem solid transparent;
  border-left: 1.4rem solid #fff;
  border-right: 0 solid #fff;
  border-bottom: 1.4rem solid transparent;
}

.timeline-panel-container-inverted .timeline-panel:after {
  left: -1.3rem;
  right: auto;
  border-left-width: 0;
  border-right-width: 1.4rem;
}

.timeline-header h3 {
  display: inline-block;
  position: relative;
  font-size: 1.3rem;
}

.timeline-header h4 {
  color: #292e49be;
}

/*********** EDUCATION ************/
#gradient3 {
  background: linear-gradient(360deg, #53697694, #bbd2c5bb, #bbd2c5b2);
  padding: 1rem;
}

.container-xl {
  margin: 0;
}

#line-3::after {
  transform: translateX(0) scaleX(0);
  animation-duration: 3s;
  animation-delay: 6s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
  animation-name: lineEducation;
}

@keyframes lineEducation {
  0% {
    transform: scaleX(0);
  }

  100% {
    transform: scaleX(1);
  }
}

/****** CAROUSEL EDUCATION ******/
.carouselEducation {
  height: 650px;
}

.carouselEducation .carousel-inner {
  width: 100%;
  height: 100%;
}

.carouselEducation .carousel-inner .carousel-item {
  height: auto;
}

.carouselEducation .carousel-inner .carousel-item img {
  width: 600px !important;
  height: auto;
}

.carouselEducation .carousel-inner .carousel-item .carousel-caption {
  color: #000;
  bottom: -160px;
}

.carouselEducation .carousel-control-prev,
.carouselEducation .carousel-control-next {
  position: absolute;
  top: 400px;
  height: 60px;
}

/*********** PORTFOLIO ************/
#gradient-4 {
  background-image: linear-gradient(160deg, #5369764f, #292e49e7);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

#line-4::after {
  transform: translateX(0) scaleX(0);
  animation-duration: 3s;
  animation-delay: 8s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
  animation-name: lineportfolio;
}

@keyframes lineportfolio {
  0% {
    transform: scaleX(0);
  }

  100% {
    transform: scaleX(1);
  }
}

.imagePortfolio {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.imagePortfolio img {
  width: 20rem;
  height: 15rem;
}

.imagePortfolio:hover {
  filter: grayscale(3);
  -webkit-filter: grayscale(3);
}

.imagePortfolio a {
  text-decoration: none;
  color: black;
}

.imagePortfolio p {
  width: 15rem;
  text-align: center;
  transform: translateY(-20px);
}

.imagePortfolio img:hover {
  filter: none;
  -webkit-filter: none;
  transition: .3s ease;
}

.imagePortfolio:hover>p {
  font-weight: bolder;
}

/*********** CAROUSSEL RECOMMANDATIONS ************/
#line-5::after {
  transform: translateX(0) scaleX(0);
  animation-duration: 3s;
  animation-delay: 10s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
  animation-name: linerecommandations;
}

@keyframes linerecommandations {
  0% {
    transform: scaleX(0);
  }

  100% {
    transform: scaleX(1);
  }
}

.Recomandations {
  color: #292e49;
  padding-bottom: 5rem;
}

.slideNumber_2 {
  height: 20rem;
  text-align: center;
}

/************ FORMULAIRE ***********/
#contact {
  background-color: #292e49b6;
}

.divider {
  width: 15rem;
  height: 0.2rem;
  background: #292e49;
  margin: 0 auto 2rem;
  margin-top: 2rem;
}

.container {
  padding-top: 2rem;
}

#formulaire-de-contact {
  text-transform: uppercase;
  text-shadow: 0.1rem -0.2rem 0.3rem rgba(27, 27, 27, 0.486);
  text-align: center;
}

#contact-form {
  font-size: 1.3rem;
  background: #fff;
  padding: 4rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.form-control {
  height: 3.5rem;
  font-size: 1.4rem;
}

#message {
  resize: none;
  height: 10rem;
}

#contact-form input[type="submit"] {
  margin: 4rem auto 0rem;
  display: block;
}

.col-md-6 input:focus,
.col-md-12 textarea:focus {
  border: 1px solid rgba(0, 0, 0, 0.446);
  box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.446);
}

.button1 {
  border: solid 0.1rem;
  background: rgba(223, 163, 0, 0.986);
  font-weight: bolder;
  text-transform: uppercase;
  width: 100%;
  height: 3rem;
  color: white;
  border-radius: 0.5rem;
  transition: all 0.3s ease-in 0s;
}

.button1:hover {
  background: rgb(224, 127, 0);
  border-color: lightgray;
  color: #292e49;
}

.thank-you {
  text-align: center;
  margin-top: 1.5rem;
  font-weight: bolder;
  font-size: 1.6rem;
}

/********** FOOTER ***********/
footer {
  background-color: #292e49e0;
  padding: 2rem 0 4rem;
  text-align: center;
}

footer a {
  cursor: pointer;
  height: 1rem;
  width: 1rem;
}

footer h5 {
  color: #536976e7;
}

footer h5 i {
  font-size: 1.5rem;
}

footer a .fas {
  color: white;
}

.socialLinks {
  display: flex;
  width: 100%;
  margin-top: 3rem;
}

.socialLinks ul {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
}

.socialLinks ul li a {
  text-decoration: none;
  color: #dfdfdfab;
}

.socialLinks ul .fab {
  font-size: 2.6rem;
}

footer ul li i:hover {
  background: var(--btn);
  border: 0px;
  box-shadow: 0 0 2px var(--btn), 0 0 4px var(--btn), 0 0 8px var(--btn),
    0 0 20px var(--btn);
  transition: .3s ease;
}

/***************** RESPONSIVE ******************/
@media screen and (max-width: 912px) {
  .progressColumn {
    display: flex;
    flex-direction: column;
  }

  .secondRow {
    padding-top: 0px;
    transform: translateY(-15px);
  }

  #gradient-4 .container .row .imagePortfolio img {
    width: 22rem !important;
    height: 10rem;
  }
}

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

  /**** CAROUSEL RECOMMANDATIONS ****/
  .carouselEducation {
    height: 540px;
  }

  .carouselEducation .carousel-inner .carousel-item {
    height: auto;
  }

  .carouselEducation .carousel-inner .carousel-item .carousel-caption {
    color: #000 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    width: 70%;
    bottom: 10px;
  }

  .carouselEducation .carousel-control-prev,
  .carouselEducation .carousel-control-next {
    position: absolute;
    top: 300px;
    height: 60px;
  }

  .carouselEducation .carousel-inner .carousel-item img {
    width: 400px !important;
    height: auto;
  }

  /**** PORTFOLIO ****/
  #gradient-4 .container .row .imagePortfolio img {
    display: flex;
    width: 20rem !important;
    height: 10rem !important;
  }
}

@media screen and (max-width: 540px) {
  #gradient-4 .container .row .imagePortfolio img {
    display: flex;
    width: 20rem !important;
    height: 14rem !important;
  }
}

@media screen and (max-width: 450px) {
  .CV {
    padding-left: 60%;
    margin-right: 1rem;
    margin-bottom: 2rem;
  }

  .timeline-header h3 {
    font-size: 10px;
  }

  .timeline-header h4 {
    font-size: 12px;
  }

  .timeline-header p {
    font-size: 12px;
  }

  .timeline-body p {
    font-size: 10px;
  }

  .education-block {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .border-photo {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .photo,
  .photo-left {
    margin: 0;
  }
}