
@import url('https://fonts.googleapis.com/css?family=Lato:400,700');

html body {
  font-family: 'Lato', sans-serif; !important
  letter-spacing: 0.0625em;
  max-width: 100%;
  overflow-x: hidden;
}

/*--------------------------------------------------------------
# Menu
--------------------------------------------------------------*/
#mainNav {
  min-height: 56px;
  background-color: #fff;
}

#mainNav .navbar-toggler {
  font-size: 80%;
  padding: 0.75rem;
  color: #4eabe6;
  border: 1px solid #4eabe6;
}

#mainNav .navbar-toggler:focus {
  outline: none;
}

#mainNav .navbar-brand {
  color: #161616;
  font-weight: 700;
  padding: .9rem 0;
}

#mainNav .navbar-nav .nav-item:hover {
  color: rgba(255, 255, 255, 0.8);
  outline: none;
  background-color: transparent;
}

#mainNav .navbar-nav .nav-item:active, #mainNav .navbar-nav .nav-item:focus {
  outline: none;
  background-color: transparent;
}

@media (min-width: 992px) {
  #mainNav {
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: none;
    background-color: transparent;
    transition: background-color 0.3s ease-in-out;
  }
  #mainNav .navbar-brand {
    padding: .5rem 0;
    color: rgba(255, 255, 255, 0.5);
  }
  #mainNav .nav-link {
    transition: none;
    padding: 2rem 1.5rem;
    color: rgba(255, 255, 255, 0.5);
  }
  #mainNav .nav-link:hover {
    color: #4eabe6;
	  	transition: .3s ease;
  }
  #mainNav .nav-link:active {
    color: white;
  }
  #mainNav.navbar-shrink {
    background-color: white;
          box-shadow: 0 2px 5px -2px rgba(0,0,0,0.1); 
  }
  #mainNav.navbar-shrink .navbar-brand {
    color: #161616;
	
  }
  #mainNav.navbar-shrink .nav-link {
    color: #161616;
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 0.25rem solid transparent;
  }
  #mainNav.navbar-shrink .nav-link:hover {
    color: #4eabe6;
	transition: .4s ease;
  }
  #mainNav.navbar-shrink .nav-link:active {
    color: #4eabe6;
	transition: .4s ease;
  }
  #mainNav.navbar-shrink .nav-link.active {
    color: #4eabe6;
    outline: none;
    border-bottom: 0.25rem solid #4eabe6;
  }
}

/*--------------------------------------------------------------
# Retour en arrière bouton
--------------------------------------------------------------*/
.bouton-retour {
  position: fixed;
  top: 20px;
  left: 20px;
  border: 2px solid white;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  z-index: 1000;
  padding: 10px;
  overflow: hidden;
  border-radius: 50%; 
  width: 55px;
  height: 55px;
}

.bouton-retour i {
  color: white;
  z-index: 10;
}

.bouton-retour span {
  display: none;
  color: white;
  font-size: 16px;
  transition: display 0.5s ease;
  margin-left: 10px;
}

.bouton-retour:hover {
  width: 150px;
  border-radius: 20px;
  padding: 10px 20px;
}

.bouton-retour:hover span {
  display: inline;
}

@media (max-width: 768px) {
  .bouton-retour {
    top: 25px;
    left: 15px;
    border-width: 2px;
    width: 40px;
    height: 40px;
  }
}


