
.contact {
  display: flex;
  height: 100vh;
  margin-top: 250px;
  margin-left: 100px;
}

.envelope-wrapper {
  position: relative;
  width: 320px;
  height: 220px;
  padding: 10px;
}
.submit-btn {
    border: solid 2px #0077b2;
    border-radius: 4px;
    color: #000;
    font-size: 14px;
    background-color: #0077b2;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #0077b2;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 119, 178, 0.4);
}

.buttons {
    position: absolute;
    bottom: -90px;
    left: 10%;
    top: 500px;
    z-index: 9;
  
}

.buttons button {
  font-weight: 800;
  border: solid 2px #e6236d;
  background-color: #e6236d;
  border-radius: 4px;
  color: #000;
  font-size: 14px;
  text-transform: uppercase;
  margin: 10px;
  padding: 10px 50px;
  min-width: 120px;
  cursor: pointer;
}

.buttons button:hover{
  background-color: #0077b2;
  border: solid 2px #0077b2;
  color: #fff;
}

#envelope {
  position: relative;
  width: 103%;
  height: 100%;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  background-color: #00334c;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.6s ease;
}

.front {
  position: absolute;
  width: 0;
  height: 0;
  z-index: 3;
}

.flap {
  border-left: 165px solid transparent;
  border-right: 165px solid transparent;
  border-bottom: 120px solid transparent;
  border-top: 110px solid #00334c;
  transform-origin: top;
}

.pocket {
  border-left: 165px solid #0077b2;
  border-right: 165px solid #0077b2;
  border-bottom: 220px solid #006da3;
  border-top: 100px solid transparent;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.icons {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 2;
}

.icon {
    position: absolute;
    font-size: 30px;
    bottom: 0;
    right: 10%;
    color: #00334c; 
}

.close .icon {
    opacity: 0;
    animation: none;
}

.a1 {
    left: 20%;
    transform: scale(0.6);
    opacity: 1;
    animation: slideUp 4s linear 1, sideSway 2s ease-in-out 4 alternate;
    animation-fill-mode: forwards;
    animation-delay: 0.7s;
}

.a2 {
    left: 55%;
    transform: scale(1);
    opacity: 1;
    animation: slideUp 5s linear 1, sideSway 4s ease-in-out 2 alternate;
    animation-fill-mode: forwards;
    animation-delay: 0.7s;
}

.a3 {
    left: 10%;
    transform: scale(0.8);
    opacity: 1;
    animation: slideUp 7s linear 1, sideSway 2s ease-in-out 6 alternate;
    animation-fill-mode: forwards;
    animation-delay: 0.7s;
}

@keyframes slideUp {
    0% {
        top: 0;
    }
    100% {
        top: -600px;
    }
}

@keyframes sideSway {
    0% {
        margin-left: 0px;
    }
    100% {
        margin-left: 50px;
    }
}


.letter {
  position: absolute;
  background-color: #fff;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  height: auto;
  top: 5%;
  border-radius: 6px;
  box-shadow: 0 2px 26px rgba(0, 0, 0, .12);
  padding: 15px;
  transition: transform 0.6s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.letter input,
.letter textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 5px;
  border: 2px solid #0077b2;
  border-radius: 8px;
}

.letter label {
  font-weight: bold;
  width: 100%;
  text-align: left;
  color:#00334c;
}

.open .flap {
  transform: rotateX(180deg);
  transition: transform 0.4s ease, z-index 0.6s;
  z-index: 1;
}

.close .flap {
  transform: rotateX(0deg);
  transition: transform 0.4s 0.6s ease, z-index 1s;
  z-index: 5;
}

.close .letter {
  transform: translateY(-10px);
  transition: transform 0.4s ease, z-index 1s;
  z-index: 1;
}

.open .letter {
  transform: translateY(-250px);
  transition: transform 0.4s 0.6s ease, z-index 0.6s;
  z-index: 2;
}

.popup {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
  }
  
  .popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-in-out;
  }
  
  .popup-content p {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  #closePopup {
    padding: 10px 20px;
    background: #0077b2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
  }
  
  #closePopup:hover {
    background: #005a8c;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
  }
  

  