.contact-layout {
  display: grid;
  grid-template-areas:
    "form"
    "aside";
  gap: 30px;
}

.contact-layout form {
  grid-area: form;
}

.contact-layout aside {
  grid-area: aside;
}

form {
  display: grid;
  gap: 10px;
}

input,
textarea,
select {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px;
  border-radius: 8px;
  color: inherit;
}

textarea {
  min-height: 120px;
  resize: none;
}

#contact .btn {
  display: block;
  width: 100%;
  text-align: center;
}

#contactForm .btn {
  margin-top: 6px;
}

#contact .section-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

/* Sur mobile, le sous-titre passe en dessous */
@media (max-width: 768px) {
  #contact .section-title {
    flex-direction: column;
    align-items: flex-start;
  }
}

#contact .section-title h2 {
  margin: 0;
  line-height: 1.1;
}

#contact .section-title .muted {
  margin: 0;
  margin-bottom: 20px;
  white-space: normal;
  font-weight: 600;
  font-size: 15px;
  opacity: .85;
}

/* Ligne contenant texte + icône */
.copy-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Le texte peut passer à la ligne et prendre toute la place disponible */
.copy-text {
  overflow-wrap: anywhere;
  word-break: break-word;
  flex: 0 1 auto;
}

/* L’icône reste collée au texte et ne déborde jamais */
.copy-btn {
  flex: 0 0 auto;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  display: flex;
  align-items: center;
}





/* ===== Layout ordinateur ===== */
@media (min-width: 768px) {
  .contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 380px;
    grid-template-areas: "form aside";
    align-items: flex-start;
    gap: 20px;
  }

  /* On enlève le margin-bottom du formulaire uniquement sur desktop */
  #contactForm {
    margin-bottom: 0;
  }

  /* Sur desktop, on laisse le bouton CV prendre la largeur de la colonne droite */
  #contact a.btn {
    width: 100%;
    display: block;
  }
}

/* ===== Layout mobile ===== */
@media (max-width: 768px) {

  /* Le layout mobile passe en flex pour gérer l'ordre */
  .contact-layout {
    display: flex;
    flex-direction: column;
  }

  /* On place L'ASIDE en premier */
  .contact-layout aside {
    order: -1;
  }

  /* Le formulaire passe après */
  .contact-layout form {
    order: 1;
  }

  /* Ajustement des espacements */
  .contact-layout aside {
    margin-bottom: 20px;
  }

  #contactForm {
    margin-top: 10px;
  }
}