/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.masthead {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 35rem;
  padding: 15rem 0;
  background: linear-gradient(to bottom, rgba(22, 22, 22, 0.3) 0%, rgba(22, 22, 22, 0.7) 75%, #161616 100%), url("../img/bg-maxence.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: cover;
}

.masthead h1 {
  font-size: 1.8rem;
  line-height: 2rem;
  letter-spacing: 0.5rem;
  line-height: 1.8em;
 /* background: -webkit-linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));*/
 color: white;
 /* -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;*/
  position: relative;
  overflow: hidden; /* Assurez-vous que le mot animé ne dépasse pas le conteneur */
  transition: all 0.5s ease-out;
}

.masthead h2 {
  font-size: 2.5rem;
  line-height: 2.5rem;
  letter-spacing: 0.8rem;
  color: white;
}

@media (min-width: 768px) {
  .masthead h1 {
    font-size: 3rem;
    line-height: 3rem;
  }
}

@media (min-width: 992px) {	
  .masthead {
    height: 100vh;
    padding: 0;
  }
  .masthead h1 {
    font-size: 4rem;
    line-height: 4rem;
    letter-spacing: 0.6rem;
  }
  .masthead h2 {
    max-width: 30rem;
    font-size: 1.25rem;
  }
}
.fade-move-word {
  display: inline-block;
  opacity: 0; /* Commencez avec un mot transparent */
  transform: translateY(20px); /* Commencez un peu plus bas */
  animation: fadeMoveIn 0.7s ease forwards, fadeMoveOut 0.7s ease 1.6s forwards; /* Durée réduite à 1 seconde */
}

/* Animation pour faire apparaître le mot */
@keyframes fadeMoveIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation pour faire disparaître le mot */
@keyframes fadeMoveOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.color_1 {
  color: #4EABE6;
}

.color_2 {
  color: #4ee695;
}

.color_3 {
  color: #e6814e;
}


/*--------------------------------------------------------------
# Scroll to top
--------------------------------------------------------------*/
#top{
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: hsla(203, 75%, 60%, 0.781);
  width: 50px;
  height: 50px;
  display: block;
  text-decoration: none;
  -webkit-border-radius: 35px;
  -moz-border-radius: 35px;
  border-radius: 35px;
  display: none;
  -webkit-transition: all 0.3s linear;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  z-index: 3;
}

#top i{
  color: #fff;
  margin: 0;
  position: relative;
  left: 16px;
  top: 13px;
  font-size: 19px;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  color: #white;
}

#top:hover{
  background: hsla(203, 75%, 60%, 1);
}

#top:hover i{
  color: #ffff;
  top: 8px;
}


/*--------------------------------------------------------------
# Bouton
--------------------------------------------------------------*/
button {
  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: inherit;
  &.learn-more {
    width: 13rem;
    height: auto;
    .circle {
      @include transition(all, 0.45s, cubic-bezier(0.65, 0, 0.076, 1));
      position: relative;
      display: block;
      margin: 0;
      width: 3rem;
      height: 3rem;
      background:#4eabe6;
      border-radius: 1.625rem;
      .icon {
        @include transition(all, 0.45s, cubic-bezier(0.65, 0, 0.076, 1));
        position: absolute;
        top: 0;
        bottom: 0;
        margin: auto;
        background: $white;
        &.arrow {
          @include transition(all, 0.45s, cubic-bezier(0.65, 0, 0.076, 1));
          left: 0.625rem;
          width: 1.125rem;
          height: 0.125rem;
          background: none;
          &::before {
            position: absolute;
            content: "";
            top: -0.25rem;
            right: 0.0625rem;
            width: 0.625rem;
            height: 0.625rem;
            border-top: 0.125rem solid #fff;
            border-right: 0.125rem solid #fff;
            transform: rotate(45deg);
          }
        }
      }
    }
    .button-text {
      @include 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 1.85rem;
      color: #4eabe6;
      font-weight: 700;
      line-height: 1.6;
      text-align: center;
      text-transform: uppercase;
    }
  }
  &:hover {
    .circle {
      width: 100%;
      .icon {
        &.arrow {
          background: $white;
          transform: translate(1rem, 0);
        }
      }
    }
    .button-text {
      color: white;
    }
  }
}

button {
  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: inherit;
}

button.learn-more {
  width: 15rem;
  height: auto;
}

button.learn-more .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  margin: 0;
  width: 3rem;
  height: 3rem;
  background: #4eabe6;
  border-radius: 1.625rem;
}

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

button.learn-more .circle .icon.arrow {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
}

button.learn-more .circle .icon.arrow::before {
  position: absolute;
  content: '';
  top: -0.25rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid #fff;
  border-right: 0.125rem solid #fff;
  transform: rotate(45deg);
}

