
.card-3d {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.card-3d:hover {
  box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.6);
}


.card-3d * {
  transition: transform 0.2s ease;
}


body {
  background: #0a3d62;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.competences {
  background-color: #1e3799;
  color: #82ccdd;
  padding: 30px;
  width: 300px;
  border-radius: 8px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
  font-family: 'Montserrat', sans-serif;
  margin-top: auto;
  margin-bottom: auto;
  margin-left: 1%;
}

.competences h2 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 24px;
}

.skill {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 18px;
}

.skill i {
  margin-right: 10px;
  font-size: 22px;
}

.skill i.fa-html5 { color: #e34c26; }
.skill i.fa-css3-alt { color: #264de4; }
.skill i.fa-js-square { color: #f0db4f; }
.skill i.fa-databases { color: #e0afff; }
.skill i.fa-php { color: #787CB5; }
.skill i.fa-robot { color: #7289da; }

.skill:hover {
  transform: translateX(5px);
  transition: 0.2s ease;
}

.carte-retour {
  display: inline-block;
  background-color: #2e3a8c;
  color: #a8e0ff;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 20px;
  font-family: 'Montserrat', sans-serif;
  width: 200px;
}

.carte-retour:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.scrlg, .cnav, .mpro, .nzubot, .tpsc {
  background-color: #1e3799;
  color: #82ccdd;
  padding: 25px;
  width: 575px;
  height: 475px;
  border-radius: 14px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
  font-family: 'Montserrat', sans-serif;
  transition: transform 0.3s, background-color 0.3s ease;
  margin-left: 3%;
}

.scrlg:hover, .cnav:hover, .mpro:hover, .nzubot:hover, .tpsc:hover {
  background-color: #6a89cc;
}

.scrlg img, .cnav img, .mpro img, .nzubot img, .tpsc img{
  max-width: 575px;
  max-height: 475px;
}


.bu {
  background-color: linear-gradient(112deg, rgba(86,216,228,1) 20%, rgba(159,1,234,1) 94%);
  color: #82ccdd;
  margin-top: 2px;
  padding: 8px;
  width: 170px;
  border-radius: 18px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
  display: none;
  text-align: center;
}

.bu a {
  color: #82ccdd;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
}

.scrlg:hover .bu,
.cnav:hover .bu,
.mpro:hover .bu,
.nzubot:hover .bu,
.tpsc:hover .bu {
  display: inline-block;
  opacity: 1;
}

.card-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}


@media (max-width: 768px) {
  .competences {
    width: 90%;
    margin: 20px auto;
    text-align: center;
  }

  .carte-retour {
    width: auto;
    text-align: center;
    margin: 20px auto;
    display: block;
  }

  .scrlg, .cnav, .mpro, .nzubot {
    width: 90%;
    margin-left: 0;
  }
}

.scrlg img, .cnav img, .mpro img, .nzubot img, .tpsc img{
  max-width: 575px;
  max-height: 475px;
}