/* ======================== IMG DOC ======================== */

.container {
  position: relative;
  width: 100%;
  display: inline-block;
}

.image {
  opacity: 1;
  display: block;
  width:100%;
  height: auto;
  transition: .5s ease;
  backface-visibility: hidden;
}

.imageflexcontent { margin-left: 5px; margin-top: 0; }

.middle {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left:50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
  text-decoration: none;
}

.container:hover .image {
  opacity: 0.3;
}

.container:hover .middle {
  opacity: 1;
}

.text {
  background-color: #b330bf;
  color: white;
  font-size: 16px;
  padding: 16px 32px;
  text-decoration: none;
}

/* ======================== FIN IMG DOC ======================== */


@font-face {
  font-family: 'CustomFont';
  src: url('Genshin.ttf');
}

@font-face {
  font-family: 'Loaded';
  src: url('loaded.ttf');
}

body{
  background-color: rgb(235,235,235);
  background-image: url("img/LogoLKD-Clair-fond.png");
  background-size: 30%;
  background-repeat: no-repeat;
  background-position:left center;
  margin: 0;
  padding: 0;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'CustomFont', sans-serif;
}

.bodyInC{
  background-color: rgb(235,235,235);
  background-image: url("img/LogoLKD-Clair-fond.png"), url("img/fondInC.png");
  background-size: 30%;
  background-repeat: no-repeat;
  background-position:left bottom, right bottom;
  margin: 0;
  padding: 0;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'CustomFont', sans-serif;
}

.preheader{
  background: linear-gradient(90deg, rgba(57,53,210,1) 0%, rgba(220,0,181,1) 100%);
  top: 0;
  color: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0;
  z-index: 10;
}

.preheader h1 {
  font-family: 'Loaded';
}

.imgHeader {
  view-timeline-name: --imgHeader;
  view-timeline-axis: block;
  animation-name: fadeOut;
  animation-timeline: --imgHeader;
  animation-range: exit 0% exit 100%;
  animation-fill-mode: both;
}


.header{
  background: linear-gradient(90deg, rgba(57,53,210,1) 0%, rgba(220,0,181,1) 100%);
  position: sticky;
  top: 0;
  padding : 0px 10% 0px 10%;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
  z-index: 10;
}

.header a {
  text-decoration: none;
}

.button1 {
  background-color: #3935d2; 
  border: solid;
  border-radius: 4px;
  border-color: #3935d2;
  border-width: 2px;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  transition-duration: 0.4s;
}

.button1:hover {
  background-color: white;
  color: #3935d2;
  cursor: pointer;
}

.button2 {
  background-color: #703dcc; 
  border: solid;
  border-radius: 4px;
  border-color: #703dcc;
  border-width: 2px;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  transition-duration: 0.4s;
}

.button2:hover {
  background-color: white;
  color: #703dcc;
  cursor: pointer;
}

.button3 {
  background-color: #b330bf; 
  border: solid;
  border-radius: 4px;
  border-color: #b330bf;
  border-width: 2px;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  transition-duration: 0.4s;
}

.button3:hover {
  background-color: white;
  color: #b330bf;
  cursor: pointer;
}

.button4 {
  background-color: #dc00b5; 
  border: solid;
  border-radius: 4px;
  border-color: #dc00b5;
  border-width: 2px;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  transition-duration: 0.4s;
}

.button4:hover {
  background-color: white;
  color: #dc00b5;
  cursor: pointer;
}

h1{
  color : white;
}

h2{
  color : black;
}

.content {
  padding: 20% 20% 20px 20%;
  margin: 0px 10% 0px 10%;
  color: #000000;
  font-size: 18px; 
}
.contentAlt  {
  padding: 5% 20% 20px 20%;
  margin: 0px 10% 0px 10%;
  color: #000000;
  font-size: 18px; 
}

.contentInC {
  padding: 0%;
  margin : 0px 10% 0px 10%;
  color: #000000;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contentText {
  background-color: transparent;
  color: #000000;
  font-size: 18px;
  text-indent: 10%;
}

.contentLegal {
  padding: 5% 20% 20px 20%;
  margin: 0px 10% 0px 10%;
  color: #000000;
  font-size: 12px; 
}

