/* =========================================================
   TOI & MOI CONTACT — CSS COMPLET FINAL
   ========================================================= */

/* 1. WRAPPER GENERAL */
.tm-contact-wrap,
.tm-contact-wrap * {
  box-sizing: border-box;
}

.tm-contact-wrap {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  display: block !important;
  position: relative;
  z-index: 2;
}

/* 2. CARTE PRINCIPALE */
.tm-contact-card {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at top left, rgba(180, 90, 220, 0.16) 0%, rgba(180, 90, 220, 0.04) 28%, transparent 52%),
    radial-gradient(circle at bottom right, rgba(255, 120, 190, 0.12) 0%, rgba(255, 120, 190, 0.03) 24%, transparent 46%),
    linear-gradient(135deg, #05050c 0%, #090912 42%, #10101a 100%);
  box-shadow: 0 18px 50px rgba(0,0,0,0.20);
  position: relative;
  overflow: hidden;
}

/* 3. TITRE */
.tm-contact-title {
  display: inline-block;
  position: relative;
  margin: 0 0 28px;
  text-align: left;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 64px;
  line-height: 1.08;
  font-weight: 700;
  color: #f3c8df !important;
  letter-spacing: -0.02em;
}

.tm-contact-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8fcf 0%, #c77dff 100%);
  box-shadow: 0 0 12px rgba(255, 143, 207, 0.22);
  transition: width 0.32s ease, box-shadow 0.32s ease;
}

.tm-contact-title:hover::after {
  width: 100%;
}

/* 4. ALERTES */
.tm-contact-alert {
  display: block;
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: #ffffff !important;
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tm-contact-alert.tm-hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.tm-success {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.24);
}

.tm-error {
  background: rgba(120, 0, 0, 0.20);
  border: 1px solid rgba(255,255,255,0.16);
}

.tm-validation-error {
  margin-bottom: 14px;
}

/* 5. FORMULAIRE */
.tm-contact-form {
  width: 100%;
}

.tm-form-row {
  margin-bottom: 22px;
}

.tm-two-cols {
  display: flex;
  gap: 18px;
}

.tm-field {
  width: 100%;
}

/* 6. CHAMPS GENERAUX */
.tm-contact-form input,
.tm-contact-form textarea,
.tm-contact-form select {
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 18px 20px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  background: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.92) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.92) !important;
  caret-color: #ffffff !important;
  font-family: "Georgia", "Times New Roman", serif !important;
  font-size: 18px !important;
  line-height: 1.45 !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

/* placeholders */
.tm-contact-form input::placeholder,
.tm-contact-form textarea::placeholder {
  color: rgba(255,255,255,0.72) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.72) !important;
  opacity: 1 !important;
}

/* focus & hover */
.tm-contact-form input:hover,
.tm-contact-form input:focus,
.tm-contact-form select:hover,
.tm-contact-form select:focus,
.tm-contact-form textarea:hover,
.tm-contact-form textarea:focus {
  background: rgba(255,255,255,0.10) !important;
  border-color: rgba(255, 190, 230, 0.38) !important;
  box-shadow:
    0 0 0 2px rgba(255, 185, 225, 0.05),
    0 0 14px rgba(199, 125, 255, 0.10) !important;
}

/* 7. SELECT */
.tm-contact-form select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #ffffff 50%),
    linear-gradient(135deg, #ffffff 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.tm-contact-form select option {
  background: #ffffff !important;
  color: #222222 !important;
}

/* 8. TEXTAREA */
.tm-contact-form textarea,
.tm-contact-form textarea:hover,
.tm-contact-form textarea:focus,
.tm-contact-form textarea:active {
  min-height: 220px !important;
  resize: vertical !important;
  background: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.92) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.92) !important;
  caret-color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
}

/* 9. NOTE SOUS MESSAGE */
.tm-contact-note {
  display: inline-block;
  position: relative;
  margin-top: 10px;
  color: rgba(255,255,255,0.92) !important;
  font-size: 13px;
  line-height: 1.55;
}

