/* Messages de feedback */
.contact-message {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
  text-align: center;
}

.contact-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.contact-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Bloc Contact */
.bloc-contact {
  background: #f8f9fa;
  padding: 80px 0;
}

.bloc-contact__wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.bloc-contact__card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  padding: 48px;
  text-align: center;
}

.bloc-contact__title {
  font-size: 2.2rem;
  font-weight: 300;
  margin-bottom: 32px;
  color: #2c3e50;
}

.bloc-contact__form {
  text-align: left;
}

.bloc-contact__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.bloc-contact__field {
  display: flex;
  flex-direction: column;
}

.bloc-contact__label {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 8px;
  font-weight: 500;
}

.bloc-contact__input,
.bloc-contact__textarea {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 1rem;
  color: #2c3e50;
  transition: all 0.3s ease;
  outline: none;
}

.bloc-contact__input:focus,
.bloc-contact__textarea:focus {
  border-color: #015769;
  background: white;
  box-shadow: 0 0 0 3px rgba(90, 139, 163, 0.1);
}

.bloc-contact__textarea {
  resize: vertical;
  min-height: 120px;
}

.bloc-contact__btn {
  width: 100%;
  background: #f8f8d9;
  color: #015769;
  border: 2px solid #015769;
  border-radius: 8px;
  font-weight: 500;
  padding: 16px 32px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 12px;
}

.bloc-contact__btn:hover {
  background: #015769;
  color: #f8f8d9;
  border: 2px solid #f8f8d9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(90, 139, 163, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .bloc-contact {
    padding: 60px 0;
  }

  .bloc-contact__card {
    padding: 32px 24px;
    margin: 0 20px;
  }

  .bloc-contact__title {
    font-size: 1.8rem;
  }

  .bloc-contact__fields {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .bloc-contact__card {
    padding: 24px 16px;
    margin: 0 16px;
  }

  .bloc-contact__title {
    font-size: 1.6rem;
  }

  .bloc-contact__input,
  .bloc-contact__textarea {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .bloc-contact__btn {
    padding: 14px 24px;
    font-size: 0.9rem;
  }
}

/* ===================================
   CONTACT FORM 7 CUSTOM STYLES
   =================================== */

/* Wrapper pour Contact Form 7 */
.cf7-custom-wrapper {
  width: 100%;
}

/* Hériter des styles du thème pour Contact Form 7 */
.cf7-custom-wrapper .wpcf7-form {
  text-align: left;
}

.cf7-custom-wrapper .wpcf7-form p {
  margin-bottom: 20px;
}

/* Champs de formulaire Contact Form 7 */
.cf7-custom-wrapper .wpcf7-form-control {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 1rem;
  color: #2c3e50;
  transition: all 0.3s ease;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.cf7-custom-wrapper .wpcf7-form-control:focus {
  border-color: #015769;
  background: white;
  box-shadow: 0 0 0 3px rgba(90, 139, 163, 0.1);
}

/* Textarea spécifique */
.cf7-custom-wrapper textarea.wpcf7-form-control {
  resize: vertical;
  min-height: 120px;
}

/* Bouton submit Contact Form 7 */
.cf7-custom-wrapper .wpcf7-submit {
  width: 100%;
  background: #f8f8d9;
  color: #015769;
  border: 2px solid #015769;
  border-radius: 8px;
  font-weight: 500;
  padding: 16px 32px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 12px;
}

.cf7-custom-wrapper .wpcf7-submit:hover {
  background: #015769;
  color: #f8f8d9;
  border: 2px solid #f8f8d9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(90, 139, 163, 0.3);
}

/* Labels Contact Form 7 */
.cf7-custom-wrapper label {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 8px;
  font-weight: 500;
  display: block;
}

/* Messages de validation Contact Form 7 */
.cf7-custom-wrapper .wpcf7-validation-errors {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.cf7-custom-wrapper .wpcf7-mail-sent-ok {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
  text-align: center;
}

.cf7-custom-wrapper .wpcf7-mail-sent-ng {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

/* Messages d'erreur sur les champs */
.cf7-custom-wrapper .wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 5px;
  display: block;
}

.cf7-custom-wrapper .wpcf7-form-control.wpcf7-not-valid {
  border-color: #dc3545;
  background: #fff5f5;
}

/* Spinner de chargement */
.cf7-custom-wrapper .wpcf7-spinner {
  margin-left: 10px;
}

/* Responsive pour Contact Form 7 */
@media (max-width: 768px) {
  .cf7-custom-wrapper .wpcf7-form-control {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .cf7-custom-wrapper .wpcf7-submit {
    padding: 14px 24px;
    font-size: 0.9rem;
  }
}