.skillshow {
  background: linear-gradient(90deg, rgba(177, 177, 177, 0) 0%,rgb(177, 177, 177) 50%,rgba(177, 177, 177, 0) 100%) !important;
}


@keyframes fadeIn {
  from {
      opacity: 0;
      scale : 0;
  }
  to {
      opacity: 1.5;
      scale : 1;
  }
}

@keyframes fadeOut {
  from {
      opacity: 1.5;
      scale : 1;
  }
  to {
      opacity: 0;
      scale : 0;
  }
}

.docHolder{
  background: linear-gradient(90deg, rgba(57,53,210,1) 0%, rgba(220,0,181,1) 100%);
  border : 5px solid #ffffff;
  color: #ffffff;
  border-radius: 15px;
  padding: 10px 20% 10px 20%;
  display: flex;
  align-items: center;
  justify-content: space-between ;
}

.docBtn {
  background: rgb(235,235,235);
  border: #9e9e9e solid 2px;
  border-radius: 5px;
  padding :5px 5px 5px 5px;
  text-decoration: none;
  color: #000000;
}


.logo-slider {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  padding: 3rem 0;
  background: linear-gradient(90deg, rgba(177, 177, 177, 0) 0%,rgb(177, 177, 177) 50%,rgba(177, 177, 177, 0) 100%) !important;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.logo-track {
  display: inline-block;
  white-space: nowrap;
  animation: scroll 25s linear infinite;
}

.logo-track img {
  height: 85px;
  margin: 0 3rem;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.logo-track img:hover {
  transform: scale(1.2);
}

.avisShow {
  background: linear-gradient(90deg, rgba(177, 177, 177, 0) 0%,rgb(177, 177, 177) 50%,rgba(177, 177, 177, 0) 100%) !important;
}

.avis-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
    background-color: transparent;
}

.avis-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.avis-track p {
    min-width: 300px;
    flex-shrink: 0;
    padding: 15px;
    margin: 10px;
    background: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: small;
    color: rgba(220,0,181,1);
}

.avis-grad {
  color: rgba(57,53,210,1);
}

@keyframes scroll {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.displayProjet {
    background: linear-gradient(90deg, rgba(57,53,210,1) 0%, rgba(220,0,181,1) 100%);
  border : 5px solid #ffffff;
  color: #ffffff;
  border-radius: 15px;
  padding: 10px 20% 10px 20%;
  display: flex;
  align-items: center;
  justify-content: space-between ;
}

.imageCapture {
  width : 100%;
  height: auto;
  border-radius: 10px;
  border: 5px solid rgb(57,53,210);
  border-bottom: 5px solid #b330bf;
  border-right: 5px solid #b330bf;
}

.btnSite {
  background: linear-gradient(90deg, rgba(57,53,210,1) 0%, rgba(220,0,181,1) 100%);
  border : 5px solid #ffffff;
  color: #ffffff;
  border-radius: 15px;
  padding: 10px 20% 10px 20%;
  display: flex;
  align-items: center;
  justify-content: center ;
}

.footer {
  background: linear-gradient(90deg, rgba(57,53,210,1) 0%, rgba(220,0,181,1) 100%);
  display: flex;
  color: #ffffff;
  padding : 0px 10% 0px 10%;
  justify-content: center;
  align-items: center;
  z-index: 10;
  margin-top: auto;
}

.footer a {
  text-decoration: none;
  color: #ffffff;
}

.formbox {
  display: flex;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  align-items: center;
  justify-content: center;
}

.formContact {
  max-width: 60%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.formContact input, .formContact textarea {
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(57,53,210,1) 0%, rgba(220,0,181,1) 100%);
  color: #ffffff;
  font-family: 'CustomFont', sans-serif;
  font-size: 16px;
  transition: 
      color 0.3s ease-in-out, 
      background 0.3s ease-in-out, 
      -webkit-text-fill-color 0.3s ease-in-out;
}

/* Placeholder style */
.formContact input::placeholder, .formContact textarea::placeholder {
  color: #ffffff;
  opacity: 0.7;
}

/* Quand l'utilisateur clique ET commence à écrire */
.formContact input:focus:not(:placeholder-shown), .formContact textarea:focus:not(:placeholder-shown) {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.formContact input[type="submit"], .formContact input[type="reset"] {
  padding: 10px 20px;
  font-size: 16px;
  font-family: 'CustomFont', sans-serif;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: white;
  background: linear-gradient(90deg, rgba(57,53,210,1), rgba(220,0,181,1));
  transition: 
    color 0.3s ease-in-out, 
    background 0.3s ease-in-out, 
    -webkit-text-fill-color 0.3s ease-in-out;
}

.formContact input[type="submit"]:hover, .formContact input[type="reset"]:hover {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: 
    color 0.3s ease-in-out, 
    background 0.3s ease-in-out, 
    -webkit-text-fill-color 0.3s ease-in-out;
}

.switchPage {
  background-color: transparent;
  border: none;
  cursor: pointer;
}
.switchPage img{
  z-index: 1000;
  height: auto;
  width: 300px;
}

/* Adaptation mobile */
@media screen and (max-width: 1080px) {

    .imgHeader {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }
    
    body {
        background-size: 60%; 
        background-position: center center;
        padding: 0 10px;
    }

    .preheader {
        padding: 10px;
        text-align: center;
    }

    .header {
        flex-direction: column;
        text-align: center;
        padding: 10px;
        position: relative;
    }
    .imgHeader {
        max-width: 100px;
        height: auto;
    }

    nav {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }

    main, section, .content {
        padding: 10px;
        font-size: 1rem;
    }

    h1, h2, h3 {
        font-size: 2.4rem;
    }

    .formbox {
        width: 90%; /* Prend presque toute la largeur */
        margin: 20px auto; /* Centre horizontalement */
        padding: 20px; /* Ajuste le padding */
    }
    .formContact {
        width: 100%; /* Prend toute la largeur */
        display: flex;
        flex-direction: column; /* Colonne pour les petits écrans */
        gap: 10px; /* Espace entre les champs */
    }

    .button1, .button2, .button3, .button4 {
        width: 100%; /* Prend toute la largeur */
        padding: 10px; /* Ajuste le padding */
        font-size: 1rem; /* Ajuste la taille de police */
        margin: 10px 0; /* Espace entre les boutons */
    }


    .footer {
        flex-direction: column; /* Colonne pour les petits écrans */
        text-align: center; /* Centre le texte */
        padding: 10px; /* Ajuste le padding */
    }

    .footer p{
        font-size: 1rem; /* Ajuste la taille de police */
        margin: 0px 0; /* Ajuste les marges */
    }

    .footer a {
        font-size: 1rem; /* Ajuste la taille de police */
    }

    .content, .contentAlt, .contentInC {
        font-size: 1rem; /* Ajuste la taille de police */
        padding: 10px 10px 10px 10px; /* Ajuste le padding */
        margin: 10px 0; /* Ajuste les marges */
    }
}

/* Adaptation mobile */
@media screen and (max-width: 768px) {

    body, .bodyInC {
        background-size: 60%; 
        background-position: center center;
        padding: 0 10px;
    }

    .header {
        flex-direction: column;
        text-align: center;
        padding: 10px;
        position: relative;
        gap: 10px;
        font-size: 2rem;
    }

    .header img {
        max-width: 100px;
        height: auto;
    }

    .button1, .button2, .button3, .button4 {
        width: 100%;
        padding: 10px;
        font-size: 2rem;
        margin: 10px 0;
        box-sizing: border-box;
    }

    .content, .contentAlt, .contentInC, .contentText, .contentLegal {
        font-size: 2rem;
        padding: 10px;
        margin: 10px 0;
    }

    .imageCapture, iframe {
        width: 100% !important;
        height: auto !important;
        max-width: 100vw;
    }

    .skillShow, .avisShow {
        padding: 10px 0;
    }

    .logo-slider, .avis-slider {
        padding: 1rem 0;
    }

    .logo-track img {
        height: 50px;
        margin: 0 1rem;
    }

    .avis-track p {
        min-width: 220px;
        font-size: 1.25rem;
        padding: 10px;
        margin: 5px;
    }

    .docHolder, .displayProjet {
        flex-direction: column;
        gap: 10px;
        padding: 10px 2% 10px 2%;
        align-items: stretch;
    }

    .btnSite, .docBtn {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 10px;
        justify-content: center;
    }

    .footer {
        flex-direction: column;
        text-align: center;
        padding: 10px;
        gap: 10px;
    }

    .footer p, .footer a {
        font-size: 2rem;
        margin: 0;
    }
}