.tm-contact-note::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,143,207,0.92), rgba(199,125,255,0.92));
  box-shadow: 0 0 8px rgba(255, 143, 207, 0.16);
  transition: width 0.30s ease;
}

.tm-contact-note:hover::after {
  width: 100%;
}

/* 10. ZONE FICHIER */
.tm-file-field label {
  display: inline-block;
  position: relative;
  margin-bottom: 8px;
  color: #ffffff !important;
  font-weight: 600;
}

.tm-file-field label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,143,207,0.92), rgba(199,125,255,0.92));
  box-shadow: 0 0 8px rgba(255, 143, 207, 0.16);
  transition: width 0.30s ease;
}

.tm-file-field label:hover::after {
  width: 100%;
}

.tm-file-field small {
  display: inline-block;
  margin-top: 8px;
  color: rgba(255,255,255,0.84) !important;
  font-size: 13px;
}

.tm-file-field input[type="file"] {
  padding: 14px 16px !important;
  line-height: 1.4 !important;
}

/* 11. BOUTON */
.tm-submit-btn,
.tm-contact-form button,
.tm-contact-form input[type="submit"] {
  width: auto !important;
  min-width: 240px !important;
  padding: 18px 32px !important;
  border: none !important;
  border-radius: 18px !important;
  background: linear-gradient(90deg, #e08bcf 0%, #cf81f0 100%) !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  font-family: "Georgia", "Times New Roman", serif !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  box-shadow: 0 10px 25px rgba(207, 129, 240, 0.22) !important;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease !important;
}

.tm-submit-btn:hover,
.tm-contact-form button:hover,
.tm-contact-form input[type="submit"]:hover {
  transform: translateY(-1px) !important;
  opacity: 0.98 !important;
  box-shadow: 0 14px 30px rgba(207, 129, 240, 0.28) !important;
}

/* 12. HONEYPOT */
.tm-honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 13. NEUTRALISATION DES EFFETS GLOBAUX DU SITE DANS LE FORMULAIRE */
.tm-contact-wrap p::after,
.tm-contact-wrap span::after,
.tm-contact-wrap label::after:not(.tm-file-field label::after) {
  content: none !important;
  display: none !important;
}

.tm-contact-wrap div,
.tm-contact-wrap span,
.tm-contact-wrap p,
.tm-contact-wrap label,
.tm-contact-wrap input,
.tm-contact-wrap textarea,
.tm-contact-wrap select {
  letter-spacing: normal !important;
}

/* 14. RESPONSIVE */
@media (max-width: 768px) {
  .tm-contact-card {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .tm-contact-title {
    font-size: 42px !important;
    margin-bottom: 24px;
  }

  .tm-two-cols {
    flex-direction: column;
    gap: 22px;
  }

  .tm-submit-btn,
  .tm-contact-form button,
  .tm-contact-form input[type="submit"] {
    width: 100% !important;
  }
}/* ===============================
   BOUTON FICHIER (PDF)
   =============================== */

/* bouton natif */
.tm-contact-wrap input[type="file"]::file-selector-button {
  padding: 12px 18px;
  margin-right: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #e08bcf 0%, #cf81f0 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  font-family: "Georgia", "Times New Roman", serif;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 16px rgba(207, 129, 240, 0.25);
}

/* hover */
.tm-contact-wrap input[type="file"]::file-selector-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(207, 129, 240, 0.35);
  opacity: 0.95;
}

/* version Firefox */
.tm-contact-wrap input[type="file"]::-webkit-file-upload-button {
  padding: 12px 18px;
  margin-right: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #e08bcf 0%, #cf81f0 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  font-family: "Georgia", "Times New Roman", serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* hover Firefox */
.tm-contact-wrap input[type="file"]::-webkit-file-upload-button:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}