button.learn-more .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 1.85rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

button:hover .circle {
  width: 100%;
}

button:hover .circle .icon.arrow {
  background: #fff;
  transform: translate(1rem, 0);
}

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

/*--------------------------------------------------------------
# Projects
--------------------------------------------------------------*/
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

.wrapper {
  display: block;
  width: 100%;
  max-width: 1200px;
  columns: 1;
  column-gap: 0;
  break-inside: avoid;
  margin: 20px auto 50px;
}

@media (min-width: 600px) {
  .wrapper {
    columns: 2;
  }
}

@media (min-width: 800px) {
  .wrapper {
    columns: 3;
  }
}

.grid-image {
  float: left;
  width: 100%;
  padding: 4px;
}

.grid-image img {
  float: left;
  width: 100%;
  transition: filter 0.5s ease;
}

.grid-image:hover img {
  filter: brightness(30%);
}

.cell {
  box-flex: 1;
  flex: 1 1 auto;
}

.texte-survol {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.4s ease;
  visibility: hidden;
  opacity: 0;
  color: white;
  text-align: center;
  font-weight: bold;
}

.containerimage {
  position: relative;
  display: inline-block;
}

.containerimage:hover .texte-survol {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}


/*--------------------------------------------------------------
# Présentation
--------------------------------------------------------------*/
.featured-text {
  padding: 1rem;
  font-size: 18px;
}

.presentation {
  padding: 3em 0 1em;
}

.icon-container {
  position: relative;
  text-align: center;
}

.icon-text {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.5em;
  background-color: #fff;
  padding: 0.5em;
  border: 1px solid #ddd;
  border-radius: 0.25em;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.icon-container:hover .icon-text {
  display: block;
  opacity: 1;
}

.presentation i{
  color: #4eabe6;
}

@media (min-width: 992px) {
  .featured-text {
    padding: 0 0 0 2rem;
    border-left: 0.5rem solid #4eabe6;
  }

  .presentation {
    padding: 3em 0 3em;
  }
}


/*--------------------------------------------------------------
# Logos client
--------------------------------------------------------------*/



@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-95%);
  }
}

.logos {
  overflow: hidden;
  padding: 60px 0;
  white-space: nowrap;
  animation-play-state : running ; 
  position: relative;
}

.logos::before,
.logos::after {
  position: absolute;
  top: 0;
  width: 250px;
  height: 100%;
  content: '';
  z-index: 2;
}

.logos::before{
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,1) 10%, rgba(255,255,255,0) 100%);
}


.logos::after{
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,1) 10%, rgba(255,255,255,0) 100%);
}

.logos-slide {
  animation: 15s slide infinite linear;
  display: inline-block;
}
.logos-slide img{
  height: 200px;
  display: inline;
  margin: 0 100px;
}

.logos-slide img:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .partenaires {
    display: none;
  }
}
/*
@media (max-width: 768px) {
  .logos-slide img {
    height: 150px;
    margin: 0 50px;
  }

  .logos {
    padding: 25px 0;
  }

  .logos::before,
  .logos::after {
  width: 40px;
  }
}

@media (max-width: 480px) {
  .logos-slide img {
    height: 100px;
    margin: 0 25px;
  }
}

@media (max-width: 480px) {
  .partenaires h1 {
    font-size: 2rem;
  }
}

 */

/*--------------------------------------------------------------
# Contact & Footer section
--------------------------------------------------------------*/

form { max-width:600px; margin:50px auto; }

.feedback-input {
  color:BLACK;
  font-family: 'Lato', sans-serif;
  font-weight:500;
  font-size: 18px;
  border-radius: 5px;
  line-height: 22px;
  background-color: white;
  border:1.5px solid #4eabe6;
  transition: all 0.3s;
  padding: 13px;
  margin-bottom: 15px;
  width:100%;
  box-sizing: border-box;
  outline:0;
}

.feedback-input:focus { border:1px solid #4eabe6; }

textarea {
  height: 150px;
  line-height: 150%;
  resize:vertical;
}

[type="submit"] {
  font-family: 'Lato', sans-serif;
  letter-spacing: 1px;
  width: 100%;
  background:#4eabe6;
  border-radius:5px;
  border:0;
  cursor:pointer;
  color:white;
  font-size:18px;
  padding-top:10px;
  padding-bottom:10px;
  transition: all 0.3s;
  margin-top:-4px;
  font-weight:700;
}
[type="submit"]:hover { background:#4eabe6; }


.contact-section {
  padding: 1rem 0 0;
}

.contact-section .card {
  border: 0;
  border-bottom: 0.25rem solid #4eabe6;
}

.contact-section .card h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
}

.contact-section .card hr {
  border-color: #4eabe6;
  border-width: 0.25rem;
  width: 3rem;
}

.contact-section .social {
  margin-top: 5rem;
}

.contact-section .social a {
  text-align: center;
  height: 4rem;
  width: 4rem;
  line-height: 4rem;
  color: rgba(255, 255, 255, 0.3);
}

.contact-section .social a:hover {
  color: #4eabe6;
  transition: .7s ease;
}

.contact-section .social a:active {
  color: #fff;
  transition: .7s ease;
}

footer {
  padding: 5rem 0;
}

/*--------------------------------------------------------------
# Autre
--------------------------------------------------------------*/
h1 {
  color : black;
  letter-spacing: 1.5px;
}

.text-primary {
  color: #4eabe6 !important;
}

.bg-grey {
  background-color: #f2f2f2 !important;
}

.bg-contact {
  background-color: #f2f2f2 !important;
}

@media (max-width: 768px) {
  .bg-contact {
    background-color: white !important;
  }
}

.bg-black {
  background-color: #161616 !important;
}


/*--------------------------------------------------------------
# Isotop
--------------------------------------------------------------*/
.filter-buttons {
  margin-bottom: 30px;
}

.filter-buttons p {
  display: inline-block;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border-radius: 25px;
  padding: 3px 16px;
  margin-right: 5px;
  background-color: white;
  position: relative;
  -webkit-transition: .3s;
  -o-transition: .3s;
  transition: .3s;
  z-index: 1;
  overflow: hidden;
  color: black;
  font-weight: 400;
}

.filter-buttons p.active,
.filter-buttons p:hover {
  color: #fff;
}

.filter-buttons p::after {
  position: absolute;
  background-color: #3eb5ff ;
  content: '';
  height: 100%;
  width: 0;
  right: 0;
  top: 0;
  z-index: -1;
  -webkit-transition: .3s;
  -o-transition: .3s;
  transition: .3s;
}

.filter-buttons p.active::after,
.filter-buttons p:hover::after {
  width: 100%;
  right: auto;
  left: 0;
}

.grid-item {
  margin-bottom: 2em;
}

@media (max-width: 480px) {
.grid-item {
  margin-bottom: 4em;
}
}


.work_info,
.work_info h3,
.work_info p {
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
}

.single_work {
    overflow: hidden;
    text-align: center;
}

.single_work a {
    position: relative;
    overflow: hidden;
    display: block;
    color: #fff;
    text-shadow: 0 1px 0 #333;
}

.work_info {
    position: absolute;
    text-align: center;
    top: 50%;
    height: 100%;
    width: 100%;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}

.single_work img {
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
}

.single_work:hover img {
    -webkit-filter: brightness(.3);
    filter: brightness(.3);
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

.work_info h3,
.work_info p {
    opacity: 0;
    visibility: hidden;
    -webkit-transform: translateY(-25px) scale(.5);
    -ms-transform: translateY(-25px) scale(.5);
    transform: translateY(-25px) scale(.5);
    font-family: 'Lato',sans-serif;
    font-weight: 400;
}

.single_work:hover .work_info h3,
.single_work:hover .work_info p {
    opacity: 1;
    visibility: visible;
    color: white;
}

.work_info span {
    font-size: 30px;
    display: inline-block;
}

.single_work:hover .work_info h3,
.single_work:hover .work_info p {
    -webkit-transform: translateY(0)scale(1);
    -ms-transform: translateY(0)scale(1);
    transform: translateY(0)scale(1);
}

.single_work:hover .work_info p {
    -webkit-transition-delay: .15s;
    -o-transition-delay: .15s;
    transition-delay: .15s;
}

.single_work:hover {
    -webkit-transition-delay: .3s;
    -o-transition-delay: .3s;
    transition-delay: .3s;
}


/*--------------------------------------------------------------
# Header projet (titre & image)
--------------------------------------------------------------*/
.superpoze {
  position: relative;
  display: flex;
  align-items: center;
}

.superpoze img {
  width: 80%;
  border-radius: 15px;
  border: 0.5px solid white;
}

.texte-superpose {
  position: absolute;
  left: 70%;
  width: 50%;
  z-index: 10;
  font-size: 4rem;
  color: white;
  font-weight: 600;
}

@media screen and (max-width: 1250px) {
  .texte-superpose {
      font-size: 3rem;
  }

  .superpoze {
      margin-left: 1em;
      margin-right: 1em;
  }
}

@media screen and (max-width: 767px) {
  .texte-superpose {
      font-size: 2.4rem;
      width: auto;
      left:50%;
  }
}

@media screen and (max-width: 500px) {
  .texte-superpose {
      /*font-size: 1.5rem;*/
      display: none;
  }
  .superpoze img {
    width: 100%;
  }

  .superpoze {
    margin-top: 6em;
  }
}

@media (max-width: 768px) {
  .espacement, .textprojet {
    flex-direction: row;
  }
}


/*--------------------------------------------------------------
# Projet
--------------------------------------------------------------*/

/* espacement des sections */
.espacement {
  margin: 5em 3em 3em;
}

@media screen and (max-width: 767px) {
  .espacement {
    margin-top: 3em;
    margin-bottom: 2em;
  }  
}

@media screen and (max-width: 500px) {
  .espacement {
    margin-top: 3em;
    margin-bottom: 2em;
  } 
  
  .container {
    padding-left: 25px;
    padding-right: 25px
  }
}

/* Titre section */
.titresection {
  color:white;
  text-align: center;
  margin-top: 2em;
  margin-bottom: 1em;
}

/* Textes */
.projet p {
  color: white;
  font-size: 17px;
  line-height: 50px;
  text-align: justify;
  text-justify: inter-word;
}

.projet h1, .projet h2 {
  color: white;
  line-height: 50px;
  margin-bottom: 1em;
}

.projet h1 {
  text-align: center;
  font-weight: 700;
  margin: 2em 0;
}

.projet h2 {
  text-align: justify;
}

@media screen and (max-width: 767px) {
  .projet p {
    font-size: 15px;
    line-height: normal;
  }
  
  .projet h1, .projet h2 {
    font-size: 20px;
    line-height: normal;
    text-align: center;
  }
}

@media screen and (max-width: 500px) {
  .projet p {
    font-size: 17px;
    line-height: 30px;
  }
  
  .projet h1, .projet h2 {
    line-height: normal;
    font-weight: 400;
  }

  .projet h2 {
    font-size: 32px;
  }
}


/* Slider */
.projet .carousel {
  margin: auto; 
  width: 60%;
}

/* Skills */

.skills {
  padding-left: 10%;
}
.skills h2{
  color: white;
  text-align: right;
  margin-bottom: 1em;
}

.skills p{
  color:white;
  font-size: 17px;
  line-height: 30px;
  text-align: right;
  text-justify: inter-word;
  margin-top: 2em;
}

@media screen and (max-width: 500px) {
  .skills h2{
    text-align: center;
    margin-top: 1.5em;
    font-size: 32px;
  }

  .skills p{
    font-size: 17px;
    line-height: 30px;
    text-align: justify;
    text-justify: inter-word;
    margin-top: 2em;
  }
}


.img-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2em;
  margin-left: 20%;
}

.img-container img { 
  max-width: 3em;
}

@media (max-width: 768px) {
  .img-container {
    justify-content: center;
    margin-left: 0;
  }
  .img-container img {
    flex: 0 0 48%; 
    margin: 1em 1%;
  }
}
